diff --git a/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_content_list.json b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5dbeb5ca842c12fe420130422f84d04f71b94e9c
--- /dev/null
+++ b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:26a30abb2c5a4637bc67f5474c39cd0076dea6b15cc1feddb645ac54d164572f
+size 90672
diff --git a/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_model.json b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4a43f7f754b47dd01ec06b2f88311fdd9111e6a0
--- /dev/null
+++ b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d62915e24570d5b41f184cb01744ce90ddafedc7506ee9a7e7329a6db9f2409e
+size 114367
diff --git a/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_origin.pdf b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..705bc471fa6b88e0fe80e339ce350e83643ab4eb
--- /dev/null
+++ b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e3bfe6b59a034a7cd58b2d865bf218164b6371b60adc192f6d1579bdcbbcdd7
+size 1147408
diff --git a/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/full.md b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3ebdcd79bea06dcec826590ce268bc9a768c3892
--- /dev/null
+++ b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/full.md
@@ -0,0 +1,465 @@
+# Rethinking Data Augmentation for Image Super-resolution: A Comprehensive Analysis and a New Strategy
+
+Jaejun Yoo* EPFL.
+
+jaejun.yoo88@gmail.com
+
+Namhyuk Ahn*
+Ajou University
+
+aa0cfg@ajou.ac.kr
+
+Kyung-Ah Sohn†
+
+Ajou University
+
+kasohn@ajou.ac.kr
+
+# Abstract
+
+Data augmentation is an effective way to improve the performance of deep networks. Unfortunately, current methods are mostly developed for high-level vision tasks (e.g., classification) and few are studied for low-level vision tasks (e.g., image restoration). In this paper, we provide a comprehensive analysis of the existing augmentation methods applied to the super-resolution task. We find that the methods discarding or manipulating the pixels or features too much hamper the image restoration, where the spatial relationship is very important. Based on our analyses, we propose CutBlur that cuts a low-resolution patch and pastes it to the corresponding high-resolution image region and vice versa. The key intuition of CutBlur is to enable a model to learn not only "how" but also "where" to superresolve an image. By doing so, the model can understand "how much", instead of blindly learning to apply super-resolution to every given pixel. Our method consistently and significantly improves the performance across various scenarios, especially when the model size is big and the data is collected under real-world environments. We also show that our method improves other low-level vision tasks, such as denoising and compression artifact removal.
+
+# 1. Introduction
+
+Data augmentation (DA) is one of the most practical ways to enhance model performance without additional computation cost in the test phase. While various DA methods [7, 29, 30, 13] have been proposed in several high-level vision tasks, DA in low-level vision has been scarcely investigated. Instead, many image restoration studies, such as super-resolution (SR), have relied on the synthetic datasets [22], which we can easily increase the number of training samples by simulating the system degradation functions (e.g., using the bicubic kernel for SR).
+
+Because of the gap between a simulated and a real data
+
+distribution, however, models that are trained on simulated datasets do not exhibit optimal performance in the real environments [4]. Several recent studies have proposed to mitigate the problem by collecting real-world datasets [1, 4, 32]. However, in many cases, it is often very time-consuming and expensive to obtain a large number of such data. Although this is where DA can play an important role, only a handful of studies have been performed [9, 24].
+
+Radu et al. [24] was the first to study various techniques to improve the performance of example-based single-image super-resolution (SISR), one of which was data augmentation. Using rotation and flipping, they reported consistent improvements across models and datasets. Still, they only studied simple geometric manipulations with traditional SR models [12, 23] and a very shallow learning-based model, SRCNN [8]. To the best of our knowledge, Feng et al. [9] is the only work that analyzed a recent DA method (Mixup [30]) in the example-based SISR problem. However, the authors provided only a limited observation using a single U-Net-like architecture and tested the method with a single dataset (RealSR [4]).
+
+To better understand DA methods in low-level vision, we provide a comprehensive analysis on the effect of various DA methods that are originally developed for high-level vision tasks (Section 2). We first categorize the existing augmentation techniques into two groups depending on where the method is applied; pixel-domain [7, 29, 30] and feature-domain [11, 10, 26, 27]. When directly applied to SISR, we find that some methods harm the image restoration results and even hampers the training, especially when a method largely induces the loss or confusion of spatial information between nearby pixels (e.g., Cutout [7] and feature-domain methods). Interestingly, basic manipulations like RGB permutation that do not cause a severe spatial distortion provide better improvements than the ones which induce unrealistic patterns or a sharp transition of the structure (e.g., Mixup [30] and CutMix [29]).
+
+Based on our analyses, we propose CutBlur, a new augmentation method that is specifically designed for the low-level vision tasks. CutBlur cut and paste a low resolution
+
+
+(a) High resolution
+
+
+(b) Low resolution
+
+
+(c) CutBlur
+
+
+(d) Schematic illustration of CutBlur operation
+
+
+
+
+(e) Blend
+
+
+(f) RGB permute
+
+
+(g) Cutout $(25\%)$ [7]
+Figure 1. Data augmentation methods. (Top) An illustrative example of our proposed method, CutBlur. CutBlur generates an augmented image by cut-and-pasting the low resolution (LR) input image onto the ground-truth high resolution (HR) image region and vice versa (Section 3). (Bottom) Illustrative examples of the existing augmentation techniques and a new variation of CutMix and Mixup, CutMixup.
+
+
+(h) Mixup [30]
+
+
+(i) CutMix [29]
+
+
+(j) CutMixup
+
+(LR) image patch into its corresponding ground-truth high resolution (HR) image patch (Figure 1). By having partially LR and partially HR pixel distributions with a random ratio in a single image, CutBlur enjoys the regularization effect by encouraging a model to learn both "how" and "where" to super-resolve the image. One nice side effect of this is that the model also learns "how much" it should apply super-resolution on every local part of a given image. While trying to find a mapping that can simultaneously maintain the input HR region and super-resolve the other LR region, the model adaptively learns to super-resolve an image.
+
+Thanks to this unique property, CutBlur prevents oversharpening of SR models, which can be commonly found in real-world applications (Section 4.3). In addition, we show that the performance can be further boosted by applying several curated DA methods together during the training phase, which we call mixture of augmentations (MoA) (Section 3). Our experiments demonstrate that the proposed strategy significantly and consistently improves the model performance over various models and datasets. Our contributions are summarized as follows:
+
+1. To the best of our knowledge, we are the first to provide comprehensive analysis of recent data augmentation methods when directly applied to the SISR task.
+2. We propose a new DA method, CutBlur, which can reduce unrealistic distortions by regularizing a model to learn not only "how" but also "where" to apply the super-resolution to a given image.
+3. Our mixed strategy shows consistent and significant improvements in the SR task, achieving state-of-the-art (SOTA) performance in RealSR [4].
+
+# 2. Data augmentation analysis
+
+In this section, we analyze existing augmentation methods and compare their performances when applied to EDSR [15], which is our baseline super-resolution model. We train EDSR from scratch with DIV2K [2] dataset or RealSR [4] dataset. We used the authors' official code.
+
+# 2.1. Prior arts
+
+DA in pixel space. There have been many studies to augment images in high-level vision tasks [7, 29, 30] (Figure 1). Mixup [30] blends two images to generate an unseen training sample. Cutout and its variants [7, 34] drop a randomly selected region of an image. Addressing that Cutout cannot fully exploit the training data, CutMix [29] replaces the random region with another image. Recently, AutoAugment and its variant [6, 16] have been proposed to learn the best augmentation policy for a given task and dataset.
+
+DA in feature space. DA methods manipulating CNN features have been proposed [5, 10, 11, 19, 26, 27] and can be categorized into three groups: 1) feature mixing, 2) shaking, and 3) dropping. Like Mixup, Manifold Mixup [26] mixes both input image and the latent features. Shake-shake [10] and ShakeDrop [27] perform a stochastic affine transformation to the features. Finally, following the spirit of Dropout [19], a lot of feature dropping strategies [5, 11, 25] have been proposed to boost the generalization of a model.
+
+DA in super-resolution. A simple geometric manipulation, such as rotation and flipping, has been widely used in SR models [24]. Recently, Feng et al. [9] showed that Mixup can alleviate the overfitting problem of SR models [4].
+
+# 2.2. Analysis of existing DA methods
+
+The core idea of many augmentation methods is to partially block or confuse the training signal so that the model acquires more generalization power. However, unlike the high-level tasks, such as classification, where a model should learn to abstract an image, the local and global relationships among pixels are especially more important in the low-level vision tasks, such as denoising and superresolution. Considering this characteristic, it is unsurprising that DA methods, which lose the spatial information, limit the model's ability to restore an image. Indeed, we observe that the methods dropping the information [5, 11, 25] are detrimental to the SR performance and especially harmful in the feature space, which has larger receptive fields. Every feature augmentation method significantly drops the performance. Here, we put off the results of every DA method that degrades the performance in the supplementary material.
+
+On the other hand, DA methods in pixel space bring some improvements when applied carefully (Table 1). For example, Cutout [7] with default setting (dropping $25\%$ of pixels in a rectangular shape) significantly degrades the original performance by $0.1 \mathrm{~dB}$ . However, we find that Cutout gives a positive effect (DIV2K: $+0.01 \mathrm{~dB}$ and RealSR: $+0.06 \mathrm{~dB}$ ) when applied with $0.1\%$ ratio and erasing random pixels instead of a rectangular region. Note that this drops only $2 \sim 3$ pixels when using a $48 \times 48$ input patch.
+
+CutMix [29] shows a marginal improvement (Table 1), and we hypothesize that this happens because CutMix generates a drastically sharp transition of image context making boundaries. Mixup improves the performance but it minngles the context of two different images, which can confuse the model. To alleviate these issues, we create a variation of CutMix and Mixup, which we call CutMixup (below the dashed line, Figure 1). Interestingly, it gives a better improvement on our baseline. By getting the best of both methods, CutMixUp benefits from minimizing the boundary effect as well as the ratio of the mixed contexts.
+
+Based on these observations, we further test a set of basic operations such as RGB permutation and Blend (adding a constant value) that do not incur any structural change in an image. (For more details, please see our supplementary material.) These simple methods show promising results in the synthetic DIV2K dataset and a big improvement in the RealSR dataset, which is more difficult. These results empirically prove our hypothesis, which naturally leads us to a new augmentation method, CutBlur. When applied, CutBlur not only improves the performance (Table 1) but provides some good properties and synergy (Section 3.2), which cannot be obtained by the other DA methods.
+
+Table 1. PSNR (dB) comparison of different data augmentation methods in super-resolution. We report the baseline model (EDSR [15]) performance that is trained on DIV2K $(\times 4)$ [2] and RealSR $(\times 4)$ [4]. The models are trained from scratch. $\delta$ denotes the performance gap between with and without augmentation.
+
+
| Method | DIV2K (δ) | RealSR (δ) |
| EDSR | 29.21 (+0.00) | 28.89 (+0.00) |
| Cutout [7] (0.1%) | 29.22 (+0.01) | 28.95 (+0.06) |
| CutMix [29] | 29.22 (+0.01) | 28.89 (+0.00) |
| Mixup [30] | 29.26 (+0.05) | 28.98 (+0.09) |
| CutMixup | 29.27 (+0.06) | 29.03 (+0.14) |
| RGB perm. | 29.30 (+0.09) | 29.02 (+0.13) |
| Blend | 29.23 (+0.02) | 29.03 (+0.14) |
| CutBlur | 29.26 (+0.05) | 29.12 (+0.23) |
| All DA's (random) | 29.30 (+0.09) | 29.16 (+0.27) |
+
+# 3. CutBlur
+
+In this section, we describe the CutBlur, a new augmentation method that is designed for the super-resolution task.
+
+# 3.1. Algorithm
+
+Let $x_{LR} \in \mathbb{R}^{W \times H \times C}$ and $x_{HR} \in \mathbb{R}^{sW \times sH \times C}$ are LR and HR image patches and $s$ denotes a scale factor in the SR. As illustrated in Figure 1, because CutBlur requires to match the resolution of $x_{LR}$ and $x_{HR}$ , we first upsample $x_{LR}$ by $s$ times using a bicubic kernel, $x_{LR}^s$ . The goal of CutBlur is to generate a pair of new training samples $(\hat{x}_{HR \to LR}, \hat{x}_{LR \to HR})$ by cut-and-pasting the random region of $x_{HR}$ into the corresponding $x_{LR}^s$ and vice versa:
+
+$$
+\begin{array}{l}\hat {x} _ {H R \rightarrow L R} = \mathbf {M} \odot x _ {H R} + (\mathbf {1} - \mathbf {M}) \odot x _ {L R} ^ {s}\\\hat {x} _ {L R \rightarrow H R} = \mathbf {M} \odot x _ {L R} ^ {s} + (\mathbf {1} - \mathbf {M}) \odot x _ {H R}\end{array}\tag {1}
+$$
+
+where $\mathbf{M} \in \{0,1\}^{sW \times sH}$ denotes a binary mask indicating where to replace, $\mathbf{1}$ is a binary mask filled with ones, and $\odot$ is element-wise multiplication. For sampling the mask and its coordinates, we follow the original CutMix [29].
+
+# 3.2. Discussion
+
+Why CutBlur works for SR? In the previous analysis (Section 2.2), we found that sharp transitions or mixed image contents within an image patch, or losing the relationships of pixels can degrade SR performance. Therefore, a good DA method for SR should not make unrealistic patterns or information loss while it has to serve as a good regularizer to SR models.
+
+CutBlur satisfies these conditions because it performs cut-and-paste between the LR and HR image patches of the same content. By putting the LR (resp. HR) image region onto the corresponding HR (resp. LR) image region, it can minimize the boundary effect, which majorly comes from
+
+
+HR (input)
+
+
+EDSR w/o CutBlur $(\Delta)$
+
+
+
+
+
+
+
+
+
+
+EDSR w/ CutBlur $(\Delta)$
+
+
+
+
+HR (input)
+
+
+
+
+
+
+EDSR w/o CutBlur $(\Delta)$
+
+
+EDSR w/ CutBlur $(\Delta)$
+
+
+
+
+
+a mismatch between the image contents (e.g., Cutout and CutMix). Unlike Cutout, CutBlur can utilize the entire image information while it enjoys the regularization effect due to the varied samples of random HR ratios and locations.
+
+What does the model learn with CutBlur? Similar to the other DA methods that prevent classification models from over-confidently making a decision (e.g., label smoothing [21]), CutBlur prevents the SR model from oversharpening an image and helps it to super-resolve only the necessary region. This can be demonstrated by performing the experiments with some artificial setups, where we provide the CutBlur-trained SR model with an HR image (Figure 2) or CutBlurred LR image (Figure 3) as input.
+
+When the SR model takes HR images at the test phase, it commonly outputs over-sharpened predictions, especially where the edges are (Figure 2). CutBlur can resolve this issue by directly providing such examples to the model during the training phase. Not only does CutBlur mitigate the oversharpening problem, but it enhances the SR performance on the other LR regions, thanks to the regularization effect (Figure 3). Note that the residual intensity has significantly decreased in the CutBlur model. We hypothesize that this enhancement comes from constraining the SR model to discriminatively apply super-resolution to the image. Now the model has to simultaneously learn both "how" and "where" to super-resolve an image, and this leads the model to learn "how much" it should apply super-resolution, which provides a beneficial regularization effect to the training.
+
+Of course it is unfair to compare the models that have been trained with and without such images. However, we argue that these scenarios are not just the artificial experimental setups but indeed exist in the real-world (e.g., out-of-focus images). We will discuss this more in detail with several real examples in Section 4.3.
+
+CutBlur vs. Giving HR inputs during training. To make a model learn an identity mapping, instead of using CutBlur, one can easily think of providing HR images as an input of the network during the training phase. With the EDSR model, CutBlur trained model (29.04 dB) showed better
+
+
+Figure 2. Qualitative comparison of the baseline with and without CutBlur when the network takes the HR image as an input during the inference time. $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image. CutBlur successfully preserves the entire structure while the baseline generates unrealistic artifacts (left) or incorrect outputs (right).
+HR
+
+
+EDSR w/o CutBlur (Δ)
+
+
+
+w/o CutBlur $(\Delta)$
+
+
+LR (CutBlurred)
+Figure 3. Qualitative comparison of the baseline and Cut-Blur model outputs when the input is augmented by CutBlur. $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image. Unlike the baseline (top right), CutBlur model not only resolves the HR region but reduces $\Delta$ of the other LR input area as well (bottom right).
+
+
+EDSR w/CutBlur (Δ)
+
+
+
+performance in PSNR than naively providing the HR images (28.87 dB) to the network. (The detailed setups can be found in the supplementary material.) This is because Cut-Blur is more general in that HR inputs are its special case ( $\mathbf{M} = \mathbf{0}$ or $\mathbf{1}$ ). On the other hand, giving HR inputs can never simulate the mixed distribution of LR and HR pixels so that the network can only learn "how", not "where" to super-resolve an image.
+
+Mixture of augmentation (MoA). To push the limits of performance gains, we integrate various DA methods into a single framework. For each training iteration, the model first decides with probability $p$ whether to apply DA on inputs or not. If yes, it randomly selects a method among the DA pool. Based on our analysis, we use all the pixel-domain DA methods discussed in Table 1 while excluding all feature-domain DA methods. Here, we set $p = 1.0$ as a default. From now on, unless it is specified, we report all the experimental results using this MoA strategy.
+
+
+
+
+
+
+(a) SRCNN (0.07M)
+(c) RCAN (15.6M)
+Figure 4. PSNR (dB) comparison on ten DIV2K $(\times 4)$ validation images during training for different data size $(\%)$ . Ours are shown by triangular markers. Zoomed curves are displayed (inlets).
+
+
+(b) CARN (1.14M)
+(d) EDSR (43.2M)
+
+# 4. Experiments
+
+In this section, we describe our experimental setups and compare the model performance with and without applying our method. We compare the super-resolution (SR) performance under various model sizes, dataset sizes (Section 4.1), and benchmark datasets (Section 4.2). Finally, we apply our method to the other low-level vision tasks, such as Gaussian denoising and JPEG artifact removal, to show the potential extensibility of our method (Section 4.4).[23]
+
+Baselines. We use four SR models: SRCNN [8], CARN [3], RCAN [33], and EDSR [15]. These models have different numbers of parameters from 0.07M to 43.2M (million). For fair comparisons, every model is trained from scratch using the authors' official code unless mentioned otherwise.
+
+Dataset and evaluation. We use the DIV2K [2] dataset or a recently proposed real-world SR dataset, RealSR [4] for training. For evaluation, we use Set14 [28], Urban100 [14], Manga109 [17], and test images of the RealSR dataset. Here, PSNR and SSIM are calculated on the Y channel only except the color image denoising task.
+
+# 4.1. Study on different models and datasets
+
+Various model sizes. It is generally known that a large model benefits more from augmentation than a small model does. To see whether this is true in SR, we investigate how the model size affects the maximum performance gain using our strategy. Here, we set the probability of applying augmentations differently depending on the model size, $p = 0.2$ for the small models (SRCNN and CARN) and
+
+Table 2. PSNR (dB) comparison on DIV2K $(\times 4)$ validation set by varying the model and the size of dataset for training. Note that the number of RealSR dataset, which is more difficult to collect, is around $15\%$ of DIV2K dataset.
+
+| Model | Params. | Training Data Size |
| 100% | 50% | 25% | 15% | 10% |
| SRCNN + proposed | 0.07M | 27.95 | 27.95 | 27.95 | 27.93 | 27.91 |
| -0.02 | -0.01 | -0.02 | -0.02 | -0.01 |
| CARN + proposed | 1.14M | 28.80 | 28.77 | 28.72 | 28.67 | 28.60 |
| +0.00 | +0.01 | +0.02 | +0.03 | +0.04 |
| RCAN + proposed | 15.6M | 29.22 | 29.06 | 29.01 | 28.90 | 28.82 |
| +0.08 | +0.16 | +0.11 | +0.13 | +0.14 |
| EDSR + proposed | 43.2M | 29.21 | 29.10 | 28.97 | 28.87 | 28.77 |
| +0.08 | +0.08 | +0.10 | +0.10 | +0.11 |
+
+$p = 1.0$ for the large models (RCAN and EDSR). With the small models, our proposed method provides no benefit or marginally increases the performance (Table 2). This demonstrates the severe underfitting of the small models, where the effect of DA is minimal due to the lacking capacity. On the other hand, it consistently improves the performance of RCAN and EDSR, which have enough capacity to exploit the augmented information.
+
+Various dataset sizes. We further investigate the model performance while decreasing the data size for training (Table 2). Here, we use $100\%$ , $50\%$ , $25\%$ , $15\%$ and $10\%$ of the DIV2K dataset. SRCNN and CARN show none or marginal improvements with our method. This can be also seen by the validation curves while training (Figure 4a and 4b). On the other hand, our method brings a huge benefit to the RCAN and EDSR in all the settings. The performance gap between the baseline and our method becomes profound as the dataset size diminishes. RCAN trained on half of the dataset shows the same performance as the $100\%$ baseline when applied with our method $(29.06 + 0.16 = 29.22\mathrm{dB})$ . Our method gives an improvement of up to $0.16\mathrm{dB}$ when the dataset size is less than $50\%$ . This tendency is observed in EDSR as well. This is important because $15\%$ of the DIV2K dataset is similar to the size of the RealSR dataset, which is more expensive taken under real environments.
+
+Our method also significantly improves the overfitting problem (Figure 4c and 4d). For example, if we use $25\%$ of the training data, the large models easily overfit and this can be dramatically reduced by using our method (denoted by curves with the triangular marker of the same color).
+
+# 4.2. Comparison on diverse benchmark dataset
+
+We test our method on various benchmark datasets. For the synthetic dataset, we train the models using the DIV2K dataset and test them on Set14, Urban100, and Manga109. Here, we first pre-train the network with $\times 2$ scale dataset, then fine-tune on $\times 4$ scale images. For the realistic case, we train the models using the training set of the RealSR dataset
+
+
+Urban100: 004
+
+
+HR (PSNR/SSIM)
+
+
+CARN (Δ) (21.97/0.8127)
+
+
+EDSR $(\Delta)$ (23.04/0.8492)
+
+
+RCAN $(\Delta)$ (23.64/0.8658)
+
+
+Urban100: 073
+
+
+LR (19.81/0.6517)
+
+
+CARN + proposed (Δ) (22.04/0.8148)
+
+
+EDSR + proposed (Δ) (24.13/0.8687)
+
+
+RCAN + proposed (Δ) (24.07/0.8704)
+
+
+
+
+manga109: RisingGirl
+
+
+
+
+HR (PSNR/SSIM)
+LR (18.20/0.4204)
+
+
+
+
+CARN (Δ) (18.71/0.5343)
+CARN + proposed (Δ) (18.83/0.5347)
+
+
+
+
+EDSR $(\Delta)$ (19.08/0.5869)
+EDSR + proposed (Δ) (19.86/0.6074)
+
+
+
+
+RCAN (Δ) (19.40/0.5843)
+RCAN $^+$ proposed $(\Delta)$ (20.02/0.6085)
+
+
+
+
+RealSR: Canon010
+
+
+
+
+HR (PSNR/SSIM)
+LR (22.99/0.7440)
+
+
+
+
+CARN (Δ) (27.29/0.8404)
+CARN + proposed (Δ) (27.29/0.8402)
+
+
+
+
+EDSR $(\Delta)$ (27.98/0.8546)
+EDSR + proposed (Δ) (28.12/0.8579)
+
+
+
+
+RCAN $(\Delta)$ (27.77/0.8533)
+RCAN + proposed (Δ) (28.10/0.8572)
+
+
+
+
+RealSR: Nikon011
+Figure 5. Qualitative comparison of using our proposed method on different datasets and tasks. $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image.
+
+
+HR (PSNR/SSIM)
+
+
+LR (23.21/0.7865)
+
+
+CARN (Δ) (24.69/0.8486)
+
+
+CARN + proposed (Δ) (25.13/0.8578)
+
+
+EDSR $(\Delta)$ (25.19/0.8575)
+
+
+EDSR + proposed (Δ) (25.54/0.8673)
+
+
+RCAN (Δ) (25.53/0.8669)
+
+
+RCAN $^+$ proposed $(\Delta)$ (25.78/0.8693)
+
+
+
+Table 3. Quantitative comparison (PSNR / SSIM) on SR (scale $\times 4$ ) task in both synthetic and realistic settings. $\delta$ denotes the performance gap between with and without augmentation. For synthetic case, we perform the $\times 2$ scale pre-training.
+
+| Model | # Params. | Synthetic (DIV2K dataset) | Realistic (RealSR dataset) |
| Set14 (δ) | Urban100 (δ) | Manga109 (δ) | RealSR (δ) |
| CARN + proposed | 1.14M | 28.48 (+0.00) / 0.7787 | 25.85 (+0.00) / 0.7779 | 30.17 (+0.00) / 0.9034 | 28.78 (+0.00) / 0.8134 |
| 28.48 (+0.00) / 0.7788 | 25.85 (+0.00) / 0.7780 | 30.16 (-0.01) / 0.9032 | 29.00 (+0.22) / 0.8204 |
| RCAN + proposed | 15.6M | 28.86 (+0.00) / 0.7879 | 26.76 (+0.00) / 0.8062 | 31.24 (+0.00) / 0.9169 | 29.22 (+0.00) / 0.8254 |
| 28.92 (+0.06) / 0.7895 | 26.93 (+0.17) / 0.8106 | 31.46 (+0.22) / 0.9190 | 29.49 (+0.27) / 0.8307 |
| EDSR + proposed | 43.2M | 28.81 (+0.00) / 0.7871 | 26.66 (+0.00) / 0.8038 | 31.06 (+0.00) / 0.9151 | 28.89 (+0.00) / 0.8204 |
| 28.88 (+0.07) / 0.7886 | 26.80 (+0.14) / 0.8072 | 31.25 (+0.19) / 0.9163 | 29.16 (+0.27) / 0.8258 |
+
+
+HR LR (input)
+
+
+HR
+LR (input)
+
+
+EDSR w/o CutBlur (Δ)
+
+
+EDSR w/o CutBlur (Δ)
+
+
+EDSR w/CutBlur $(\Delta)$
+Figure 6. Qualitative comparison of the baseline and CutBlur model outputs. The inputs are the real-world out-of-focus photography ( $\times 2$ bicubic downsampled), which are taken from a web (left) and captured by iPhone 11 Pro (right). $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image. The baseline model over-sharpens the focused region resulting in unpleasant distortions while the CutBlur model effectively super-resolves the image without such a problem.
+
+
+EDSR w/CutBlur (Δ)
+
+$(\times 4$ scale) and test them on its unseen test images.
+
+Our proposed method consistently gives a huge performance gain, especially when the models have large capacities (Table 3). In the RealSR dataset, which is a more realistic case, the performance gain of our method becomes larger, increasing at least $0.22\mathrm{dB}$ for all models in PSNR. We achieve the SOTA performance (RCAN [33]) compared to the previous SOTA model (LP-KPN [4]: 28.92 dB / 0.8340). Note that our model increases the PSNR by 0.57 dB with a comparable SSIM score. Surprisingly, the lightest model (CARN [3]: 1.14M) can already beat the LP-KPN (5.13M) in PSNR with only $22\%$ of the parameters.
+
+Figure 5 shows the qualitative comparison between the models with and without applying our DA method. In the Urban100 examples (1st and 2nd rows in Figure 5), RCAN and EDSR benefit from the increased performance and successfully resolve the aliasing patterns. This can be seen more clearly in the residual between the model-prediction and the ground-truth HR image. Such a tendency is con
+
+sistently observed across different benchmark images. In RealSR dataset images, even the performance of the small model is boosted, especially when there are fine structures (4th row in Figure 5).
+
+# 4.3. CutBlur in the wild
+
+With the recent developments of devices like iPhone 11 Pro, they offer a variety of features, such as portrait images. Due to the different resolutions of the focused foreground and the out-focused background of the image, the baseline SR model shows degraded performance, while the CutBlur model does not (Figure 6). These are the very real-world examples, which are simulated by CutBlur. The baseline model adds unrealistic textures in the grass (left, Figure 6) and generates ghost artifacts around the characters and coin patterns (right, Figure 6). In contrast, the CutBlur model does not add any unrealistic distortion while it adequately super-resolves the foreground and background of the image.
+
+Table 4. Performance comparison on the color Gaussian denoising task evaluated on the Kodak24 dataset. We train the model with both mild $(\sigma = 30)$ and severe noises $(\sigma = 70)$ and test on the mild setting. LPIPS [31] (lower is better) indicates the perceptual distance between the network output and the ground-truth.
+
+| Model | Train σ | Test (σ = 30) |
| PSNR ↑ | SSIM ↑ | LPIPS ↓ |
| EDSR + proposed | 30 | 31.92 | 0.8716 | 0.136 |
| +0.02 | +0.0006 | -0.004 |
| EDSR + proposed | 70 | 27.38 | 0.7295 | 0.375 |
| -2.51 | +0.0696 | -0.193 |
+
+Table 5. Performance comparison on the color JPEG artifact removal task evaluated on the LIVE1 [18] dataset. We train the model with both mild $(q = 30)$ and severe compression $(q = 10)$ and test on the mild setting.
+
+| Model | Train q | Test (q = 30) |
| PSNR ↑ | SSIM ↑ | LPIPS ↓ |
| EDSR + proposed | 30 | 33.95 | 0.9227 | 0.118 |
| -0.01 | -0.0002 | +0.001 |
| EDSR + proposed | 10 | 32.45 | 0.8992 | 0.154 |
| +0.97 | +0.0187 | -0.023 |
+
+# 4.4. Other low-level vision tasks
+
+Interestingly, we find that our method also gives similar benefits when applied to the other low-level vision tasks. We demonstrate the potential advantages of our method by applying it to the Gaussian denoising and JPEG artifact removal tasks. For each task, we use EDSR as our baseline and trained the model from scratch with the synthetic DIV2K dataset with the corresponding degradation functions. We evaluate the model performance on the Kodak24 and LIVE1 [18] datasets using PSNR (dB), SSIM, and LPIPS [31]. Please see the appendix for more details.
+
+Gaussian denoising (color). We generate a synthetic dataset using Gaussian noise of different signal-to-noise ratios (SNR); $\sigma = 30$ and 70 (higher $\sigma$ means stronger noise). Similar to the over-sharpening issue in SR, we simulate the over-smoothing problem (bottom row, Table 4). The proposed model has lower PSNR (dB) than the baseline but it shows higher SSIM and lower LPIPS [31], which is known to measure the perceptual distance between two images (lower LPIPS means smaller perceptual difference).
+
+In fact, the higher PSNR of the baseline model is due to the over-smoothing (Figure 7). Because the baseline model has learned to remove the stronger noise, it provides the over-smoothed output losing the fine details of the image. Due to this over-smoothing, its SSIM score is significantly lower and LPIPS is significantly higher. In contrast, the proposed model trained with our strategy successfully denoises the image while preserving the fine structures, which demonstrates the good regularization effect of our method.
+
+
+High quality (PSNR/SSIM/LPIIPS)
+
+
+Low quality $(\sigma = 30)$ (18.88, 0.4716 / 0.446)
+
+
+Baseline
+(23.38 / 0.5375 / 0.598)
+Figure 7. Comparison of the generalization ability in the denoising task. Both the baseline and the proposed method are trained using $\sigma = 70$ (severe) and tested with $\sigma = 30$ (mild). Our proposed method effectively recovers the details while the baseline oversmooths the input resulting in a blurry image.
+
+
+Proposed
+(23.14/0.7630/0.191)
+
+JPEG artifact removal (color). We generate a synthetic dataset using different compression qualities, $q = 10$ and 30 (lower $q$ means stronger artifact) on the color image. Similar to the denoising task, we simulate the over-removal issue. Compared to the baseline model, our proposed method shows significantly better performance in all metrics we used (bottom row, Table 5). The model generalizes better and gives 0.97 dB performance gain in PSNR.
+
+# 5. Conclusion
+
+We have introduced CutBlur and Mixture of Augmentations (MoA), a new DA method and a strategy for training a stronger SR model. By learning how and where to super-resolve an image, CutBlur encourages the model to understand how much it should apply the super-resolution to an image area. We have also analyzed which DA methods hurt SR performance and how to modify those to prevent such degradation. We showed that our proposed MoA strategy consistently and significantly improves the performance across various scenarios, especially when the model size is big and the dataset is collected from real-world environments. Last but not least, our method showed promising results in denoising and JPEG artifact removals, implying its potential extensibility to other low-level vision tasks.
+
+Acknowledgement. We would like to thank Clova AI Research team, especially Yunjay Choi, Seong Joon Oh, Youngjung Uh, Sangwoo Yun, Dongyoon Han, Youngjoon Yoo, and Jung-Woo Ha for their valuable comments and feedback. This work was supported by Naver Corp and also by the National Research Foundation of Korea grant funded by the Korea government (MSIT) (no.NRF2019R1A2C1006608)
+
+# References
+
+[1] Abdelrahman Abdelhamed, Stephen Lin, and Michael S Brown. A high-quality denoising dataset for smartphone cameras. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1692-1700, 2018. 1
+[2] Eirikur Agustsson and Radu Timofte. Ntire 2017 challenge on single image super-resolution: Dataset and study. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, July 2017. 2, 3, 5
+[3] Namhyuk Ahn, Byungkon Kang, and Kyung-Ah Sohn. Fast, accurate, and lightweight super-resolution with cascading residual network. In Proceedings of the European Conference on Computer Vision (ECCV), pages 252-268, 2018. 5, 7
+[4] Jianrui Cai, Hui Zeng, Hongwei Yong, Zisheng Cao, and Lei Zhang. Toward real-world single image super-resolution: A new benchmark and a new model. arXiv preprint arXiv:1904.00523, 2019. 1, 2, 3, 5, 7
+[5] Junsuk Choe and Hyunjung Shim. Attention-based dropout layer for weakly supervised object localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2219-2228, 2019. 2, 3
+[6] 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. 2
+[7] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 1, 2, 3
+[8] 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, 2015. 1, 5
+[9] Ruicheng Feng, Jinjin Gu, Yu Qiao, and Chao Dong. Suppressing model overfitting for image super-resolution networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0-0, 2019. 1, 2
+[10] Xavier Gastaldi. Shake-shake regularization. arXiv preprint arXiv:1705.07485, 2017. 1, 2
+[11] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In Advances in Neural Information Processing Systems, pages 10727-10737, 2018. 1, 2, 3
+[12] Shuhang Gu, Wangmeng Zuo, Qi Xie, Deyu Meng, Xi-angchu Feng, and Lei Zhang. Convolutional sparse coding for image super-resolution. In Proceedings of the IEEE International Conference on Computer Vision, pages 1823–1831, 2015. 1
+[13] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. 1
+[14] Jia-Bin Huang, Abhishek Singh, and Narendra Ahuja. Single image super-resolution from transformed self-exemplars. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5197-5206, 2015. 5
+
+[15] Bee Lim, Sanghyun Son, Heewon Kim, Seungjun Nah, and Young Mu Lee. Enhanced deep residual networks for single image super-resolution. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 136-144, 2017. 2, 3, 5
+[16] Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. arXiv preprint arXiv:1905.00397, 2019. 2
+[17] Yusuke Matsui, Kota Ito, Yuji Aramaki, Azuma Fujimoto, Toru Ogawa, Toshihiko Yamasaki, and Kiyoharu Aizawa. Sketch-based manga retrieval using manga109 dataset. Multimedia Tools and Applications, 76(20):21811-21838, 2017. 5
+[18] HR Sheikh. Live image quality assessment database release 2. http://live.ece.utexas.edu/research/quality, 2005. 8
+[19] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929-1958, 2014. 2
+[20] Nako Sung, Minkyu Kim, Hyunwoo Jo, Youngil Yang, Jingwoong Kim, Leonard Lausen, Youngkwan Kim, Gayoung Lee, Donghyun Kwak, Jung-Woo Ha, et al. Nsml: A machine learning platform that enables you to focus on your models. arXiv preprint arXiv:1712.05902, 2017. 5
+[21] 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. 4
+[22] Radu Timofte, Eirikur Agustsson, Luc Van Gool, Ming-Hsuan Yang, and Lei Zhang. Ntire 2017 challenge on single image super-resolution: Methods and results. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 114-125, 2017. 1
+[23] Radu Timofte, Vincent De Smet, and Luc Van Gool. A+: Adjusted anchored neighborhood regression for fast superresolution. In Asian conference on computer vision, pages 111-126. Springer, 2014. 1
+[24] Radu Timofte, Rasmus Rothe, and Luc Van Gool. Seven ways to improve example-based single image super resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1865-1873, 2016. 1, 2
+[25] 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. 2, 3
+[26] Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitlagkas, Aaron Courville, David Lopez-Paz, and Yoshua Bengio. *Manifold mixup: Better representations by interpolating hidden states.* arXiv preprint arXiv:1806.05236, 2018. 1, 2
+[27] Yoshihiro Yamada, Masakazu Iwamura, Takuya Akiba, and Koichi Kise. Shakedrop regularization for deep residual learning. arXiv preprint arXiv:1802.02375, 2018. 1, 2
+[28] Jianchao Yang, John Wright, Thomas S Huang, and Yi Ma. Image super-resolution via sparse representation. IEEE
+
+transactions on image processing, 19(11):2861-2873, 2010. 5
+[29] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. arXiv preprint arXiv:1905.04899, 2019. 1, 2, 3
+[30] 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
+[31] 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. 8
+[32] Xuaner Zhang, Ren Ng, and Qifeng Chen. Single image reflection separation with perceptual losses. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4786-4794, 2018. 1
+[33] Yulun Zhang, Kunpeng Li, Kai Li, Lichen Wang, Bineng Zhong, and Yun Fu. Image super-resolution using very deep residual channel attention networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 286-301, 2018. 5, 7
+[34] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. arXiv preprint arXiv:1708.04896, 2017. 2
\ No newline at end of file
diff --git a/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/images.zip b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b3e3dfb404652bf988fc68bf4069d47e8a47759e
--- /dev/null
+++ b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:159c2d517763cd7a9ed4ea80bfc59664e39b1e80fe52d80e2493a6eebf8922b4
+size 1037610
diff --git a/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/layout.json b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d5135901540be2787395b5eeca601861f53ca86e
--- /dev/null
+++ b/rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e6269ff15a8a1607ce67136f9b5e406946079c4f95689693b7cc87d47f263c0e
+size 566865
diff --git a/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_content_list.json b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..998a928eb268b65c0765c40b26e78b0bd021cec5
--- /dev/null
+++ b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d5db640d53b7778bab74a3fb441f4720fd3bed7f95ee229ff8b6e5e655723f2
+size 78897
diff --git a/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_model.json b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ab7502070204afc090762b83002adf354d7adb5e
--- /dev/null
+++ b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b42c4405a687c25907f1efd27561cebd54ab072d42526a98eb7a147544e7ad6a
+size 96071
diff --git a/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_origin.pdf b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c3c13fb9be4a3b1a41979bec2271707ffa6fd257
--- /dev/null
+++ b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b094449cd8af56ca7087fa22363fa3f483d835dc5bc6adfbf08a44af98df9d1a
+size 612427
diff --git a/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/full.md b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..56d16d65909c3c01d3d8eea83015d4733ee803a8
--- /dev/null
+++ b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/full.md
@@ -0,0 +1,344 @@
+# Rethinking Depthwise Separable Convolutions: How Intra-Kernel Correlations Lead to Improved MobileNets
+
+Daniel Haase*
+
+ZEISS Microscopy
+
+daniel.haase@zeiss.com
+
+Manuel Amthor*
+
+ZEISS Microscopy
+
+manuel.amthor@zeiss.com
+
+# Abstract
+
+We introduce blueprint separable convolutions (BSConv) as highly efficient building blocks for CNNs. They are motivated by quantitative analyses of kernel properties from trained models, which show the dominance of correlations along the depth axis. Based on our findings, we formulate a theoretical foundation from which we derive efficient implementations using only standard layers. Moreover, our approach provides a thorough theoretical derivation, interpretation, and justification for the application of depthwise separable convolutions (DSCs) in general, which have become the basis of many modern network architectures. Ultimately, we reveal that DSC-based architectures such as MobileNets implicitly rely on cross-kernel correlations, while our BSConv formulation is based on intrakernel correlations and thus allows for a more efficient separation of regular convolutions. Extensive experiments on large-scale and fine-grained classification datasets show that BSCnvs clearly and consistently improve MobileNets and other DSC-based architectures without introducing any further complexity. For fine-grained datasets, we achieve an improvement of up to 13.7 percentage points. In addition, if used as drop-in replacement for standard architectures such as ResNets, BSCnv variants also outperform their vanilla counterparts by up to 9.5 percentage points on ImageNet.
+
+# 1. Introduction
+
+Convolutional neural networks (CNNs) [27, 26] have become the basis of practically all state-of-the-art approaches for image classification, object detection [5], semantic segmentation [30], and many other applications. In the past, improvements of CNNs were mainly driven by increasing the model capacity, while at the same time ensuring a proper training behavior [20, 13, 14]. Recently, this has led to the development of models with half a billion parameters [18]. In practical applications, however, the computational ca
+
+
+Figure 1. We introduce blueprint separable convolutions (BSConv) as highly efficient building block for CNNs. BSCnv exploits correlations of CNN kernels along their depth axis. In consequence, BSCnv represents each filter kernel using one 2d blueprint kernel which is distributed along the depth axis using a weight vector.
+
+pacity is often limited, especially in mobile and automotive contexts. This fact has led to another important research direction which focuses on improving model efficiency. The most prominent approaches are based on depthwise separable convolutions (DSCs) [37, 16]—building blocks which are motivated by exploiting redundancies of filter weights.
+
+Based on quantitative and qualitative analyses of trained CNNs, in Section 3 we propose blueprint separable convolutions (BSConv), which follow this path of research. The main idea of BSConv is to exploit that kernels of CNNs usually show high redundancies along their depth axis (i.e., intra-kernel correlations). Thus, BSConv represents each filter kernel using one 2d blueprint which is distributed along the depth axis using a weight vector (see Figure 1).
+
+Although DSCs are also motivated by intra-kernel correlations [37], in Section 4 we show that their derived order of operations contradicts this assumption and is reversed compared to our BSConv solution. In fact, the DSC result is equivalent to assuming redundancies between kernels (i.e., cross-kernel correlations, see Figure 5), which was shown
+
+
+Figure 2. Exemplary filter weights of a vanilla VGG-19, Inception v2, and ResNet-50 CNN trained on ImageNet. For each of the three CNN architectures, one filter kernel of size $M \times K \times K = 128 \times 3 \times 3$ is visualized, split into 128 images. The weights of each filter kernel are highly correlated along the depth axis. Concretely, most slices show the same filter-specific $3 \times 3$ 'blueprint', only scaled by different factors (including negative factors which cause 'inverted' versions of the blueprint). While only three slices are highlighted for each kernel, the correlation is visible for far more slices (52/128 for the ResNet-50 example). This observation is the motivation for our proposal of blueprint separable convolutions (BSConv), which inherently represent a filter kernel of size $M \times K \times K$ using one blueprint kernel of size $K \times K$ and a set of $M$ multiplicative factors used to distribute the blueprint across the depth axis.
+
+
+
+
+
+to be less effective when separating convolutions [7]. In addition, a natural extension of BSConv leads to an interpretation and justification for DSCs with linear bottlenecks [35], which are extensively used in many recent models [15, 40, 41]. Our solution, however, directly implies the use of an additional regularization loss to improve the subspace transform implicitly performed by these bottlenecks.
+
+In Section 5, we thoroughly demonstrate that BSCov consistently outperforms DSC-based architectures such as MobileNets on a wide variety of large-scale and fine-grained datasets at the same parameter and time complexity. Furthermore, BSCov can be used as drop-in replacement for standard convolution layers and can be applied to other architectures as well, leading to performance gains while drastically increasing model efficiency.
+
+# 2. Related Work
+
+Numerous approaches exist to improve the efficiency of CNNs. One example is model pruning, where filters and/or connections are removed from CNNs during or after model training [10, 28, 11, 29]. Closely related and often combined are quantization [33, 47, 19] and compression techniques [6, 9, 8] to accelerate model inference.
+
+Another relevant research area is efficiency-driven CNN architecture search. It can be performed manually [12] or automatically, e.g. via genetic algorithms [43] or via reinforcement learning in the form of neural architecture search [48, 1]. The latter is the basis for the most recent advances in building efficient models such as MnasNet [40], MobileNetV3 [15], and EfficientNet [41].
+
+Building blocks typically consist of activation, normalization, and convolution operations, where the latter bear the greatest potential for efficiency optimizations. Redundancies in convolution weights of trained CNNs are ana-
+
+lyzed in [3, 37, 36, 7]. Approaches to reduce these redundancies are for instance low-rank approximations of the filter kernels [4, 21, 22] and the usage of grouped convolutions [46, 31, 44]. In [37], DSCs are introduced, which form the basis for practically all recent efficient network architectures. Their direct application can for instance be found in MobileNetV1 [16], factorized CNNs [42], and Xception [2]. An extension of DSCs are inverted residual bottlenecks which are introduced in MobileNetV2 [35]. They are used in state-of-the-art efficient architectures, including MnasNet [40], MobileNetV3 [15], and EfficientNet [41].
+
+# 3. Blueprint Separable Convolutions (BSConv)
+
+In standard CNNs, each convolution layer transforms an input tensor $U$ of size $M \times Y \times X$ into an output tensor $V$ of size $N \times Y \times X$ by applying convolution kernels $F^{(1)}, \ldots, F^{(N)}$ , each of size $M \times K \times K$ such that
+
+$$
+V _ {n,:,:} = U * F ^ {(n)} \tag {1}
+$$
+
+with $n \in \{1, \dots, N\}$ (see Figure 1, top row). The entries (or 'weights') of these $N$ kernels are optimized during the training stage of CNNs via backpropagation and may take arbitrary values. However, in the following we show that in practice these weights often converge towards a state in which they show a substantial amount of correlation. We analyze these correlations qualitatively and quantitatively, and then derive a new, parameter- and time-efficient version of convolution layers for CNNs based on our findings.
+
+# 3.1. Intra-Kernel Correlations in Standard CNNs
+
+In this paper we focus on intra-kernel correlations and their potential for the design of parameter- and time-efficient CNNs. We start with a qualitative analysis of intra-kernel correlations by visualizing filters of trained CNNs.
+
+
+Figure 3. Histogram of the variance along the depth axis of filter kernels which can be explained using only one principal component per filter. The filters are grouped by convolution stages (stage 1: blue, stage 2: orange, stage 3: green, stage 4: red). These quantitative results show that a large portion of CNN filters can potentially be represented using our BSConv formulation. This figure is best viewed in color.
+
+
+
+
+
+Figure 2 shows exemplary filter kernels for three established CNN architectures trained on the ImageNet dataset—namely VGG-19 [38], Inception v2 [20], and ResNet-50 [13, 14]. From these visualizations, it can be seen that intrakernel correlations exist along the depth axis. Concretely, it often seems that for a filter $F^{(n)}$ , its slices $F_{1,:,:}^{(n)}, \ldots, F_{M,:,:}^{(n)}$ show the same filter-specific $K \times K$ 'blueprint', only scaled by different factors (including negative factors which cause 'inverted' versions of the blueprint).
+
+While Figure 2 shows only a small subset of filter kernels, the described property of filter slices being based on a 'blueprint' are by no means an exception. According to our observations, it occurs consistently across different CNN architectures, training settings, and datasets. To systematically quantify to which extent filter kernels show this behavior, we analyze several trained CNNs in the following way: For each individual filter of the CNN, we (i) split the $M \times K \times K$ kernel into $M$ samples of size $K \times K$ , (ii) perform principal component analysis (PCA) on the set of $M$ samples, and (iii) determine the variance of the filter kernel which is explained by the first principal component (PC1). Using this approach, we can quantify how well each filter is representable by a $K \times K$ filter-specific blueprint (which in this case corresponds to PC1) and $M$ factors (which in this case are the 'scores' obtained via PCA). We aggregate these individual values into histograms, which are shown in Figure 3 for the same vanilla CNNs used in Figure 2. It can be seen that on average, about $50\%$ of each filter kernel's variance can be explained using this simple model, suggesting a large potential for efficiency improvements.
+
+# 3.2. From Correlations to BSConv
+
+The analysis in Section 3.1 suggests that for trained vanilla CNNs, each $M \times K \times K$ filter can be approximated using a $K \times K$ blueprint and $M$ factors which 'distribute' the blueprint along the depth dimension. Even though it is by no means enforced during training, this approximation explains a large portion of the observed variance. This
+
+finding is the motivation for the introduction of blueprint separable convolutions (BSConv). They are defined in such a way that above approximation turns into an integral property of the filters of CNNs. Concretely, we define each filter kernel $F^{(n)}$ to be represented using a blueprint $B^{(n)}$ and the weights $w_{n,1},\ldots ,w_{n,M}\in \mathbb{R}$ via
+
+$$
+F _ {m,:,:} ^ {(n)} = w _ {n, m} \cdot B ^ {(n)}, \tag {2}
+$$
+
+with $m \in \{1, \dots, M\}$ and $n \in \{1, \dots, N\}$ (see Figure 1, bottom row). While this definition poses a hard constraint on the filter kernels, in Section 5 we experimentally show that CNNs trained with BSConv can reach the same or even better quality in comparison to their vanilla counterparts. However, in contrast to standard convolution layers which have $M \cdot N \cdot K^2$ free parameters (see Figure 1), the BSConv variant only has $N \cdot K^2$ parameters for the blueprints, and $M \cdot N$ parameters for the weights. As is discussed below, the latter can be reduced even further.
+
+# 3.3. Variants and Implementations
+
+A BSCnv module consists of $N$ filters, each having one blueprint and $M$ weights. All $M \cdot N$ weights can be combined into the matrix $W = (w_{n,m})$ . Depending on how $W$ is learned in the training step, different BSCnv variants can be derived. In the following, two variants are described.
+
+# 3.3.1 Unconstrained BSConv (BSConv-U)
+
+In the most general case, the weights $W$ can vary without any constraints and are learned directly via backpropagation, just like the entries of the blueprint filter kernels.
+
+As shown in Figure 1, a naive implementation can be achieved by constructing a full kernel from each blueprint and performing a regular convolution afterwards. However, to derive a much more efficient implementation for CNNs, we rewrite Equation (1) in the following way: Firstly, because the input data tensor $U$ and the filter kernels $F^{(1)},\ldots ,F^{(N)}$ have the same size $M$ along their depth dimension, we can split each 3d convolution into a sum of $M$
+
+
+Figure 4. Computational graphs for the efficient implementation of the different BSConv variants (see Sections 3.3.1 and 3.3.2).
+
+2d convolutions, yielding
+
+$$
+V _ {n,:,:} = U * F ^ {(n)} = \sum_ {m = 1} ^ {M} \left(U _ {m,:,: *} * F _ {m,:,:} ^ {(n)}\right). \tag {3}
+$$
+
+Secondly, we can replace each filter with its BSConv representation as given in Equation (2), and obtain
+
+$$
+V _ {n, \therefore :} = \sum_ {m = 1} ^ {M} \left(U _ {m, \therefore :} * \left(w _ {n, m} \cdot B ^ {(n)}\right)\right). \tag {4}
+$$
+
+Because (i) each filter blueprint $B^{(n)}$ is independent of the input channel $m$ , and (ii) $w_{n,m}$ is a scalar, we can rearrange above equation into
+
+$$
+V _ {n,:,:} = \underbrace {\left(\sum_ {m = 1} ^ {M} U _ {m , : , :} \cdot w _ {n , m}\right)} _ {V _ {n,:,:} ^ {\prime}} * B ^ {(n)}. \tag {5}
+$$
+
+If we further rearrange $w_{n,1}, \ldots, w_{n,M}$ into a $M \times 1 \times 1$ array $\tilde{w}_n$ , the sum can be replaced by a convolution, giving
+
+$$
+V _ {n,:,:} ^ {\prime} = U * \tilde {w} _ {n} \tag {6}
+$$
+
+$$
+V _ {n, \vdots ; \vdots} = V _ {n, \vdots ; \vdots} ^ {\prime} * B ^ {(n)}. \tag {7}
+$$
+
+For a concrete implementation, these Equations (6) and (7) can directly be translated into two tensor operations: (i) a $1 \times 1$ pointwise convolution with the kernels $\tilde{w}_1, \ldots, \tilde{w}_N$ , which is performed on the input data tensor $U$ , and (ii) a $K \times K$ depthwise convolution [16, 20] with kernels $B^{(1)}, \ldots, B^{(N)}$ , which is applied to the result of the first step. A flowchart visualization of these steps is given in Figure 4.
+
+# 3.3.2 Subspace BSConv (BSConv-S)
+
+For CNNs trained with BSConv-U convolution layers, the free parameters to be estimated are the $N$ blueprint ker
+
+nel matrices and the weight matrix $W = (w_{n,m})$ of size $N \times M$ . When analyzing the structure of the weight matrices $W$ of such CNNs, we observe that the rows of $W$ are often highly correlated. This fact indicates the potential for a further regularization and parameter reduction.
+
+Concretely, we perform a low-rank approximation of $W$ by factorizing it into the $N \times M'$ matrix $W^{A} = (w_{n,m'}^{A})$ and the $M' \times M$ matrix $W^{B} = (w_{m',m}^{B})$ as
+
+$$
+W = W ^ {A} \cdot W ^ {B}, \tag {8}
+$$
+
+with $M' = \lceil p \cdot M \rceil$ , while $p \in (0.0, 1.0)$ specifies the size of the subspace $M'$ in relation to the size $M$ of the original space. The matrix $W^B$ can be thought of as a set of $M'$ basis vectors, while $W^A$ is the subspace version of $W$ . Instead of $N \cdot M$ weights as for the case of BSCov-U, this method reduces the parameter count to $N \cdot M' + M' \cdot M$ , as only $W^A$ and $W^B$ have to be learned via backpropagation.
+
+To minimize redundancies in the low-rank subspace, we want the basis defined by $W^{B}$ to be orthonormal. This can be achieved via the regularization loss
+
+$$
+L _ {\text {o r t h o}} = \left\| W ^ {B} W ^ {B ^ {\mathrm {T}}} - I \right\| _ {\mathrm {F}}, \tag {9}
+$$
+
+where $I$ is the identity matrix and $\| \cdot \|_{\mathrm{F}}$ the Frobenius norm of a matrix. The regularization loss is added to the classification loss $L_{\mathrm{class}}$ with the weighting factor $\alpha$ , resulting in the joint loss $L = L_{\mathrm{class}} + \alpha L_{\mathrm{ortho}}$ .
+
+To derive an efficient implementation of BSCov-S, we can substitute $w_{n,m} = \sum_{m' = 1}^{M'}w_{n,m'}^A\cdot w_{m',m}^B$ in Equation (5), yielding
+
+$$
+V _ {n, \therefore :} = \left(\sum_ {m = 1} ^ {M} U _ {m, \therefore :} \cdot \left(\sum_ {m ^ {\prime} = 1} ^ {M ^ {\prime}} w _ {n, m ^ {\prime}} ^ {A} \cdot w _ {m ^ {\prime}, m} ^ {B}\right)\right) * B ^ {(n)}. \tag {10}
+$$
+
+Using the same arguments as in Section 3.3.1, we can rearrange this equation into
+
+$$
+V _ {n, \vdots ,:} = \overbrace {\left(\sum_ {m ^ {\prime} = 1} ^ {M ^ {\prime}} \underbrace {\left(\sum_ {m = 1} ^ {M} U _ {m , \vdots , :} \cdot w _ {m ^ {\prime} , m} ^ {B}\right)} _ {U _ {m ^ {\prime}, \vdots ,}:} \cdot w _ {n , m ^ {\prime}} ^ {A}\right)} ^ {V _ {n, \vdots ,:} ^ {\prime}} * B ^ {(n)}. \tag {11}
+$$
+
+By rearranging the weights $w_{m',1}^{B}, \ldots, w_{m',M}^{B}$ into the $M \times 1 \times 1$ array $\tilde{w}_{m'}^{B}$ and the weights $w_{n,1}^{A}, \ldots, w_{n,M'}^{A}$ into the $M' \times 1 \times 1$ array $\tilde{w}_{n}^{A}$ , the sums can be replaced by convolutions in the same way as in Section 3.3.1, and we obtain
+
+$$
+U _ {m ^ {\prime}, \therefore ;} ^ {\prime} = U * \tilde {w} _ {m ^ {\prime}} ^ {B} \tag {12}
+$$
+
+$$
+V _ {n, \therefore , \therefore} ^ {\prime} = U ^ {\prime} * \tilde {w} _ {n} ^ {A} \tag {13}
+$$
+
+$$
+V _ {n, \therefore ;} = V _ {n, \therefore} ^ {\prime} * B ^ {(n)}. \tag {14}
+$$
+
+Again, Equations (12) to (14) directly translate into tensor operations, thus a concrete implementation of BSConv-S is
+
+a three-step process: (i) the input tensor is projected into a $M^{\prime}$ -dimensional subspace via a $1\times 1$ pointwise convolution with kernels $\tilde{w}_1^B,\ldots ,\tilde{w}_{M'}^B$ , (ii) another $1\times 1$ pointwise convolution with kernels $\tilde{w}_1^A,\ldots ,\tilde{w}_N^A$ is applied to the result of the first step, and (iii) a $K\times K$ depthwise convolution with kernels $B^{(1)},\ldots ,B^{(N)}$ is applied to the result of step two (see Figure 4 for a visualization).
+
+# 4. Rethinking Depthwise Separable Convolutions
+
+In the following, we show how the derived variants of BSCnv are related to both most important building blocks for mobile models, i.e. depthwise separable convolutions and linear inverted residual bottlenecks. Moreover, we demonstrate how current model architectures can easily be equipped with our improved building blocks. As we will see in our experiments in Section 5, BSCnv variants substantially outperform their vanilla counterparts.
+
+# 4.1. BSCnv-U is a Reversed Depthwise Separable Convolution
+
+Although the derivation of DSCs in [37] is based on the same observation of kernel correlations along the depth axis, they obtain a reversed order of depthwise and pointwise convolution layers compared to BSConv (see Figure 4). This is because DSC in fact enforces cross-kernel correlations instead of intra-kernel correlations. Using our formulation in Section 3.3, this can be verified by setting Equation (2) to $F_{m,::}^{(n)} = w_{n,m} \cdot B_{m,::}^{\prime}$ . This case corresponds to having a single 3d $M \times K \times K$ blueprint kernel $B^{\prime}$ , which is replicated along the width axis, i.e. across kernels (see Figure 5). While both cross-kernel and intrakernel correlations are valid assumptions, in [7] it is shown that the latter dominate and thus have a larger potential for an efficient separation. This becomes even more obvious given that natural images are inherently correlated along the depth axis, which propagates through all layers.
+
+The MobileNetV1 architecture can be translated to a BSConv-U model by simply substituting all DSCs by BSConv-U building blocks, which effectively means switching the order depthwise and pointwise convolutions. However, the inversion of the layer order should have no substantial effect on the middle flow of the network, since we already have alternating point- and depthwise convolutions. The main difference comes from the entry flow: with our approach, feature maps from the first regular convolution can be fully utilized by the depthwise convolution via the preceding pointwise distribution. In contrast, each kernel of the first depthwise convolution of the original MobileNetV1 model can only benefit from a single feature map, leading to limited expressiveness. Following our derivation, for the BSConv-U version of MobileNetV1, no
+
+
+Figure 5. Interpretations for DSC and BSConv. DSCs implicitly assume one 3d blueprint which is used for all kernels, while BSConv relies on individual 2d blueprints for each kernel.
+
+activation nor normalization is applied after the pointwise convolutions, since it is essential to allow the weights $w_{n,m}$ to be negative.
+
+# 4.2. BSCnv-S is a Shifted Linear Bottleneck with Orthonormal Regularization
+
+Linear bottlenecks with inverted residual skips were first introduced in [35] as a highly efficient building block providing impressive expressiveness at a minimum amount of required operations. It follows the idea of regularizing bottlenecks in very large ResNets and became the de facto standard in most of the current state-of-the-art mobile architectures such as MobileNetV2 and MobileNetV3. A single block consists of a cascade of a pointwise, a depthwise, and a pointwise convolution where the bottleneck is placed between blocks. Considering BSConv-S, we can see the close relationship when shifting our cascade of two pointwise and one depthwise convolution within a block to obtain a pointwise, a depthwise, and a pointwise convolution. Thus, MobileNetV2 and V3 can be reinterpreted as a BSConv model with subspace transforms. As found by [35], the shift of residual skips into the bottleneck provides superior model performance and we keep that idea also for our implementation of MobileNets equipped with BSConv-S. Following our derivation in Section 3.3.2, the linear bottleneck, i.e. without the use of an activation function, comes quite natural since negative components are equally essential as positive ones for the subspace transform. Note that this implies that the first bottleneck block does not apply a subspace transform while the last feature map before the final classification layer is in fact compressed. Most importantly, BSConv-S models greatly benefit from our theoretical findings concerning the application of the orthonormal regularization during training. Note that the conversion to a BSConv-S model as described above is also suited for other architectures which use linear bottleneck blocks, such as EfficientNet [41] and MnasNet [40].
+
+# 5. Experiments
+
+We evaluate our approach of blueprint separable convolutions based on a variety of commonly used benchmark datasets. We provide a comprehensive analysis of the MobileNet family and their modified counterparts according to our findings in Section 4. Furthermore, we demonstrate how our approach can be used as a drop-in substitution for regular convolution layers in standard models like ResNets to drastically reduce the number of model parameters and operations, while keeping or even gaining accuracy.
+
+To allow for a fair comparison, we train all models—including the baseline networks—with exactly the same training procedure.
+
+# 5.1. CIFAR10 and CIFAR100
+
+The CIFAR10/100 datasets [25] consist of 50k training and 10k test images of size $32\mathrm{px} \times 32\mathrm{px}$ and comprise 10 and 100 classes, respectively. As suggested in [13, 45], we train for 200 epochs for both datasets. We use SGD with momentum set to 0.9 and a weight decay of $10^{-4}$ . The initial learning rate is set to 0.1 and decayed by a factor of 0.1 at epochs 100, 150, and 180. Images are augmented by random horizontal flips and random shifts by up to 4 px to prevent models from overfitting [13, 45].
+
+MobileNets. As first experiment, we evaluate our improvements of MobileNetV1-V3 [16, 35, 15] as derived in Section 4. To make MobileNets applicable to CIFAR, we removed the first and second pooling operation to obtain a final feature map of size $4 \times 4$ . With this modification, we achieve state-of-the-art performance for the baseline models (see Table 1).
+
+As described in Section 4, we use BSConv-U for MobileNetV1 and BSConv-S for MobileNetV2/V3. For the BSConv-S models, we use a subspace compression ratio of $p = \frac{1}{6}$ to have exactly the same parameter count as the vanilla model. The weighting coefficient $\alpha$ for the orthonormal regularization loss was set to 0.01.
+
+The results are shown in Table 1. We can state that all BSConv variants outperform their corresponding MobileNet baselines. For MobileNetV1, this can be explained by (i) the inversion of point- and depthwise convolutions and (ii) the absence of ReLU activations for the pointwise convolutions (see discussion in Section 4.1). For MobileNetsV2 and V3, the fact that BSConv-S always outperforms the baseline models clearly confirms the advantage of our proposed orthonormal regularization loss.
+
+ResNets and WideResNets. In addition to the improvements with respect to MobileNets, we can use our BSCov approach as drop-in substitution for regular convolution layers in standard networks. In the following, we consider ResNets [13] and WideResNets [45] as two state-of-the-art models for the CIFAR datasets. In both cases, we use the
+
+BSConv-U variant. We increase the depth and width factor of each BSConv model such that its parameter count matches the parameter count of the corresponding baseline model. We apply the same training protocol and augmentation techniques as described above.
+
+In Table 2 we compare the original networks with their modified BSConv versions. For ResNets, we can improve accuracy by up to 3.1 percentage points for CIFAR100, while having slightly fewer parameters and computational costs. For WideResNets, we can gain accuracy of up to 2.1 percentage points for CIFAR100, while having fewer parameters and computational costs. This clearly shows the effectiveness of our approach as an drop-in substitution of regular convolution layers.
+
+# 5.2. ImageNet
+
+To assess the performance of BSConv models in large-scale classification scenarios, we conduct experiments on the ImageNet dataset (ILSVRC2012, [34]). It contains about 1.3M images for training and 50k images for testing which are drawn from 1000 object categories.
+
+We employ a common training protocol and train for 100 epochs with an initial learning rate of 0.1 which is decayed by a factor of 0.1 at epochs 30, 60, and 90. We use SGD with momentum 0.9 and a weight decay of $10^{-4}$ . To allow for a fair comparison and to investigate the effect of our approach, we train own baseline models with exactly the same training setup as used for BSConv models. The images are resized such that their short side has a length of $256\mathrm{px}$ . We use the well-established Inception-like scale augmentation [39], horizontal flips, and color jitter [26].
+
+MobileNets. As for the CIFAR experiments, we compare MobileNets to their corresponding BSConv variants. Again, BSConv-U is used for MobileNetV1, and BSConv-S is used for MobileNetV2/V3. The subspace compression ratio for BSConv-S is $p = \frac{1}{6}$ just like for the CIFAR experiments. The weighting coefficient $\alpha$ for the orthonormal regularization loss was set to 0.1.
+
+The results are presented in Table 3. Again, it can be seen that the BSCov variants of MobileNets outperform their corresponding baseline models. However, the relative improvements are no longer as large as for the CIFAR experiments. This effect can be explained by the regularization impact of the dataset itself. Considering the MobileNetV3-large results, we note that even if the orthonormal regularization loss seems to be no longer effective, it has no negative influence on the training.
+
+ResNets. As noted before, it is possible to directly substitute regular convolution layers in standard networks by BSConv variants. To this end, we analyze the effectiveness of our approach when applied to ResNets on large-scale image databases. For the baseline models, we use ResNet-10, ResNet-18, and ResNet-26. The BSConv vari
+
+| Network | CIFAR10 | CIFAR100 | Stanford Dogs | Stanford Cars | Oxford Flowers |
| orig | ours | orig | ours | orig | ours | orig | ours | orig | ours |
| MobileNetV1 (x0.25) | 90.4 | 91.6 | 67.5 | 69.8 | 42.8 | 49.1 | 64.6 | 74.0 | 59.2 | 68.0 |
| MobileNetV1 (x0.5) | 91.8 | 93.3 | 70.8 | 73.5 | 49.3 | 55.2 | 70.6 | 78.8 | 63.1 | 71.5 |
| MobileNetV1 (x0.75) | 92.7 | 94.3 | 72.2 | 74.5 | 51.4 | 57.9 | 72.9 | 80.0 | 63.1 | 70.8 |
| MobileNetV1 (x1.0) | 93.4 | 94.3 | 73.4 | 75.7 | 51.6 | 59.1 | 74.4 | 79.9 | 60.2 | 67.3 |
| MobileNetV2 (x0.25) | 89.6 | 90.1 | 65.6 | 68.9 | 42.0 | 46.8 | 65.2 | 69.9 | 44.9 | 51.9 |
| MobileNetV2 (x0.5) | 92.0 | 93.2 | 72.5 | 73.2 | 50.8 | 54.8 | 70.4 | 78.0 | 57.6 | 60.6 |
| MobileNetV2 (x0.75) | 93.1 | 93.9 | 73.2 | 75.0 | 53.5 | 59.0 | 73.4 | 82.0 | 55.7 | 71.5 |
| MobileNetV2 (x1.0) | 93.6 | 94.2 | 74.9 | 75.8 | 56.0 | 60.1 | 76.7 | 83.8 | 61.3 | 67.0 |
| MobileNetV3-small (x0.35) | 90.3 | 90.6 | 66.5 | 67.2 | 42.8 | 44.2 | 63.4 | 70.4 | 56.9 | 66.5 |
| MobileNetV3-small (x0.5) | 91.5 | 91.7 | 69.4 | 69.6 | 45.3 | 47.4 | 68.1 | 74.4 | 64.0 | 71.7 |
| MobileNetV3-small (x0.75) | 92.0 | 92.5 | 70.4 | 72.0 | 46.7 | 49.5 | 72.1 | 77.2 | 66.3 | 74.3 |
| MobileNetV3-small (x1.0) | 92.2 | 92.7 | 72.2 | 73.7 | 49.4 | 52.1 | 72.5 | 77.0 | 68.4 | 75.6 |
| MobileNetV3-large (x0.35) | 92.8 | 93.0 | 71.5 | 73.7 | 48.5 | 56.0 | 69.5 | 77.5 | 55.7 | 69.4 |
| MobileNetV3-large (x0.5) | 93.0 | 93.9 | 72.9 | 75.3 | 51.2 | 57.9 | 73.6 | 80.4 | 65.7 | 66.8 |
| MobileNetV3-large (x0.75) | 93.7 | 94.4 | 73.9 | 77.0 | 51.8 | 60.0 | 74.9 | 80.9 | 63.1 | 75.1 |
| MobileNetV3-large (x1.0) | 93.7 | 94.6 | 75.2 | 77.7 | 54.9 | 60.0 | 75.7 | 82.3 | 64.4 | 73.8 |
+
+Table 1. MobileNet results for various datasets. The columns 'orig' refer to the baseline MobileNet models. The columns 'ours' refer to BSConv-U for MobileNetV1 and BSConv-S for MobileNetV2/V3.
+
+| Network | CIFAR10 | CIFAR100 |
| Parameters | FLOPs | Accuracy | Parameters | FLOPs | Accuracy |
| ResNet-20 [13] | 272.5K | 41.3M | 92.2 | 278.3K | 41.3M | 67.7 |
| ResNet-110 (BSConv-U) | 239.0K | 41.1M | 92.9 | 244.8K | 41.1M | 70.8 |
| WideResNet-40-3 [45] | 5.0M | 735.0M | 94.9 | 5.0M | 735.0M | 75.5 |
| WideResNet-40-8 (BSConv-U) | 4.2M | 671.6M | 95.2 | 4.3M | 671.6M | 77.6 |
+
+Table 2. ResNets and WideResNets on CIFAR10 and CIFAR100. We increase the depth and width factor of each BSCov model such that its parameter count matches the parameter count of the corresponding baseline model.
+
+| Network | Original | BSConv (ours) |
| MobileNetV1 (x0.25) | 51.8 | 53.2 |
| MobileNetV1 (x0.5) | 63.5 | 64.6 |
| MobileNetV1 (x0.75) | 68.2 | 69.2 |
| MobileNetV1 (x1.0) | 70.8 | 71.5 |
| MobileNetV2 (x1.0) | 69.7 | 69.8 |
| MobileNetV3-small (x1.0) | 64.4 | 64.8 |
| MobileNetV3-large (x1.0) | 71.5 | 71.5 |
+
+Table 3. MobileNets on ImageNet. BSConv-U is used for MobileNetV1, and BSConv-S is used for MobileNetV2/V3. Note that BSConv does not introduce additional parameters.
+
+ants are ResNet-10, ResNet-18, ResNet-34, ResNet-68, and ResNet-102. Again, we use the same training protocol and augmentation techniques as described above.
+
+The results are shown in Figure 6, split by parameter count and computational complexity. It can be seen that the BSConv-U variants of ResNets significantly outperform the baseline models. ResNet-10 and ResNet-68+BSConv-U, for instance, have similar parameter counts, while us
+
+ing BSCnv leads to an accuracy gain of 9.5 percentage points. Another interesting example is ResNet-18 vs. ResNet-34+BSConv-U: both have a comparable accuracy, while the BSCnv model has only about one fifth of the baseline model parameter count.
+
+# 5.3. Fine-grained Recognition
+
+Apart from large-scale object recognition, we are interested in the task of fine-grained classification, as those datasets usually have no inherent regularization. The following experiments are conducted on three well-established benchmark datasets for fine-grained recognition, namely Stanford Dogs [23], Stanford Cars [24], and Oxford 102 Flowers [32]. We train all models from scratch, since parts of these datasets are a subset of ImageNet. In contrast to the ImageNet training protocol, we do not use aggressive data augmentation, since we observed that it severely affects model performance. We only augment data via random crops, horizontal flips, and random gamma transform.
+
+We use the same training protocol for all three datasets. In particular, we use SGD with momentum set to 0.9 and a
+
+
+Figure 6. ResNets on ImageNet. For the baseline models, we use ResNet-10/18/26. The BSCnv variants are ResNet-10/18/34/68/102.
+
+
+
+weight decay of $10^{-4}$ . The initial learning rate is set to 0.1 and linearly decayed at every epoch such that it approaches zero after a total of 100 epochs.
+
+MobileNets. We use the same model setup as for the CIFAR and ImageNet experiments discussed above. The results are shown in Table 1. Again, all BSConv models substantially outperform their baseline counterparts. In contrast to the CIFAR results, the margin is even larger. Therefore, the interpretation of the CIFAR results applies here as well.
+
+Other Architectures. We further evaluate the effect of our approach for a variety of state-of-the-art models. We replace regular convolution layers in standard networks such as VGG [38] and DenseNet [17].
+
+In Table 4 we can see that all models greatly benefit from the application of BSConv. Accuracy for BSConv-U can be improved by at least 2 percentage points, while having up to $8.5 \times$ less parameters and a substantial reduction of computational complexity. Most of the recently proposed model architectures utilize residual linear bottlenecks [35], which can also be easily equipped with our BSConv-S approach in the same way as for MobileNetV2/V3 (see Section 4.2). As can be seen in Table 4, our subspace model clearly outperforms the original EfficientNet-B0 [41] by 6.5 percentage points and MnasNet [40] by 5 percentage points with the same number of parameters and computational complexity. This shows the effectiveness of our proposed orthonormal regularization of the BSConv-S subspace transform.
+
+Influence of the Orthonormal Regularization. To evaluate the influence of the proposed orthonormal regularization loss for BSCov-S models, we conduct an ablation study using MobileNetV3-large. In particular, several identical models are trained on the Stanford Dogs dataset using weighting coefficients $\alpha$ in the range of $10^{-5},\ldots ,10^{0}$
+
+As can be seen in Figure 7, by regularizing the subspace components to be orthonormal, model performance can be substantially improved by over 5 percentage points. An optimum is reached for a weighting coefficient of $\alpha = 0.1$ . For smaller values, the influence of the regularization decreases, until it is no longer effective and converges towards the baseline performance. Larger values, however, decrease model performance since the optimization is mainly driven by rapidly reaching a solution with an orthonormal basis independently of creating a beneficial joint representation.
+
+| Network | Accuracy |
| VGG-16 (BN) [38] | 60.5 |
| VGG-16 (BN) (BSConv-U) | 62.4 |
| DenseNet-121 [17] | 56.9 |
| DenseNet-121 (BSConv-U) | 59.4 |
| Xception* [2] | 59.6 |
| Xception (BSConv-U) | 64.3 |
| EfficientNet-B0 [41] | 54.7 |
| EfficientNet-B0 (BSConv-S) | 61.2 |
| MnasNet [40] | 54.8 |
| MnasNet (BSConv-S) | 59.8 |
+
+Table 4. Results of various architectures and their BSConv counterparts for the Stanford Dogs dataset. BSConv-U CNNs have fewer parameters and a smaller computational complexity compared to their baseline models. BSConv-S CNNs have the same parameter count and computational complexity as their counterparts. * Commonly used implementation based on DSCs.
+
+
+Figure 7. Influence of the orthonormal regularization loss on the accuracy for the BSConv-S variant of MobileNetV3-large (red solid line) on Stanford Dogs. The baseline MobileNetV3-large model without BSConv-S is indicated by the black dashed line.
+
+# 6. Conclusions
+
+We introduced blueprint separable convolutions (BSConv) as highly efficient building blocks for CNNs. Our formulation provided an interpretation and justification for depthwise separable convolutions. By using BSConv, we clearly and consistently improved established models such as MobileNets, MnasNets, EfficientNets, and ResNets. Code and trained models are available under https://github.com/zeiss-microscopy/BSCnv.
+
+# 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
+[2] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251-1258, 2017. 2, 8
+[3] Misha Denil, Babak Shakibi, Laurent Dinh, Marc'Aurelio Ranzato, and Nando De Freitas. Predicting parameters in deep learning. In Advances in neural information processing systems, pages 2148-2156, 2013. 2
+[4] Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in neural information processing systems, pages 1269-1277, 2014. 2
+[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. 1
+[6] Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014. 2
+[7] Jianbo Guo, Yuxi Li, Weiyao Lin, Yurong Chen, and Jianguo Li. Network decoupling: From regular to depthwise separable convolutions. arXiv preprint arXiv:1808.05517, 2018. 2, 5
+[8] Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: efficient inference engine on compressed deep neural network. In 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), pages 243-254. IEEE, 2016. 2
+[9] 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
+[10] 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
+[11] 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
+[12] Kaiming He and Jian Sun. Convolutional neural networks at constrained time cost. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5353-5360, 2015. 2
+[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 1, 3, 6, 7
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European
+
+conference on computer vision, pages 630-645. Springer, 2016. 1, 3
+[15] 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, 6
+[16] 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, 2, 4, 6
+[17] 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. 8
+[18] 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. 1
+[19] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. The Journal of Machine Learning Research, 18(1):6869-6898, 2017. 2
+[20] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 1, 3, 4
+[21] Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014. 2
+[22] Jonghoon Jin, Aysegul Dundar, and Eugenio Culurciello. Flattened convolutional neural networks for feedforward acceleration. arXiv preprint arXiv:1412.5474, 2014. 2
+[23] 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, IEEE Conference on Computer Vision and Pattern Recognition, Colorado Springs, CO, June 2011. 7
+[24] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13), Sydney, Australia, 2013. 7
+[25] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Cite-seer, 2009. 6
+[26] 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, 6
+[27] 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. 1
+
+[28] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. 2
+[29] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018. 2
+[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. 1
+[31] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Proceedings of the European Conference on Computer Vision (ECCV), pages 116-131, 2018. 2
+[32] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing, pages 722-729. IEEE, 2008. 7
+[33] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pages 525-542. Springer, 2016. 2
+[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. 6
+[35] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, 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. 2, 5, 6, 8
+[36] Wenling Shang, Kihyuk Sohn, Diogo Almeida, and Honglak Lee. Understanding and improving convolutional neural networks via concatenated rectified linear units. In international conference on machine learning, pages 2217-2225, 2016. 2
+[37] L Sifre and S Mallat. Rigid-motion scattering for image classification, 2014. PhD thesis, Ph.D. thesis, 2014. 1, 2, 5
+[38] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 3, 8
+[39] 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. 6
+[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. 2, 5, 8
+[41] Mingxing Tan and Quoc V Le. Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946, 2019. 2, 5, 8
+[42] Min Wang, Baoyuan Liu, and Hassan Foroosh. Factorized convolutional neural networks. In Proceedings of the IEEE
+
+International Conference on Computer Vision, pages 545-553, 2017. 2
+[43] Lingxi Xie and Alan Yuille. Genetic cnn. In Proceedings of the IEEE International Conference on Computer Vision, pages 1379-1388, 2017. 2
+[44] Saining Xie, Ross Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017. 2
+[45] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. 6, 7
+[46] 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
+[47] Aojun Zhou, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen. Incremental network quantization: Towards lossless cnns with low-precision weights. arXiv preprint arXiv:1702.03044, 2017. 2
+[48] 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/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/images.zip b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..250d019977f7c030f881a4f08ac7951fd340787b
--- /dev/null
+++ b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86dbcd7bcdd2a8c07a5cafd52deb59d5ecf6a8ac47d074dd13f45450226b0fbc
+size 622398
diff --git a/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/layout.json b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1801a074a5dd73323b7fdfdc5e467e3bf1084c57
--- /dev/null
+++ b/rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a27133d4fb514af305e214bfe7addd34808982282ef6ed678eb731910a11276
+size 405985
diff --git a/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_content_list.json b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5b1336cf1cf08fb876751ca1192d1a5217ea88f1
--- /dev/null
+++ b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:481c52db094d6012093dc8d908b9d92a7464919ae81908da2baf64095f3db26c
+size 78658
diff --git a/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_model.json b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cbf802282f63b7821111798b4aa77cd9c029ce2f
--- /dev/null
+++ b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:060d71201d12a8b2e2732401f4bc1540ff8b4b9656128ebbc87207eb532e5536
+size 93865
diff --git a/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_origin.pdf b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2bfd210c7f6139b3422ee43816a4ae226a5ba2da
--- /dev/null
+++ b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:38cf129a8d6b53c5066f3c5787fb164625c2047dc53ba9a2d2bd658396046f09
+size 287977
diff --git a/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/full.md b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..86711eb7e4cd0123eacf7f0f12dd5c1f8ee7888f
--- /dev/null
+++ b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/full.md
@@ -0,0 +1,385 @@
+# Rethinking Differentiable Search for Mixed-Precision Neural Networks
+
+Zhaowei Cai
+UC San Diego
+
+zwcai@ucsd.edu
+
+Nuno Vasconcelos
+UC San Diego
+
+nuno@ucsd.edu
+
+# Abstract
+
+Low-precision networks, with weights and activations quantized to low bit-width, are widely used to accelerate inference on edge devices. However, current solutions are uniform, using identical bit-width for all filters. This fails to account for the different sensitivities of different filters and is suboptimal. Mixed-precision networks address this problem, by tuning the bit-width to individual filter requirements. In this work, the problem of optimal mixed-precision network search (MPS) is considered. To circumvent its difficulties of discrete search space and combinatorial optimization, a new differentiable search architecture is proposed, with several novel contributions to advance the efficiency by leveraging the unique properties of the MPS problem. The resulting Efficient differentiable MFixed-Precision network Search (EdMIPS) method is effective at finding the optimal bit allocation for multiple popular networks, and can search a large model, e.g. Inception-V3, directly on ImageNet without proxy task in a reasonable amount of time. The learned mixed-precision networks significantly outperform their uniform counterparts.
+
+# 1. Introduction
+
+Deep neural networks have state-of-the-art performance on computer vision tasks such as visual recognition [16, 26, 29, 30, 12], object detection [24, 19, 5], segmentation [11, 6], etc. However, their large computation and memory costs make them difficult to deploy on devices such as mobile phones, drones, autonomous robots, etc. Low-precision networks, which severely reduce computation and storage by quantizing network weights and activations to low-bit representations, promise a solution to this problem.
+
+In the low-precision literature, all network weights and activations are usually quantized to the same bit-width [14, 23, 35, 4, 37, 34]. The resulting uniform low-precision networks have been preferred mostly because they are well supported by existing hardware, e.g. CPUs, FPGAs, etc. However, uniform bit allocation does not account for the individual properties of different filters, e.g. their location
+
+
+Figure 1. Differentiable architecture of the proposed mixed-precision network search module.
+
+on the network, structure, parameter cardinality, etc. In result, it can lead to suboptimal performance for a given network size and complexity. Mixed-precision networks [1, 18, 17, 33, 32, 31, 9] address this limitation, enabling the optimization of bit-widths at the filter level. They are also becoming practically relevant, with the introduction of hardware that supports mixed-precision representations. For example, the NVIDIA $\mathrm{AMP}^1$ can choose between different floating point representations during training.
+
+Nevertheless, the problem of optimizing bit allocation for a mixed-precision network is very challenging. Since a network of $L$ layers and $N$ candidate bit-widths can have $N^L$ different configurations, it is usually impossible to manually craft the optimal solution, and automatic bit allocation techniques are required. While this is well aligned with recent progresses in automatic neural architecture search (NAS) [38, 39, 3, 2, 20], there are several important differences between generic NAS and mixed-precision network search (MPS). First, NAS relies extensively on a proxy task to overcome the extremely high computational demands of searching for the optimal network architecture on a large dataset, such as ImageNet. It is common to search for a module block on a small dataset (such as CIFAR-10) and stack copies of this module as the final architecture. How
+
+ever, this type of proxy task is very ineffective for MPS, due to 1) the layer importance difference, e.g. layers closer to input and output typically require higher bit-width; and 2) the (likely large) difference between optimal bit allocations for CIFAR-10 and ImageNet. Second, higher bit-widths usually lead (up to overfitting) to mixed-precision networks of higher accuracy. Hence, the sole minimization of classification loss usually has a trivial solution: to always select the candidate of highest bit-width. Third, while general NAS requires candidate operators that are heterogeneous in structure, e.g. convolution, skip connection, pooling, etc., MPS only involves homogeneous operators and very similar representations, e.g. convolutions of different bit-widths. These unique properties of MPS suggest the need for search techniques different than those of standard NAS.
+
+In this work, we leverage the above properties to propose an efficient MPS framework based on several contributions. First, to enable search without proxies, the proposed framework is based on the differentiable search architecture of Figure 1, motivated by the popular DARTS [20] approach to generic NAS. Second, to avoid the trivial selection of the highest bit-width, learning is constrained by a complexity budget. The constrained optimization is reformulated as a Lagrangian, which is optimized to achieve the optimal trade-off between accuracy and complexity. Third, to circumvent the expensive second-order bi-level optimization of DARTS, a much simpler and effective optimization is proposed, where both architecture and network parameters are updated in a single forward-backward pass. Fourth, by exploiting the linearity of the convolution operator, the expensive parallel convolutions of Figure 1 are replaced by an efficient composite convolution, parameterized by the weighted sum of parallel weight tensors. This ensures the training complexity remains constant, independently of the size of search space, enabling the training of large networks.
+
+Together, these contributions enable an efficient MPS procedure with no need for proxy tasks. This is denoted as Efficient differentiable MFixed-Precision network Search (EdMIPS) and can, for example, search the optimal mixed-precision Inception-V3 [30] of 93 filters, on ImageNet, in 8 GPU days. Extensive evaluations of EdMIPS on multiple popular networks of various sizes, accuracies, properties, etc., including AlexNet, ResNet, GoogLeNet and Inception-V3, show that it outperforms uniform low-precision solutions by a large margin. Beyond demonstrating the effectiveness of EdMIPS, this vast set of results also establishes solid baselines for the growing area of mixed-precision networks. To facilitate future research, all code is released at https://github.com/zhaoweicai/EdMIPS.
+
+# 2. Related Work
+
+Uniform low-precision: Low-precision networks have recently become popular to speed-up and reduce model size
+
+of deep networks [14, 23, 35, 4, 37, 34, 36]. [14, 23] pioneered the joint binarization of network weights and activations, using a continuous approximation to overcome the non-differentiability of quantization. This, however, entailed a significant accuracy loss. [35, 4] later achieved accuracies much closer to those of full-precision networks. The HWGQ-Net [4] approximated the ReLU by a half-wave Gaussian quantizer, and proposed a clipped ReLU function to avoid the gradient mismatch. LQ-Net [34] and PACT [7] tried to learn the optimal step size and clipping function online, respectively, achieving better performance. However, these are all uniform low-precision networks.
+
+Bit allocation: Optimal bit allocation has a long history in neural networks [15, 1, 18]. [15, 1] proposed the exhaustive checking of filter sensitivities on a per layer basis, following simulation-based word-length optimization methods from signal processing [28]. [18] proposed an analytical solution to fixed-point quantization that seeks the optimal bit-width allocations across network layers by optimizing signal-to-quantization-noise-ratio (SQNR). [17] frames precision allocation as the sequential allocation of bits of precision to the weights of one layer, until a bit budget is exhausted. These techniques precede NAS [38] and are less powerful, less applicable to practical network design, or both.
+
+Neural architecture search: NAS is a popular approach to automated search of neural network architectures [38, 39, 3, 2, 20]. However, the large and discrete nature of the search space make NAS very expensive. [38] proposed a reinforcement learning (RL) technique that requires 1,000 GPU days to search for an architecture on CIFAR-10. Subsequent works have tried to reduce these extraordinary levels of computation. [3, 2, 10] start by learning a subnet, containing all possible module choices, and find the best subnet within this subnet. Differentiable architecture search (DARTS) [20] relaxes the discrete search space into a continuous one, enabling the optimization by gradient descent.
+
+Mixed Precision: Recently, [33, 32, 31] formulated MPS as an instance of NAS. Some of these techniques [33, 31] are based on RL and thus not very efficient. [32] relies on DARTS but requires a proxy task, due to the linear memory/computation on the cardinality of candidate pool, and samples dozens of architectures during search. Compared to these approaches, EdMIPS is simpler, more efficient, effective, and applicable to a much broader set of networks.
+
+# 3. Low-Precision Neural Network
+
+In this section, we briefly review some preliminary concepts on low-precision neural network.
+
+# 3.1. Deep Neural Network
+
+Deep networks implement many filtering operators,
+
+$$
+y = f (a (x)) = \mathbf {W} * a (x), \tag {1}
+$$
+
+
+Figure 2. The Inception module in GoogLeNet.
+
+where filter $f$ is parameterized by weight tensor $\mathbf{W}$ (which can be expressed in full or low-precision), $x$ is the filter input, $a$ a non-linear activation function (e.g. ReLU in full-or HWGQ [4] in low-precision networks), $y$ the filter output and $*$ the convolution or matrix-vector multiplication operator. The $L$ network filters $F = \{f_{1}, f_{2}, \dots, f_{L}\}$ are learned by minimizing the classification risk $\mathcal{R}_E[F]$ defined by the cross-entropy loss function on a training set. The overall complexity of a neural network is mostly dictated by the complexity of (1). By quantizing both weights and activations to low bit-width, the expensive float-point operations of (1) can be replaced by efficient bit operations (e.g. XNOR and bit-count), substantially reducing model size and computation [23, 4].
+
+# 3.2.HWGQ Network
+
+A mixed-precision network can have arbitrary weight and activation bit-widths. Many quantization techniques have been proposed [14, 23, 35, 4, 37, 34]. In this work, we start from the HWGQ-Net [4], one of the state-of-the-art low-precision networks in the literature. Although the HWGQ-Net only uses binary weights, its activation quantization technique can be used to produce weights of higher precision. This starts by pre-computing the optimal quantizer
+
+$$
+Q (x) = q _ {i}, \quad i f \quad x \in \left(t _ {i}, t _ {i + 1} \right] \tag {2}
+$$
+
+for a Gaussian distribution of zero mean and unit variance, using Lloyd's algorithm [21, 22]. Since the network weight distributions are always close to zero-mean Gaussians of different variance $\sigma^2$ , the optimal quantization parameters can then be easily obtained by rescaling the pre-computed quantization parameters [27], i.e. using the quantizer
+
+$$
+Q (x) = \sigma q _ {i}, \quad i f \quad x \in \left(\sigma t _ {i}, \sigma t _ {i + 1} \right]. \tag {3}
+$$
+
+To be hardware-friendly, all quantizers are uniform.
+
+# 3.3. Filter Sensitivity
+
+The allocation of the same bit-width to all network layers, known as uniform bit allocation, can be very suboptimal, since different filters have different bit-width sensitivities. Figure 3 illustrates this point for the popular Inception
+
+
+Figure 3. The filter sensitivity in the Inception module.
+
+module of GoogLeNet [29] whose architecture is shown in Figure 2. This has four parallel branches and six learnable filters in total. To check their sensitivities, we started by training a uniform 2-bit GoogLeNet baseline on ImageNet. We then trained another model, changing a single filter of the Inception module to 4-bit, throughout the network. This experiment was repeated for all six filters. The changes in accuracy and computation of the whole network, with respect to the baseline, reflect the differences in bit-width sensitivity of the six filters. Figure 3 shows that "ch1x1" is the most sensitive filter, as the bit-width increase improves network accuracy by more than $2\%$ with only a $25\%$ computation increase. "ch3x3red" and "ch5x5" have computation similar to "ch1x1" but are less sensitive, especially "ch5x5". On the other hand, the computation of "ch3x3" skyrockets to $125\%$ for a much smaller gain of $1.3\%$ in accuracy, which is close to that of the inexpensive "ch3x3red" and "poolProj". Finally, "ch5x5red" has minor changes in accuracy and computation. These observations suggest that mixed-precision networks could substantially outperform uniform networks.
+
+# 4. Mixed-Precision Network
+
+In a mixed-precision network, bit-width varies filter by filter. The problem is to search a candidate pool $\mathcal{B}$ of bit-widths for the optimal bit-width for each filter in the network. This can be implemented by reformulating (1) as
+
+$$
+y = \sum_ {i = 1} ^ {n _ {f}} o _ {i} ^ {\alpha} f _ {i} \left(\sum_ {j = 1} ^ {n _ {a}} o _ {j} ^ {\beta} a _ {j} (x)\right), \tag {4}
+$$
+
+$$
+\begin{array}{l} \text {s . t .} \sum o _ {i} ^ {\alpha} = 1, \sum o _ {j} ^ {\beta} = 1, o ^ {\alpha}, o ^ {\beta} \in \{0, 1 \}, \end{array}
+$$
+
+where $n_f$ and $n_a$ are the cardinalities of bit-width pool $\mathcal{B}^{\alpha}$ for weights and $\mathcal{B}^{\beta}$ for activations. The goal is to find the optimal bit-width configuration $\{o_{\alpha}^{*}, o_{\beta}^{*}\}$ for the whole network. Since the search space is discrete and large, it is usually infeasible to hand-craft the optimal solution.
+
+# 4.1. Complexity-Aware Learning
+
+In general, networks of higher bit-width have higher accuracy. Hence, the simple minimization of classification loss has the trivial solution of always selecting the highest possible bit-width. To avoid this, we resort to complexity-aware learning, seeking the best trade-off between classification accuracy and complexity. This is a constrained optimization problem, where classification risk $\mathcal{R}_E[F]$ is minimized under a bound on complexity risk $R_C[F]$ ,
+
+$$
+F ^ {*} = \arg \min _ {F} R _ {E} [ F ] \quad \text {s . t .} \quad R _ {C} [ F ] < \gamma , \tag {5}
+$$
+
+which can be solved by minimizing the Lagrangian
+
+$$
+\mathcal {L} [ F ] = \mathcal {R} _ {E} [ F ] + \eta \mathcal {R} _ {C} [ F ], \tag {6}
+$$
+
+where $\eta$ is a Lagrange multiplier that only depends on $\gamma$ . Under this constrained formulation, the optimal bit allocation is no longer trivial. The complexity is user-defined, and could address computation, memory, model size, energy, running speed, or other aspects. It has the form
+
+$$
+\mathcal {R} _ {C} [ F ] = \sum_ {f \in F} c (f). \tag {7}
+$$
+
+where $c(f)$ is the cost of filter $f$ .
+
+# 4.2. Model Complexity
+
+A popular practice is to characterize complexity by the number of floating-point operations (FLOPs) of filter $f$ ,
+
+$$
+c (f) = | f | w _ {x} h _ {x} / s ^ {2}, \tag {8}
+$$
+
+where $|\cdot|$ denotes cardinality, $w_{x}$ and $h_x$ are the spatial width and height of the filter input $x$ , and $s$ the filter stride. In low-precision networks, where filter $f$ and activation function $a$ have low bit-width, this cost can be expressed in bit operations (BitOps),
+
+$$
+c (f) = b _ {f} b _ {a} | f | w _ {x} h _ {x} / s ^ {2}, \tag {9}
+$$
+
+where $b_{f}$ and $b_{a}$ are the bit-widths of weights and activations, respectively. Since only relative complexities matter for the search, the overall network complexity is normalized by the value of (8) for the first layer to search.
+
+# 4.3. Relaxed Mixed-Precision Network
+
+The binary nature of the search space of $\{o_{\alpha}, o_{\beta}\}$ makes the minimization of (6) a complex combinatorial problem. As suggested by [20], a much simpler optimization is possible by relaxing the binary search space into a continuous one, through the reformulation of (4) as
+
+$$
+y = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} f _ {i} \left(\sum_ {j = 1} ^ {n _ {a}} \pi_ {j} ^ {\beta} a _ {j} (x)\right), \tag {10}
+$$
+
+$$
+\mathrm {s . t .} \sum \pi_ {i} ^ {\alpha} = 1, \sum \pi_ {j} ^ {\beta} = 1, \pi^ {\alpha}, \pi^ {\beta} \in [ 0, 1 ].
+$$
+
+The constraints $\pi^{\alpha},\pi^{\beta}\in [0,1]$ can then be eliminated by introducing a set of real configuration parameters $\{\alpha ,\beta \}$ and defining
+
+$$
+\pi_ {i} ^ {\alpha} = \frac {\exp (\alpha_ {i})}{\sum_ {k} \exp (\alpha_ {k})}, \quad \pi_ {j} ^ {\beta} = \frac {\exp (\beta_ {j})}{\sum_ {k} \exp (\beta_ {k})}. \tag {11}
+$$
+
+This leads to the architecture of Figure 1. The complexity measure of (9) is finally defined as
+
+$$
+c (f) = E \left[ b _ {f} \right] E \left[ b _ {a} \right] | f | w _ {x} h _ {x} / s ^ {2}, \tag {12}
+$$
+
+where
+
+$$
+E \left[ b _ {f} \right] = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} b _ {f _ {i}}, \quad E \left[ b _ {a} \right] = \sum_ {j = 1} ^ {n _ {a}} \pi_ {j} ^ {\beta} b _ {a _ {j}} \tag {13}
+$$
+
+are the bit-width expectations for weights and activations, respectively. This relaxation enables learning by gradient descent in the space of continuous parameters $\{\alpha ,\beta \}$ which is much less expensive than combinatorial search over the configurations of $\{o_{\alpha},o_{\beta}\}$
+
+# 4.4. Efficient Composite Convolution
+
+While efficient, differentiable architecture search is not without limitations. A common difficulty for general NAS is the linear increase in computation and memory with the search space dimension [20, 2]. If there are ten candidate operators for a layer, they all need to be applied to the same input, in parallel. This makes the search impossible for large networks, e.g. the ResNet-50, Inception-V3, etc., and is usually addressed by resorting to a proxy task.
+
+Unlike general NAS, where the candidate operators are heterogeneous [38, 20, 2], e.g. convolution, skip connection, pooling, etc., the candidate operators of MPS are homogeneous, namely replicas of the same filter with different bit-widths. This property can be exploited to avoid the expensive parallel operations. The weighted sum of parallel convolutions, as shown in Figure 1, given the weighted activation sum $\bar{a}(x) = \sum_{j=1}^{n_a} \pi_j^\beta a_j(x)$ , can be rewritten as
+
+$$
+\begin{array}{l} y = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} f _ {i} (\bar {a} (x)) = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} \left(Q _ {i} \left(\mathbf {W} _ {i}\right) * \bar {a} (x)\right) \\ = \left(\sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} Q _ {i} (\mathbf {W} _ {i})\right) * \bar {a} (x) = \bar {f} (\bar {a} (x)) \tag {14} \\ \end{array}
+$$
+
+where $\bar{f}$ is the composite filter parameterized by weight tensor
+
+$$
+\overline {{\mathbf {W}}} = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} Q _ {i} \left(\mathbf {W} _ {i}\right). \tag {15}
+$$
+
+Hence, rather than $n_f$ convolutions between the different $Q_{i}(\mathbf{W}_{i})$ and the common activation $\bar{a}(x)$ , the architecture
+
+of Figure 1 only requires one convolution with the composite filter of (15). This enables constant training time, independently of the number of bit-widths considered per filter, and the training of large networks become feasible.
+
+In (15), each candidate operator has its own weight tensor $\mathbf{W}_i$ . During training, the gradients arriving at a layer are distributed to the different branches. In result, filters of low probability $\pi_i^\alpha$ receive few gradient updates and could be under-trained. For example, a branch of $\pi^{\alpha} = 0.1$ will only receive $10\%$ of the overall gradients. A more robust solution is to share weights across all filters by making $\mathbf{W}_i = \mathbf{W}$ and redefining the composite filter of (15) as
+
+$$
+\overline {{\mathbf {W}}} = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} Q _ {i} (\mathbf {W}). \tag {16}
+$$
+
+In this case, while the gradients are still distributed to each branch, they are all accumulated to update the universal weight tensor $\mathbf{W}$ . This eliminates the potential for underfitting, and the size of search model can also remain constant independent of the search space. Note that this weight sharing requires a universal $\mathbf{W}$ representative enough for multiple quantizers of different bit-widths. While this has not been shown in the low-precision network literature [35, 4, 37, 34], it is less of a problem for MPS since 1) the parallel branches learn similar and potentially redundant representations at different bit-widths; 2) what matters for MPS is to optimize the bit allocation, not the weight tensor.
+
+# 4.5. Search Space
+
+The design of the search space is critical for NAS. Unlike NAS, which has an open-set search space, the search space of MPS is well-defined and limited to a relatively small number of possibilities per filter and activation, e.g. bit-widths in $\{1,\ldots ,32\}$ . Previous works [32, 10] have coupled weight and activation bit-widths, e.g. defining pairs (1,4), (2,4), etc. This results in $|\mathcal{B}^{\alpha}| \times |\mathcal{B}^{\beta}|$ parallel branches per filter. To reduce complexity, [32, 10] manually pruned $|\mathcal{B}^{\alpha}| \times |\mathcal{B}^{\beta}|$ to a small subset, e.g. six pairs, which is suboptimal. Instead, we decouple weight and activation bit-widths, using $|\mathcal{B}^{\alpha}|$ and $|\mathcal{B}^{\beta}|$ parallel branches for weight and activations, respectively, as shown in Figure 1. This decoupling maintains the search space at full size $|\mathcal{B}^{\alpha}| \times |\mathcal{B}^{\beta}|$ , but significantly reduces computation and memory. Since 1) many works [34, 7] have shown that a bit-width of 4 suffices for very good performance; 2) very low-precision networks, e.g. using 2 bits, are the most challenging to develop; and 3) 1-bit activations are usually insufficient for good performance [14, 23, 35, 4], we use a search space with
+
+$$
+\mathcal {B} ^ {\alpha} = \{1, 2, 3, 4 \}, \quad \mathcal {B} ^ {\beta} = \{2, 3, 4 \}. \tag {17}
+$$
+
+# 4.6. Learning
+
+This leads to the learning procedure for MPS. EdMIPS optimizes the Lagrangian of (6) with respect to the architecture parameters $\{\alpha, \beta\}$ of (11) and the weight tensors $\mathbf{W}$ of (16) over the search space of (17). Both $\mathbf{W}$ and $\{\alpha, \beta\}$ are learned by gradient descent. This is modeled as a bilevel optimization problem [8] in [20]. However, this is too complex, even impractical, for searching large models (e.g. ResNet and Inception-V3) on large datasets (e.g. ImageNet) without a proxy task. To avoid this, we consider two more efficient optimization approaches. The first, which is used by default, is vanilla end-to-end backpropagation. It treats the architecture $\{\alpha, \beta\}$ and filter $\mathbf{W}$ parameters equally, updating both in a single forward-backward pass. The second is an alternating optimization of two steps: 1) fix $\{\alpha, \beta\}$ and update $\mathbf{W}$ ; 2) fix $\mathbf{W}$ and update $\{\alpha, \beta\}$ . It has twice the complexity of vanilla backpropagation. Our experiments show that these strategies are efficient and effective for MPS.
+
+# 4.7. Architecture Discretization
+
+Given the optimal architecture parameters $\{\alpha^{*},\beta^{*}\}$ , the mixed-precision network must be derived by discretizing the soft selector variables $\pi$ of (11) into the binary selectors $o$ required by (4). Two strategies are explored.
+
+The first is a "winner-take-all" approach, used by default, in which only the branch with the highest $\pi$ is selected and the others removed, by defining
+
+$$
+o _ {i} ^ {*} = \left\{ \begin{array}{l l} 1, & \text {i f} i = \arg \max _ {j} \pi_ {j}, \\ 0, & \text {o t h e r w i s e .} \end{array} \right. \tag {18}
+$$
+
+This results in a deterministic architecture, which is not affected by the details of the distribution of $\pi$ , only the relative ranking of its values.
+
+The second is a sampling strategy. Since each $\pi$ is a categorical distribution, hard selectors $o_i$ can be sampled from a multinomial distribution
+
+$$
+O \sim \text {M u l t i n o m i a l} (n, \pi). \tag {19}
+$$
+
+with one trial $n = 1$ . This defines a random architecture with expected BitOps as defined in (13). The user can then sample multiple architectures and choose the one with the best trade-off between accuracy and complexity, as in [32]. However, in our experience, the variance of this random architecture is very large, making it very inefficient to find the best network configuration. Alternatively, it is possible to sample from (19) with multiple trials, e.g. $n = 50$ , and choose the architecture with the highest counts. This produces architectures closer to that discovered by "winnertake-all", converging to the latter when $n \to \infty$ .
+
+# 5. Experiments
+
+EdMIPS was evaluated with ImageNet [25], top-1 and top-5 classification accuracy. Previous MPS works [32, 31]
+
+
+Figure 4. Architecture evolution of ResNet-18 during search. The curves shown per layer index represent the probabilities of the two bit-widths. Layers indexes are as in PyTorch, where 7/12/17 are residual connections. Left: $\eta = 0.001$ in (6). Right: $\eta = 0.002$ .
+
+
+
+
+
+
+
+used ResNet-18 or MobileNet [13]. However, these are relatively simple networks, that stack replicas of a single module block, and for which heuristics can be used to hand-craft nearly optimal bit allocation. For example, the depth-wise layers of MobileNet should receive more bits than the pointwise ones. On the other end of the spectrum, GoogLeNet [29] and Inception-V3 [30] are complex combinations of different modules and too complicated to optimize by hand. Since this is the case where MPS is more useful, beyond the small and simple AlexNet and ResNet-18, we have also tested EdMIPS on larger and more complicated ResNet-50, GoogLeNet and Inception-V3. These experiments establish broad baselines for future studies in MPS.
+
+# 5.1. Implementation Details
+
+All experiments, followed standard ImageNet training on PyTorch $^2$ , with the following exceptions. For simplicity, all auxiliary losses were removed from the GoogLeNet and Inception-V3. EdMIPS used a learning rate of 0.1 for network parameters $\mathbf{W}$ , and 0.01 for architecture parameters $\{\alpha, \beta\}$ . All network parameters were initialized as usual, and all architecture parameters were set to 0.01, treating all candidates equally. The search model was trained for 25 epochs, with learning rates decayed by 10 time at every 10 epochs. After training the search model, the classification model was derived by the "winner-take-all" strategy of Section 4.7. Next, the classification models were trained for 50 (95) epochs, with learning rate decayed by 10 times at every 15 (30) epochs, to allow exploration (the final comparison with the state-of-the-art). All models were trained from scratch. For network quantization, we followed [4] but enabled scaling in all BatchNorm layers.
+
+# 5.2. Architecture Evolution
+
+Sometimes, it is mysterious why and how an architecture is found by NAS. Due to the differentiability of Ed
+
+MIPS, the soft architecture evolves gradually during search, as shown in Figure 4. For clarity, we only show the evolution of a ResNet-18 with search space of $\{2,4\}$ bit. Some interesting observations follow from the left part of Figure 4. First, the use of (6) with complexity penalty $\eta = 0.001$ is shown to avoid the trivial solution (highest bit-width always selected). Candidates of lower bit-width are selected for many layers. Second, nearly all layers choose 2 bits in the early epochs, where the network parameters are not yet trained and the complexity penalty dominates. As network parameters become stronger, the error penalty is more likely to overcome the complexity penalty, and 4-bit candidates start to be selected. Third, weights and activations can have different optimal bit allocations. For example, 4-bits are selected for the weights of layers $5/6/8$ , whose activations are assigned 2-bits. Fourth, since the complexity penalty of residual connections (layers $7/12/17$ ) is much smaller than $3 \times 3$ convolutions, they are allocated 4-bits early on. Finally, both candidates are equally strong for some layers, e.g. $9/13$ for weights and 1 for activations. In these cases, the model is not confident on which candidate to choose.
+
+# 5.3. Effect of Complexity Constraint
+
+When a stronger complexity constraint is enforced, lower bit-widths are more likely to be chosen. This can be observed by comparing the left $(\eta = 0.001)$ and right $(\eta = 0.002)$ of Figure 4. For layers preferring lower bit-width, this preference is reinforced by stronger $\eta$ . For example, in layers 1-4 for weights and 2-6 for activations, EdMIPS converges to lower bit-widths much faster. For layers preferring lower bit-width at the start but switching to more bits at the end, e.g. 5/10/15 for weights and 10/15/16 for activations, more epochs are required to reach the crossing point. The stronger complexity constraint can also change the final decisions. For example, for weights at layers 6/8/11 and activations at layers 18-19, the decisions switch from 4- to 2-bit. These results show that the optimal architecture depends on the complexity constraint.
+
+
+Figure 5. Comparison of the uniform HWGQ-Net and the EdMIPS network. The x-axis, indicating BitOps, is normalized to the scale of bit-width, which is actually in log-scale.
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6. EdMIPS bit allocation for AlexNet, ResNet-18 and GoogLeNet.
+
+
+
+# 5.4. Comparison to Uniform Bit Allocation
+
+Figure 5 shows that EdMIPS networks substantially outperform the uniform HWGQ-Net versions of AlexNet, ResNet-18/50, GoogLeNet, and Inception-V3. Note that the HWGQ-Net has fairly high baselines. Since the learned model is bounded by the weakest (W1A2) and strongest (W4A4) models in the search space, the improvements are small on both ends, but substantial in between. For example, the EdMIPS models improve the uniform 2-bit HWGQ-Net by about 0.9 point for AlexNet, 0.8 point for ResNet-18, 2.8 points for GoogLeNet, 1.5 points for ResNet-50 and 1.7 points for Inception-V3. This is strong evidence for the effectiveness of EdMIPS.
+
+# 5.5. Learned Optimal Bit Allocation
+
+To understand what EdMIPS learns, we visualize the optimal bit allocation of each layer in Figure 6, for AlexNet, ResNet-18 and GoogLeNet, with roughly the same BitOps as the uniform 2-bit models. On AlexNet, whose FC layers are lighter and closer to the output, they receive higher bitwidth. The layers closer to the input, e.g. 1st for weights and 2nd for activations, also receive relatively higher bitwidth. On ResNet-18, the cheap residual connections usually receive the largest bit-width. The first block of layers in each stage, e.g. 5-6th, 10-11th, and 15-16th, also has relatively higher bit-width. GoogLeNet is a more complicated network, and so is its bit allocation. The most expensive "ch3x3" layers frequently receive the lowest bit-width, but not always. Higher bit-widths are allocated to "ch3x3" layers closer to the output. On the other hand, "ch5x5red" is very cheap, and usually receives the highest bit-width. Although "ch1x1" is the second most expensive filter, it is frequently allocated higher bit-width. This reflects its highest sensitivity, shown in Figure 3. Finally, "ch3x3red" and
+
+"ch5x5" have similar computation, but the former is much more sensitive. Hence, it receives higher bit-width allocations. Note the difficulty of hand-crafting the optimal bit allocation for this complex network.
+
+# 5.6. Ablation Studies
+
+ResNet-18 is used for ablation experiments. The default EdMIPS model is denoted as "mixed" in Figure 7 (a).
+
+Relaxation: Figure 7 (a) shows that the relaxed models of (10) (trained for 50 epochs), only have slightly higher accuracy than their discretized counterparts, i.e. architecture discretization has little performance cost.
+
+Filter Sharing vs. Non-Sharing: In the default model, all parallel candidates share the weight tensor of (16). Figure 7 (a) shows that this is as effective as learning the individual weight tensors of (15). This is also confirmed by the comparison of their relaxed counterparts, indicating that the unshared parallel branches are somewhat redundant.
+
+Sampling: Four architectures were sampled from the architecture distribution of the model close to 2-bit of Figure 5, using both the categorical and multinomial sampling discussed in Section 4.7, with close BitOps to the uniform 2-bit model. Figure 7 (a) shows that categorical sampling architectures have large accuracy variance, sometimes even underperforming the uniform baseline. Better performance and lower variance are obtained with multinomial sampling.
+
+Learning Strategy: Figure 7 (a) shows that there is little difference in accuracy between the default model, which uses single pass optimization, and a model trained with the alternating optimization of Section 4.6. Since the latter has twice the learning complexity, single pass optimization is used by default on EdMIPS.
+
+Convergence Speed: Figure 7 (b) summarizes the evolu
+
+
+(a)
+
+
+(b)
+Figure 7. (a) ablation experiments on ResNet-18; (b) complexity evolution on ResNet-18 (dashed lines are expected complexities of (13)); (c) savings by efficient composite convolution of Section 4.4.
+
+
+(c)
+
+tion of network complexity as a function of $\eta$ , for the five ResNet-18 models of Figure 5. The search usually converges quickly, with minor changes in architecture complexity after the 15th epoch. The accuracy of the corresponding classification models ("models at 15th epoch") is shown in Figure 7 (a). They are comparable to those found after 25 search epochs.
+
+Search Space: Figure 7 (a) shows that no gain occurs over the uniform model when a coarser search space ( $\{1,4\}$ bit for weight and $\{2,4\}$ bit for activation) is used.
+
+Efficient Composite Convolution: Figure 7 (c) summarizes the practical savings achieved with the efficient composite convolution of Section 4.4, with respect to the vanilla parallel convolutions, in terms of computation, memory and model size, for the search space of (17). The weight sharing of (16) reduces model size by a factor of almost four. Replacing the parallel convolutions results in $30 - 50\%$ savings in computation and $20 - 40\%$ in memory. These savings make MPS much more practical. For example, the time needed to search for the ResNet-18 on 2 GPUs decreased from 35 to 18 hours, and the search for the Inception-V3 can be performed with 8 GPUs and 12GB of memory. In result, the complete search (e.g. 25 epochs) only increases by $\sim 45\%$ the training complexity of a uniform low-precision ResNet-18 network. It should be mentioned that these practical savings are nevertheless smaller than theoretically predicted by (14), due to other practical cost bottlenecks, e.g. weight/activation quantization, parallelization efficiency in GPUs, network architecture, etc. Better implementations of EdMIPS could enable further savings.
+
+# 5.7. Comparison to state-of-the-art
+
+Table 1 compares EdMIPS models to state-of-the-art uniform low-precision networks, including HWGQ-Net [4] and LQ-Net [34]. EdMIPS models, with similar BitOps to the 2-bit uniform models, achieve top performance for all base networks. Compared to the uniform HWGQ-Net, the gains are particularly large (3 points) for the complicated
+
+Table 1. Comparison to the state-of-the-art.
+
+| Model
+bit-width | Ref
+32 | Full
+32 | HWGQ
+2 | LQ [34]
+2 | EdMIPS
+~2 |
| AlexNet | Top-1 | 57.1 | 59.2 | 58.6 | 57.4 | 59.1 |
| Top-5 | 80.2 | 81.7 | 80.9 | 80.1 | 81.0 |
| ResNet-18 | Top-1 | 69.6 | 70.2 | 65.1 | 64.9 | 65.9 |
| Top-5 | 89.2 | 89.5 | 86.2 | 85.9 | 86.5 |
| GoogLeNet | Top-1 | 73.3 | 72.7 | 64.8 | - | 67.8 |
| Top-5 | 91.3 | 91.0 | 86.3 | - | 88.0 |
| ResNet-50 | Top-1 | 76.0 | 76.2 | 70.6 | 71.5 | 72.1 |
| Top-5 | 93.0 | 93.0 | 89.8 | 90.3 | 90.6 |
| Inception-V3 | Top-1 | 77.5 | 77.3 | 71.0 | - | 72.4 |
| Top-5 | 93.6 | 93.6 | 89.9 | - | 90.7 |
+
+GoogLeNet, a compact model very averse to quantization. On the other hand, for the simplest model (AlexNet), the 2-bit EdMIPS model is already equivalent to the full precision network. These results show that EdMIPS is an effective MPS solution. Since 1) [31] only experiments on MobileNet and uses latency as complexity indicator; 2) [32] mainly focuses on ResNet-18/34 of higher bit-widths, e.g. 4-bit; 3) neither of these works have released the code needed to reproduce their results, we are unable to compare to them. We believe that the release of EdMIPS code and the solid baselines now established by Table 1 will enable more extensive comparisons to future work in MPS.
+
+# 6. Conclusion
+
+We have proposed EdMIPS, an efficient framework for MPS based on a differentiable architecture. EdMIPS has multiple novel contributions to the MPS problem. It can search large models, e.g. ResNet-50 and Inception-V3, directly on ImageNet, at affordable costs. The learned mixed-precision models of multiple popular networks substantially outperform their uniform low-precision counterparts and establish a solid set of baselines for future MPS research.
+
+Acknowledgment This work was partially funded by NSF awards IIS-1637941, IIS-1924937, and NVIDIA GPU donations.
+
+# References
+
+[1] Sajid Anwar, Kyuyeon Hwang, and Wonyong Sung. Fixed point optimization of deep convolutional neural networks for object recognition. In ICASSP, pages 1131-1135, 2015. 1, 2
+[2] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. Understanding and simplifying one-shot architecture search. In ICML, pages 549-558, 2018. 1, 2, 4
+[3] Andrew Brock, Theodore Lim, James M. Ritchie, and Nick Weston. SMASH: one-shot model architecture search through hypernetworks. In ICLR, 2018. 1, 2
+[4] Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep learning with low precision by half-wave gaussian quantization. In CVPR, pages 5406-5414, 2017. 1, 2, 3, 5, 6, 8
+[5] Zhaowei Cai and Nuno Vasconcelos. Cascade R-CNN: delving into high quality object detection. In CVPR, pages 6154-6162, 2018. 1
+[6] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Trans. Pattern Anal. Mach. Intell., 40(4):834-848, 2018. 1
+[7] Jungwook Choi, Zhuo Wang, Swagath Venkataramani, Pierce I-Jen Chuang, Vijayalakshmi Srinivasan, and Kailash Gopalakrishnan. Pact: Parameterized clipping activation for quantized neural networks. arXiv preprint arXiv:1805.06085, 2018. 2, 5
+[8] Benoit Colson, Patrice Marcotte, and Gilles Savard. An overview of bilevel optimization. Annals OR, 153(1):235-256, 2007. 5
+[9] Zhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. HAWQ: hessian aware quantization of neural networks with mixed-precision. In ICCV, pages 293–302. IEEE, 2019. 1
+[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. 2, 5
+[11] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In ICCV, pages 2980-2988, 2017. 1
+[12] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 1
+[13] 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. CoRR, abs/1704.04861, 2017. 6
+[14] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran ElYaniv, and Yoshua Bengio. Binarized neural networks. In NIPS, pages 4107-4115, 2016. 1, 2, 3, 5
+[15] Kyuyeon Hwang and Wonyong Sung. Fixed-point feedforward deep neural network design using weights $+1$ , 0, and -1. In IEEE Workshop on Signal Processing Systems, pages 174-179, 2014. 2
+
+[16] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pages 1106-1114, 2012. 1
+[17] Griffin Lacey, Graham W. Taylor, and Shawki Areibi. Stochastic layer-wise precision in deep neural networks. In UAI, pages 663-672, 2018. 1, 2
+[18] Darryl Dexu Lin, Sachin S. Talathi, and V. Sreekanth Annapureddy. Fixed point quantization of deep convolutional networks. In ICML, pages 2849-2858, 2016. 1, 2
+[19] Tsung-Yi Lin, Piotr Dólar, Ross B. Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. Feature pyramid networks for object detection. In CVPR, pages 936-944, 2017. 1
+[20] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. 1, 2, 4, 5
+[21] Stuart P. Lloyd. Least squares quantization in PCM. IEEE Trans. Information Theory, 28(2):129-136, 1982. 3
+[22] Joel Max. Quantizing for minimum distortion. IRE Trans. Information Theory, 6(1):7-12, 1960. 3
+[23] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In ECCV, pages 525-542, 2016. 1, 2, 3, 5
+[24] 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. 1
+[25] 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. 5
+[26] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. 1
+[27] Huifang Sun and Yun Q Shi. Image and video compression for multimedia engineering: Fundamentals, algorithms, and standards. CRC press, 2008. 3
+[28] Wonyong Sung and Ki-II Kum. Simulation-based word-length optimization method for fixed-point digital signal processing systems. IEEE Trans. Signal Processing, 43(12):3087-3090, 1995. 2
+[29] 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. 1, 3, 6
+[30] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pages 2818-2826, 2016. 1, 2, 6
+[31] Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. Haq: Hardware-aware automated quantization with mixed precision. In CVPR, pages 8612-8620, 2019. 1, 2, 5, 8
+[32] Bichen Wu, Yanghan Wang, Peizhao Zhang, Yuandong Tian, Peter Vajda, and Kurt Keutzer. Mixed precision quantization of convnets via differentiable neural architecture search. arXiv preprint arXiv:1812.00090, 2018. 1, 2, 5, 8
+
+[33] Amir Yazdanbakhsh, Ahmed T Elthakeb, Prannoy Pilligundla, FatemehSadat Mireshghallah, and Hadi Esmaeilzadeh. Releq: An automatic reinforcement learning approach for deep quantization of neural networks. arXiv preprint arXiv:1811.01704, 2018. 1, 2
+[34] Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In ECCV, pages 373-390, 2018. 1, 2, 3, 5, 8
+[35] Shuchang Zhou, Zekun Ni, Xinyu Zhou, He Wen, Yuxin Wu, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. CoRR, abs/1606.06160, 2016. 1, 2, 3, 5
+[36] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian Reid. Structured binary neural networks for image recognition. arXiv preprint arXiv:1909.09934, 2019. 2
+[37] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian D. Reid. Towards effective low-bitwidth convolutional neural networks. In CVPR, pages 7920-7928, 2018. 1, 2, 3, 5
+[38] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. CoRR, abs/1611.01578, 2016. 1, 2, 4
+[39] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In CVPR, pages 8697-8710, 2018. 1, 2
\ No newline at end of file
diff --git a/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/images.zip b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d5ad89c50101e939872129dfe8259d464a338331
--- /dev/null
+++ b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d9b0b194090be47d18486421127c21eb5bdeae186343970550df448d8ecebf9e
+size 533019
diff --git a/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/layout.json b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..88d8fbbea440bd752e32917f2a4f6579d94b4aa0
--- /dev/null
+++ b/rethinkingdifferentiablesearchformixedprecisionneuralnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e26f3075cd4dd63a6a2fb23c1d7a58bd690a0830afd32a2b3e1bd9ad1efca495
+size 401373
diff --git a/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_content_list.json b/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0314c5d328fef151db4cbc50488ab641a49942d
--- /dev/null
+++ b/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1eb04698fc620471d1706f06a0948d31701c578b9e1216913cab876665e0e48b
+size 77514
diff --git a/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_model.json b/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a7c136818aca93f2bbdfe83e8c4f67ad927d0a00
--- /dev/null
+++ b/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7cbdb79d2c492d3481d6c2766c59f64f42dbb8e60a820194c88c0d88c752ae6f
+size 94566
diff --git a/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_origin.pdf b/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..69d864f5e559483e05213545c06dd4e879bf7dcb
--- /dev/null
+++ b/rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1fb9170cd1bef587c847e6eb5fe73b76cf34526788e91cee3b415e601c27fac0
+size 457665
diff --git a/rethinkingperformanceestimationinneuralarchitecturesearch/full.md b/rethinkingperformanceestimationinneuralarchitecturesearch/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..734248c1d08f070ee76cde3ce04fdae3076ca6b6
--- /dev/null
+++ b/rethinkingperformanceestimationinneuralarchitecturesearch/full.md
@@ -0,0 +1,335 @@
+# Rethinking Performance Estimation in Neural Architecture Search
+
+Xiawu Zheng $^{1,2,3}$ , Rongrong Ji $^{1,2,3*}$ , Qiang Wang $^{1,3}$ , Qixiang Ye $^{3,4}$ , Zhenguo Li $^{5}$ Yonghong Tian $^{3,6}$ , Qi Tian $^{5}$ $^{1}$ Media Analytics and Computing Lab, Department of Artificial Intelligence, School of Informatics, Xiamen University, 361005, China
+
+$^{2}$ National Institute for Data Science in Health and Medicine, Xiamen University. $^{3}$ Peng Cheng Laboratory, Shenzhen, China. $^{4}$ University of Chinese Academy of Sciences, China.
+
+$^{5}$ Noah's Ark Lab, Huawei Technologies $^{6}$ Peking University.
+
+{zhengxiawu,Wangqiang}@stu.xmu.edu.cn, rrji@xmu.edu.cn qxye@ucas.ac.cn, li.zhenguo@huawei.com,yhtian@pku.edu.cn,tian.qil@huawei.com
+
+# Abstract
+
+Neural architecture search (NAS) remains a challenging problem, which is attributed to the indispensable and time-consuming component of performance estimation (PE). In this paper, we provide a novel yet systematic rethinking of PE in a resource constrained regime, termed budgeted PE (BPE), which precisely and effectively estimates the performance of an architecture sampled from an architecture space. Since searching an optimal BPE is extremely time-consuming as it requires to train a large number of networks for evaluation, we propose a Minimum Importance Pruning (MIP) approach. Given a dataset and a BPE search space, MIP estimates the importance of hyper-parameters using random forest and subsequently prunes the minimum one from the next iteration. In this way, MIP effectively prunes less important hyper-parameters to allocate more computational resource on more important ones, thus achieving an effective exploration. By combining BPE with various search algorithms including reinforcement learning, evolution algorithm, random search, and differentiable architecture search, we achieve $1,000 \times$ of NAS speed up with a negligible performance drop comparing to the SOTA.
+
+# 1. Introduction
+
+Deep learning have made significant success in classification [15, 12], retrieval [48, 47] and detection [42, 46, 20]. To this end, neural architecture search (NAS) aims to automatically discover a suitable neural network architecture by exploring over a tremendous architecture search space, which
+
+
+Figure 1. Time cost with/without budgeted performance estimation (BPE-1). (a) Previous methods did not optimize the huge computation cost in PE. (b) By incorporating the BPE, we can largely accelerate NAS methods including reinforcement learning (RL) [52], evolution algorithm (EA) [34], random search (RS) and DARTS [28] (One-shot) with a negligible performance drop.
+
+
+
+has shown remarkable performance over manual designs in various computer vision tasks [9, 51, 28, 52, 10, 26].
+
+Despite the extensive success, previous methods are still defective in intensive computation resources, which severely restricts its application prospect and flexibility. For instance, reinforcement learning (RL) based methods [52, 51] search a suitable architecture on CIFAR10 by training and evaluating more than 20,000 architectures by using 500 GPUs over 4 days. For another instance, the evolutionary algorithm (EA) based method in [34] needs 3,150 GPU days to find an optimal architecture on CIFAR10.
+
+A NAS method generally consists of three components, i.e., search space, search strategy and performance estimation. As established by [51], cell based search space is now well adopted [49, 44, 11, 31, 34, 33, 51, 52], which is predefined and fixed during the architecture search to ensure a fair comparison among different NAS methods. On the other hand, as illustrated in Fig. 1, different search strategies (RL or EA) have similar run-time (after subtracting the
+
+
+Figure 2. The overall framework of the proposed Minimum Importance Pruning for finding an optimal Budgeted Performance Estimation. The search space of BPE is built from the training hyper-parameters including training epoch, batch size, learning rate, layer number, float point, channels, cutout and image size. We first sample the example with the lowest time cost. Then the sampled example is used to train the random forest, which is used to evaluate the importance of the corresponding hyper-parameters. The hyper-parameter with the lowest importance is pruned by assigning the value with a minimum time cost.
+
+performance estimation cost), which can also be well accelerated with GPU packages. Therefore the major computational consumption of NAS lies in the performance estimation (PE) step, as validated in Fig. 1. However, few works have been devoted to the efficiency issue of PE, which is crucial to cope with the explosive growth of dataset size and model complexity. Moreover, it is highly desirable to conduct fast architecture search under different datasets for deployment in emerging applications like self-driving cars [5].
+
+In this paper, we propose a novel and efficient performance estimation under the resource-constrained regime, termed budgeted performance estimation (BPE), which is the first of its kind in the NAS community. The BPE essentially controls the hyper-parameters of training, network designing and dataset processing, such as number of channels, number of layers, learning rate and image size. Rather than pursuing model precision for a specific dataset, BPE aims to learn the most achievable relative precision order of different neural architectures in a specific architecture space. In other words, a good network structure still has a relatively high ranking on an accurate BPE. We argue that the missing of accurate and efficient BPE remains as the main barrier for the wide usage of NAS research. However, finding an accurate and effective BPE is extremely challenging compared to other black-box optimization problems. First, BPE needs to carefully deal with the discrete (like layers or channels) and continuous (like learning rate) hyper-parameters. Second, evaluating a specific BPE needs to train a large number of neural networks e.g., $2 \times 8^{14}$ networks in the cell-based architecture search space [28].
+
+As implicitly employed in previous NAS [52, 22, 33, 28,
+
+7, 31] methods, most BPE methods only leverage intuitive tricks including early stopping [52], dataset sampling [22] and lower resolution dataset, or using a proxy search network with fewer filters per layer and fewer cells [52, 28]. While such methods can reduce the computational cost to a certain extent (which is still time consuming [52, 34]), noise is also introduced into PE to underestimate its corresponding performance. Little work investigates the relative performance rank between approximated evaluations and full evaluations, which is traditionally considered as a merited trick [28, 52, 34]. However, as subsequently validated in Sec. 5, such a relative rank can change dramatically under a tiny difference in the training condition.
+
+In this paper, we present a unified, fast and effective framework, termed Minimum Importance Pruning (MIP), to find an optimal BPE on a specific architecture search space such as cell-based search space [49, 44, 11, 31, 34, 33, 51, 52], as illustrated in Fig. 2. In particular, for a given large-scale hyper-parameter search space, we first sample examples with the lowest time consumption. The sampled examples are then used to estimate the hyper-parameter importance using random forest [6, 16]. The hyper-parameter of the lowest importance is set to the value with the minimum time cost. The algorithm stops when every hyperparameter is set. The contributions of this paper include:
+
+- It is the first work to systematically investigate the performance estimation in NAS under the resource-constrained regime. We seek an optimal budgeted PE (BPE) by designing a spearman correlation loss function on a group of key hyper-parameters.
+- A novel hyper-parameter optimization method, termed
+
+Minimum Importance Pruning (MIP), is proposed, which is effective for black-box optimization with extremely time consuming on the evaluation step.
+
+- The proposed MIP-BPE generalizes well to various architecture search methods, including Reinforcement Learning (RL), Evolutionary Algorithms (EA), Random Search (RS) and DARTS. MIP-BPE achieves remarkable performance on both CIFAR-10 and ImageNet, while accelerating the search process by $1,000 \times$ .
+
+# 2. Related Work
+
+# 2.1. Performance Estimation in NAS
+
+Performance estimation refers to estimating the performance of a specific architecture in the architecture search space. A conventional option is to perform a standard training and validation process of this architecture on the dataset, which is computationally expensive and limits the number of architectures that can be explored. To accelerate performance estimation, most NAS methods only provide simple intuitive cues such as early stopping [52], dataset sampling [22] and lower resolution dataset, or using a proxy search network with fewer filters and fewer cells [52, 28].
+
+Another possibility of estimating the architecture performance is one-shot based methods [50, 28, 1], which consider each individual in the search space as a sub-graph sampled from a super-graph. In this way, they accelerate the search process by parameter sharing [31]. Chen et al. [11] proposed to progressively grow the depth of searched architectures during the training procedure. Xu et al. [44] presented a partially connected method by sampling a small part of the super-net to reduce the redundancy in the network space, which thereby performs a more efficient search without comprising the performance. However, these methods do not deeply investigate the influence of different hyper-parameters, which has introduced large noise as validated in Sec. 5.
+
+# 2.2. Hyper-parameter Optimization
+
+Hyper-parameter optimization [41] aims to automatically optimize the hyper-parameters during the learning process [4, 19, 39, 45]. To this end, gird search and random search [4] are the two simplest and most straightforward approaches. Note that these methods do not consider to use the experience (sampled examples in the search process). Subsequently, sequential model-based optimization (SMBO) [19] is proposed to learn a proxy function from the experience and estimate the performance for unknown hyper-parameters. As one of the most popular methods, Bayesian optimization [39] learns a Gaussian process with the sampled examples, and then decides the best hyper
+
+parameter for the next trial by maximizing the corresponding improvement function.
+
+However, all these methods mostly deal with hyperparameters for particular machine learning models, which cannot handle the optimization of BPE with such an expensive evaluation step. Different from the previous methods, we evaluate and estimate the importance of the hyperparameters by sampling examples with the minimum time consumption, where hyper-parameters of minimum importances are then pruned in the next iteration, which is extremely effective and efficient to find the optimal BPE.
+
+# 3. Preliminaries
+
+# 3.1. NAS Pipeline
+
+Given a training set, conventional NAS algorithms [52, 49, 25] first sample an architecture in the pre-defined search space by a certain search strategy like Reinforcement Learning (RL) or Evolution Algorithm (EA). Then the sampled neural architecture is passed to the performance estimation (PE), which returns the performance of the architecture to the search algorithm.
+
+In most NAS methods [49, 28, 44], PE is accelerated by using a group of lower-cost hyper-parameters (like smaller image size, less channel and shallower network) in the search space $\Omega = \Theta_{1} \times \Theta_{2} \times \ldots \times \Theta_{n}$ , termed budgeted PE (BPE), which contains $n$ sorts of training hyper-parameters including the number of training epochs, batch size, learning rate, the number of layers, float point precision, channels, cutout [13] and image size. For instance, Liu et al. [28] proposed to estimate the performance of an architecture on a small network of 8 layers trained for 50 epochs, with batch size 64 and initial number of channels 16. After the search process, the optimal neural architecture is then evaluated by a fully and time-consuming training hyperparameter set $f$ . In the existing works [49, 28, 44], $f$ controls the final evaluation hyper-parameters of the optimal architecture, i.e., a large network of 20 layers is trained for 600 epochs with a batch size of 96 and an additional regularization such as cutout [13].
+
+However, in this pipeline, the BPE and the final evaluation phase are decoupled. There is no guarantee that the BPE is correlated to the final evaluation step, i.e., the same architectures may have large ranking distances under different training conditions. Most NAS methods [28, 52] intuitively change BPE with fewer channels or layers. Nevertheless, extensive experiments in Sec. 5 show that the effectiveness of BPE is very sensitive, which means that it needs to carefully select and analyze the corresponding hyper-parameters in NAS. Indeed, we believe, and validated in Sec. 5, that BPE is a crucial component, while unfortunately there are no corresponding works devoted to this area.
+
+# 3.2. Cell based Architecture Search Space
+
+As mentioned in Sec. 1, BPE aims to find optimal training hyper-parameters on a specific architecture search space. In this paper, we follow the widely-used cell-based architecture search space in [49, 44, 11, 31, 34, 33, 51, 52, 50]: A network consists of a pre-defined number of cells [51], which can be either norm cells or reduction cells. Each cell takes the outputs of the two previous cells as input. A cell is a fully-connected directed acyclic graph (DAG) of $M$ nodes, i.e., $\{B_1, B_2, \dots, B_M\}$ . Each node $B_i$ takes the dependent nodes as input, and generates an output through a sum operation $B_j = \sum_{i < j} o^{(i,j)}(B_i)$ . Here each node is a specific tensor (e.g., a feature map in convolutional neural networks) and each directed edge $(i,j)$ between $B_i$ and $B_j$ denotes an operation $o^{(i,j)}(.)$ , which is sampled from the corresponding operation search space $\mathcal{O}^{(i,j)}$ . Note that the constraint $i < j$ ensures no cycles in a cell. Each cell takes the outputs of two dependent cells as input, and the two input nodes are set as $B_{-1}$ and $B_0$ for simplicity. Following [28], the operation search space $\mathcal{O}^{(i,j)}$ consists of $K = 8$ operations: $3 \times 3$ dilated convolution with rate 2, $5 \times 5$ dilated convolution with rate 2, $3 \times 3$ depth-wise separable convolution, $5 \times 5$ depth-wise separable convolution, $3 \times 3$ max pooling, $3 \times 3$ average pooling, no connection (zero), and a skip connection (identity). Therefore, the size of the whole search space $\mathcal{O}$ is $2 \times K^{|\mathcal{E}_{\mathcal{M}}|}$ , where $\mathcal{E}_{\mathcal{M}}$ is the set of possible edges with $M$ intermediate nodes in the fully-connected DAG. In our case with $M = 4$ the total number of cell structures in the search space is $2 \times 8^{2 + 3 + 4 + 5} = 2 \times 8^{14}$ , which is an extremely large space to search.
+
+# 4. The Proposed Method
+
+In this section, we first describe the formal setting of BPE in Sec. 4.1. We then present the proposed minimum importance pruning (MIP) to find the optimal BPE.
+
+# 4.1. Budgeted Performance Estimation
+
+The performance estimation is a training algorithm $A$ with $n$ hyper-parameters in a domain $\Omega$ . Given an architecture set $\mathcal{G}$ sampled from $\mathcal{O}$ , we address the following optimization problem:
+
+$$
+\max _ {b \in \Omega} r _ {s} \left(R _ {f}, R _ {b}\right) + \lambda \overline {{T \left(\mathcal {G} _ {b}\right)}}, \tag {1}
+$$
+
+where $0 < \lambda < 1$ , $r_s$ calculates the Spearman Rank Correlation between $R_f$ and $R_b$ . $R_f$ and $R_b$ are the performance on validation set of every architecture in $\mathcal{G}$ with full training hyper-parameter $f$ and BPE parameter $b$ , respectively. We aim to find the optimal $b$ with less average training consumption $\overline{T(\mathcal{G}_b)}$ on $\mathcal{G}$ .
+
+Optimizing Eq. 1 is extremely challenging, as we need to train over $|\mathcal{G}|$ architectures to validate one example in $\Omega$ .
+
+This large set of models to be trained and evaluated prevent most NAS methods to be widely deployed. Fortunately, Radosavovic et al. [32] observed that sampling about 100 models form a given architecture search space is sufficient to perform robust estimation, which is also validated in our work. Specifically, we randomly sample 100 neural architectures in the cell-based search architecture space to construct the architecture set $\mathcal{G}$ . Then $R_{f}$ and $R_{b}$ are obtained by training and validate every architecture in $\mathcal{G}$ with the hyper-parameters $f$ and $b$ , respectively.
+
+# 4.2. Minimum Importance Pruning
+
+Although the time consumption of the validation step has been drastically reduced, it is still very difficult to optimize Eq. 1, i.e., in our evaluation, the average training time of an architecture from $\mathcal{G}$ for different hyper-parameters is 10 hours on CIFAR10 benchmark. In this case, each example needs to train 100 networks, and the time consumption for one BPE example $b$ is $\sim 10^{3}$ hours. Such a time consumption is still difficult for finding an optimal BPE efficiently.
+
+To handle this issue we propose a minimum importance pruning (MIP) as illustrated in Fig. 2. We first sample the hyper-parameter examples around the lowest time cost. Then the sampled examples are trained to estimate the hyper-parameter importance by using random forest [16, 6]. After that, the hyper-parameter with the lowest importance is pruned by setting the value with the minimum time cost. The pruning step is ceased when there is only one hyperparameter in the search space, and the optimal BPE is the example with the maximum $r_s$ .
+
+Lowest time cost sampling. For each element in $\Theta_{i}$ , we introduce a category distribution related to the computational cost:
+
+$$
+p \left(\eta_ {i, j}\right) = \frac {\exp \left\{- F L O P s \left(\Theta_ {i , j}\right) \right\}}{\sum_ {j} \exp \left\{- F L O P s \left(\Theta_ {i , j}\right) \right\}}, \tag {2}
+$$
+
+where $\Theta_{i,j}$ denotes the $j$ th element of the $i$ th hyperparameter $\Theta_{i}$ . The function $FLOPs(\Theta_{i,j})$ is the number of floating point operations. We set $\Theta_{i}$ with the $j$ th element and fix other hyper-parameters in $\Omega$ by the value with the minimum time cost. An example $b$ is generated by sampling the joint probability in Eq. 2, e.g., $p(\eta) = \prod_{i=1}^{n} p(\eta_i)$ . Then, we obtain $R_b$ by training every architecture in $\mathcal{G}$ using the sampled $b$ , and the objective $r_s$ is calculated with $R_f$ by using Eq. 1.
+
+Random forest training. After repeating previous steps over $K = 10$ times, we get a set $\mathcal{D} = \{(b_1, r_{s,1}), (b_2, r_{s,2}), \ldots, (b_K, r_{s,K})\}$ with different BPEs and corresponding objective values, which is used as a training set for the random forest. In random forest, each tree is built from a set $\mathcal{D}_s$ drawn with a replacement sampling from $\mathcal{D}$ . Training random forest is to train multiple regression trees. Given a training set $\mathcal{D}_s$ with $b_i \in \mathbb{R}^n$ , $i =$
+
+Algorithm 1: Minimum Importance Pruning
+Input: Architecture search space $\mathcal{O}$ ; hyper-parameter space $\Omega$ sampling time $K = 10$ Output: Optimal BPE hyper-parameter $b$
+1 $n\gets$ The number of parameter in $\Omega$ .
+2 $R\gets$ {Sample 100 network architectures in $\mathcal{O}\} .$
+3 Train $R$ with fully training condition $f$ .
+4 $R_{f}\gets \{R$ 's performance on validation set};
+5 $\mathcal{D}\gets \emptyset$ .
+6 while $(n > 0)$ do
+7 $B = \{\mathrm{Randomly~sample~}T\mathrm{~ex~amples~in~}\Omega \mathrm{~by~}$ distribution in Eq. 2};
+8 for $b$ in $B$ do
+9 Train $R$ with BPE $b$ ..
+10 $R_{b}\gets \{R$ 's performance on validation set};
+11 $r_s\gets$ Spearman Rank Correlation between $R_{b}$ and $R_{f}$ ..
+12 $\mathcal{D}\gets \mathcal{D}\cup \{b,r_s\}$
+13 end
+14 Train random forest $\mathcal{T}$ by using Eq. 5 and Eq. 6 on $\mathcal{D}$ .
+15 Calculate the importance by Eq. 8;
+16 Pruning space $\Omega$ by Eq. 9;
+17 $n = n - 1$ .
+18 end
+
+$1, \dots, l$ and the corresponding spearman rank correlation vector $[r_{s,1}, r_{s,2}, \dots, r_{s,l}]$ sampled from $\mathcal{D}$ , a regression tree in the random forest recursively partitions the space such that the examples in $\mathcal{D}_s$ with similar values are grouped together. When training the regression tree, we need to consider how to measure and choose the partition feature (hyper-parameter in our case). Specifically, let the data at node $m$ be represented by $Q$ . For each candidate partition $\xi = (i, t_m)$ consisting of hyper-parameter $i$ and threshold $t_m$ , we partition the data into $Q_{left}(\xi)$ and $Q_{right}(\xi)$ subsets as follows:
+
+$$
+\begin{array}{l} Q _ {\text {l e f t}} (\xi) = (x, r _ {s}) \left| x _ {i} \leq t _ {m} \right. \\ Q _ {\text {r e s}} (\xi) = (x, r _ {s}) \end{array} \tag {3}
+$$
+
+$$
+Q _ {r i g h t} (\xi) = (x, r _ {s}) \left| x _ {i} > t _ {m}. \right.
+$$
+
+We further define the impurity function $H(\cdot)$ for a given split set $Q$ as
+
+$$
+H (Q) = \frac {1}{| Q |} \sum_ {r _ {s, i} \in Q} \left(r _ {s, i} - \overline {{r _ {s , Q}}}\right) ^ {2}, \tag {4}
+$$
+
+where $\overline{r_{s,Q}} = \frac{1}{|Q|}\sum_{r_{s,i}\in Q}r_{s,i}, |Q|$ denotes the number of examples in set $Q$ . And the impurity for a specific partition is the weighted sum of the impurity function:
+
+$$
+G (Q, \xi) = \frac {\left| Q _ {l e f t} \right| H \left(Q _ {l e f t}\right) + \left| Q _ {r i g h t} \right| H \left(Q _ {r i g h t}\right)}{\left| Q _ {l e f t} \right| + \left| Q _ {r i g h t} \right|}. \tag {5}
+$$
+
+We adopt the exhaustion method to find the optimal partition, that is, iterate through all possible partitions and select
+
+| Hyper-parameter | BPE-1 | BPE-2 | DARTS[28] |
| Epoch | 10 | 30 | 50 |
| Batch size | 128 | 128 | 64 |
| Learning rate | 0.03 | 0.03 | 0.025 |
| N_Layers | 6 | 16 | 8 |
| Channels | 8 | 16 | 16 |
| Image Size | 16 | 16 | 32 |
| Correlation rs | 0.50 | 0.63 | 0.57 |
| Training Time | 0.08 | 0.55 | 1.38 |
+
+Table 1. Detailed hyper-parameters of the best settings discovered On CIFAR10 by using MIP. The found BPE-1 and BPE-2 show a better correlation $r_s$ with less average training time (GPU Hours).
+
+the partition with the minimum impurity:
+
+$$
+\xi^ {*} = \underset {\xi} {\arg \min } G (Q, \xi). \tag {6}
+$$
+
+Hyper-parameter importance. For every node $m$ in the regression tree, we calculate the parameter importance as the decrease in node impurity, which is weighted by the number of samples that reach the node. The parameter importance for node $m$ is defined as:
+
+$$
+\begin{array}{l} I _ {m} = \left| Q _ {m} \right| H \left(Q _ {m}\right) - \left| Q _ {\{l e f t, m \}} \right| H \left(Q _ {\{l e f t, m \}}\right) \tag {7} \\ - \left| Q _ {\{r i g h t, m \}} \right| H \left(Q _ {\{r i g h t, m \}}\right). \\ \end{array}
+$$
+
+The importance for each $\Theta_{i}$ is the summation of the importance through the node in the random forest, which uses $\Theta_{i}$ as the partition parameter:
+
+$$
+I _ {\Theta_ {i}} = \frac {\sum_ {\xi_ {m} (0) = \Theta_ {i}} I _ {m}}{\sum I _ {m}}. \tag {8}
+$$
+
+Parameter pruning. After the importance estimation process in Eq. 8, the hyper-parameter with the lowest probability is pruned by setting
+
+$$
+\Theta_ {i} = \beta_ {i}, \Theta_ {i} = \arg \min I _ {\Theta}. \tag {9}
+$$
+
+$\beta_{i}$ is the value of the lowest FLOPs in hyper-parameter $\Theta_{i}$ when $I_{\Theta_i} < 0.1$ . Otherwise, $\beta_{i}$ is the corresponding parameter value with the maximum $r_s$ in $\mathcal{D}$ . The pruning step significantly improves the search efficiency. By setting the less important hyper-parameter to a value with less resource consumption, we can allocate more computational resource on important parameters. Our minimum importance pruning algorithm is presented in Alg. 1.
+
+# 5. Experiment
+
+As we mentioned before, the average time consumption for evaluating BPE examples is $\sim 10^{3}$ GPU hours, which means that with similar sample magnitude ( $\sim 70$ ), methods such as bayesian optimization or random search need about $7 \times 10^{4}$ GPU hours (almost infeasible). In contrast, our
+
+| Architecture | Test Error (%) | Params (M) | Search Cost (GPU days) | Search Method |
| ResNet-18 [15] | 3.53 | 11.1 | - | Manual |
| DenseNet [18] | 4.77 | 1.0 | - | Manual |
| SENet [17] | 4.05 | 11.2 | - | Manual |
| NASNet-A [52] | 2.65 | 3.3 | 1800 | RL |
| ENAS [31] | 2.89 | 4.6 | 0.5 | RL |
| Path-level NAS [8] | 3.64 | 3.2 | 8.3 | RL |
| RL+BPE-1 (Ours) | 2.66 ± 0.05 | 2.7 | 0.33 | RL |
| RL+BPE-2 (Ours) | 2.65 ± 0.12 | 2.9 | 2 | RL |
| AmoebaNet-B [34] | 2.55 | 2.8 | 3150 | Evolution |
| EA+BPE-1 (Ours) | 2.68 ± 0.09 | 2.46 | 0.33 | Evolution |
| EA+BPE-2 (Ours) | 2.66 ± 0.07 | 2.87 | 2 | Evolution |
| DARTS [28] | 2.7 ± 0.01 | 3.1 | 1.5 | Gradient-based |
| GDAS [14] | 2.93 ± 0.07 | 3.4 | 0.8 | Gradient-based |
| P-DARTS [11] | 2.75 ± 0.06 | 3.4 | 0.3 | Gradient-based |
| SNAS [43] | 2.85 ± 0.02 | 2.8 | 1.5 | Gradient-based |
| DARTS + BPE-1 (Ours) | 2.89 ± 0.0 | 3.9 | 0.05 | Gradient-based |
| DARTS + BPE-2 (Ours) | 2.72 ± 0.0 | 4.04 | 0.33 | Gradient-based |
| Random Sample 100 | 2.55 | 2.9 | 108 | Random Search |
| Random Sample 100 + BPE-1 (Ours) | 2.68 ± 0.09 | 2.7 | 0.33(337×) | Random Search |
| Random Sample 100 + BPE-2 (Ours) | 2.68 ± 0.05 | 1.9 | 2 (54×) | Random Search |
+
+Table 2. Comparing of test error rates for our discovered architecture, human-designed networks and other NAS architectures on CIFAR-10. For a fair comparison, we select the architectures and results with similar parameters (< 5M) and the same training condition (all the networks are trained with Cutout [13]). Values are $\mu \pm \sigma$ across 4 runs.
+
+method needs only $5.2 \times 10^{3}$ GPU hours. Therefore, we do not compare these methods in our paper.
+
+We first combine BPE with different search strategies including Reinforcement Learning (RL) [21], Evolutionary Algorithm (EA) [2], Random Search (RS) [4] and Different Architecture Search (DARTS) [28]. As shown in Sec. 5.1, we compare with state-of-the-art methods in terms of both effectiveness and efficiency using CIFAR10 [24] and ImageNet [35]. In Sec. 5.2, we investigate the effect of each hyper-parameter in BPE, as well as the efficiency of using Spearman Rank Correlation as the objective function. Although many works [38, 25] pointed out that the one-shot based method [37, 31, 28, 3, 50] could not effectively estimate the performance throughout the entire search space, in Sec. 5.3 we have found that these methods are indeed effective in the local search space, which reasonably explains the reproducibility and effectiveness, i.e., the corresponding algorithms are actually able to find good architectures, and the optimal architectures are quite different in different runs due to the local information.
+
+# 5.1. Comparing with State-of-the-arts
+
+We first search neural architectures by using the found BPE-1 and BPE-2 in Tab. 1, and then evaluate the best architecture with a stacked deeper network. To ensure the stability of the proposed method, we run each experiment 4 times and find that the resulting architectures only show a
+
+slight variance in performance.
+
+# 5.1.1 Experimental Settings
+
+We use the same datasets and evaluation metrics for existing NAS methods [28, 8, 52, 27]. First, most experiments are conducted on CIFAR-10 [23], which has $50\mathrm{K}$ training images and $10\mathrm{K}$ testing images from 10 classes with a resolution $32 \times 32$ . During the architecture search, we randomly select $5\mathrm{K}$ images from the training set as a validation set. To further evaluate the generalization capability, we stack the optimal cell discovered on CIFAR-10 into a deeper network, and then evaluate the classification accuracy on ILSVRC 2012 [35], which consists of 1,000 classes with 1.28M training images and $50\mathrm{K}$ validation images. Here, we consider the mobile setting, where the input image size is $224 \times 224$ and the FLOPs is less than 600M.
+
+In the search process, we directly use the found BPE-1 and BPE-2 in Tab. 1 as the performance estimation with other search algorithms. After finding the optimal architecture in the search space, we validate the final accuracy on a large network of 20 cells is trained for 600 epochs with a batch size of 96 and additional regularization such as cutout [13], which are similar to [28, 52, 31]. When stacking cells to evaluate on ImageNet, we use two initial convolutional layers of stride 2 before stacking 14 cells with the scale reduction at the 1st, 2nd, 6th and 10th cells. The total number
+
+| Model | Top-1 | Params (M) | Search time (GPU days) |
| MobileNetV2 [36] | 72.0 | 3.4 | - |
| ShuffleNetV2 2x (V2) [29] | 73.7 | ~5 | - |
| NASNet-A [52] | 74.0 | 5.3 | 1800 |
| AmoebaNet-A [34] | 74.5 | 5.1 | 3150 |
| MnasNet-92 [40] | 74.8 | 4.4 | - |
| SNAS [43] | 72.7 | 4.3 | 522 |
| DARTS [28] | 73.1 | 4.9 | 4 |
| RL + BPE-1 (Ours) | 74.18 | 5.5 | 0.33 |
| EA + BPE-1 (Ours) | 74.56 | 5.0 | 0.33 |
| RS + BPE-1 (Ours) | 74.2 | 5.5 | 0.33 |
| DARTS [28] + BPE-1 (Ours) | 74.0 | 5.9 | 0.05 |
+
+Table 3. Comparison with the state-of-the-art image classification methods on ImageNet. All the NAS networks in this table are searched on CIFAR10, and are then directly transferred to ImageNet.
+
+of FLOPs is determined by the initial number of channels. The network is trained for 250 epochs with a batch size of 512, a weight decay of $3 \times 10^{-5}$ , and an initial SGD learning rate of 0.1. All the experiments and models are implemented in PyTorch [30].
+
+# 5.1.2 Result on CIFAR10
+
+We compare our method with both manually designed networks and NAS networks. The manually designed networks include ResNet [15], DenseNet [18] and SENet [17]. We evaluate on four categories of NAS methods, i.e., RL methods (NASNet [52], ENAS [31] and Path-level NAS [8]), evolutionary algorithms (AmoebaNet [34]), gradient-based methods (DARTS [28]) and Random Search.
+
+The results for convolutional architectures on CIFAR-10 are presented in Tab. 2. It is worth noting that the found BPE combining with various search algorithms outperform various state-of-the-art search algorithms [52, 28, 33] in accuracy, with much lower computational consumption (only 0.05 GPU days $\ll 3150$ in [34]). We attribute our superior results to the found BPE. Another notable observation from Tab. 2 is that, even with random search in the search space, the test error rate is only $2.44\%$ , which outperforms previous methods in the same search space. Conclusively, with the found BPE, search algorithms can quickly explore the architecture search space and generate a better architecture. We also report the results of hand-crafted networks in Tab. 2. Clearly, our method shows a notable enhancement.
+
+# 5.1.3 Results on ImageNet
+
+We further compare our method under the mobile settings on ImageNet to demonstrate the generalizability. The best architecture on CIFAR-10 is transferred to ImageNet, which
+
+
+Figure 3. The relationship between $r_s$ and performance with random sampled BPEs in $\mathcal{D}$ . The x-axis measures the Spearman Rank Correlation $r_s$ by Eq. 1, and the y-axis measures the real architecture performance found by DARTS+BPE on CIFAR10. The correlation between $r_s$ and performance is 0.65.
+
+follows the same experimental settings in [52, 31, 8]. Results in Tab. 3 show that the best cell architecture on CIFAR10 is transferable to ImageNet. The proposed method achieves comparable accuracy to the state-of-the-art methods [52, 34, 27, 34, 27, 31, 28, 8] while using far less computational resources, e.g., 9, 545 times faster comparing to EA, and 5, 400 times faster comparing to RL.
+
+# 5.2. Deep Analysis in Performance Estimation
+
+We further study the efficiency of using Spearman Rank Correlation $r_s$ as the objective function in Fig. 3. In Fig. 4, we also provide a deep analysis about the importance of every hyper-parameter. One can make full use of this analysis to transfer the found BPEs to other datasets and tasks.
+
+We randomly select 15 hyper-parameter settings in $\Omega$ and apply them on the DARTS [28] search algorithm to find optimal architectures. Fig. 3 illustrates the relationship between $r_s$ and the accuracy of the optimal architecture found by the corresponding setting. The performance is highly correlated to $r_s$ (with a 0.65 correlation), which denotes the efficiency of the proposed objective function in Eq. 1.
+
+After exploring the BPE space by the proposed method, we get a dataset $\mathcal{D}$ w.r.t. each $\Theta_{i}$ and $r_s$ , which is used as the training set to train a random forest regression predictor [16] for each $\Theta_{i}$ . We then report the $r_s$ estimated by the predictor and importance for each hyper-parameter in Fig. 4. As illustrated in Fig. 4, the steepness and importance are highly correlated, i.e., the more important the parameter is, the steeper of the corresponding curve is, vice versa. At the same time, for the two most important parameters (epoch and layer), we get a high $r_s$ with a small range. This means that we only need to carefully finetune these two parameters
+
+
+
+
+
+
+
+
+
+
+Figure 4. The importance (within brackets) and regression predict curves with mean and variance learned by the random forest for each hyper-parameter. Importance is highly correlated to the curve steepnes. For the two most important parameters (epoch and layer), we can get a high $r_s$ within a small range.
+
+
+
+
+
+
+
+ | Epoch |
| 50 | 200 | 400 | 600 |
| Fair | Global rs | 0.10 | -0.06 | 0.13 | -0.03 |
| Local rs | 0.13 | 0.50 | 0.31 | 0.31 |
| Random | Global rs | 0.10 | -0.05 | -0.30 | -0.19 |
| Local rs | -0.14 | -0.52 | 0.61 | -0.01 |
| Random_10 | Global rs | 0.0 | 0.0 | 0.02 | -0.08 |
| Local rs | 0.26 | 0.11 | 0.57 | 0.58 |
+
+Table 4. Comparison of the Global $r_s$ and Local $r_s$ under different training conditions. "Fair" denotes each operation in an edge is trained with exactly the same epoch. "Random" denotes each operation in an edge is trained randomly with different random level. Global $r_s$ and local $r_s$ denote we use the trained model to evaluate the performance estimation globally and locally, respectively.
+
+in a small range when transferring to other datasets.
+
+# 5.3. Understanding One-shot based Methods
+
+Previous works [25, 38] have reported that one-shot based methods such as DARTS do not work well (in some cases even no better than random search). There are two main questions which are not been explained yet: (1) One-shot based methods can not make a good estimate of performance, but they can search for good neural architectures. (2) The instability of one-shot based methods, that is, the found networks are different with different random seeds. With the found BPE, we can effectively investigate every search phase in these methods.
+
+To understand and explain such questions, we first train the same hypergraph with different settings: (1) Fair training, each operation in an edge is trained with exactly the same epoch; (2) Random training, each operation in an edge is trained randomly at different random levels. In Tab. 4, we report the global and local $r_s$ in the case of fair training and random training. The global $r_s$ denotes that we use our
+
+trained hypergraph to get the validation performance for the networks in $\mathcal{G}$ , and then calculate the $r_s$ with $X_f$ . The local $r_s$ is obtained by the following steps: When training the hypergraph, we save the sampled network architectures $\mathcal{G}_t$ and the corresponding validation performance $X_{\mathcal{G}_t}$ at epoch $t$ . The local $r_s$ is then obtained by using the found BPE-2 and Eq. 1 i.e., $r_s(X_{\mathcal{G}_t}, \mathrm{BPE}-2(\mathcal{G}_t))$ . As illustrated in Tab. 4, one-shot based methods have a poor performance estimation in global $r_s$ , which is consistent with previous works [25, 38]. However, these methods have a high local $r_s$ , which means that these methods are essentially using the local information. That is to say, each epoch in the search phase can only perceive and optimize by using local information, which reasonably explains the instability of DARTS.
+
+# 6. Conclusion
+
+In this paper, we present the first systematic analysis of the budgeted performance estimation (BPE) in NAS, and propose a minimum importance pruning (MIP) towards optimal PE. The proposed MIP gradually reduces the number of BPE hyper-parameters, which allocates more computation resources on more important hyper-parameters. The found MIP-BPE is generalized to various search algorithms, including reinforcement learning, random search, evolution algorithm and gradient-based methods. Combining the found BPE with various NAS algorithms, we have reached the state-of-the-art test error $2.66\%$ on CIFAR10 with much fewer search time, which also helps us to better understand the widely-used one-shot based methods.
+
+Acknowledgements. 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] Youhei Akimoto, Shinichi Shirakawa, Nozomu Yoshinari, Kento Uchida, Shota Saito, and Kouhei Nishida. Adaptive stochastic natural gradient method for one-shot neural architecture search. In ICML, 2019. 3
+[2] Thomas Back. Evolutionary algorithms in theory and practice: evolution strategies, evolutionary programming, genetic algorithms. Oxford university press, 1996. 6
+[3] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In ICML, 2018. 6
+[4] James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. JMLR, 2012. 3, 6
+[5] Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv, 2016. 2
+[6] Leo Breiman. Random forests. Machine learning, 2001. 2, 4
+[7] Han Cai, Tianyao Chen, Weinan Zhang, Yong Yu, and Jun Wang. Efficient architecture search by network transformation. In AAAI, 2018. 2
+[8] Han Cai, Jiacheng Yang, Weinan Zhang, Song Han, and Yong Yu. Path-level network transformation for efficient architecture search. arXiv, 2018. 6, 7
+[9] Hanlin Chen, Li'an Zhuo, Baochang Zhang, Xiawu Zheng, Jianzhuang Liu, David Doermann, and Rongrong Ji. Binarized neural architecture search. arXiv preprint arXiv:1911.10862, 2019. 1
+[10] Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In NeurIPS, 2018. 1
+[11] Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. ICCV, 2019. 1, 2, 3, 4, 6
+[12] Hao Cheng, Dongze Lian, Bowen Deng, Shenghua Gao, Tao Tan, and Yanlin Geng. Local to global learning: Gradually adding classes for training deep neural networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1
+[13] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv, 2017. 3, 6
+[14] Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in fourgpu hours. In CVPR, 2019. 6
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 1, 6, 7
+[16] Holger Hoos and Kevin Leyton-Brown. An efficient approach for assessing hyperparameter importance. In ICML, pages 754-762, 2014. 2, 4, 7
+[17] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018. 6, 7
+[18] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. 6, 7
+
+[19] Frank Hutter, Holger H Hoos, and Kevin Leyton-Brown. Sequential model-based optimization for general algorithm configuration. In LION, 2011. 3
+[20] Rongrong Ji, Ke Li, Yan Wang, Xiaoshuai Sun, Feng Guo, Xiaowei Guo, Yongjian Wu, Feiyue Huang, and Jiebo Luo. Semi-supervised adversarial monocular depth estimation. IEEE transactions on pattern analysis and machine intelligence, 2019. 1
+[21] Leslie Pack Kaelbling, Michael L Littman, and Andrew W Moore. Reinforcement learning: A survey. JAIR, 1996. 6
+[22] Aaron Klein, Stefan Falkner, Simon Bartels, Philipp Hennig, and Frank Hutter. Fast bayesian optimization of machine learning hyperparameters on large datasets. arXiv, 2016. 2, 3
+[23] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, 2009. 6
+[24] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, 2009. 6
+[25] Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. arXiv, 2019. 3, 6, 8
+[26] 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. CVPR, 2019. 1
+[27] 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 ECCV, 2018. 6, 7
+[28] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. *ICLR*, 2019. 1, 2, 3, 4, 5, 6, 7
+[29] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In ECCV, 2018. 7
+[30] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. 7
+[31] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. ICML, 2018. 1, 2, 3, 4, 6, 7
+[32] Ilija Radosavovic, Justin Johnson, Saining Xie, Wan-Yen Lo, and Piotr Dólar. On network design spaces for visual recognition. arXiv, 2019. 4
+[33] E Real, A Aggarwal, Y Huang, and QV Le. Aging evolution for image classifier architecture search. In AAAI, 2019. 1, 2, 4, 7
+[34] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. AAAI, 2019. 1, 2, 4, 6, 7
+[35] 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. IJCV, 2015. 6
+
+[36] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *CVPR*, 2018. 7
+[37] Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. In NeurlPS, 2016. 6
+[38] Christian Scioso, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv, 2019. 6, 8
+[39] Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In NeurIPS, pages 2951-2959, 2012. 3
+[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 CVPR, 2019. 7
+[41] Chris Thornton, Frank Hutter, Holger H Hoos, and Kevin Leyton-Brown. Auto-weka: Combined selection and hyperparameter optimization of classification algorithms. In SIGKDD, 2013. 3
+[42] 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. 1
+[43] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. In ICLR, 2019. 6, 7
+[44] 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, 2019. 1, 2, 3, 4
+[45] Arber Zela, Aaron Klein, Stefan Falkner, and Frank Hutter. Towards automated deep learning: Efficient joint neural architecture and hyperparameter search. ICML Workshop, 2018. 3
+[46] Xiaosong Zhang, Fang Wan, Chang Liu, Rongrong Ji, and Qixiang Ye. Freeanchor: Learning to match anchors for visual object detection. In NeurIPS, pages 147-155, 2019. 1
+[47] Xiawu Zheng, Rongrong Ji, Xiaoshuai Sun, Yongjian Wu, Feiyue Huang, and Yanhua Yang. Centralized ranking loss with weakly supervised localization for fine-grained object retrieval. In IJCAI, pages 1226-1233, 2018. 1
+[48] Xiawu Zheng, Rongrong Ji, Xiaoshuai Sun, Baochang Zhang, Yongjian Wu, and Feiyue Huang. Towards optimal fine grained retrieval via decorrelated centralized loss with normalize-scale layer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 9291-9298, 2019. 1
+[49] Xiawu Zheng, Rongrong Ji, Lang Tang, Yan Wan, Baochang Zhang, Yongjian Wu, Yunsheng Wu, and Ling Shao. Dynamic distribution pruning for efficient network architecture search. arXiv, 2019. 1, 2, 3, 4
+[50] Xiawu Zheng, Rongrong Ji, Lang Tang, Baochang Zhang, Jianzhuang Liu, and Qi Tian. Multinomial distribution learning for effective neural architecture search. In ICCV, 2019. 3, 4, 6
+[51] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv, 2016. 1, 2, 4
+
+[52] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018. 1, 2, 3, 4, 6, 7
\ No newline at end of file
diff --git a/rethinkingperformanceestimationinneuralarchitecturesearch/images.zip b/rethinkingperformanceestimationinneuralarchitecturesearch/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..cfd60c1672949602b85fb7622ce97d9e7f65e1d5
--- /dev/null
+++ b/rethinkingperformanceestimationinneuralarchitecturesearch/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a5c13cc3d0cf6f5013872c5b70aff927a2b6ea07d2bf39d78d14be94f6557450
+size 452563
diff --git a/rethinkingperformanceestimationinneuralarchitecturesearch/layout.json b/rethinkingperformanceestimationinneuralarchitecturesearch/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..c4c2b4b4046503d164ed5fa2275162a87de1a4e7
--- /dev/null
+++ b/rethinkingperformanceestimationinneuralarchitecturesearch/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3060c5e259bcbacd35ef5ca0f8c2e24192a8176b9149c52834c365b113745cf1
+size 473709
diff --git a/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_content_list.json b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c5c68aa9bf6ca0edbac167e937dc4f6d91111792
--- /dev/null
+++ b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d4d23f6e7d92389f7ac101741559642f139540f58ff13b3e80fdaa6a0df2f8f
+size 74936
diff --git a/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_model.json b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b76cb4932194b0acf2b23af5be6af8f7f9274849
--- /dev/null
+++ b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b186007704c0fc7c13bdca932f68e0749e5235f62389dbd26ecc8f33bde8d589
+size 90364
diff --git a/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_origin.pdf b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..253b3810b0a3db9f98e78233dd5a4272629d9909
--- /dev/null
+++ b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0027d385a6bbeb6d406574ecc4d9b3c84a0b0743d7151e68affa442fe558e7e3
+size 988212
diff --git a/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/full.md b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..568ab4aad6ee32ca0048a0a8add792b63d22af2c
--- /dev/null
+++ b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/full.md
@@ -0,0 +1,302 @@
+# Rethinking the Route Towards Weakly Supervised Object Localization
+
+Chen-Lin Zhang Yun-Hao Cao Jianxin Wu\*
+
+National Key Laboratory for Novel Software Technology Nanjing University, Nanjing, China
+
+{zhangcl,caoyh}@lamda.nju.edu.cn,wuqx2001@nju.edu.cn
+
+# Abstract
+
+Weakly supervised object localization (WSOL) aims to localize objects with only image-level labels. Previous methods often try to utilize feature maps and classification weights to localize objects using image level annotations indirectly. In this paper, we demonstrate that weakly supervised object localization should be divided into two parts: the class-agnostic object localization and the object classification. For class-agnostic object localization, we should use class-agnostic methods to generate noisy pseudo annotations and then perform bounding box regression on them without class labels. We propose the pseudo supervised object localization (PSOL) method as a new way to solve WSOL. Our PSOL models have good transferability across different datasets without fine-tuning. With the generated pseudo bounding boxes, we achieve $58.00\%$ localization accuracy on ImageNet and $74.97\%$ localization accuracy on CUB-200, which have a large edge over previous models.
+
+# 1. Introduction
+
+Deep convolutional neural networks have achieved enormous success in various computer vision tasks, such as classification, localization and detection. However, current deep learning models need a large number of accurate annotations, including image-level labels, location-level labels (bounding boxes and key points) and pixel-level labels (per pixel class labels for semantic segmentation). Many large-scale datasets are proposed to solve this problem [15, 10, 3]. However, models pre-trained on these large-scale datasets cannot be directly applied to a different task due to the differences between source and target domains.
+
+To relax these restrictions, weakly supervised methods are proposed. Weakly supervised methods try to perform detection, localization and segmentation tasks with only image-level labels, which are relatively easy and cheap to
+
+obtain. Among these tasks, weakly supervised object localization (WSOL) is the most practical task since it only needs to locate the object with a given class label. Most of these WSOL methods try to enhance the localization ability of classification models to conduct WSOL tasks [19, 28, 29, 2, 27] using the class activation map (CAM) [30].
+
+However, in this paper, through ablation studies and experiments, we demonstrate that the localization part of WSOL should be class-agnostic, which is not related to classification labels. Based on these observations, we advocate a paradigm shift which divides WSOL into two independent sub-tasks: the class-agnostic object localization and the object classification. The overall pipeline of our method is in Fig. 1. We name this novel pipeline as Pseudo Supervised Object Localization (PSOL). We first generate pseudo groundtruth bounding boxes based on the class-agnostic method deep descriptor transformation (DDT) [26]. By performing bounding box regression on these generated bounding boxes, our method removes restrictions on most WSOL models, including the restrictions of allowing only one fully connected layer as classification weights [30] and the dilemma between classification and localization [19, 2].
+
+We achieve state-of-the-art performances on ImageNet-1k [15] and CUB-200 [25] combining the results of these two independent sub-tasks, obtaining a large edge over previous WSOL models (especially on CUB-200). With classification results of the recent EfficientNet [22] model, we achieve $58.00\%$ Top-1 localization accuracy on ImageNet-1k, which significantly outperforms previous methods.
+
+We summarize our contributions as follows.
+
+- We show that weakly supervised object localization should be divided into two independent sub-tasks: the class-agnostic object localization and the object classification. We propose PSOL to solve the drawbacks and problems in previous WSOL methods.
+- Though generated bounding boxes are noisy, we argue that we should directly optimize on them without using class labels. With the proposed PSOL, we achieve
+
+
+Figure 1: Overall pipeline of previous WSOL methods (top) and our proposed PSOL (bottom). Previous WSOL methods need the final feature map to generate bounding boxes implicitly. However, PSOL first generates inaccurate bounding boxes using class-agnostic methods, then perform bounding box regression to predict the bounding box explicitly.
+
+58.00% Top-1 localization accuracy on ImageNet-1k and 74.97% Top-1 localization accuracy on CUB-200, which is far beyond previous state-of-the-art.
+
+- Our PSOL method has good localization transferability across different datasets without any fine-tuning, which is significantly better than previous WSOL models.
+
+# 2. Related Works
+
+Convolutional neural networks (CNN), since the success of AlexNet [8], have been widely applied in many areas of computer vision, including object localization and object detection tasks. We will briefly review detection and localization with full supervision and weak supervision in this section.
+
+# 2.1. Fully Supervised Methods
+
+After the success of AlexNet [8], researchers tried to adopt CNN to conduct object localization and detection. The pioneering work OverFeat [17] tried to use sliding window and multi-scale techniques to conduct classification, localization and detection within a single network. VGG-Net [18] adds a per-class regression and model ensemble to enhance the prediction result of localization.
+
+Object detection is another task that can generate bounding boxes and labels simultaneously. R-CNN [5] and FastRCNN [4] use the selective search [24] to generate candidate regions and then use CNN to classify them. FasterRCNN [14] proposes a two-stage network: the region
+
+proposal network (RPN) for generating regions of interest (ROI), then the R-CNN module to classify them and localize the object in the region. These popular two-stage detectors are widely used in detection tasks. YOLO [13] and SSD [11] are one stage detectors with carefully designed network structures and anchors. Recently, some anchor-free detectors are proposed to mitigate the anchor problem in common detectors like CornerNet [9] and CenterNet [31].
+
+However, all these methods need massive, detailed and accurate annotations. Annotations in real-world tasks are expensive and sometimes even hard to get. So we need some other methods to perform object localization tasks without requiring many exact labels.
+
+# 2.2. Weakly Supervised Methods
+
+Weakly supervised object localization (WSOL) learns to localize the object with only image-level labels. It is more attractive since image-level labels are much easier and cheaper to obtain than object level labels. Weakly supervised detection (WSOD) tries to give the object location and category simultaneously when training images only have image-level labels.
+
+WSOL has the assumption that there is only one object of the specific category in the whole image. Based on this assumption, many methods are proposed to push the limit of WSOL. [30] first generates class activation maps with the global average pooling layer and the final fully connected layer (weights of the classifier). Grad-CAM [16] uses gradients rather than output features to generate more accurate class response maps. Besides these methods which focus
+
+on improving class response maps, some other methods try to make the classification model more suitable for localization tasks. HaS [19] tries to randomly erase some regions in the input image to force the network to be meticulous for WSOL. ACoL [28] uses two parallel classifiers with dynamic erasing and adversarial learning to discover complementary object regions more effectively. SPG [29] generates Self-Produced Guidance masks to localize the whole object. ADL [2] proposes the importance map and the drop mask, with a random selection mechanism to achieve a balance between classification and localization.
+
+WSOD does not have the one object in one class restriction. However, WSOD often needs methods to generate region proposals like selective search [24] and edge boxes [32], which will cost much computation resources and time. Furthermore, current WSOD detectors use high resolution inputs to output the bounding boxes, leading to heavy computational burdens. Thus, most WSOD methods are difficult to be applied to large-scale datasets.
+
+# 3. Methodology
+
+In this section, we will mainly discuss the drawbacks of the current WSOL pipeline and propose our pseudo supervised object localization (PSOL).
+
+# 3.1. A paradigm shift from WSOL to PSOL
+
+Current WSOL methods can generate the bounding box with a given class label. However, the community have identified serious drawbacks of this pipeline.
+
+- The learning objective is indirect, which will hurt the model's performance on localization tasks. HaS [19] and ADL [2] show that localization is not compatible with classification when only having a single CNN model. Localization tries to localize the whole object while classification tries to classify the object. The classification model often tries to localize only the most discriminative part of the object in an image.
+- Offline CAM [30] has the thresholding parameter and needs to store the three-dimensional feature map for further computation. The thresholding value is tricky and hard to determine.
+
+Those drawbacks make WSOL hard to apply to real-world applications.
+
+Encouraged by the class-agnostic process that generates regions of interest (ROI) in selective search [24] and Faster-RCNN [14], we divide WSOL into two sub-tasks: the class-agnostic object localization and the object classification. Based on these two sub-tasks, we propose our PSOL method. PSOL directly optimizes the localization model on explicitly generated pseudo ground-truth bounding boxes. Hence, it removes the restrictions and drawbacks illustrated
+
+# Algorithm 1 Pseudo Supervised Object Localization
+
+Input: Training images $I_{tr}$ with class label $L_{tr}$
+
+Output: Predicted bounding boxes $b_{te}$ and class labels $L_{te}$ on testing images $I_{te}$
+
+1: Generate pseudo bounding boxes $\tilde{b}_{tr}$ on $I_{tr}$
+2: Train a localization CNN $F_{loc}$ on $I_{tr}$ with $\dot{b}_{tr}$
+3: Train a classification CNN $F_{cls}$ on $I_{tr}$ with $L_{tr}$
+4: Use $F_{loc}$ to predict $b_{te}$ on $I_{te}$
+5: Use $F_{cls}$ to predict $L_{te}$ on $I_{te}$
+6: Return: $b_{te}$ , $L_{te}$
+
+in previous WSOL methods, and it is a paradigm shift for WSOL.
+
+# 3.2. The PSOL Method
+
+The general framework of our PSOL is in Algorithm 1. We will introduce our PSOL step by step. We will discuss the details of generating pseudo groundtruth bounding boxes in Sec 3.2.1, then the localization method used in our model in Sec 3.2.2. For the classification method, we use pre-trained models in the computer vision community directly.
+
+# 3.2.1 Bounding Box Generation
+
+The critical difference between WSOL and our PSOL is the generation of pseudo bounding boxes for training images. Detection is a natural choice for this task since detection models can provide bounding boxes and classes directly. However, the largest dataset in detection only has 80 classes [10], and it cannot provide a general object localizer for datasets with many classes such as ImageNet-1k. Furthermore, current detectors like Faster-RCNN [14] need substantial computation resources and large input image sizes (like shorter side=600 when testing). These issues prevent detection models from being applied to generate bounding boxes on large-scale datasets.
+
+Without detection models, we can try some localization methods to output bounding boxes for training images directly. Some weakly and co-supervised methods can generate noisy bounding boxes, and we will give a brief introduction to them.
+
+WSOL methods. Existing WSOL methods often follow this pipeline to generate the bounding box for an image. First the image $I$ is feed into the network $F$ , then the final feature map (often the output of the last convolutional layer) $G$ is generated: $G \in \mathbb{R}^{h \times w \times d} = F(I)$ , where $h, w, d$ are the height, width and depth of the final feature map. Then, after global average pooling and the final fully connected layer, the label $L_{pred}$ is produced. According to the predicted label $L_{pred}$ or the ground truth label $L_{gt}$ , we can get the class specific weights in the final fully connected layer
+
+$W \in \mathbb{R}^d$ . Then each spatial location of $G$ is channel-wise weighed and summed to get the final heat map $H$ for the specific class: $H_{i,j} = \sum_{k=1}^{d} G_{i,j,k} W_k$ . Finally, $H$ is upsampled to the original input size, and thresholding is applied to generate the final bounding box.
+
+DDT recap. Some co-supervised methods can also have good performances on localization tasks. DDT has good performance and little computational resource requirement among these co-supervised methods. So we use DDT [26] as an example. Here is a brief recap of DDT. Given a set of images $S$ with $n$ images, where each image $I \in S$ has the same label, or contains the same object in the image. With a pre-trained model $F$ , the final feature map is also generated: $G \in \mathbb{R}^{h \times w \times d} = \mathbb{R}^{hw \times d} = F(I)$ . Then these feature maps are gathered together into a large feature set: $G_{all} \in \mathbb{R}^{n \times hw \times d} = \mathbb{R}^{nhw \times d}$ . Principal component analysis (PCA) [12] is applied along the depth dimension. After the PCA process, we can get the eigenvector $P$ with the largest eigenvalue. Then, each spatial location of $G$ is channel-wise weighed and summed to get the final heat map $H: H_{i,j} = \sum_{k=1}^{d} G_{i,j,k} P_k$ . Then $H$ is upsampled to the original input size. Zero thresholding and max connected component analysis is applied to generate the final bounding box.
+
+We will generate pseudo bounding boxes using both WSOL methods and the DDT method, and evaluate their suitability.
+
+# 3.2.2 Localization Methods
+
+After generating bounding boxes, we have (pseudo) bounding box annotations for each training image. Then it is natural to perform object localization with these generate boxes. As shown before, detection models are too heavy to handle this task. Thus, it is natural to perform bounding box regression. Previous fully supervised works [18, 17] suggest two methods of bounding box regression: single-class regression (SCR) and per-class regression (PCR). PCR is strongly related to the class label. Since we advocate that localization is a class-agnostic rather than a class-aware task, we choose SCR for all our experiments.
+
+We follow previous work to perform bounding box regression [18]. Suppose the bounding box is in the $x, y, w, h$ format, where $x, y$ are the top-left coordinates of the bounding box and $w, h$ are the width and height of the bounding box, respectively. We first transfer $x, y, w, h$ into $x^{*}, y^{*}, w^{*}, h^{*}$ where $x^{*} = \frac{x}{w_{i}}, y^{*} = \frac{y}{h_{i}}, w^{*} = \frac{w}{w_{i}}, h^{*} = \frac{h}{h_{i}}$ , and $w_{i}$ and $h_{i}$ are the width and height of the input image, respectively. We use a sub-network with two fully connected layers and corresponding ReLU layers for regression. Finally, the outputs are sigmoid activated. We use the mean squared error loss ( $\ell_{2}$ loss) for the regression task.
+
+Step 2 and step 3 in Algorithm 1 may be combined, i.e.,
+
+$F_{cls}$ and $F_{loc}$ can be integrated into a single model, which is jointly trained with classification labels and generated bounding boxes. However, we will show empirically that localization and classification models should be separated.
+
+# 4. Experiments
+
+# 4.1. Experimental Setups
+
+Datasets. We evaluate our proposed method on two common WSOL datasets: ImageNet-1k [15] and CUB200 [25]. The ImageNet-1k dataset is a large dataset with 1000 classes, containing 1,281,197 training images and 50,000 validation images. For training images, bounding box annotations are incomplete, and bounding box labels are complete for validation images. In this paper, we do not use any accurate training bounding box annotations. In our experiments, we generate pseudo bounding boxes on training images by previous methods. The detailed ablation studies will be in Sec 5.1. We train all models on the generated bounding box annotations and classification labels and test them on the validation dataset.
+
+For the CUB-200 dataset, it contains 200 categories of birds with 5,994 training images and 5,794 testing images. Each image in the dataset has an accurate bounding box annotation. We follow the strategies on ImageNet-1k to train and test models.
+
+Metrics. We use three metrics for evaluating our models: Top-1/Top-5 localization accuracy (Top-1/Top-5 Loc) and localization accuracy with known ground truth class (GT-Known Loc). They are following previous state-of-the-art methods [30, 2]: GT-Known Loc is correct when given the ground truth class to the model, the intersection over union (IoU) between the ground truth bounding box and the predicted box is $50\%$ or more. Top-1 Loc is correct when the Top-1 classification result and GT-Known Loc are both correct. Top-5 Loc is correct when given the Top-5 predictions of groundtruth labels and bounding boxes, there is one prediction which the classification result and localization result are both correct.
+
+Base Models. We prepare several baseline models for evaluating our method on localization tasks: VGG16 [18], InceptionV3 [21], ResNet50 [6] and DenseNet161 [7]. Previous methods try to enlarge the spatial resolution of the feature map [28, 29, 2], we do not use this technology in our PSOL models. Previous WSOL methods need the classification weights to turn a 3D feature map into a 2D spatial heat map. However, in PSOL, we do not need the feature map for localization, our model will directly output the bounding box for object localization. For a fair comparison, we modified VGG16 into two versions: VGG-GAP and VGG16. VGG-GAP replaces all fully connected layers in VGG16 with GAP and a single fully connected layer, and VGG16 keeps the original structures in VGG16. For
+
+other models, we keep the original structure of each model. For regression, we use a two-layer fully connected network with corresponding ReLU layers to replace the last layer in original networks, as illustrated in Sec 3.2.2.
+
+Joint and Separate Optimization In the previous section, we discussed the problem of joint optimization of classification and localization tasks. For ablating this issue, we prepare several models for each base model. For joint optimization models, we add a new bounding box regression branch to the model (-Joint models), and then train this model with both generated bounding boxes and class labels simultaneously. For separate optimization models, we replace the classification part with the regression part (-Sep models), then train these two models separately, i.e., localization models are trained with only generated bounding boxes while classification models are trained with only class labels. The hyperparameters are kept same for all models.
+
+# 4.2. Implementation Details
+
+We use the PyTorch framework with TitanX Pascal GPUs support. For all models, we use pre-trained classification weights on ImageNet-1k and fine-tune on target localization and classification tasks.
+
+For experiments on ImageNet-1k, the hyperparameters are set the same for all models: batch size 256, 0.0005 weight decay and 0.9 momentum. We will fine-tune all models with a start learning rate of 0.001. Added components (like the regression sub-network) will have a larger learning rates due to the random initialization. We train 6 epochs on ImageNet and 30 epochs on CUB-200. For localization only tasks, we keep the learning rate fixed among all epochs. The reason is that DDT generated bounding boxes are noisy, which contain many inaccurate or even totally wrong bounding boxes. The conclusion in [23] shows that for noisy data, we should retain large learning rates. For classification related tasks (including single classification and joint classification and localization tasks), we divide the learning rate by 10 every 2/10 epochs on ImageNet/CUB-200.
+
+For testing models, we use ten crop augmentations on ImageNet to output results of the final classification following [28] and [29] on ImageNet and single crop classification results on CUB200, and use single image inputs for all our localization results. We use the center crop techniques to get the image input, e.g., resize to $256 \times 256$ then center crop to $224 \times 224$ for most models except InceptionV3 (resize to $320 \times 320$ then center crop to $299 \times 299$ ), following the setup in [2, 27]. For state-of-the-art classification models, we also follow the input size in their paper, e.g., 600 for EfficientNet-B7.
+
+Previous WSOL methods can provide multiple boxes for a single image with different labels. However, our SCR model can only provide one bounding box output for
+
+Table 1: The GT-Known Loc accuracy on the ImageNet-1k validation dataset of various weakly and co-supervised localization (DDT) methods.
+
+| Model | ImageNet-1k | CUB-200 |
| VGG16-CAM [30] | 59.00 | 57.96 |
| VGG16-ACoL [28] | 62.96 | 59.30 |
| SPG [29] | 64.69 | 60.50 |
| DDT-ResNet50 [26] | 59.92 | 72.39 |
| DDT-VGG16 [26] | 61.41 | 84.55 |
| DDT-InceptionV3 [26] | 51.87 | 51.80 |
| DDT-DenseNet161 [26] | 61.92 | 78.09 |
+
+each image. Thus, we combine the output bounding box with Top-1/Top-5 classification outputs of baseline models $(-Sep$ models) or with outputs of the classification branch $(-Joint$ models) to get the final output to evaluate on test images.
+
+For experiments on CUB-200, we change the batch size from 256 to 64, and keep other hyperparameters the same as ImageNet-1k.
+
+# 5. Results and Analyses
+
+In this section, we will provide empirical results, and perform detailed analyses on them.
+
+# 5.1. Ablation Studies on How to Generate Pseudo Bounding Boxes
+
+Previous WSOL methods can generate bounding boxes with given ground truth labels. Some co-localization methods can also provide bounding boxes with a given class label. Since some annotations are missing in ImageNet-1k training images, we test these methods on the validation/test set of ImageNet-1k and CUB-200 to choose a better method to generate pseudo bounding boxes for PSOL. For the DDT method, we first resize the training images to the resolution size of $448 \times 448$ , then perform DDT on training images. According to the statistics collected on training images, we generate bounding boxes on test images with the correct class label. For other WSOL methods, we follow original instructions in their papers and use pre-trained models to generate bounding boxes on validation/test images with the correct class label.
+
+We list the GT-Known Loc of DDT and weakly supervised localization methods in Table 1. As shown in Table 1, DDT achieves comparable results with WSOL methods on ImageNet-1k, but achieves better performance than all WSOL methods on CUB-200. DDT results on CUB-200 indicate that object localization should not be related to classification labels. Furthermore, these WSOL methods need large computational resources, e.g., storing the feature map of each image, then perform off-line CAM operation to
+
+Table 2: Empirical localization accuracy results on CUB-200 and ImageNet-1k. The first column of the paper shows the model name, and the second column shows the backbone network for each model. Parameter number and FLOPs are shown in the third and fourth column. Then Top-1/Top-5 Loc accuracy of CUB-200 and ImageNet-1k are shown in the next four columns. The last column illustrates the GT-Known Loc accuracy on ImageNet-1k. For separate models like DDT and our -Sep models, we combine their localization results with classification results of baseline models. For FLOPs calculation, we only calculate convolutional operations as FLOPs and using networks on ImageNet as counting examples. Results with bold are best among the same backbone networks.
+
+| Model | Backbone | Parameters | FLOPs | CUB-200 | ImageNet-1k |
| Top-1 Loc | Top-5 Loc | Top-1 Loc | Top-5 Loc | GT-Known Loc |
| VGG16-CAM [30] | VGG-GAP | 14.82M | 15.35G | 36.13 | - | 42.80 | 54.86 | 59.00 |
| VGG16-ACoL [28] | VGG-GAP | 45.08M | 43.32G | 45.92 | 56.51 | 45.83 | 59.43 | 62.96 |
| ADL [2] | VGG-GAP | 14.82M | 15.35G | 52.36 | - | 44.92 | - | - |
| VGG16-Grad-CAM [16] | VGG16 | 138.36M | 15.42G | - | - | 43.49 | 53.59 | - |
| CutMix [27] | VGG-GAP | 138.36M | 15.35G | 52.53 | - | 43.45 | - | - |
| DDT-VGG16 [26] | VGG16 | 138.36M | 15.42G | 62.30 | 78.15 | 47.31 | 58.23 | 61.41 |
| PSOL-VGG16-Sep | VGG16 | 274.72M | 30.83G | 66.30 | 84.05 | 50.89 | 60.90 | 64.03 |
| PSOL-VGG16-Joint | VGG16 | 140.46M | 15.42G | 60.07 | 75.35 | 48.83 | 59.00 | 62.1 |
| PSOL-VGG-GAP-Sep | VGG-GAP | 29.64M | 30.70G | 59.29 | 74.88 | 48.36 | 58.75 | 63.72 |
| PSOL-VGG-GAP-Joint | VGG-GAP | 15.08M | 15.35G | 58.39 | 72.64 | 47.37 | 58.41 | 62.25 |
| SPG [29] | InceptionV3 | 38.45M | 66.59G | 46.64 | 57.72 | 48.60 | 60.00 | 64.69 |
| ADL [2] | InceptionV3 | 38.45M | 66.59G | 53.04 | - | 48.71 | - | - |
| PSOL-InceptionV3-Sep | InceptionV3 | 53.32M | 11.42G | 65.51 | 83.44 | 54.82 | 63.25 | 65.21 |
| PSOL-InceptionV3-Joint | InceptionV3 | 29.21M | 5.71G | 60.32 | 78.98 | 52.76 | 61.10 | 62.83 |
| ResNet50-CAM [30] | ResNet50 | 25.56M | 4.10G | 29.58 | 37.25 | 38.99 | 49.47 | 51.86 |
| ADL [2] | ResNet50-SE | 28.09M | 6.10G | 62.29 | - | 48.53 | - | - |
| CutMix [27] | ResNet50 | 26.61M | 4.10G | 54.81 | - | 47.25 | - | - |
| PSOL-ResNet50-Sep | ResNet50 | 50.12M | 8.18G | 70.68 | 86.64 | 53.98 | 63.08 | 65.44 |
| PSOL-ResNet50-Joint | ResNet50 | 26.61M | 4.10G | 68.17 | 83.69 | 52.82 | 62.00 | 64.30 |
| DenseNet161-CAM | DenseNet161 | 29.81M | 7.80G | 29.81 | 39.85 | 39.61 | 50.40 | 52.54 |
| PSOL-DenseNet161-Sep | DenseNet161 | 56.29M | 15.46G | 74.97 | 89.12 | 55.31 | 64.18 | 66.28 |
| PSOL-DenseNet161-Joint | DenseNet161 | 29.81M | 7.80G | 74.24 | 87.03 | 54.48 | 63.41 | 65.39 |
+
+get the final bounding boxes. Compared to these methods, DDT has little computation requirements and achieves comparable results. For the base model choice of DDT, though DDT-DenseNet161 has higher accuracy than DDT-VGG16 on ImageNet-1k, it runs much slower due to the dense connections and has lower accuracy than DDT-VGG16 on CUB-200. Based on these observations, we choose DDT with VGG16 to generate our bounding boxes on training images in PSOL.
+
+# 5.2. Comparison with State-of-the-art Methods
+
+In this section, we will compare our PSOL models with state-of-the-art WSOL methods: CAM [30], HaS [19], ACoL [28], SPG [29] and ADL [2] on CUB-200 and ImageNet-1k.
+
+We list experimental results in Table 2. Furthermore, we visualize bounding boxes generated by CAM [30], DDT [26] and our methods in Fig. 2. According to these results, we have the following findings.
+
+- Without any training, DDT already performs well on both CUB-200 and ImageNet. DDT-VGG16 achieves $47.31\%$ Top-1 Loc accuracy, which has a $2\sim 3\%$ edge over WSOL models based on VGG16. Since DDT is a class-agnostic method, it suggests that WSOL should be divided into two independent sub-tasks: class-agnostic object localization and object classification.
+- All PSOL models with separate training perform better than PSOL models with joint training. In all five baseline models, -Sep models consistently perform better than -Joint models by large margins. These results indicate that learning with joint classification and localization is not suitable.
+- All our PSOL models enjoy a large edge (mostly $>5\%$ ) on CUB-200 compared with state-of-the-art WSOL methods, including the DDT-VGG16 method. CUB-200 is a fine-grained dataset which contains many categories of birds. The within-class varia
+
+
+CANN
+
+
+
+
+
+
+
+
+(a) CUB-200-2011
+
+
+Figure 2: Comparison of our methods with CAM and DDT. Please note that in CAM figures, yellow boxes are CAM predicted boxes and red boxes are groundtruth boxes. In figures of our methods, blue boxes are DDT generated boxes, green boxes are predicted boxes by our regression model and red boxes are groundtruth boxes. We use the DenseNet161-Sep model to output DDT and predict boxes. This figure is best viewed in color and zoomed in.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(b) ImageNet-1k
+
+
+
+
+
+tion is much larger than the between-class variation in most fine-grained datasets [25]. The exact label may not help the process of localization. Hence, the colocalization method DDT will perform better than previous WSOL methods.
+
+- CNN has the ability to tolerate some incorrect annotations, and retain high accuracy on validation sets. For all separate localization models, the GT-Known Loc is higher than DDT-VGG16. This phenomenon indicates that CNN can tolerate some annotation errors and learn robust patterns from noisy data.
+- Some restrictions and rules-of-thumb in WSOL do not carry over to PSOL. In previous WSOL papers, only one final fully connected layer is allowed, and large spatial size of the output feature map is recommended. Many methods try to remove the stride of the last downsample convolution layer, which will result in large FLOPs (such as SPG and VGG16-ACoL). Besides this, three fully connected layers in VGG16 are all removed, which will directly affect the accuracy. However, in our experiments, VGG-Full performs significantly better than VGG-GAP. Since CAM requires GAP and only one FC layer, when this restriction is removed, VGG16 can get better performance. Another restriction is the inference path of the network. WSOL needs the output of the last convolutional layer in the model, and often uses simple forward networks (VGG16, GoogLeNet, and InceptionV3). Complex network structures like DenseNet are not recommended and do not perform well in the WSOL problem [30]. As we show in Table 2, CAM achieves poor performance with DenseNet161. DenseNet will use features of every block, not just the last feature to conduct classification. Thus, the semantic meaning of the last feature may not as clear as the last feature of
+
+sequential networks like ResNet and VGG. However, PSOL-DenseNet models are directly trained on noisy bounding boxes, which can avoid this problem. Moreover, DenseNet161 achieves the best performance.
+
+# 5.3. Transfer Ability on Localization
+
+In this section, we will discuss the transferability of different localization models.
+
+Previous weakly supervised localization models need the exact label to generate bounding boxes, regardless of the correctness of the label. However, our proposed method does not need the label and directly generate the bounding box. So we are interested in that: Is single object localization task transferable? Does the model trained directly on object localization tasks like trained on image recognition tasks, have good generalization ability?
+
+We perform the following experiment. We take object localization models trained on ImageNet-1k, then predict on CUB-200 test images directly, i.e., without any training or fine-tuning process. We add previous WSOL methods for a fair comparison. Since they need exact labels, we fine-tune all these models. For all models marked with *, they are only fine-tuned with classification parts (the last fully connected layer), i.e., features learned on ImageNet-1k are directly transferred to CUB-200. For models marked without *, they are fine-tuned on CUB-200 with all layers. We take our VGG-GAP-Sep model for fair comparison and DenseNet161-Sep model for better results. Results are in Table 3.
+
+It is surprising that without any supervision, PSOL object localization models can transfer well from ImageNet-1k to CUB-200, which performs significantly better than previous WSOL methods, including models which only fine-tune the classification weight (models marked with $*$ ), and models which fine-tune the whole weights. It further indicates that objection localization is not dependent on classifica
+
+Table 3: Transfer results of our models on CUB-200 and ImageNet-1k. For a fair comparison, we add VGG-GAP with CAM, VGG16-ACoL [28] and SPG [29] for transfer experiments. VGG-GAP is fine-tuned with all layers while VGG-GAP* only fine-tunes the final fully connected layer. Please note that PSOL models trained on ImageNet-1k do not have any training or fine-tuning process on CUB-200.
+
+| Model | Trained | Target | GT-Known Loc |
| VGG-GAP + CAM | CUB-200 | CUB-200 | 57.96 |
| VGG-GAP* + CAM | ImageNet | CUB-200 | 57.53 |
| VGG16-ACoL + CAM | CUB-200 | CUB-200 | 59.30 |
| VGG16-ACoL* + CAM | ImageNet | CUB-200 | 58.70 |
| SPG + CAM | CUB-200 | CUB-200 | 60.50 |
| SPG* + CAM | ImageNet | CUB-200 | 59.70 |
| PSOL-VGG-GAP-Sep | CUB-200 | CUB-200 | 80.45 |
| PSOL-VGG-GAP-Sep | ImageNet | CUB-200 | 89.11 |
| PSOL-DenseNet161-Sep | CUB-200 | CUB-200 | 92.54 |
| PSOL-DenseNet161-Sep | ImageNet | CUB-200 | 92.07 |
+
+Table 4: Top-1 and Top-5 Loc results by combining localization of our models with more state-of-the-art classification models on ImageNet-1k.
+
+| Model | Top-1 | Top-5 |
| VGG16-ACoL+DPN131 | 53.94 | 61.15 |
| VGG16-ACoL+DPN-ensemble | 54.86 | 61.45 |
| SPG + DPN131 | 55.19 | 62.76 |
| SPG + DPN-ensemble | 56.17 | 63.22 |
| PSOL-InceptionV3-Sep + DPN131 | 55.72 | 63.64 |
| PSOL-DenseNet161-Sep + DPN131 | 56.59 | 64.63 |
| PSOL-InceptionV3-Sep + EfficientNet-B7 | 57.25 | 64.04 |
| PSOL-DenseNet161-Sep + EfficientNet-B7 | 58.00 | 65.02 |
+
+tion, and it is inessential to perform object localization with the class label. Furthermore, it proves the advantage of our PSOL method.
+
+# 5.4. Combining with State-of-the-art Classification
+
+Previous methods try to combine localization outputs with state-of-the-art classification outputs to achieve better localization results. SPG [29] and ACoL [28] combine with DPN networks including DPN-98, DPN-131 and DPN-ensemble [1]. For a fair comparison, we also combine other models' (InceptionV3 and DenseNet161) results with DPN-131. Moreover, EfficientNet [22] achieves better results on ImageNet-1k recently. We combine our localization outputs with EfficientNet-B7's classification outputs. Results are in Table 4.
+
+From the table we can see that our model achieves better localization accuracy on ImageNet-1k compared with SPG [29] and ACoL [28] when combining the same classification results from DPN131 [1]. Furthermore, when combining with EfficientNet-B7 [22], we can achieve $58.00\%$
+
+Table 5: Compare our method with state-of-the-art fully supervised methods on ImageNet-1k validation datasets.
+
+| Model | supervision | Top-5 Loc |
| GoogLeNet-GAP [30] | weak | 57.1 |
| GoogLeNet-GAP (heuristics) [30] | weak | 62.9 |
| VGG16-Sep | weak | 60.9 |
| DenseNet161-Sep | weak | 64.2 |
| GoogLeNet [20] | full | 73.3 |
| OverFeat [17] | full | 70.1 |
| AlexNet [8] | full | 65.8 |
| VGG16 [18] | full | 70.5 |
| VGGNet-ensemble [18] | full | 73.1 |
| ResNet + Faster-RCNN-ensemble [14] | full | 90.0 |
+
+Top-1 localization accuracy.
+
+# 5.5. Comparison with fully supervised methods
+
+We also compare our PSOL with fully supervised localization methods on ImageNet-1k. Fully supervised methods use training images with accurate bounding box annotations in ImageNet-1k to train their models. Results are in Table 5.
+
+With the bounding box regression sub-network, our DenseNet161-Sep model can roughly match fully supervised AlexNet with Top-5 Loc accuracy. However, our performances are still worse than fully supervised OverFeat, GoogLeNet and VGGNet. It is noticeable that ResNet + Faster-RCNN-ensemble [14] achieves the best Top-5 Loc accuracy. They transfer region proposal networks trained on ILSVRC detection track, which has 200 classes of fully labeled images, to the 1000-class localization tasks directly. The region proposal network shows good generalization ability among different classes without fine-tuning, which indicates that localization is separated with classification.
+
+# 6. Discussions and Conclusions
+
+In this paper, we proposed the pseudo supervised object localization (PSOL) to solve the drawbacks in previous weakly supervised object localization methods. Various experiments show that our methods obtain a significant edge over previous methods. Furthermore, our PSOL methods have good transfer ability across different datasets without any training or fine-tuning.
+
+For future works, we will try to dive deep into the joint classification and localization problem: We will try to integrate both tasks into a single CNN model with less localization accuracy drop. Another direction is trying to improve the quality of generating bounding boxes with class-agnostic methods. Finally, novel network structures or algorithms on localization problems should be found, which should prevent the high input resolution and computational resources in the current detection framework to apply to large-scale datasets.
+
+# References
+
+[1] Yunpeng Chen, Jianan Li, Huaxin Xiao, Xiaojie Jin, Shuicheng Yan, and Jiashi Feng. Dual path networks. In NIPS, pages 4467-4475, 2017. 8
+[2] Junsuk Choe and Hyunjung Shim. Attention-based dropout layer for weakly supervised object localization. In CVPR, pages 2219-2228, 2019. 1, 3, 4, 5, 6
+[3] 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. 1
+[4] Ross Girshick. Fast R-CNN. In ICCV, pages 1440-1448, 2015. 2
+[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. 2
+[6] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 4
+[7] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, pages 4700-4708, 2017. 4
+[8] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, pages 1097-1105, 2012. 2, 8
+[9] Hei Law and Jia Deng. CornerNet: Detecting objects as paired keypoints. In ECCV, volume 11218 of LNCS, pages 734-750, 2018. 2
+[10] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In ECCV, volume 8693 of LNCS, pages 740-755, 2014. 1, 3
+[11] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. SSD: Single shot multibox detector. In ECCV, volume 9905 of LNCS, pages 21-37, 2016. 2
+[12] Karl Pearson. On lines and planes of closest fit to systems of points in space. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 2(11):559-572, 1901. 4
+[13] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, pages 779-788, 2016. 2
+[14] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NIPS, pages 91-99, 2015. 2, 3, 8
+[15] 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, 4
+[16] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra.
+
+Grad-CAM: Visual explanations from deep networks via gradient-based localization. In ICCV, pages 618-626, 2017. 2, 6
+[17] Pierre Sermanet, David Eigen, Xiang Zhang, Michael Mathieu, Rob Fergus, and Yann LeCun. OverFeat: Integrated recognition, localization and detection using convolutional networks. In ICLR, pages 1-15, 2014. 2, 4, 8
+[18] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, pages 1-14, 2015. 2, 4, 8
+[19] Krishna Kumar Singh and Yong Jae Lee. Hide-and-seek: Forcing a network to be meticulous for weakly-supervised object and action localization. In ICCV, pages 3544-3553, 2017. 1, 3, 6
+[20] 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, pages 1-9, 2015. 8
+[21] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the Inception architecture for computer vision. In CVPR, pages 2818-2826, 2016. 4
+[22] Mingxing Tan and Quoc Le. EfficientNet: Rethinking model scaling for convolutional neural networks. In ICML, pages 6105-6114, 2019. 1, 8
+[23] Daiki Tanaka, Daiki Ikami, Toshihiko Yamasaki, and Kiyoharu Aizawa. Joint optimization framework for learning with noisy labels. In CVPR, pages 5552-5560, 2018. 5
+[24] Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. IJCV, 104(2):154-171, 2013. 2, 3
+[25] 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. 1, 4, 7
+[26] Xiu-Shen Wei, Chen-Lin Zhang, Jianxin Wu, Chunhua Shen, and Zhi-Hua Zhou. Unsupervised object discovery and co-localization by deep descriptor transformation. Pattern Recognition, 88:113-126, 2019. 1, 4, 5, 6
+[27] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. CutMix: Regularization strategy to train strong classifiers with localizable features. In ICCV, page in press, 2019. 1, 5, 6
+[28] Xiaolin Zhang, Yunchao Wei, Jiashi Feng, Yi Yang, and Thomas S Huang. Adversarial complementary learning for weakly supervised object localization. In CVPR, pages 1325-1334, 2018. 1, 3, 4, 5, 6, 8
+[29] Xiaolin Zhang, Yunchao Wei, Guoliang Kang, Yi Yang, and Thomas Huang. Self-produced guidance for weakly-supervised object localization. In ECCV, volume 11216 of LNCS, pages 610-625, 2018. 1, 3, 4, 5, 6, 8
+[30] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, pages 2921-2929, 2016. 1, 2, 3, 4, 5, 6, 7, 8
+[31] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019. 2
+
+[32] C Lawrence Zitnick and Piotr Dólar. Edge boxes: Locating object proposals from edges. In ECCV, volume 8693 of LNCS, pages 391-405, 2014. 3
\ No newline at end of file
diff --git a/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/images.zip b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6e6a5be3eb56ac76098c56836d48e0b9412361ea
--- /dev/null
+++ b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8868000de04bd04cab4383044c7e31d9562430714b7fa0cd5439b2ba7f2214e7
+size 575436
diff --git a/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/layout.json b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a3857ded8cfd262bafad92c1e7c231a0a5cb5925
--- /dev/null
+++ b/rethinkingtheroutetowardsweaklysupervisedobjectlocalization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fede1265902256c53f4a11699ec39a9737e50cbe063877b79670c817d241f326
+size 351773
diff --git a/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_content_list.json b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b38c4c26cab66e00a108061e40a3f6fc01c84922
--- /dev/null
+++ b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1324c5ffd3f5211020c89113d3832d847f7312b12fdfe58f8776fa7a705d8e81
+size 80171
diff --git a/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_model.json b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..35020ca7c2e2b51589adc3cafeb84deee10f1782
--- /dev/null
+++ b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7a35577749fff34726b1ee18ebda58e91066ae6c047ab42e9421bc8e4bebe01c
+size 103107
diff --git a/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_origin.pdf b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..37bdfe738cd417af14aab16eb15c05e31a5f4c78
--- /dev/null
+++ b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e027038d3e9395336999e6a282b681c3b022925c20a055a363d5085c15c70caa
+size 896264
diff --git a/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/full.md b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..903f595feeac69fb5e1365640055a564ae291c51
--- /dev/null
+++ b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/full.md
@@ -0,0 +1,360 @@
+# Rethinking Zero-shot Video Classification: End-to-end Training for Realistic Applications
+
+Biagio Brattoli*
+Heidelberg University
+
+biagio.brattoli@iwr.uni-heidelberg.de
+
+Pietro Perona Amazon
+
+perona@caltech.edu
+
+Joseph Tighe Amazon
+
+tighe@amazon.com
+
+Fedor Zhdanov
+Amazon
+
+fedor@amazon.com
+
+Krzysztof Chalupka
+Amazon
+
+chalupkk@amazon.com
+
+# Abstract
+
+Trained on large datasets, deep learning (DL) can accurately classify videos into hundreds of diverse classes. However, video data is expensive to annotate. Zero-shot learning (ZSL) proposes one solution to this problem. ZSL trains a model once, and generalizes to new tasks whose classes are not present in the training dataset. We propose the first end-to-end algorithm for ZSL in video classification. Our training procedure builds on insights from recent video classification literature and uses a trainable 3D CNN to learn the visual features. This is in contrast to previous video ZSL methods, which use pretrained feature extractors. We also extend the current benchmarking paradigm: Previous techniques aim to make the test task unknown at training time but fall short of this goal. We encourage domain shift across training and test data and disallow tailoring a ZSL model to a specific test dataset. We outperform the state-of-the-art by a wide margin. Our code, evaluation procedure and model weights are available at github.com/bbrattoli/ZeroShotVideoClassification.
+
+# 1. Introduction
+
+Training image and video classification algorithms requires large training datasets [21, 27, 51, 52, 53]. With no task-specific training data available one may still attempt to train a model using related information and transfer the learned knowledge to classify previously unseen categories. This approach is called zero-shot learning (ZSL) [29, 34] and it is quite successful in the image domain [41, 42, 44, 45, 47, 56].
+
+We focus on ZSL for video action recognition, where data sourcing and annotation is particularly expensive.
+
+
+Figure 1: (Top) Our model is state-of-the-art (error computed on the UCF test dataset.) (Bottom) Our e2e model is simple but powerful. URL [64], Action2Vec [18] and TARN [4] are state-of-the-art approaches. Gray blocks represent modules fixed during training. Colors (blue, red, orange, yellow) indicate modules trained in separate stages.
+
+Since the set of possible human actions is huge, action recognition is a great ZSL testbed. Trained on large-scale academic datasets [11, 17, 24, 25, 28, 50], supervised 3D convolutional neural networks (CNNs) proved successful in this domain [12, 51, 52]. How well modern deep networks can recognize human actions in the ZSL setting is, however, an open question.
+
+To our knowledge, all current ZSL methods for video
+
+recognition use pretrained visual embeddings [1, 4, 18, 33, 35, 54, 55, 58, 59, 60, 61, 64]. This provides a good tradeoff between training efficiency and using prior knowledge. Shallow trainable models then convert the pretrained representations to ZSL embeddings, as shown in Fig. 1 (Bottom). Low training space complexity of shallow models allows them to benefit from long video sequences [51] and large feature extractors [21].
+
+In contrast, state-of-the-art algorithms in the fundamental CV domains of image classification [21], object detection [36, 38, 49] and segmentation [8, 20, 63] all rely on end-to-end (e2e) training. Representation learning is at the core of deep networks' success across machine learning domains [3], and deeper models can better utilize information available in large datasets [2, 21]. This poses a question: How can an e2e ZSL compete with current methods?
+
+Our contributions involve multiple aspects of ZSL video classification:
+
+Novel Modeling: We propose the first e2e-trained model for zero-shot action recognition. The training procedure is inspired by modern supervised video classification practices. Fig. 1 shows that our method is simple, yet outperforms previous work. Moreover, we devise a novel easy pretraining technique that targets the ZSL scenario for video recognition.
+
+Evaluation Protocol: We propose a novel ZSL training and evaluation protocol that enforces a realistic ZSL setting. Extending the work of Roitberg et al. [40], we test a single trained model on multiple test datasets, where sets of training and test classes are disjoint. In addition, we argue that training and test domains should not be identical.
+
+In-depth Analysis: We perform an in-depth analysis of the e2e model and a pretrained baseline. In a series of guided experiments we explore the characteristics of good ZSL datasets.
+
+Our model, training and evaluation code, are available at github.com/bbrattoli/ZeroShotVideoClassification.
+
+# 2. Related work
+
+We focus on inductive ZSL in which test data is fully unknown at training time. There exists a body of literature on transductive ZSL [1, 33, 54, 55, 59, 58, 60], where test images or videos are available during training but test labels are not. We do not discuss the transductive approach in this work.
+
+Video classification: Modern, DL-based video classification methods fall largely into two categories: 2D networks [48, 53] that operate on 1-5 frame snippets and 3D networks [5, 6, 7, 12, 19, 31, 46, 51, 52] that operate on 16-128 frames. One of the earliest works of this type, Simonyan and Zisserman [48], trained with only 1-5 frames sampled randomly from the video. At inference many more
+
+
+Figure 2: Training and test classes, t-SNE [30] visualization of Word2Vec embeddings. Red dots represent training classes we used, and gray dots training classes we removed in order to separate training and test data. Crosses represent test classes. Pictures are actual dataset videoframes.
+
+frames were sampled and the classifier outputs were averaged across all samples taken for a video clip. This implied that looking at a large chunk of the video was important during inference but wasn't strictly required during training. Wang et al. [53] showed that sampling multiple frames throughout the video during training could improve performance, opening the question whether training also requires a large temporal context. However, a body of later work based on more powerful 3D networks [7, 12, 51] showed that for most datasets sampling 16 frames during training is sufficient. Increasing training frame count from 16 to 128 improved performance only marginally.
+
+In this work, we adapt the training-time sampling philosophy of state-of-the-art video classification to the ZSL setup. This allows us to train the visual embedding e2e. As a consequence, the overall architecture and inference procedure are very simple compared to previous work, and the results are state-of-the-art - as shown in Fig. 1.
+
+Zero shot video classification: The common practice in zero-shot video classification is to first extract visual features from video frames using a pretrained network such as C3D [51] or ResNet [21], then trains a temporal model that maps the visual embedding to a semantic embedding space [4, 13, 14, 15, 16, 18, 35, 61, 64]. Good generalization on semantic embeddings of class names means that the model can be applied to new videos where the possible
+
+
+Figure 3: Removing overlapping training and test classes. The y-axis shows Kinetics classes closest to the test sets UCF and HMDB. x-axis shows the distance (see Eq. 4) of the corresponding closest test class. In our experiments, we removed training classes closer than $\tau = 0.05$ to the test set - to the left of the red line in the figure.
+
+output classes are not present in training data. Inference reduces to finding the test class whose embedding is the nearest-neighbor of the model's output. Word2Vec [32] is commonly used to produce the ground-truth word embeddings. An alternative approach is to use manually crafted class attributes [23]. We decided not to pursue the manual approach as it harder to apply in general scenarios.
+
+Two effective recent methods, Hahn et al. [18] and Bishay et al. [4], extract C3D features from 52 clips of 16 frames from each video. They then learn a recurrent neural network [10, 22] to encode the result as a single vector. Finally, a fully connected layer maps the encoded video into Word2Vec embedding. Fig. 1 illustrates this approach. Both [18] and [4] use the same dataset for training and testing, after splitting the available dataset classes into two sets. Using a pretrained deep network is convenient because preextracted visual features easily fit in GPU memory, even for a large number of video frames. Alternative approaches use generative models to compensate for the gap between semantic and visual distributions [33, 62]. Unfortunately, performance is limited by the inability to fine-tune the visual embedding. We show fine-tuning is crucial to generalize
+
+across datasets.
+
+Our work is similar to Zhu et al. [64] in that both methods learn a universal action representation that generalizes across datasets. However, their proposed model does not leverage the potential of 3D CNNs. Instead, they utilize the very deep ResNet200 [21], pretrained on ImageNet [9, 43], which cannot utilize temporal information.
+
+As pointed out by Roitberg et al. [40], previous works train their models on actions overlapping with those of the target dataset, violating ZSL assumptions. For example, Zhu et al. [64] train on the full ActivityNet [11] dataset. This makes their results difficult to fairly compare with ours. Under our definition of ZSL (Sec. 3.3), Zhu et al. have 23 classes in their training datasets that overlap with the test dataset. The situation is similar for all other methods to varying degrees.
+
+# 3. Zero-shot action classification
+
+We first carefully define ZSL in the context of video classification. This will allow us to propose not only a new ZSL algorithm, but also a clear evaluation protocol that we hope will direct future research towards practical ZSL solutions. We stay within the inductive setting, as described in Sec. 2.
+
+# 3.1. Problem setting
+
+A video classification task is defined by a training set (source) $D_{s} = \{(x_{1},c_{1}),\dots ,(x_{N_{s}},c_{N_{s}})\}$ consisting of pairs of videos $x$ and their class labels $c$ , and a video-label test set $D_{t}$ . In addition, previous work often uses pretraining datasets $D_{p}$ as explained in Sec. 2.
+
+Intuitively, ZSL is any procedure for training a classification model on $D_{s}$ (and possibly $D_{p}$ ) and then testing on $D_{t}$ where $D_{t}$ does not overlap with $D_{s} \cup D_{p}$ . How this overlap is defined varies. Sec. 3.3 proposes a definition that is more restrictive than those used by previous work, and forces the algorithms into a more realistic ZSL setting.
+
+ZSL classifiers need to generalize to unseen test classes. One way to achieve this is using nearest-neighbor search in a semantic class embedding space.
+
+Formally, given a video $x$ , we infer the corresponding semantic embedding $z = g(x)$ and classify $x$ as the nearest-neighbor of $z$ in the set of embeddings of the test classes. Then, a trained classification model $M(\cdot)$ outputs
+
+$$
+M (x) = \underset {c \in D _ {t}} {\operatorname {a r g m i n}} \cos (g (x), \mathrm {W} 2 \mathrm {V} (c)). \tag {1}
+$$
+
+where $\cos$ is the cosine distance and the semantic embedding is computed using the Word2Vec function [32] W2V: $\mathcal{C}\to \mathbb{R}^{300}$
+
+The function $g = f_s \circ f_v$ is a composition of a visual encoder $f_v \colon x \mapsto y$ and a semantic encoder $f_s \colon y \mapsto z \in \mathbb{R}^{300}$ .
+
+# 3.2. End-to-end training
+
+In previous work, the visual embedding function $f_{v}$ is either hand-crafted [60, 64] or computed by a pretrained deep network [4, 18, 55, 64]. It is fixed during optimization, forcing model development to focus on improving $f_{s}$ . Resulting models need to learn to transform fixed visual embeddings into meaningful semantic features and can be very complex, as shown in Fig. 1 (Bottom).
+
+Instead, we propose to optimize both $f_{v}$ and $f_{s}$ at the same time. Such e2e training offers multiple advantages:
+
+1. Since $f_{v}$ provides a complex computation engine, $f_{s}$ can be a simple linear layer (see Fig. 1).
+2. We can implement the full model using standard 3D CNNs.
+3. Pretraining the visual embedding on a classification task is not necessary.
+
+End-to-end optimization using the full video is unfeasible due to GPU memory limitations. Our implementation is based on standard video classification methods which are effective even when only a small snippet is used during training, as discussed in detail in Sec 2. Formally, given a training video/class pair $(x,c)\in D_s$ we extract a snippet $x^t$ of 16 frames at a random time $t\leq (\mathrm{len}(x) - 16)$ . The network is optimized by minimizing the loss
+
+$$
+L = \sum_ {(x, c) \in D _ {s}} \| \mathrm {W} 2 V (c) - \left(f _ {s} \circ f _ {v}\right) \left(x ^ {t}\right) \| ^ {2}. \tag {2}
+$$
+
+Inference procedure is similar but pools information from multiple snippets following Wang et al. [53]. Sec. 4.4 details both our training and inference procedures.
+
+To better understand our method's performance under various experimental conditions, we implemented a baseline model that uses identical $f_{s}$ , $f_{v}$ and training data, but fixes $f_{v}$ 's weights to values pretrained on the classification task (available out-of-the-box in the most recent PyTorch implementation, see Sec. 4.4). This was necessary since we were not able to access implementations of any of the state-of-the-art methods ([4, 18, 64]). Unfortunately, our own re-implementations achieved results far below numbers reported by their authors, even with their assistance.
+
+# 3.3. Towards realistic ZSL
+
+To ensure that our ZSL setting is realistic, we extend the methods of [40] that carefully separates training and test data. This is cumbersome to achieve in practice, and has not been attempted by most previous work. We hope that our clear formulation of the training and evaluation protocols will make it easy for future researchers to understand the performance of their models in true ZSL scenarios.
+
+Non-overlapping training and test classes: Our first goal is to make sure that $D_{s} \cup D_{p}$ and $D_{t}$ have "non-overlapping classes". The simple solution - to remove
+
+source class names from target classes or vice-versa - does not work, because two classes with slightly different names can easily refer to the same concept, as shown in Fig. 3. A distance between class names is needed. Equipped with such a metric, we can make sure training and test classes are not too similar. Formally, let $d \colon \mathcal{C} \to \mathcal{C}$ denote a distance metric on the space of all possible class names $\mathcal{C}$ , and let $\tau \in \mathbb{R}$ denote a similarity threshold. A video classification task fully respects the zero-shot constraint if
+
+$$
+\forall c _ {s} \in D _ {s} \cup D _ {p}, \min _ {c _ {t} \in D _ {t}} d \left(c _ {s}, c _ {t}\right) > \tau . \tag {3}
+$$
+
+A straightforward way to define $d$ is using semantic embeddings of class names. We define the distance between two classes to be simply
+
+$$
+d \left(c _ {1}, c _ {2}\right) = \cos \left(\mathrm {W} 2 \mathrm {V} \left(c _ {1}\right), \mathrm {W} 2 \mathrm {V} \left(c _ {2}\right)\right) \tag {4}
+$$
+
+where $\cos$ indicates cosine distance. This is consistent with the use of the cosine distance in the ZSL setting as we do in Eq. 1. Fig. 2 shows an embedding of training and test classes after we removed from Kinetics classes overlapping with test data using the procedure outlined above. Fig. 3 shows the distribution of distances between training and test classes in our datasets. There is a cliff between distances very close to 0 and larger than 0.1. In our experiments we use $\tau = 0.05$ as a natural, unbiased threshold.
+
+Different training and test video domains: We argue that video domains of $D_{s} \cup D_{p}$ and $D_{t}$ should differ. In previous work, the standard evaluation protocol is to use one dataset for training and testing, using 10 random splits. This does not account for domain shifts that happen in real world scenarios due to data compression, camera artefacts, and so on. For this reason ZSL training and test datasets should ideally have disjoint video sources.
+
+Multiple test datasets: A single ZSL model should perform well on multiple test datasets. As outlined above, previous works train and test anew for each available dataset (typically UCF and HMDB). In our experiments, training happens only once on the Kinetics dataset [25], and testing on all of UCF [50], HMDB [28] and ActivityNet [11].
+
+# 3.4. Easy pretraining for video ZSL
+
+In a real-world scenario a model is trained once and then deployed on diverse unseen test datasets. A large and diverse training dataset is crucial to achieve good performance. Ideally, the training dataset would be tailored to the general domain of inference – for example, a strong ZSL surveillance model to be deployed at multiple unknown locations would require a large surveillance and action recognition dataset.
+
+Sourcing and labeling domain-specific video datasets is, however, very expensive. On the other hand, annotating images is considerably faster. Therefore, we designed a simple
+
+| Dataset | VisualFeat | UCF | HMDB | Activity |
| URL [64] | ResNet200 | 42.5 | 51.8 | - |
| DataAug [60] | - | 18.3 | 19.7 | - |
| InfDem [39] | I3D | 17.8 | 21.3 | - |
| Bidirectional [55] | IDT | 21.4 | 18.9 | - |
| FairZSL [40] | - | - | 23.1 | - |
| TARN [4] | C3D | 19 | 19.5 | - |
| Action2Vec [18] | C3D | 22.1 | 23.5 | - |
| Ours(605classes) | C3D | 41.5 | 25.0 | 24.8 |
| Ours(664classes) | C3D | 43.8 | 24.7 | - |
| Ours(605classes) | R(2+1)D_18 | 44.1 | 29.8 | 26.6 |
| Ours(664classes) | R(2+1)D_18 | 48 | 32.7 | - |
+
+Table 1: Comparison with the state-of-the-art on standard benchmarks. We evaluate on half test classes following Evaluation Protocol 1 (Sec. 4.3). Ours(605classes) indicates we removed all training classes that overlap with UCF, HMDB, or ActivityNet. Ours(664classes) indicates we removed only training classes overlapping with UCF and HMDB. We outperform previous work in both scenarios. Sec. 2 argues that URL's results are not compatible with other works as their training and test sets overlap and their VisualFeat is an order of magnitude deeper.
+
+dataset augmentation scheme which creates synthetic training videos from still images. Sec. 5 shows that pretraining our model using this dataset boosts performance, especially if available training data is small.
+
+We convert images to videos using the Ken Burns effect: a sequence of crops moving around the image simulates video-like motion. Sec. 4.1 provides more details.
+
+Our experiments focus on the action recognition domain. In action recognition (as well as in many other classification tasks), location and scenery of the video is strongly predictive of action category. Because of this we choose SUN [57], a standard scene recognition dataset. Fig. 2 shows the complete class embedding of our the scene dataset's class names.
+
+# 4. Experimental setup
+
+To facilitate reproducibility, we describe our training and evaluation protocols in detail. The protocols propose one way of training and evaluating ZSL models that is consistent with our definitions in Sec. 3.3.
+
+# 4.1. Datasets
+
+UCF101 [50] has 101 action classes primarily focused around sports, with 13320 videos sourced from YouTube. HMDB51 [28] is divided into 51 human actions focused around sports and daily activities and contains 6767 videos
+
+| Method | UCF | HMDB | Activity |
| Top-1 | Top-5 | Top-1 | Top-5 | Top-1 | Top-5 |
| URL [64] | 34.2 | - | - | - | - | - |
| 664classes | 37.6 | 62.5 | 26.9 | 49.8 | - | - |
| 605classes | 35.3 | 60.6 | 24.8 | 44.0 | 20.0 | 42.7 |
+
+Table 2: Evaluation on all test classes. In contrast to Table 1, here we report results of our method applied to all three test datasets using Evaluation Protocol 2 (Sec. 4.3). We applied a single model trained on classes dissimilar from all of UCF, HMDB and ActivityNet. Nevertheless, we outperform URL [64] on UCF101. URL authors do not report results on full HMDB51. Remaining previous work do not report results on neither full UCF101 nor full HMDB51.
+
+sourced from commercial videos and YouTube. ActivityNet [11] contains 27,801 untrimmed videos divided in 200 classes focusing on daily activities with videos sourced using web search. We extracted only the labeled frames from each video. Kinetics [25] is the largest currently available action recognition dataset, covering a wide range of human activity. The first version of the dataset contains over 200K videos divided in 400 categories. The newest version has 700 classes for a total of 541624 videos sourced from YouTube. SUN397 [57] (see Sec. 3.4) is a scene understanding image dataset. It contains 397 scene categories for a total of over 100K high-resolution images. We converted it to a simulated video dataset using the Ken Burns effect: To create a 16-frame video from an image, we randomly choose "start" and "end" crop locations (and crop sizes) in the image, and linearly interpolate to obtain 16 crops. Each of them are then resized to $112 \times 112$ .
+
+# 4.2. Training protocol
+
+Our experiments in Sec. 5 use two training methods:
+
+Training Protocol 1: Remove from Kinetics 700 all the classes whose distance to any class in UCF $\cup$ HMDB is smaller than $\tau$ (see Eq. 4). This results in a subset of Kinetics with 664 classes, which we call Kinetics 664. As explained in Sec. 3.3, this setting is already more restrictive than that of the previous methods, which train new models for each test dataset.
+
+Training Protocol 2: Remove from Kinetics 700 all the classes whose distance to any class in UCF $\cup$ HMDB $\cup$ ActivityNet is smaller than $\tau$ (see Eq. 4). This results in a subset of Kinetics with 605 classes which we call Kinetics 605. This setting is even more restrictive, but is closer to true ZSL. Our goal is to show that it is possible to train a single ZSL model that applies to multiple diverse test datasets.
+
+Figure 2 shows a t-SNE projection of the semantic embeddings of all Kinetics 700 classes, as well as the 101 UCF
+
+classes and the classes we removed to obtain Kinetics 664.
+
+# 4.3. Evaluation protocol
+
+We tested our model using two protocols: the first follows Sec. 3.3 to emulate a true ZSL setting, the second is compatible with previous work. Both Evaluation Protocols apply the same model to multiple test datasets.
+
+Evaluation Protocol 1: In order to make our results comparable with previous work, we use the following procedure: Randomly choose half of the test dataset's classes, 50 for UCF and 25 for HMDB. Evaluate the classifier on that test set. Repeat ten times and average the results for each test dataset.
+
+Evaluation Protocol 2: Previous work uses random training/test splits of UCF [50] and HMDB [28] to evaluate their algorithms. However, we train on a separate dataset Kinetics 664 / 605 and can test on full UCF and HMDB. This allows us to return more realistic accuracy scores. The evaluation protocol is simple: evaluate the classifier on all 101 UCF classes and all 51 HMDB classes.
+
+# 4.4. Implementation details
+
+In our experiments, $f_{v}$ (see Sec. 3.1) is the PyTorch implementation of R(2+1)D_18 [52] or C3D[51]. In the pretrained setting, we use the out-of-the-box R(2+1)D_18 pretrained on Kinetics 400[25], while C3D is pretrained on Sports-1M[24]. In the e2e setting, we initialize the model with the pretrained=True argument. The visual embedding $f_{v}(x)$ is BxTx512 where B is the batch size and T is the number of clips per video. We use $T = 1$ for training, and $T = 25$ for evaluation in Tables 1 and 2. The clips are 16 frames long and we choose them following standard protocols established by Wang et al. [53]. We average $f_{v}(x)$ across time (video snippets) similarly to previous approaches [51, 64]. $f_{s}$ is a linear classifier with 512x300 weights. The output of $f_{s} \circ f_{v}$ is of shape Bx300.
+
+We follow standard protocol in computing semantic embeddings of class names [4, 58, 64]. Word2Vec [32] - in particular, the gesim [37] Python implementation - encodes each word. We average multi-word class names. In rare cases of words not available in the pretrained W2V model (for example, 'rubiks' or 'photobombing') we manually change the words (see the code for more details). Formally, for a class name consisting of N words $c = [c^1,\dots ,c^N ]$ we embed it as $\mathrm{W}2V(c) = \sum_{i = 1}^{N}\mathrm{W}2V(c^i)\in \mathbb{R}^{300}$ . We set $\tau$ to 0.05 following the analysis in Sec. 3.3 based on Fig. 3.
+
+To minimize the loss of Eq. 2 we use the Adam optimizer [26], starting with a learning rate of $1e - 3$ . Batch size is 22 snippets, with 16 frames each. The model trained for 150 epochs, with a tenfold learning rate decrease at epochs 60 and 120. All experiments are performed on the Nvidia Tesla V100 GPU.
+
+Following [51], we reshaped each frame's shortest side
+
+
+Figure 4: Number of training classes matters in ZSL. Orange curves show performance on subsets of Kinetics 664, as we keep all the training classes and increase the subset size. The blue curves, whose markers become progressively brighter, indicate a separate experiment where we increased the number of training classes starting from 2, all the way up to 664 (Sec. 5.2). For any given training dataset size, performance on test data is much better with more training classes. In addition, when few training classes are available the e2e model is not able to outperform the baseline.
+
+to 128 pixels, and cropped a random $112 \times 112$ patch on training and the center patch on inference.
+
+# 5. Results
+
+Our experiments have two goals: compare our method to previous work and investigate our method's performance vs the baseline (see Sec. 3.2.) The first is necessary to validate that e2e ZSL on videos can outperform more complex approaches that use pretrained features. The latter will allow us to understand under what conditions e2e training can be particularly beneficial.
+
+# 5.1. Comparison to the state of the art
+
+Table 1 compares our method to existing approaches. We followed our Training and Evaluation Protocol 1, as described in Sections 4.2 and 4.3. Our protocols are more restrictive than that of previous methods: we removed training classes that overlap with test classes, introduced domain shift, and applied one model to multiple test datasets. Despite this, we outperform previous video-based methods by a large margin. Furthermore, when testing on UCF we outperform URL [64] which uses a network an order of mag-
+
+
+1 cluster. Error 0.84
+
+
+3 clusters. Error 0.89
+Figure 5: Diverse training classes are good for ZSL. Here we trained our algorithm on subsets of 50 Kinetics 664 classes. (Top left) Training classes picked uniformly at random. (Top right) We clustered Word2Vec embeddings of classes into two clusters, then trained and evaluated separately using each cluster, and averaged the results. (Bottom) Here we averaged the results of training using three and six clusters. The figure shows that the more clusters, the less diverse the training classes were semantically. At the same time, less diversity caused higher errors.
+
+
+2 clusters. Error 0.87
+
+
+6 clusters. Error 0.91
+
+nitude deeper than ours - 18 vs 200 layers - and 23 classes overlap between training and testing (see Sec. 2).
+
+# 5.2. Comparison to a baseline method
+
+Our baseline method described in Sec. 3.2 uses a fixed, pretrained visual feature extractor but is otherwise identical to our e2e method. This allows us to study the benefits of e2e training under Evaluation Protocol 2, (see Sections 4.2 and 4.3). Using all test classes provides a more direct evaluation of the method.
+
+Training dataset size: To investigate the effect of training set size on performance we subsampled Kinetics 664 uniformly at random, then re-trained and re-evaluated the model. Fig. 4 shows that the e2e algorithm consistently outperforms the baseline on both datasets. Both algorithms' performance is worse with smaller training data. However, the baseline flattens out at about 100K training datapoints, whereas our method's error keeps decreasing. This is expected, as the e2e model has more capacity.
+
+Number of training classes: In many video domains diverse data is difficult to obtain. Small datasets might not
+
+
+Figure 6: Augmented pretraining with videos-from-images. We trained our algorithm on progressively smaller subsets of Kinetics 664 classes (Sec. 5.2). We compared the results to training on the same dataset, after pretraining the model on our synthetic SUN video dataset (Sec. 5.3). The pretraining procedure boosts performance up to $10\%$ points.
+
+only have few datapoints, but also contain only a few training classes. We show that the number of training classes can impact ZSL results as much as training dataset size.
+
+To obtain Fig. 4 we subsampled Kinetics 664 class-wise. We first picked 2 Kinetics 664 classes at random, and trained the algorithm on those classes only. We repeated the procedure using 4, 10, 25, 50, 100, 200, 400 and all 664 classes. Naturally, the fewer classes the fewer datapoints the training set contained. This results are compared in Fig. 4 with the procedure described above, where we removed Kinetics datapoints at random - independent of their classes.
+
+The figure shows that it is better to have few training samples from a large number of classes rather than many from a very small number of classes. This effect is more pronounced for the e2e model rather than the baseline.
+
+Training dataset class diversity: We showed that ZSL works better with more training classes. If we have a limited budget for collecting classes and datapoints, how should we choose them? We investigated whether the set of training classes should emphasize fine differences (e.g. "shooting basketball" vs "passing basketball" vs "shooting soccerball" and so on) or diversity.
+
+In Fig. 5 we selected 50 training classes in four ways: (Top Left) We randomly choose 50 classes from the whole Kinetics 664 dataset, trained the algorithm on these classes, and ran inference on the test set. We repeated this process ten times and averaged inference error. (Top Right) We clustered the 664 classes into 2 clusters in the Word2Vec embedding space, and chose 50 classes at random within one of the clusters, trained and ran inference. We then repeated the procedure ten times and averaged the result.
+
+
+Figure 7: Error as test classes move away from training. For each UCF101 test class, we computed its distance to 10 nearest neighbors in the training dataset. We arranged all such distance thresholds on the x-axis. For each threshold, we computed the accuracy of the algorithms on test classes whose distance from training data is larger than the threshold. In other words, as x-axis moves to the right, the model is evaluated on cumulatively smaller, but harder test sets.
+
+(Bottom) Here we chose 50 classes in one of 3 clusters (Left) and one of 6 clusters (Right), trained, and averaged inference results of 10 runs. The figure shows that test error for our method increases as class diversity decreases. This result is not obvious, since the task becomes harder with increasing class diversity.
+
+# 5.3. Easy pretraining with images
+
+Previous section showed that class count and diversity are important drivers of ZSL performance. This inspired us to develop the pretraining method described in Sec. 3.4: we pretrain our model on a synthetic video dataset created from still images from the SUN dataset. Fig. 6 shows that this simple procedure consistently decreases test errors by up to $10\%$ . In addition, Fig. 7 shows that this initialization scheme makes the model more robust to large domain shift between train and test classes. The following section describes the latter finding in more detail.
+
+# 5.4. Generalization and domain shift
+
+A good ZSL model generalizes well to classes that differ significantly from training classes. To investigate the performance of our models under heavy domain shift, we computed the accuracy on subsets of test data with a growing distance from the training dataset. We first trained our model on Kinetics 664. Then, for a given distance threshold $\tau$ (see Sec. 3.3), we computed accuracy on the set of UCF classes whose mean distance from the closest 10 Kinetics 664 classes is larger than $\tau$ . Fig. 7 shows that the baseline model's (not trained e2e) performance drops to zero at around $\tau \sim 0.57$ . Our method performs much better, never dropping to zero accuracy for high thresholds. Finally, using the SUN pretraining further increases performance.
+
+| UCF101 accuracy | 50 classes | 101 classes |
| e2e | Augment | Multi | Top-1 | Top-5 | Top-1 | Top-5 |
| | | 26.8 | 55.5 | 19.8 | 40.5 |
| ✓ | | | 43.0 | 68.2 | 35.1 | 56.4 |
| ✓ | ✓ | | 45.6 | 73.1 | 36.8 | 61.7 |
| ✓ | | ✓ | 48.0 | 74.2 | 37.6 | 62.5 |
| ✓ | ✓ | ✓ | 49.2 | 77.0 | 39.8 | 65.6 |
+
+Table 3: Ablation study. Numbers represent classification accuracy. "50 classes" uses Evaluation Protocol 1 (Sec. 4.3.) "101 classes" uses Evaluation Protocol 2. e2e: training the visual embedding as opposed to fixed, pretrained baseline (Sec. 3.2). Augment: pretrain using the SUN augmentation scheme (Sec. 5.3). Multi: At test time, extract multiple snippets from each video and average the visual embeddings (Sec. 4.4).
+
+# 5.5. Ablation study
+
+Table 3 studies contributions of different elements of our model to its performance. The performance is low when the visual embedding is fixed. The e2e approach improves the performance by a large margin. Our class augmentation method further boosts performance. Finally it helps to extract linearly spaced snippets from a video on testing, and average their visual embeddings. Using 25 snippets improves considerably the performances without influencing the training time of the model.
+
+# 6. Conclusion
+
+We followed practices from recent video classification literature to train the first e2e system for video recognition ZSL. Our evaluation protocol is stricter than that of existing work, and measures more realistic zero-shot classification accuracy. Even under this stricter protocol, our method outperforms previous works whose performance was measured with training and test sets overlapping and sharing domains. Through a series of directed experiments, we showed that a good ZSL dataset should have many diverse classes. Guided by this insight, we formulated a simple pretraining technique that boosts ZSL performance.
+
+Our model is easy to understand and extend. Our training and evaluation protocols are easy to use with alternative approaches. We made our code available at github.com/bbrattoli/ZeroShotVideoClassification to encourage the community to build on our insights and create a strong foundation for future video ZSL research.
+
+Acknowledgement. We thank Amazon for generously supporting the project, and Alina Roitberg for a productive discussion on the evaluation protocol.
+
+# References
+
+[1] Ioannis Alexiou, Tao Xiang, and Shaogang Gong. Exploring synonyms as context in zero-shot action recognition. In 2016 IEEE International Conference on Image Processing (ICIP), pages 4190-4194. IEEE, 2016.
+[2] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In The European Conference on Computer Vision (ECCV), September 2018.
+[3] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798-1828, 2013.
+[4] Mina Bishay, Georgios Zoumpourlis, and Ioannis Pa-tras. Tarn: Temporal attentive relation network for few-shot and zero-shot action recognition. arXiv preprint arXiv:1907.09021, 2019.
+[5] Biagio Brattoli, Uta Buchler, Anna-Sophia Wahl, Martin E. Schwab, and Björn Ommer. Lstm self-supervision for detailed behavior analysis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
+[6] Uta Buchler, Biaggio Brattoli, and Björn Ommer. Improving spatiotemporal self-supervisionby deep reinforcement learning. In IEEE Conference on European Conference on Computer Vision (ECCV), 2018.
+[7] 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] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pages 801-818, 2018.
+[9] 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.
+[10] Rahul Dey and Fathi M Salemt. Gate-variants of gated recurrent unit (gru) neural networks. In 2017 IEEE 60th international midwest symposium on circuits and systems (MWS-CAS), pages 1597–1600. IEEE, 2017.
+[11] Bernard Ghanem Fabian Caba Heilbron, Victor Escorcia and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961-970, 2015.
+[12] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. arXiv preprint arXiv:1812.03982, 2018.
+[13] Chuang Gan, Ming Lin, Yi Yang, Gerard De Melo, and Alexander G Hauptmann. Concepts not alone: Exploring pairwise relationships for zero-shot video activity recognition. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
+[14] Chuang Gan, Ming Lin, Y. Yang, Y. Zhuang, and Alexander Hauptmann. Exploring semantic inter-class relationships (sir) for zero-shot action recognition. Proceedings of
+
+the Twenty-Ninth AAAI Conference on Artificial Intelligence, pages 3769-3775, 01 2015.
+[15] Chuang Gan, Tianbao Yang, and Boqing Gong. Learning attributes equals multi-source domain generalization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 87-97, 2016.
+[16] Chuang Gan, Yi Yang, Linchao Zhu, Deli Zhao, and Yueting Zhuang. Recognizing an action using its name: A knowledge-based approach. International Journal of Computer Vision, 120, 03 2016.
+[17] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fruend, Peter Yianilos, Moritz Mueller-Freitag, et al. The” something something” video database for learning and evaluating visual common sense. In ICCV, volume 1, page 3, 2017.
+[18] Meera Hahn, Andrew Silva, and James M Rehg. Action2vec: A crossmodal embedding approach to action learning. arXiv preprint arXiv:1901.00484, 2019.
+[19] 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.
+[20] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017.
+[21] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 770-778, 2016.
+[22] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997.
+[23] Haroon Idrees, Amir R Zamir, Yu-Gang Jiang, Alex Gorban, Ivan Laptev, Rahul Sukthankar, and Mubarak Shah. The thumos challenge on action recognition for videos "in the wild". Computer Vision and Image Understanding, 155:1-23, 2017.
+[24] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. In CVPR, 2014.
+[25] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017.
+[26] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[27] 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.
+[28] Hildegard Kuehne, Hueihan Jhuang, Estfbaliz 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.
+
+[29] Hugo Larochelle, Dumitru Erhan, and Yoshua Bengio. Zero-data learning of new tasks. In AAAI, volume 1, page 3, 2008.
+[30] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579-2605, 2008.
+[31] Brais Martinez, Davide Modolo, Yuanjun Xiong, and Joseph Tighe. Action recognition with spatial-temporal discriminative filter banks. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[32] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
+[33] Ashish Mishra, Vinay Kumar Verma, M Shiva Krishna Reddy, S Arulkumar, Piyush Rai, and Anurag Mittal. A generative approach to zero-shot and few-shot action recognition. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 372-380. IEEE, 2018.
+[34] Mark Palatucci, Dean Pomerleau, Geoffrey E Hinton, and Tom M Mitchell. Zero-shot learning with semantic output codes. In Advances in neural information processing systems, pages 1410-1418, 2009.
+[35] AJ Piergiovanni and Michael S Ryoo. Learning shared multimodal embeddings with unpaired data. CoRR, 2018.
+[36] 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.
+[37] Radim ōhůrek and Petr Sojka. Software Framework for Topic Modelling with Large Corpora. In Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks, pages 45-50, Valletta, Malta, May 2010. ELRA. http://is.muni.cz/publication/884893/en.
+[38] 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.
+[39] Alina Roitberg, Ziad Al-Halah, and Rainer Stiefelhagen. Informed democracy: voting-based novelty detection for action recognition. arXiv preprint arXiv:1810.12819, 2018.
+[40] Alina Roitberg, Manuel Martinez, Monica Haurilet, and Rainer Stiefelhagen. Towards a fair evaluation of zero-shot action recognition using external data. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018.
+[41] Karsten Roth, Biagio Brattoli, and Bjorn Ommer. Mic: Mining interclass characteristics for improved metric learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 8000-8009, 2019.
+[42] Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Bjoern Ommer, and Joseph Paul Cohen. Revisiting training strategies and generalization performance in deep metric learning. arXiv preprint arXiv:2002.08473, 2020.
+[43] 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.
+
+[44] Artsiom Sanakoyeu, Vasil Khalidov, Maureen S. McCarthy, Andrea Vedaldi, and Natalia Neverova. Transferring dense pose to proximal animal classes. In CVPR, 2020.
+[45] Artsiom Sanakoyeu, Vadim Tschernezki, Uta Buchler, and Björn Ommer. Divide and conquer the embedding space for metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019.
+[46] Nawid Sayed, Biagio Brattoli, and Björn Ommer. Cross and learn: Cross-modal self-supervision. In German Conference on Pattern Recognition (GCR), 2018.
+[47] 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.
+[48] 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.
+[49] Bharat Singh, Mahyar Najibi, and Larry S Davis. Sniper: Efficient multi-scale training. In Advances in Neural Information Processing Systems, pages 9310-9320, 2018.
+[50] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
+[51] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 4489-4497, 2015.
+[52] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 6450-6459, 2018.
+[53] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In European conference on computer vision, pages 20-36. Springer, 2016.
+[54] Qian Wang and Ke Chen. Alternative semantic representations for zero-shot human action recognition. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 87-102. Springer, 2017.
+[55] Qian Wang and Ke Chen. Zero-shot visual recognition via bidirectional latent embedding. International Journal of Computer Vision, 124(3):356-383, 2017.
+[56] Yongqin Xian, Bernt Schiele, and Zeynep Akata. Zero-shot learning-the good, the bad and the ugly. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4582-4591, 2017.
+[57] Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. Sun database: Large-scale scene recognition from abbey to zoo. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 3485-3492. IEEE, 2010.
+[58] Xun Xu, Timothy Hospedales, and Shaogang Gong. Semantic embedding space for zero-shot action recognition. In
+
+2015 IEEE International Conference on Image Processing (ICIP), pages 63-67. IEEE, 2015.
+[59] Xun Xu, Timothy Hospedales, and Shaogang Gong. Transductive zero-shot action recognition by word-vector embedding. International Journal of Computer Vision, 123(3):309-333, 2017.
+[60] Xun Xu, Timothy M Hospedales, and Shaogang Gong. Multi-task zero-shot action recognition with prioritised data augmentation. In European Conference on Computer Vision, pages 343-359. Springer, 2016.
+[61] Bowen Zhang, Hexiang Hu, and Fei Sha. Cross-modal and hierarchical modeling of video and text. In Proceedings of the European Conference on Computer Vision (ECCV), pages 374-390, 2018.
+[62] Chenrui Zhang and Yuxin Peng. Visual data synthesis via gan for zero-shot video classification. arXiv preprint arXiv:1804.10073, 2018.
+[63] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881-2890, 2017.
+[64] Yi Zhu, Yang Long, Yu Guan, Shawn Newsam, and Ling Shao. Towards universal representation for unseen action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9436-9445, 2018.
\ No newline at end of file
diff --git a/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/images.zip b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..307dfeb3628be88ba692ed95517de74d4a4e266d
--- /dev/null
+++ b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a521b53f00c89d9388a9c9bf6913392a1fc20590033441c5ad484c78463b82f0
+size 449664
diff --git a/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/layout.json b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a495b88e0e04b4d9d1aec41d20d46577c09bb112
--- /dev/null
+++ b/rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:28a2ea7484b666ba464e5cb84966e2e3887d7987cf3ecf90620afef01ae68613
+size 398955
diff --git a/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_content_list.json b/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..823340be2b28b8bf18b178467ed74fac1d7576dd
--- /dev/null
+++ b/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af1c2e54c37be6e7696a168a9a24d59bc66627aefef0ac50cf6106f976e7bdb1
+size 81675
diff --git a/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_model.json b/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..24fb58b0b6970e0a33e6206d6c48324dac2eee90
--- /dev/null
+++ b/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c118b1278caee71c0b83db7abc167beb96dfc7a50c032747de855154138d1adf
+size 105118
diff --git a/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_origin.pdf b/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5f8403ba6a4bce96b9c78ca75437573ef3fe110d
--- /dev/null
+++ b/retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35f5ab3667f14c3c6fec2b4b30b8a74f08884ff33622cdc7db99492f1a19d0f5
+size 8617450
diff --git a/retinafacesingleshotmultilevelfacelocalisationinthewild/full.md b/retinafacesingleshotmultilevelfacelocalisationinthewild/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..27adab64c45ce659b10d5b58aff60de15e0f25dd
--- /dev/null
+++ b/retinafacesingleshotmultilevelfacelocalisationinthewild/full.md
@@ -0,0 +1,350 @@
+# RetinaFace: Single-shot Multi-level Face Localisation in the Wild
+
+Jiankang Deng * 1,2,3 Jia Guo * 2 Evangelos Ververas1,3
+
+Irene Kotsia $^{4}$ Stefanos Zafeiriou $^{1,3}$
+
+$^{1}$ Imperial College $^{2}$ InsightFace $^{3}$ FaceSoft $^{4}$ Middlesex University London
+
+{j.deng16, e.ervereras16, s.zafeiriou}@imperial.ac.uk
+
+guojia@gmail.com, i.kotsia@mdx.ac.uk
+
+# Abstract
+
+Though tremendous strides have been made in uncontrolled face detection, accurate and efficient 2D face alignment and 3D face reconstruction in-the-wild remain an open challenge. In this paper, we present a novel single-shot, multi-level face localisation method, named RetinaFace, which unifies face box prediction, 2D facial landmark localisation and 3D vertices regression under one common target: point regression on the image plane. To fill the data gap, we manually annotated five facial landmarks on the WIDER FACE dataset and employed a semiautomatic annotation pipeline to generate 3D vertices for face images from the WIDER FACE, AFLW and FDB datasets. Based on extra annotations, we propose a mutually beneficial regression target for 3D face reconstruction, that is predicting 3D vertices projected on the image plane constrained by a common 3D topology. The proposed 3D face reconstruction branch can be easily incorporated, without any optimisation difficulty, in parallel with the existing box and 2D landmark regression branches during joint training. Extensive experimental results show that RetinaFace can simultaneously achieve stable face detection, accurate 2D face alignment and robust 3D face reconstruction while being efficient through single-shot inference.
+
+# 1. Introduction
+
+Automatic face localisation is a prerequisite for facial image analysis in many applications such as facial attribute analysis(e.g. expression [64] and age [41, 39]) and facial identity recognition [18, 12, 56]. A narrow definition of face localisation may refer to traditional face detection [54, 62], which aims at estimating the face bounding boxes without possessing any scale and position prior. Nevertheless, in this paper we refer to a broader definition of face locali
+
+
+
+
+
+
+
+
+
+
+68 Landmarks: 136 scalars
+
+
+Mask: H x W matrix
+
+
+3D mesh(Ours) $3 \times 1k$ vertices
+
+
+
+
+Figure 1. Face localisation tasks from coarse to fine. Face detection only predicts one center point and scales. Face pose estimation calculates the scale, 3D rotation and translation parameters. Sparse face alignment localises more semantic points. Face segmentation computes pixel-wise label maps for different semantic components (e.g. mouth, eyes). 3D face reconstruction can establish dense 3D correspondence for every pixel of a face, which is the most informative and demanding face localisation technique.
+
+# More Informative
+
+sation which includes face detection [43], face pose estimation [48, 60, 31, 5], face alignment [14, 57, 17, 16, 15, 58, 23], face segmentation [50, 34] and 3D face reconstruction [72, 1, 19, 70]. In Fig. 1, we show face localisation tasks with multiple levels of detail, from coarse to fine.
+
+Typically, face pose estimation, face alignment, face segmentation and 3D face reconstruction are steps subsequent to face detection. These fine-grind face localisation tasks are performed on individual face crops and the computational complexity increases linearly with the number of faces in the input image. Since all face localisation tasks from face detection to 3D face reconstruction aim at establishing the semantic correspondence between different face images, with their main difference being only in the information level, the question that arises is if can we combine them into a united framework by jointly training and make
+
+different tasks benefit from each other.
+
+The training process for face detection usually contains classification and box regression losses [21]. Chen et al. [8] proposed to combine face detection and alignment in a joint cascade framework based on the observation that aligned face shapes can provide better features for face classification. Inspired by [8], MTCNN [66] and STN [7] simultaneously detected faces and five facial landmarks. Due to training data limitation, JDA [8], MTCNN [66] and STN [7] have not verified whether detection of tiny faces can benefit from the extra supervision of five facial landmarks.
+
+In Mask R-CNN [25], the detection performance is significantly improved by adding a branch for predicting an object mask in parallel with the existing branch for bounding box classification and regression. This confirms that dense pixel-wise annotations are also beneficial for improving detection. In FAN [55], an anchor-level attention map is proposed to improve the occluded face detection. Nevertheless, the proposed attention map is quite coarse and does not contain semantic information. In MFN [6], a single end-to-end network is presented to jointly predict the bounding box locations and 3DMM parameters for multiple faces. This contributes to more precise face detection in the-wild by leveraging both 2D information from bounding boxes and 3D information from 3DMM parameters. However, 3DMM parameter prediction constitutes an indirect regression target when compared to semantic point prediction (e.g. box center) on the image plane. In this paper, we explore joint learning for different face localisation tasks (face detection, 2D face alignment and 3D face reconstruction) based on the single-shot [40, 69, 51] framework. To overcome the limitation of training data [6], we have manually annotated five facial landmarks for $84.6k$ faces from the WIDER FACE training dataset [59]. In addition, we set up a semi-automatic annotation pipeline to generate 1k 3D vertices for $22k$ faces from the WIDER FACE dataset [59], $27.1k$ faces from the AFLW dataset [30], and $39.3k$ faces from the FDDB full image set [28]. Based on these training data, we propose an innovative, straightforward and effective 3D mesh regression method. More specifically, we directly regress $x$ , $y$ and $z$ coordinates in the image space and add a regularization term to control the edge distance of triangles in the mesh for more accurate prediction of $z$ coordinates.
+
+Joint learning of face bounding box locations, five facial landmarks and 1k 3D vertices forces the network to learn exclusive facial features that characterize face pose, shape, and expression, in addition to differentiating face regions from the background. As five facial landmarks localisation and 3D vertices regression both target on predicting semantic points on the image plane, face box prediction benefits from joint learning and becomes more accurate and stable, producing less false positives. Also, as the anno
+
+tated but challenging face detection data [59] are employed in the joint training of face detection and the rest fine-grind face localisation tasks (for which usually less challenging datasets are employed, e.g. [30]), they directly contribute to robust 3D mesh regression.
+
+To summarise, our key contributions are:
+
+- We integrate face bounding box prediction, 2D facial landmark localisation and 3D vertices regression under a unified multi-level face localisation task with a common goal: point regression on the image plane.
+- Based on a single-shot inference, we propose a mutually beneficial learning strategy to train a unified multilevel face localisation method that simultaneously predicts face bounding boxes, five 2D facial landmarks, and 1k 3D vertices.
+- Our method achieves state-of-the-art performance in face detection and 2D face alignment, as well as robust 3D face reconstruction with single-shot inference.
+
+# 2. Related Work
+
+Face Detection. Inspired by generic object detection methods [21, 46, 38, 44, 45, 35, 36], face detection has recently achieved remarkable progress [27, 40, 69, 10, 51]. Different from generic object detection, face detection features smaller ratio variations (from 1:1 to 1:1.5) but much larger scale variations (from several pixels to thousands of pixels). The most recent state-of-the-art methods [40, 69, 51] focus on single-shot design [38, 36] which densely samples face locations and scales on feature pyramids [35], demonstrating promising performance and yielding faster inference compared to two-stage methods [46, 63, 10]. Following this route, we improve the performance of single-shot face detection by exploiting extra-supervisions from multi-level face localisation tasks.
+
+3D Face Reconstruction. Building dense pixel-to-pixel correspondence is one of the most fundamental problems in 3D face reconstruction from 2D images. Recently, a lot of works follow the approach of regressing 3DMM parameters from 2D images using CNNs [29, 72, 53, 47, 24, 52]. Jourabloo et al. [29] employs a cascade of CNNs to alternately regress the shape and pose parameters. 3DDFA [72] utilizes cascade iterations on a single CNN to jointly regress the shape and pose parameters. However, as pose and 3DMM parameters are indirect information for a 2D face image, the variations from network prediction can exert huge visual error. Most recently, model parameter regression methods have changed into dense correspondence regression approaches [1, 19]. By using the intermediate UV representation, DenseReg [1] predicts the UV coordinates and PRN [19] forecasts 3D coordinates rearranged in the UV space. However, UV transformation is still an indirect representation for a 2D image. In this paper, we resort the most straightforward 3D representation: 3D vertices pro
+
+jected on the image plane. This representation is consistent with the regression targets of face detection and 2D facial landmark localisation, and easy to optimise in a single-shot, multi-level face localisation framework. Due to the parallel training with face detection and 2D face alignment, our 3D face reconstruction branch is very robust under in-the-wild scenarios.
+
+# 3. Proposed Approach
+
+# 3.1. 3D Face Reconstruction
+
+In Fig. 3, we show a fixed number of $N$ vertices $(\mathbf{V} = [x_{1},y_{1},z_{1};x_{2},y_{2},z_{2};\dots ;x_{N},y_{N},z_{N}])$ on a predefined topological triangle context. These corresponding vertices share the same semantic meaning across different faces. With the fixed triangle topology, every pixel on the face can be indexed by the barycentric coordinates and the triangle index, thus there exists a pixel-wise correspondence with the 3D face. Comparing Mesh68 and Mesh1k in Fig. 3, it becomes obvious that more vertices make the mesh more informative and smooth. As the parameters of the last layer increase linearly with the size of the regression output, we choose to regress $1\mathrm{k} + 68$ vertices, which is a subset of 53, 215 vertices [42], carefully sampled to sufficiently retain the 3D faces structure.
+
+In this paper, we directly regress 3D vertices on the 2D image plane. As each densely aligned 3D face is represented by concatenating its $N$ vertex coordinates, we employ the following vertex loss to constrain the location of vertices:
+
+$$
+\mathcal {L} _ {v e r t} = \frac {1}{N} \sum_ {i = 1} ^ {N} | | \mathbf {V} _ {i} (x, y, z) - \mathbf {V} _ {i} ^ {*} (x, y, z) | | _ {1}, \tag {1}
+$$
+
+where $N = 1103$ is the number of vertices, $\mathbf{V}$ is the prediction of our model and $\mathbf{V}^*$ is the ground-truth.
+
+The $x$ and $y$ coordinates of visible vertices in the image space can be directly learned from input face images. However, predicting the $z$ coordinates and the $x$ and $y$ coordinates of invisible vertices is challenging due to the information loss occurring when projecting a face from 3D to 2D. By taking advantage of the 3D triangulation topology, we consider the edge length loss [37]:
+
+$$
+\mathcal {L} _ {\text {e d g e}} = \frac {1}{3 M} \sum_ {i = 1} ^ {M} | | \mathbf {E} _ {i} - \mathbf {E} _ {i} ^ {*} | | _ {1}, \tag {2}
+$$
+
+where $M = 2110$ is the number of triangles, $\mathbf{E}$ is the edge length calculated from the prediction and $\mathbf{E}^*$ is the edge length calculated from the ground truth. The edge graph is a fixed topology as shown in Fig. 3.
+
+By combining the vertex loss and the edge loss, we define the mesh regression loss as: $\mathcal{L}_{mesh} = \mathcal{L}_{vert} + \lambda_0\mathcal{L}_{edge}$ where $\lambda_0$ is set to 1 according to our experimental experience.
+
+# 3.2. Multi-level Face Localisation
+
+For any training anchor $i$ , we minimise the following multi-task loss:
+
+$$
+\begin{array}{l} \mathcal {L} = \mathcal {L} _ {c l s} \left(p _ {i}, p _ {i} ^ {*}\right) + \lambda_ {1} p _ {i} ^ {*} \mathcal {L} _ {b o x} \left(t _ {i}, t _ {i} ^ {*}\right) \\ + \lambda_ {2} p _ {i} ^ {*} \mathcal {L} _ {\text {p t s}} \left(l _ {i}, l _ {i} ^ {*}\right) + \lambda_ {3} p _ {i} ^ {*} \mathcal {L} _ {\text {m e s h}} \left(v _ {i}, v _ {i} ^ {*}\right). \tag {3} \\ \end{array}
+$$
+
+where $t_i, l_i, v_i$ are box, five landmarks and 1k vertices predictions, $t_i^*, l_i^*, v_i^*$ is the corresponding ground-truth, $p_i$ is the predicted probability of anchor $i$ being a face, and $p_i^*$ is 1 for the positive anchor and 0 for the negative anchor. The classification loss $\mathcal{L}_{cls}$ is the softmax loss for binary classes (face/not face).
+
+For a positive anchor with center coordinates $x_{center}^{a}, y_{center}^{a}$ and scale $s^a$ , we have the box size regression targets: $\log (w^{*} / s^{a})$ and $\log (h^{*} / s^{a})$ [21], where $w^{*}$ and $h^{*}$ are the width and height of the ground-truth face box. In addition, we have the following unified point regression targets for multi-level face localisation tasks:
+
+$$
+\begin{array}{l} \left(x _ {j} ^ {*} - x _ {\text {c e n t e r}} ^ {a}\right) / s ^ {a}, \\ (y _ {j} ^ {*} - y _ {\text {c e n t e r}} ^ {a}) / s ^ {a}, \\ \left(z _ {j} ^ {*} - z _ {\text {n o s e - t i p}} ^ {*}\right) / s ^ {a}, \tag {4} \\ \end{array}
+$$
+
+where $x_{j}^{*}$ and $y_{j}^{*}$ are the ground-truth coordinates of the two box corners, five facial landmarks and 1k 3D vertices in the image space, and $z_{j}^{*}$ is the ground-truth $z$ coordinates of the 1k 3D vertices. As we use orthographic projection to generate the ground-truth 3D meshes, we translate all vertices so that the $z$ coordinate of the nose tip is 0. Afterwards, we normalise the $z$ coordinates by the anchor scale. We follow [21] and use the smooth- $\mathrm{L}_1$ loss for all the above regression targets. As these three localisation tasks are homogeneous, the loss-balancing parameters $\lambda_{1} - \lambda_{3}$ are all set to 1.
+
+As illustrated in Fig. 4, face detection, five 2D facial landmark localisation and 3D face reconstruction are three face localisation tasks aiming at different levels of localisation detail which however, share the same target: accurate point regression on the image plane. Integrating direct regression of 3D vertices in the single-shot face detection design, induces no optimisation difficulty as it is compatible with box center regression and five facial landmark regression. Each task can benefit from other tasks such that: (1) localisation of more semantic points contributes to more accurate box prediction, and (2) more challenging training scenarios in the face detection dataset result in more robust point prediction.
+
+# 3.3. Single-shot Multi-level Face Localisation
+
+In Fig. 2, we present the framework of the proposed single-shot, multi-level face localisation approach. As can be seen, our model consists of three main components: the
+
+
+(a) Network Structure
+(b) Multi-task Loss
+
+
+Figure 2. (a) An overview of the proposed single-shot multi-level face localisation approach. (b) Detailed illustration of our loss design. RetinaFace is designed based on the feature pyramids with five scales. For each scale of the feature maps, there is a deformable context module. Following the context modules, we calculate a joint loss (face classification, face box regression, five facial landmarks regression and 1k 3D vertices regression) for each positive anchor. To minimise the residual of localisation, we employ cascade regression.
+Figure 3. A mesh consists of vertices plus triangles. Mesh68 is a coarse version used for quantitative evaluation and Mesh1k is a more elaborate version which includes facial details. In this paper, we regress Mesh68 and Mesh1k simultaneously.
+
+
+Figure 4. Three face localisation tasks have different levels of detail but share the same target: accurate point prediction on the image plane. Each task can benefit from other tasks.
+
+feature pyramid network, the context head module and the cascade multi-task loss. First, the feature pyramid network gets the input face images and outputs five feature maps of different scale. Then, the context head module gets a feature map of a particular scale and calculates the multi-task loss (Eq. 3). In more detail, the first context head module predicts the bounding box from the regular anchor, while subsequently, the second context head module predicts a more accurate bounding box using the regressed anchor, which is generated by the first context head module. The proposed RetinaFace employs fully convolutional neural net
+
+works, thus it can be easily trained in an end-to-end way.
+
+Feature Pyramid RetinaFace employs feature pyramid levels from $P_{2}$ to $P_{6}$ , where $P_{2}$ to $P_{5}$ are computed from the output of the corresponding ResNet residual stage ( $C_{2}$ through $C_{5}$ ) using top-down and lateral connections as in [35, 36]. $P_{6}$ is calculated through a $3 \times 3$ convolution with stride=2 on $C_{5}$ . $C_{1}$ to $C_{5}$ is a pre-trained classification network on the ImageNet-11k dataset while $P_{6}$ are randomly initialised using the "Xavier" method [22].
+
+Context Module Inspired by SSH [40] and Pyramid-Box [51], we also apply independent context modules on five feature pyramid levels to increase the receptive field and enhance the rigid context modelling power. We replace all $3 \times 3$ convolution layers within the lateral connections and context modules with the deformable convolution network (DCN) [11, 71], which further strengthens the non-rigid context modelling capacity.
+
+Cascade Multi-task Loss To further improve the performance of face localisation, we employ cascade regression [4, 65] with multi-task loss (Sec. 3.2). The loss head is a $1 \times 1$ convolution across different feature maps of dimension $H_{n} \times W_{n} \times 256$ , $n \in \{2, \ldots, 6\}$ . The first context head module predicts the bounding box from the regular anchor. Subsequently, the second context head module predicts a more accurate bounding box from the regressed anchor.
+
+Anchor Settings and Matching Strategy We employ scale-specific anchors on the feature pyramid levels from $P_{2}$ to $P_{6}$ similarly to [55]. Here, $P_{2}$ is designed to capture tiny faces by tiling small anchors at the cost of more computational time and with risk of more false positives. We set the scale step at $2^{1/3}$ and the aspect ratio at 1:1. With the input image size at $640 \times 640$ , the anchors can cover scales from $16 \times 16$ to $406 \times 406$ across the feature pyramid levels. In total, there are 102,300 anchors, and $75\%$ of these anchors are from $P_{2}$ . For the first head module, anchors are matched to a ground-truth box when Intersection over Union (IoU) is larger than 0.7, and to the background when IoU is less than 0.3. For the second head module, anchors are matched
+
+
+(a) Five Landmarks Annotation
+
+
+(b) 1k 3D Vertices Annotation
+Figure 5. We annotate (a) five facial landmarks and (b) 1k 3D vertices on faces that can be annotated from the WIDER FACE dataset.
+
+to a ground-truth box when IoU is larger than 0.5, and to the background when IoU is less than 0.4. Unmatched anchors are ignored during training. We employ OHEM [49, 69] to balance the positive and negative training examples.
+
+# 4. Experiments
+
+# 4.1. Dataset
+
+The WIDER FACE dataset [59] consists of 32,203 images and 393,703 face bounding boxes with a high degree of variability in scale, pose, expression, occlusion and illumination. As illustrated in Fig. 5, we define five levels of face image quality [13] according to how difficult it is to annotate landmarks on the face. We have manually annotated five facial landmarks (i.e. eye centres, nose tip and mouth corners) for $84.6k$ faces on the training set and $18.5k$ faces on the validation set. To obtain accurate ground-truth 3D vertices from 2D faces, we employ a semi-automatic annotation pipeline. That is, for each face we automatically recover 68 3D landmarks [15] and employ them to drive a 3DMM fitting algorithm [3] in order to reconstruct a dense 3D face with 53K vertices, projected on the image plane. To ensure high quality in the 3DMM fitting results, we recover UV texture maps from the fitted faces and ask annotators to inspect them for artifacts. If the fitting is not accurate, the annotator manually updates the 68 landmarks and gets another automatic 3DMM fitting. If the fitting is still not accurate, the face is discarded. Finally, we get $22k$ accurate 3D face annotations from the training set.
+
+Following [6], we also completed $27.1k$ and $39.3k$ 3D face annotations from the AFLW dataset [30] and the full FDDB image set [28] using our semi-automatic annotation method. For the face detection task, only the training data of the WIDER FACE dataset were used. For the rest of the tasks, face annotations from both the AFLW and FDDB datasets were employed, except for the subset of faces that overlaps with faces of the AFLW2000-3D dataset [72].
+
+| Method | Easy | Medium | Hard | average AP |
| Baseline | 95.832 | 95.243 | 89.875 | 52.65 |
| +DCN | 96.149 | 95.568 | 90.286 | 53.36 |
| +Cascade | 96.233 | 95.679 | 90.642 | 54.20 |
| Lpts | 96.570 | 95.913 | 91.161 | 54.73 |
| Lvert | 96.512 | 95.805 | 90.983 | 54.55 |
| Lmesh | 96.528 | 95.829 | 90.991 | 54.62 |
| L5pts+mesh | 96.713 | 96.082 | 91.447 | 55.02 |
+
+Table 1. Ablation experiments of RetinaFace (ResNet-50) on the WIDER FACE validation subset and the Hard test subset.
+
+# 4.2. Implementation Details
+
+Data Augmentation As there are around $20\%$ tiny faces in the WIDER FACE training set, we follow [69, 51] to randomly crop square patches from the original images and resize them to $640 \times 640$ resolution during training. Besides random crops, we also augment the training dataset by applying random horizontal flip and photo-metric colour distortion [69].
+
+Training and testing Details We train our method using a SGD optimizer (momentum at 0.9, weight decay at 0.0005, and batch size of $8 \times 4$ ) on four NVIDIA Tesla P40 (24GB) GPUs. The learning rate starts from $10^{-3}$ , rising to $10^{-2}$ after 5 epochs, then divided by 10 at 55 and 68 epochs. The training process is terminated at 80 epochs. Our implementation is on MXNet [9]. For the evaluation on WIDER FACE, we follow the standard practices of [40, 69] and employ flipping as well as multi-scale (the shorter image size at [500, 800, 1100, 1400, 1700]) strategies. Box voting [20] is applied on the union set of predicted facial boxes using an IoU threshold of 0.4. For the evaluation of other tasks, RetinaFace employs single-scale inference using the ResNet-50 backbone (model size: 155MB, speed: 22.3ms on the P40 GPU).
+
+# 4.3. Face Detection
+
+Besides the standard evaluation metric of Average Precision (AP), we also employ a more strict evaluation metric of average AP for IoU=0.5: 0.05: 0.95, rewarding more accurate face detectors. As illustrated in Tab. 1, we evaluate the performance of several different settings on the WIDER FACE validation set and report the average AP on the Hard test subset. Here, we use Resnet-50 [26] as the backbone and focus on the metric of average AP. By applying the Deformable Context Module (DCM) and cascade regression, we improve the average AP of the baseline to $54.20\%$ .
+
+Five facial landmarks regression $(\mathcal{L}_{pts})$ and 1k 3D vertices regression $(\mathcal{L}_{vert})$ improve the average AP by $0.53\%$ and $0.35\%$ , respectively. The difference in improvement percentage is due to the annotation of five facial landmarks being much easier than annotating 3D vertices, and thus more training data with 5 facial points annotations can be
+
+
+(a) False Positive Suppression
+
+
+
+
+
+
+(b) False Positive Examples
+
+
+
+
+Figure 6. Joint five facial landmarks regression and 1k 3D vertices regression can (a) significantly decrease the scores of false positives, and (b) effectively suppress high-score false positives.
+
+
+
+
+
+
+
+
+
+included, aiding to achieve a higher performance. Adding topology constraints into 1k 3D vertices regression only slightly improves face detection. However, they are beneficial for predicting $z$ coordinates and pose (Sec. 4.5). We therefore employ the mesh loss $(\mathcal{L}_{mesh})$ . Combining five facial landmark regression and mesh regression significantly improves the performance by $0.82\%$ .
+
+Besides improving the accuracy of facial boxes, joint five facial landmark regression and 1k 3D vertices regression can effectively suppress the scores of false positives as illustrated in Fig. 6(a). In Fig. 6(b), we show some high-score false positives $(>0.9)$ produced from the baseline. RetinaFace assigns much lower scores $(<0.3)$ to these crops. Moreover, for the baseline the class information for a face is only a binary label and no information exists about the image quality. In contrast, we annotate 1k 3D vertices for easy-to-medium level faces, and five facial landmarks for faces that can be annotated. These annotations implicitly indicate the information level of faces, which can be learned by our model. Therefore, RetinaFace only gives high confidence scores for very informative faces and low scores for less informative faces.
+
+To obtain the evaluation results from the WIDER FACE leader-board, we submitted the detection results of RetinaFace (ResNet-152) to the organisers. As shown in Fig. 7, we compared RetinaFace with other 29 state-of-the-art face detection algorithms (e.g. SSH [40], SFD [69], PyramidBox [51], DSFD [33], SFDet [68], RefineFace [67] etc.). Our approach sets up a new impressive record in terms of AP $(91.7\%)$ and outperforms these state-of-the-art methods on the Hard subset which contains a large number of tiny faces.
+
+# 4.4. Five Facial Landmark Localisation
+
+Face detection datasets are more challenging [59] than the face alignment datasets, which are usually collected by a pre-trained face detector with a high threshold. In the following experiments, we explore the benefits of training for point regression and face detection simultaneously.
+
+To evaluate the accuracy of five facial landmark localisation, we compare RetinaFace with MTCNN [66] and
+
+
+Figure 7. Precision-recall curves of RetinaFace (ResNet-152) on the WIDER FACE test Hard subsets.
+
+| Method | AUC (%) | Failure Rate (%) |
| MTCNN [66] | 36.63 | 26.31 |
| STN [7] | 42.63 | 24.23 |
| RetinaFace-MobileNet0.5 | 47.12 | 19.72 |
| RetinaFace-R50 | 58.54 | 9.82 |
| RetinaFace(w/o 3D)-R50 | 55.66 | 10.25 |
| AFLW-R50-gtbox | 44.91 | 25.40 |
| Wider-R50-gtbox | 61.55 | 8.78 |
+
+Table 2. Summary of five facial landmark localisation results on the WIDER FACE dataset. Accuracy is reported as the Area Under The Curve (AUC) and the Failure Rate (threshold at $10\%$ ). “-gtbox” refers to crop-based face alignment based on ground-truth facial boxes.
+
+STN [7] on the WIDER FACE validation set (18.5k faces). Here, we employ the face box size $(\sqrt{W\times H})$ as the normalisation distance. In Fig. 8(a), we show the Cumulative Error Distribution (CED) curves on the WIDER FACE validation set. As shown in Tab. 2, RetinaFace-MobileNet0.5 outperforms the baselines and decrease the failure rate to $19.72\%$ . By employing a deeper backbone (ResNet-50), RetinaFace-R50 further reduces the failure rate to $9.82\%$ . After removing the 3D mesh regression branch from RetinaFace, the AUC obviously decreases from $58.54\%$ to $55.66\%$ . This is because 3D mesh regression is pose-invariant and a joint training framework can improve the accuracy of 2D five facial landmarks. In Fig. 8(b), we test RetinaFace on the AFLW2000-3D profile subset (232 faces) [72], and we confirm that 3D mesh regression can significantly improve five facial landmark localisation under the large-pose scenario.
+
+We further train two crop-based five facial landmark regression networks (ResNet-50) on the AFLW dataset (24,386 faces) [30] and the WIDER FACE dataset, separately. Even with the ground-truth facial boxes, the model trained on AFLW still has a high failure rate $(25.40\%)$ , which indicates the difference in the difficulty level between the face alignment dataset (AFLW) and the face detection dataset (WIDER FACE). Even though the model trained on WIDER FACE achieves the highest performance, the computational complexity increases linearly with the number of faces in the input image. However, RetinaFace achieves
+
+
+(a) CED on WIDER FACE
+
+
+(b) NME on AFLW Profile
+Figure 8. Qualitative comparison between baselines and RetinaFace on five facial landmark localisation. (a) CED on the WIDER FACE validation set (18k faces) (b) NME on the AFLW2000-3D profile subset [72].
+
+| Method | [0°,30°] | [30°,60°] | [60°,90°] | Mean |
| SDM [72] | 3.67 | 4.94 | 9.67 | 6.12 |
| 3DDFA [72] | 3.43 | 4.24 | 7.17 | 4.94 |
| Yu et al. [61] | 3.62 | 6.06 | 9.56 | 6.41 |
| 3DSTN [2] | 3.15 | 4.33 | 5.98 | 4.49 |
| PRN [19] | 2.75 | 3.51 | 4.61 | 3.62 |
| FAME [5] | 3.11 | 3.84 | 6.60 | 4.52 |
| SS-SFN [6] | 3.09 | 4.27 | 5.59 | 4.31 |
| MS-SFN [6] | 2.91 | 3.83 | 4.94 | 3.89 |
| Lvert | 2.77 | 3.70 | 4.95 | 3.81 |
| Lmesh | 2.72 | 3.65 | 4.81 | 3.72 |
| L5pts+mesh | 2.57 | 3.32 | 4.56 | 3.48 |
+
+only slightly lower performance while its computational complexity remains fixed independently of the number of faces in each image.
+
+# 4.5.3D Vertex Regression
+
+Following [19], we evaluate the accuracy of 3D vertex regression on the AFLW2000-3D dataset [72] considering 68 points with the 2D projected coordinates. The mean error is normalised by the bounding box size [72]. In addition, our 3D vertex prediction can be used for (1) pose-invariant facial component segmentation [1], and (2) 3D pose estimation by utilizing a least squares solution [19] instead of solving a PnP problem.
+
+In Tab. 3, we compare the proposed RetinaFace (ResNet-50) with other state-of-the-art dense regression algorithms (e.g. PRN [19] and MS-SFN [6] etc.) for 68 landmark localisation under yaw angle variations. The proposed direct 3D vertex regression is more than able to handle 68 facial landmark localisation under pose-variations, achieving an impressive NME of $3.81\%$ . 3D topology constraints help to slightly decrease the NME to $3.72\%$ . After training the 2D landmark regression and 3D mesh regression jointly with the face detector, we achieve better performance than state-of-the-art methods. PRN [19] employs UV position map regression and MS-SFN [6] uses 3DMM parameter regression, both of which are indirect regression methods. In contrast, our method directly regresses the projected 3D ver
+
+Table 3. Comparison of NME(%) for 68 points on the AFLW2000-3D dataset.
+
+| Method | Eyebrow | Eye | Nose | Lip |
| DenseReg [1] | 47.62 | 74.29 | 87.71 | 72.35 |
| \( \mathcal{L}_{5pts+vert} \) | 71.3 | 76.85 | 90.90 | 75.43 |
| \( \mathcal{L}_{5pts+mesh} \) | 72.23 | 78.51 | 92.21 | 77.55 |
+
+Table 4. Semantic segmentation accuracy on the Helen test set [32] measured using IoU ratio.
+
+| Method | [0°,30°] | [30°,60°] | [60°,90°] |
| DenseReg [1] | 4.14 ± 3.93 | 5.96 ± 4.74 | 6.38 ± 4.90 |
| PRN [19] | 3.96 ± 3.43 | 5.75 ± 4.42 | 6.08 ± 4.41 |
| L5pts+vert | 3.79 ± 3.08 | 5.28 ± 3.83 | 5.60 ± 3.81 |
| L5pts+mesh | 3.69 ± 2.99 | 5.11 ± 3.73 | 5.41 ± 3.57 |
+
+Table 5. Yaw angle estimation on the AFLW2000-3D dataset.
+
+tices on the image plane, which can benefit from challenging training scenarios of face detection and large-scale five facial landmark annotations.
+
+Besides the evaluation on facial landmark localisation, we can also transfer our 3D vertex predictions into pixelwised segmentation maps for different semantic components [1]. After an additional linear regression from 1k vertices to 53k vertices, we directly employ the segmentation mask (right/left eyebrow, right/left eye, nose, and upper/ lower lip) defined in [1]. Tab. 4 reports evaluation results on the Helen test set [32] using the IoU ratio. Note that the ground-truth here is generated by deformation-free coordinates [1]. The results indicate that the proposed RetinaFace (ResNet-50) outperforms DenseReg (ResNet-101), which is based on indirect UV coordinate regression. In contrast, RetinaFace employs direct vertex regression on the image plane, which is beneficial for more accurate localisation on the image, e.g. the substantial improvement for eyebrows. Given that RetinaFace is not optimized for the segmentation task, we believe that the pose-invariant facial component segmentation results in Fig. 9 are impressive.
+
+As we can directly predict 3D vertices, the pose estimation is only the estimation of a rotation matrix obtained as the least squares solution between the regressed landmarks and the landmarks of a template face in frontal pose. In Tab. 5, we compare RetinaFace (ResNet-50) with DenseReg [1] and PRN [19] on the yaw angle estimation. Both DenseReg [1] and PRN [19] use an intermediate UV representation, while RetinaFace employs direct vertex regression on the image plane. As we can see from Tab. 5, RetinaFace can predict more accurate yaw angles with low variance, while topology constraints can further improve pose estimation. Both $z$ coordinates regression and pose estimation try to predict indirect 3D information from 2D images, thus the inclusion of topology constraints can boost both tasks by building the connections between direct image clues and indirect information estimation. In Fig. 9, we present the pose estimation results at the nose tip. RetinaFace is robust on pose estimation under expression variations, illumination changes and occlusions.
+
+
+
+
+Figure 9. Example results of RetinaFace on the AFLW2000-3D dataset. First row: 1k 3D vertices predicted by RetinaFace (ResNet-50, $\mathcal{L}_{\text{pts} + \text{mesh}}$ ). Second row: 3D pose estimation and mesh render by the Vulkan toolkit. Third row: pose-invariant facial component segmentation.
+Figure 10. Testing results of RetinaFace (ResNet-50, $\mathcal{L}_{5pts + mesh}$ ) compared to MFN [6] (first row). We show both the predicted 1k 3D vertices (Second row) and the 3D meshes rendered by the Vulkan toolkit (Third row). Please zoom in to check the missing faces (Column 2-4) and obvious mis-alignment (Column 5-6) by MFN.
+
+# 4.6. Multi-Face Reconstruction
+
+In Fig. 10, we compare RetinaFace with MFN [6] on multi-face images. MFN employs a single end-to-end network to jointly predict the bounding box locations and 3DMM parameters for multiple faces. However, 3DMM parameter regression is not as straightforward as our vertex regression on the image plane. In Columns 5 and 6, a misalignment problem in MFN can be observed. Even tiny variations in the predicted 3DMM parameters can significantly affect the reconstruction results. Nevertheless, RetinaFace can exactly fit the face boundary. In Columns 2, 3 and 4, it can be seen that several faces are missed by MFN. In contrast, our RetinaFace achieves state-of-the-art performance on WIDER FACE and can easily detect the tiny faces even under low illumination conditions. In the last row of Fig. 10, we render the 3D 1k vertices predicted by RetinaFace.
+
+# 5. Conclusion
+
+In this paper, we innovatively unify multi-level face localisation tasks under one common target: point regression on the image plane. We directly regress 3D vertices in the
+
+image space while constrained by the 3D topology of the employed 3D face template. Also, the proposed 3D mesh regression branch can be easily incorporated in parallel with the existing box and 2D landmark regression branches without any optimisation difficulty during joint training. Finally, extensive experimental results showed that the proposed mutually beneficial design can simultaneously achieve accurate face detection, 2D face alignment and 3D face reconstruction with efficient single-shot inference.
+
+Acknowledgements. We are thankful to Nvidia for the GPU donations and Amazon for the cloud credits. Jiankang Deng acknowledges financial support from the Imperial President's PhD Scholarship. Stefanos Zafeiriou acknowledges support from the EPSRC Fellowship DEFORM (EP/S010203/1), FACER2VM (EP/N007743/1) and a Google Faculty Fellowship. An early version of RetinaFace can be found in [13], where Yuxiang Zhou has contributed to the coloured mesh decoder by graph convolution and Jinke Yu has contributed to the face detection experiments on mobile devices.
+
+# References
+
+[1] Riza Alp Guler, George Trigeorgis, Epameinondas Antonakos, Patrick Snape, Stefanos Zafeiriou, and Iasonas Kokkinos. Densereg: Fully convolutional dense shape regression in-the-wild. In CVPR, 2017. 1, 2, 7
+[2] Chandrasekhar Bhagavatula, Chenchen Zhu, Khoa Luu, and Marios Savvides. Faster than real-time facial alignment: A 3d spatial transformer network approach in unconstrained poses. In ICCV, 2017. 7
+[3] James Booth, Anastasios Roussos, Evangelos Ververas, Epameinondas Antonakos, Stylianos Ploumpis, Yannis Panagakis, and Stefanos Zafeiriou. 3d reconstruction of "inthe-wild" faces in images and videos. TPAMI, 2018. 5
+[4] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In CVPR, 2018. 4
+[5] Feng-Ju Chang, Anh Tuan Tran, Tal Hassner, Iacopo Masi, Ram Nevatia, and Gerard Medioni. Deep, landmark-free fame: Face alignment, modeling, and expression estimation. IJCV, 2019. 1, 7
+[6] Bindita Chaudhuri, Noranart Vesdapunt, and Baoyuan Wang. Joint face detection and facial motion retargeting for multiple faces. In CVPR, 2019. 2, 5, 7, 8
+[7] Dong Chen, Gang Hua, Fang Wen, and Jian Sun. Supervised transformer network for efficient face detection. In ECCV, 2016. 2, 6
+[8] Dong Chen, Shaoqing Ren, Yichen Wei, Xudong Cao, and Jian Sun. Joint cascade face detection and alignment. In ECCV, 2014. 2
+[9] 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:1512.01274, 2015. 5
+[10] Cheng Chi, Shifeng Zhang, Junliang Xing, Zhen Lei, Stan Z Li, and Xudong Zou. Selective refinement network for high performance face detection. AAAI, 2019. 2
+[11] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 4
+[12] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In CVPR, 2019. 1
+[13] Jiankang Deng, Jia Guo, Yuxiang Zhou, Jinke Yu, Irene Kotsia, and Stefanos Zafeiriou. Retinaface: Single-stage dense face localisation in the wild. In arXiv:1905.00641, 2019. 5, 8
+[14] Jiankang Deng, Qingshan Liu, Jing Yang, and Dacheng Tao. M3 csv: Multi-view, multi-scale and multi-component cascade shape regression. IVC, 2016. 1
+[15] Jiankang Deng, Anastasios Roussos, Grigorios Chrysos, Evangelos Ververas, Irene Kotsia, Jie Shen, and Stefanos Zafeiriou. The menpo benchmark for multi-pose 2d and 3d facial landmark localisation and tracking. *IJCV*, 2019. 1, 5
+[16] Jiankang Deng, George Trigeorgis, Yuxiang Zhou, and Stefanos Zafeiriou. Joint multi-view face alignment in the wild. TIP, 2019. 1
+
+[17] Jiankang Deng, Yuxiang Zhou, Shiyang Cheng, and Stefanos Zaferiou. Cascade multi-view hourglass model for robust 3d face alignment. In FG, 2018. 1
+[18] Jiankang Deng, Yuxiang Zhou, and Stefanos Zafeiriou. Marginal loss for deep face recognition. In CVPR Workshops, 2017. 1
+[19] Yao Feng, Fan Wu, Xiaohu Shao, Yanfeng Wang, and Xi Zhou. Joint 3d face reconstruction and dense alignment with position map regression network. In ECCV, 2018. 1, 2, 7
+[20] Spyros Gidaris and Nikos Komodakis. Object detection via a multi-region and semantic segmentation-aware cnn model. In ICCV, 2015. 5
+[21] Ross Girshick. Fast r-cnn. In ICCV, 2015. 2, 3
+[22] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In AISTATS, 2010. 4
+[23] Jia Guo, Jiankang Deng, Niannan Xue, and Stefanos Zafeiriou. Stacked dense u-nets with dual transformers for robust face alignment. In BMVC, 2018. 1
+[24] Yudong Guo, Jianfei Cai, Boyi Jiang, Jianmin Zheng, et al. CNN-based real-time dense face reconstruction with inverse-rendered photo-realistic face images. TPAMI, 2018. 2
+[25] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 2
+[26] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
+[27] Peiyun Hu and Deva Ramanan. Finding tiny faces. In CVPR, 2017. 2
+[28] Vidit Jain and Erik Learned-Miller. Fddb: A benchmark for face detection in unconstrained settings. Technical report, UMass Amherst Technical Report, 2010. 2, 5
+[29] Amin Jourabloo and Xiaoming Liu. Large-pose face alignment via cnn-based dense 3d model fitting. In CVPR, 2016. 2
+[30] Martin Koestinger, Paul Wohlhart, Peter M Roth, and Horst Bischof. Annotated facial landmarks in the wild: A large-scale, real-world database for facial landmark localization. In ICCV workshops, 2011. 2, 5, 6
+[31] Felix Kuhnke and Jorn Ostermann. Deep head pose estimation using synthetic images and partial adversarial domain adaption for continuous label spaces. In ICCV, 2019. 1
+[32] Vuong Le, Jonathan Brandt, Zhe Lin, Lubomir Bourdev, and Thomas S Huang. Interactive facial feature localization. In ECCV, 2012. 7
+[33] Jian Li, Yabiao Wang, Changan Wang, Ying Tai, Jianjun Qian, Jian Yang, Chengjie Wang, Jilin Li, and Feiyue Huang. Dsfd: dual shot face detector. arXiv:1810.10220, 2018. 6
+[34] Jinpeng Lin, Hao Yang, Dong Chen, Ming Zeng, Fang Wen, and Lu Yuan. Face parsing with roi tanh-warping. In CVPR, 2019. 1
+[35] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 4
+[36] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In ICCV, 2017. 2, 4
+
+[37] Feng Liu, Luan Tran, and Xiaoming Liu. 3d face modeling from diverse raw scan data. In ICCV, 2019. 3
+[38] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In ECCV, 2016. 2
+[39] Stylianos Moschoglou, Athanasios Papaioannou, Christos Sagonas, Jiankang Deng, Irene Kotsia, and Stefanos Zafeiriou. Agedb: The first manually collected in-the-wild age database. In CVPR Workshops, 2017. 1
+[40] Mahyar Najibi, Pouya Samangouei, Rama Chellappa, and Larry S Davis. Ssh: Single stage headless face detector. In ICCV, 2017. 2, 4, 5, 6
+[41] Hongyu Pan, Hu Han, Shiguang Shan, and Xilin Chen. Mean-variance loss for deep age estimation from a face. In CVPR, 2018. 1
+[42] Pascal Paysan, Reinhard Knothe, Brian Amberg, Sami Romdhani, and Thomas Vetter. A 3d face model for pose and illumination invariant face recognition. In Advanced Video and Signal Based Surveillance, 2009. 3
+[43] Deva Ramanan and Xiangxin Zhu. Face detection, pose estimation, and landmark localization in the wild. In CVPR, 2012. 1
+[44] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016. 2
+[45] Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In CVPR, 2017. 2
+[46] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. 2
+[47] Elad Richardson, Matan Sela, and Ron Kimmel. 3d face reconstruction by learning from synthetic data. In 3DV, 2016. 2
+[48] Nataniel Ruiz, Eunji Chong, and James M Rehg. Fine-grained head pose estimation without keypoints. In CVPR Workshops, 2018. 1
+[49] Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. Training region-based object detectors with online hard example mining. In CVPR, 2016. 5
+[50] Brandon M Smith, Li Zhang, Jonathan Brandt, Zhe Lin, and Jianchao Yang. Exemplar-based face parsing. In CVPR, 2013. 1
+[51] Xu Tang, Daniel K Du, Zeqiang He, and Jingtuo Liu. Pyramidbox: A context-assisted single shot face detector. In ECCV, 2018. 2, 4, 5, 6
+[52] Ayush Tewari, Michael Zollhofer, Hyeongwoo Kim, Pablo Garrido, Florian Bernard, Patrick Perez, and Christian Theobalt. Mofa: Model-based deep convolutional face autoencoder for unsupervised monocular reconstruction. In ICCV, 2017. 2
+[53] Anh Tuan Tran, Tal Hassner, Iacopo Masi, and Gerard Medioni. Regressing robust and discriminative 3d morphable models with a very deep neural network. In CVPR, 2017. 2
+[54] Paul Viola and Michael J Jones. Robust real-time face detection. IJCV, 2004. 1
+
+[55] Jianfeng Wang, Ye Yuan, and Gang Yu. Face attention network: an effective face detector for the occluded faces. arXiv:1711.07246, 2017. 2, 4
+[56] Jing Yang, Adrian Bulat, and Georgios Tzimiropoulos. Fanface: a simple orthogonal improvement to deep face recognition. In AAAI, 2020. 1
+[57] Jing Yang, Jiankang Deng, Kaihua Zhang, and Qingshan Liu. Facial shape tracking via spatio-temporal cascade shape regression. In ICCV Workshops, 2015. 1
+[58] Jing Yang, Qingshan Liu, and Kaihua Zhang. Stacked hourglass network for robust facial landmark localisation. In CVPR Workshops, 2017. 1
+[59] Shuo Yang, Ping Luo, Chen-Change Loy, and Xiaou Tang. Wider face: A face detection benchmark. In CVPR, 2016. 2, 5, 6
+[60] 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 CVPR, 2019. 1
+[61] Ronald Yu, Shunsuke Saito, Haoxiang Li, Duygu Ceylan, and Hao Li. Learning dense facial correspondences in unconstrained images. In ICCV, 2017. 7
+[62] Stefanos Zafeiriou, Cha Zhang, and Zhengyou Zhang. A survey on face detection in the wild: past, present and future. CVIU, 2015. 1
+[63] Changzheng Zhang, Xiang Xu, and Dandan Tu. Face detection using improved faster rcnn. arXiv:1802.02142, 2018. 2
+[64] Feifei Zhang, Tianzhu Zhang, Qirong Mao, and Changsheng Xu. Joint pose and expression modeling for facial expression recognition. In CVPR, 2018. 1
+[65] Hongkai Zhang, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xin Chen. Cascade retina: Maintaining consistency for single-stage object detection. In BMVC, 2019. 4
+[66] Kaipeng Zhang, Zhanpeng Zhang, Zhifeng Li, and Yu Qiao. Joint face detection and alignment using multitask cascaded convolutional networks. SPL, 2016. 2, 6
+[67] Shifeng Zhang, Cheng Chi, Zhen Lei, and Stan Z Li. Refine-face: Refinement neural network for high performance face detection. In arXiv:1909.04376, 2019. 6
+[68] Shifeng Zhang, Longyin Wen, Hailin Shi, Zhen Lei, Siwei Lyu, and Stan Z Li. Single-shot scale-aware network for real-time face detection. IJCV, 2019. 6
+[69] Shifeng Zhang, Xiangyu Zhu, Zhen Lei, Hailin Shi, Xiaobo Wang, and Stan Z Li. S3fd: Single shot scale-invariant face detector. In ICCV, 2017. 2, 5, 6
+[70] Yuxiang Zhou, Jiankang Deng, Irene Kotsia, and Stefanos Zafeiriou. Dense 3d face decoding over 2500fps: Joint texture & shape convolutional mesh decoders. In CVPR, 2019. 1
+[71] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. arXiv:1811.11168, 2018. 4
+[72] Xiangyu Zhu, Zhen Lei, Xiaoming Liu, Hailin Shi, and Stan Z Li. Face alignment across large poses: A 3d solution. In CVPR, 2016. 1, 2, 5, 6, 7
\ No newline at end of file
diff --git a/retinafacesingleshotmultilevelfacelocalisationinthewild/images.zip b/retinafacesingleshotmultilevelfacelocalisationinthewild/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..66b5f59015415d7b7ecb15329f19607085d5bffd
--- /dev/null
+++ b/retinafacesingleshotmultilevelfacelocalisationinthewild/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7f091a920c9027bed079e50a292883285d7a13fc7e6e8d0cc7879c5023a3eec9
+size 685130
diff --git a/retinafacesingleshotmultilevelfacelocalisationinthewild/layout.json b/retinafacesingleshotmultilevelfacelocalisationinthewild/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..aa9aed6b8e8d95b4c9bec1e210c0c314915c9633
--- /dev/null
+++ b/retinafacesingleshotmultilevelfacelocalisationinthewild/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ae9e9f6ce69562abdcf1e2b40292857b093f8b8d82dd8e00ec5a42ca4a44fa3
+size 464710
diff --git a/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_content_list.json b/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ea56c7ca052c6be8bb7fc4f5bf0117a482ce3804
--- /dev/null
+++ b/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:057025b85f83aea43883af4591f4047f3c8efc15f0361e28f2e4ebcbb4196e09
+size 68003
diff --git a/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_model.json b/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f9f2ecceccef45254f4d67519f9291b2bf34071
--- /dev/null
+++ b/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36fa749cf43906d1d946773453f9d8b944ab897e18a030dbae0801600b184557
+size 80975
diff --git a/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_origin.pdf b/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e3237a884bdf46c9abb8f1ebcbf07c1d2c8ecb2c
--- /dev/null
+++ b/retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d4f494b57386dd6bac0e4eaf83e3c07314e20ad6e9dcb8604694f32f5a1baaa
+size 2851063
diff --git a/retinalikevisualimagereconstructionviaspikingneuralmodel/full.md b/retinalikevisualimagereconstructionviaspikingneuralmodel/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..146f6a7ab7ed08675a67de56bc69f6eb6c7317b5
--- /dev/null
+++ b/retinalikevisualimagereconstructionviaspikingneuralmodel/full.md
@@ -0,0 +1,309 @@
+# Retina-like Visual Image Reconstruction via Spiking Neural Model
+
+Lin Zhu $^{1,2}$ Siwei Dong $^{1}$ JianingLi $^{1,2}$ Tiejun Huang $^{1}$ Yonghong Tian $^{1,2,*}$ Peking University $^{1}$ Pengcheng Laboratory $^{2}$
+
+{linzhu,swdong,lijianing,tjhuang,yhtian}@pku.edu.cn
+
+# Abstract
+
+The high-sensitivity vision of primates, including humans, is mediated by a small retinal region called the fovea. As a novel bio-inspired vision sensor, spike camera mimics the fovea to record the nature scenes by continuous-time spikes instead of frame-based manner. However, reconstructing visual images from the spikes remains to be a challenge. In this paper, we design a retina-like visual image reconstruction framework, which is flexible in reconstructing full texture of natural scenes from the totally new spike data. Specifically, the proposed architecture consists of motion local excitation layer, spike refining layer and visual reconstruction layer motivated by bio-realistic leaky integrate and fire (LIF) neurons and synapse connection with spiketiming-dependent plasticity (STDP) rules. This approach may represent a major shift from conventional frame-based vision to the continuous-time retina-like vision, owing to the advantages of high temporal resolution and low power consumption. To test the performance, a spike dataset is constructed which is recorded by the spike camera. The experimental results show that the proposed approach is extremely effective in reconstructing the visual image in both normal and high speed scenes, while achieving high dynamic range and high image quality.
+
+# 1. Introduction
+
+Autonomous driving, wearable computing, unmanned aerial vehicles, are typical emerging real-time applications which require rapid reaction in vision processing [19]. Conventional cameras compress the video data in the exposure time into one frame, and the temporal changes in that time will be lost [11]. When performing image analysis tasks such as detecting or tracking an object, these consecutive frames have to be compared to recover temporal changes, which is computationally expensive and is difficult to achieve satisfactory results [21].
+
+If we turn attention to the human vision, the visual sam
+
+pling is quite different from that of a digital camera. There is no concept of frames or pictures in human vision. Although the mechanism of human vision is too complicated to be fully understood, the physical structures and the signal processing in human retina give us some hints and inspirations. Among them, the dynamic vision sensor (DVS) is the most well-recognized [8, 1]. In DVS, each pixel responds independently to the changes of luminance intensity by generating asynchronous spikes. This mechanism is similar to the periphery of the retina, which is sensitive only to moving objects. The temporal redundancy of the output spikes is natively reduced, however, it is not able to reconstruct the visual images as the conventional camera does. Although there are some hybrid sensors combing DVS and conventional image sensor (DAVIS) [5], or adding an extra photo-measurement circuit (ATIS [23], CeleX [13]), there exists motion mismatch since the difference of the sampling time resolution.
+
+To solve the problem of capturing visual texture while maintaining the continuous-time signal, researchers designed a class of time-based sensors to make each pixel mimics the behaviour of an integrate-and-fire neuron and works asynchronously [2, 6, 16]. Instead of choosing a fixed integration time for all pixels like a conventional camera, the time-based sensor ensures that each pixel selects its own optimal integration time to achieve a high dynamic range and an improved signal-to-noise ratio. This kind of sensor enables the reconstruction of visual textures in a frame-free manner. Using a time window or the inter-spike interval, the image texture can be reconstructed [6].
+
+Recently, [28] proposed a fovea-like sampling method (FSM) which falls into the category of time-based sensors. Compared to previous time-based sensors, this sensor namely spike camera is with high spatial $(250 \times 400)$ and temporal resolutions $(40000\mathrm{Hz})$ , which is suitable to deal with high-speed vision tasks [28]. However, the previous reconstruction algorithms [6, 28] will suffer the problem of low contrast or blur in complex environments. Therefore, how to flexibly use the time-continuous spike information is a key problem of high-quality image reconstruction.
+
+In this paper, we propose a new retina-like visual im
+
+
+Figure 1. The spike camera based on fovea-like sampling and visual image reconstruction.
+
+age reconstruction framework, as shown in Fig 1. The main contributions of this paper include: 1) We propose a three-layer spiking neural model which relies on a combination of biologically plausible mechanisms. Using time-continuous spike data, our method can reconstruct images at any sampling moment, and retain the details of high-speed motion and static background simultaneously. 2) We propose a dynamic neuron extraction model to distinguish the neuron states (dynamic or static) in an incremental way, which is useful for reconstructing high quality high-speed motion scenes. 3) We construct a new spike dataset for evaluating the reconstruction method, and make these available to the research community.
+
+# 2. Spike Data Analysis
+
+# 2.1. Spike Data Representation
+
+In FSM, the intensity of light is converted into voltage by the photoreceptor [28]. Once the voltage reaches a predefined threshold, a one-bit spike is outputted and a signal to reset the integrator is dispatched at the same time. This process is quite similar to the integrate-and-fire neuron. Different luminance stimuli $I$ leads to a different spike firing rate, the output and the reset are triggered asynchronously among various pixels. Typically, the brighter the light, the faster the firing speed:
+
+$$
+\int I d t \geq \phi \tag {1}
+$$
+
+The raw data from the spike camera is a three-dimensional spike array $D$ . The spike camera only cares about the integration of the luminance intensity and fires spikes in an ultra high frequency. At each sampling moment, if a spike is just fired, a digital signal "1" (i.e. a spike) is outputted, otherwise "0" is generated. We define $S_{i,j}(t) \in \{0,1\}$ to represent the spike firing status of pixel $(i,j)$ at the moment $t$ . For simplicity, we use spike plane to represent the spike signal outputted by all pixel at a certain moment, while the time-continuous spike signals generated by a certain pixel is called a spike train (see Fig 5 (a)).
+
+# 2.2. Spike Data Distribution
+
+The integrator has a predefined capacity which is also known as the spike firing threshold $\phi$ . If the integrator is
+
+filled, it will be reset and fires a spike. Due to the variation of the light, the duration of filling the integrator from empty to fulfilled is not constant. Microscopically, a spike is generated means a fixed number of photons have been recorded. We define $N(t,\delta)$ as the number of photons arrived at the photoreceptor within the time interval $[t,t + \delta)$ , and $R(t,\delta)$ as the number of photons recorded actually in the same period. However, the dead time $\tau$ between two consecutive photon arrivals makes $N(t,\delta)$ and $R(t,\delta)$ are not equal. If the former arrival is recorded at time $t$ , any latter photon arrivals during $(t,t + \tau]$ will not be recorded.
+
+In fact, the photon record process $R(t,\delta)$ can be seemed as a renewal process, which involves recurrent patterns after each of which the process starts from scratch. The photon arrival process is usually assumed to be a homogeneous Poisson process. It is parameterized by a single scalar $\lambda$ which gives the mean rate of the photon arrivals. If the waiting time between one renewal and the next has ensemble mean and variance, the photo recording process with dead time $\tau$ is asymptotically Gaussian distributed [7]:
+
+$$
+E \sim \frac {\lambda \delta}{1 + \lambda \tau}, V a r \sim \frac {\lambda \delta}{(1 + \lambda \tau) ^ {3}} \tag {2}
+$$
+
+To validate the model, we record several spike sequences using the spike camera under various light conditions. We assume that the record of $n$ photons will reach the dispatch threshold $\phi$ and generate a spike. If the spike firing time is denoted as $t_i$ , the inter-spike interval is $t_{isi} = t_i - t_{i-1}$ . As shown in Fig 2, the blocks with different grayscale values represent the luminance intensities, which indicates that larger intensities lead to higher spike firing rates and shorter inter-spike intervals (ISIs). The RMSE shows that the interspike interval distribution histogram can be well fitted by the approximate Gaussian distribution.
+
+Based on the above, we are able to model the ISI distribution of a certain intensity by a Gaussian distribution. In Sec 3.2, a dynamic neuron extraction model is proposed to extract the spike signal representing moving object according to the ISI distribution.
+
+# 3. Spiking Neural Model
+
+To address the challenge of visual image reconstruction from the spike data, we propose a novel spike neural mod
+
+
+Figure 2. The spike data distribution under different intensities. Left: The spike train generated by different light intensity. Larger intensities lead to higher spike firing rates and shorter inter-spike intervals. Right: the exact ISI distribution histogram, approximate Gaussian distribution and their Root Mean Squard Error (RMSE). The RMSE shows that the approximate Gaussian distribution can well fit the real ISI distribution.
+
+
+
+el based on the inspiration from the biological neural dynamics and the adaptation. In biological neural systems, a neuron receiving the stimuli and firing a spike can be abstracted as a leaky integrate-and-fire (LIF) model [14]. In LIF model, the membrane potential $V(t)$ is governed by the following differential equation:
+
+$$
+\tau_ {m} \frac {d V}{d t} = - (V (t) - V _ {\text {r e s t}}) + R I (t) \tag {3}
+$$
+
+where $V_{\text{rest}}$ is the rest potential, $I(t)$ is the total synaptic current, $R$ is the membrane resistance and $\tau_m$ is the membrane time constant. In the absence of input, the membrane potential decays exponentially to its resting. With the input spikes, each input yields the input potential onto the membrane potential $V(t)$ . Each time the membrane potential hits the threshold, the membrane potential $V(t)$ is reset to $V_{\text{rest}}$ and a spike is fired [14]. The refractory period in a neuron occurs after one output spike, which is quite different in various neurons.
+
+In addition, there exists multiple adaptation mechanisms in biological neuron. The neuron is adaptively adjusted according to the input spike characteristics. For instance, the synapse plasticity [3, 4] modulates the efficiency of neural connections by its weight, while the membrane potential thresholds (spike firing thresholds) of various neurons are different to adapt to different stimuli. The dynamic threshold [9] allows that more frequent stimuli may lead to greater thresholds, and vice versa.
+
+Based on the inspiration from biological neurons, we propose a spiking neural model to solve the problem of image reconstruction. The model shown in Fig 3 includes motion local excitation layer, spike refining layer and visual reconstruction layer. The motion local excitation layer receives spikes input and marks the motion state of neurons (static or dynamic). Then the spike refining layer adjusts the refractory period of each neuron according to its motion state, which acts as a temporal filter. The last visual reconstruction layer adopts the adaptation mechanism widely existed in biological neurons, and maps the dynamic threshold of each neuron into a grayscale image as the output.
+
+The overall architecture of the spiking neural model is illustrated in Fig 3 and in more detail in Fig 5. The architecture of the spiking neural model is described in Sec 3.1. The dynamic neuron extraction based on graph cuts is shown in Sec 3.2. Sec 3.3 presents the synapse connection, while the visual image reconstruction is introduced in Sec 3.4.
+
+# 3.1. Model Architecture
+
+Motion Local Excitation Layer The motion local excitation layer operates on the input spike data and outputs spike train with binary marks (dynamic or static). The purpose is to distinguish the neuron state according to the input spike data. Each neuron in this layer is connected to the input spike data in one-to-one connections. In this layer, the input spike data is modelled as a motion confidence matrix according to the historical firing distribution. Then, for current moment, the neuron states can be abstracted into the first-order Markov Random Field with binary labels [12], and a motion local extractor based on the graph cuts is performed. In this way, each output spike has a dynamic or static mark to distinguish the state of the neuron. The detail will be described in Sec 3.2.
+
+Spike Refining Layer To model neuronal dynamics, the LIF model is introduced in spike refine layer. In this layer, the input spikes are filtered to keep the fast response to the motion while removing the noise. The size of this layer is the same as the motion local excitation layer, each input is fed to one neuron in this layer. In order to rapidly respond to the motion, we set the threshold voltage to a very small value. To eliminate the noise, according to the mark given by the motion local excitation layer, a relatively long refractory period should be set if the current input spike is marked static; otherwise, if the spike comes from a dynamic neuron, a relatively short refractory period should be set. By the above mechanism, the spike refining layer can significantly eliminate the noise, and mitigate the over-exposure by reducing the firing rate. Meanwhile, this layer retains as much detail as possible to maintain the fidelity of dynamic spike while preserved high dynamic range.
+
+
+Figure 3. The overall architecture of spiking neural model.
+
+Visual Reconstruction Layer As in the previous layer, the neurons in this layer are LIF neurons. Each neuron receives the spike train from the spike refining layer, and the neuron and the synaptic connection make various adaptive adjustments. The visual image is reconstructed according to the state of the neuron. The neurons of this layer are connected in a one-to-many fashion to that of spike refining layer. These neurons have no refractory period. STDP learning rule [4] is performed between these two layers to learn to adjust the spike firing rate (see Sec 3.3). In addition, to achieve the homeostasis of the system, threshold adaptation [9] is introduced in this layer. According to the statistics of the neuron state and dynamic threshold, high quality visual images including dynamic and static scenes can be reconstructed simultaneously (see Sec 3.4).
+
+# 3.2. Dynamic Neuron Extraction
+
+In this section, we propose a dynamic neuron extraction model to mark input spikes as dynamic or static. As analyzed in Sec 2.2, the ISI is equal to the time of a fixed number of photons have been recorded, which is proportional to the firing threshold $\phi$ of the integrator. For a constant photon arrival rate $\lambda$ , the ISI distribution has an unimodal and symmetric distribution which approaches a Gaussian distribution. The region visited by a moving object has a dissimilar ISI distribution from that driven by static region. Therefore, we associate the ISI of each neuron with a Gaussian probability model with mean $\mu$ and covariance $\sigma$ :
+
+$$
+\operatorname {I S I} \sim \mathcal {N} (\mu , \sigma) \tag {4}
+$$
+
+Assuming that each neuron corresponds to a coordinate $(i,j), i \in [1,m], j \in [1,n]$ , where $m$ and $n$ are the resolution of spike camera. The $ij$ -th neuron is denoted as $ij$ , we evaluate all the moments against their corresponding ISI distribution models and obtain the confidence map $C_{ij}(t) \in \mathbb{R}^{T \times 1}$ , which corresponds to the confidence of the location belong to static region. Therefore, the motion confidence of each neuron at different moment is:
+
+$$
+O = \left[ \begin{array}{c c c} C _ {1 1} & \dots & C _ {1 n} \\ \vdots & \ddots & \vdots \\ C _ {m 1} & \dots & C _ {m n} \end{array} \right] \in \mathbb {R} ^ {m \times n \times T} \tag {5}
+$$
+
+
+Figure 4. The illustration of dynamic neuron extraction. This operation is performed in motion local excitation layer. The dynamic neurons corresponding to digital and turntable center are extracted. Top: the visualized result of the motion confidence matrix $O$ . Bottom: the dynamic neuron extraction results.
+
+At the moment $t$ , the mark matrix $M^t \in \{0,1\}^{m \times n}$ is a binary matrix denoting the states of the neurons:
+
+$$
+M _ {i j} ^ {t} = \left\{ \begin{array}{l l} 1 & \text {i f i j b e l o n g s t o m o t i o n r e g i o n a t m o m e n t} t \\ 0 & \text {o t h e r w i s e} \end{array} \right. \tag {6}
+$$
+
+We use $\mathcal{P}_{M^t}(X)$ to represent the orthogonal projection of a matrix $X$ onto the linear space of matrices supported by $M^t$ ,
+
+$$
+\mathcal {P} _ {M ^ {t}} (X) (i, j) = \left\{ \begin{array}{l l} 0 & \text {i f} M _ {i j} ^ {t} = 0 \\ X _ {i j} & \text {i f} M _ {i j} ^ {t} = 1 \end{array} \right. \tag {7}
+$$
+
+and $\mathcal{P}_{M^{t\perp}}(X)$ to be its complementary projection, i.e., $\mathcal{P}_{M^t}(X) + \mathcal{P}_{M^{t\perp}}(X) = X$
+
+The binary matrix $M^t$ can be naturally modeled by a Markov Random Field (MRF) [12]. Consider a graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , where $\mathcal{V}$ is the set of vertices denoting all $m \times n$ neurons and $\mathcal{E}$ is the set of edges connecting spatially neighboring neurons. According to the Ising model [17], the energy of $M$ can be represented as:
+
+$$
+\sum_ {i j \in \mathcal {V}} u _ {i j} \left(M _ {i j}\right) + \sum_ {(i j, k l) \in \mathcal {E}} \lambda_ {i j, k l} \left| M _ {i j} - M _ {k l} \right| \tag {8}
+$$
+
+where
+
+$$
+u _ {i j} \left(M _ {i j}\right) = \left\{ \begin{array}{l l} \lambda_ {i j} & \text {i f} M _ {i j} = 1 \\ 0 & \text {i f} M _ {i j} = 0 \end{array} \right. \tag {9}
+$$
+
+where $\lambda_{ij,kl}$ controls the strength of dependency between $M_{ij}$ and $M_{kl}$ , and $\lambda_{ij}$ controls the sparsity of $M_{ij} = 1$ .
+
+Since $O^t$ denotes the motion confidence, we assume that $O^t = M^t + N^t$ , where $N^t$ denotes the noise. For the static neurons of $M_{ij}^t = 0$ , the noise $N^t = \mathcal{P}_{M^{t\perp}}(O^t)$ should be minimized. Combining the above motion model and noise model, we propose the following optimization:
+
+$$
+\begin{array}{l} \min _ {M _ {i j} ^ {t} \in 0, 1} \frac {1}{2} \sum_ {i j} \mathcal {P} _ {M ^ {t \perp}} \left(O _ {i j} ^ {t}\right) ^ {2} + \sum_ {i j \in \mathcal {V}} u _ {i j} \left(M _ {i j} ^ {t}\right) \tag {10} \\ + \sum_ {(i j, k l) \in \mathcal {E}} \\ \end{array}
+$$
+
+For simplicity, we set $\lambda_{ij} = \alpha$ and $\lambda_{ij,kl} = \beta$ . Eq. 10 can be rewritten as follows:
+
+$$
+\min _ {M _ {i j} ^ {t} \in 0, 1} \sum_ {i j} \left(\alpha - \frac {1}{2} \left(O _ {i j} ^ {t}\right) ^ {2}\right) M _ {i j} ^ {t} + \beta \| E \operatorname {v e c} \left(M ^ {t}\right) \| _ {1} + c \tag {11}
+$$
+
+where $c = \frac{1}{2}\sum_{ij}(O_{ij}^t)^2$ , $E$ is the node-edge incidence matrix of $\mathcal{G}$ . Eq. 11 is the standard form of the first-order MRFs with binary labels, which can be solved exactly by graph cuts [15].
+
+The illustration of dynamic neuron extraction is shown in Fig 4. The proposed model is sufficient to distinguish the neuron state. When a new set of spikes arrives, the confidence matrix is updated incrementally, and the graph cuts can be operated for each moment separately.
+
+# 3.3. Synapse Connection
+
+Synapse is a structure that permits a neuron to pass a voltage signal to another neuron according to their weights. In applications of spiking neural network (SNN), the weights can be trained following a learning rule or set to constant values. Synaptic plasticity is the basic mechanism of underlying learning in biological networks [3]. It is defined as the ability to modulate the efficiency (also known as weight) of neural connections. In the biological vision system, information coding is established in an unsupervised way. Among the SNN learning rules, spike timing dependent plasticity (STDP) [3] is the most popular one. With STDP, if the presynaptic spike to a neuron tends to shortly before it fires, then the synaptic weight is made stronger (Long-Term Potentiation, LTP); whereas if an input spike tends to occur immediately after an output spike, then that particular input is made somewhat weaker (Long-Term Depression, LTD). In this work, biological STDP [4] is used to learn the rule of spike firing of static neurons, which is defined as:
+
+$$
+\Delta \omega = \sum_ {t _ {p r e}} \sum_ {t _ {p o s t}} W \left(t _ {p o s t} - t _ {p r e}\right) \tag {12}
+$$
+
+where $\Delta \omega$ is the weight variation, $t_{pre}$ and $t_{post}$ denote the firing time of the input neuron (presynaptic spike time) and
+
+output neuron (postsynaptic spike time), respectively. The function $W$ is defined as:
+
+$$
+W (\Delta t) = \left\{ \begin{array}{l l} A _ {p r e} \exp (- \Delta t / \tau_ {p r e}) & \text {i f} \Delta t > 0 \\ A _ {p o s t} \exp (\Delta t / \tau_ {p o s t}) & \text {i f} \Delta t < 0 \end{array} \right. \tag {13}
+$$
+
+where the parameters $A_{pre}$ and $A_{post}$ depend on the current value of the synaptic weight $\omega$ .
+
+The neurons between two adjacent layers can be connected in different ways. As mentioned above, between the second and third layers, we use a one-to-many manner to connect their neurons. We assume that neurons are distributed in a regular grid and that the distance between adjacent neurons is a constant. A presynaptic neuron will connect to multiple postsynaptic neurons if the following conditions are met:
+
+$$
+\sqrt {\left(x _ {p r e} - x _ {p o s t}\right) ^ {2} + \left(y _ {p r e} - y _ {p o s t}\right) ^ {2}} < R \tag {14}
+$$
+
+where $x$ and $y$ are the coordinates of neurons, $R$ is the connection range. And the initial weights for each synapse are obtained as following:
+
+$$
+\omega = \exp \left(- k \sqrt {\left(x _ {p r e} - x _ {p o s t}\right) ^ {2} + \left(y _ {p r e} - y _ {p o s t}\right) ^ {2}} / R\right) \tag {15}
+$$
+
+where $k$ controls the weight distribution. The initial weights are adaptively updated at the arrival of each spike according to STDP learning rules.
+
+# 3.4. Visual Image Reconstruction
+
+In this section, we reconstruct visual information suitable for human viewing according to the state of neuron. The inhomogeneity of the input leads to different firing rates of the excitatory neuron. In order to ensure that the neurons adapt to input spike train, we hope that all neurons will have approximately equal firing rates. To this end, a common method to adapt thresholds is to use leaky adaptive thresholds [9]: when a neuron fires a spike, a dynamic adjusting is performed for threshold to adapt the firing rate to prevent it from firing too often. The more frequently a neuron fires spikes, the higher will be its threshold. In turn, the neuron needs more inputs to fire a spike in the near future. Similar to [10], we define the model of the dynamic threshold as:
+
+$$
+\vartheta_ {i j} (t) = \vartheta_ {0} + \int_ {0} ^ {\infty} \theta_ {i j} (s) S _ {i j} ^ {\prime} (t - s) d s \tag {16}
+$$
+
+where $\vartheta_0$ is the initial threshold of neuron in the absence of spiking, and $S_{ij}^{\prime}$ denotes the fired spikes of this layer. The firing threshold of the neuron is increased by an amount $\theta_{ij}$ and is exponentially decaying after firing a spike. The increase amount $\theta_{ij}$ is defined as:
+
+$$
+\theta_ {i j} (t) = \left\{ \begin{array}{l l} \eta_ {0} \exp \left(\frac {- (t - t _ {f})}{\tau}\right) & \text {i f} M _ {i j} ^ {t} = 0 \\ \eta_ {0} \exp \left(\frac {- (t - t _ {w})}{\tau \int_ {t _ {w}} ^ {t} S _ {i j} (x) d x}\right) & \text {i f} M _ {i j} ^ {t} = 1 \end{array} \right. \tag {17}
+$$
+
+
+Figure 5. The microscopic analysis of spiking neural model. (a) The input spike data is converted to spike plane (black dashed box) and spike train (red dashed box). The spike plane connects to the motion local excitation layer, and the dynamic neurons at this moment are marked, while the spike train with the mark information input to the next layer. (b) The noise spikes are eliminated by the mechanism of the refractory period while the static and dynamic spikes are preserved. (c) Each input spikes yield a potential according to STDP, and if the accumulated membrane potential reaches the threshold, the model is adaptively adjusted to fit the input spikes. According to Eq. 18 and 19, the pixel intensity at each moment can be reconstructed (i.e. $t_1$ : dynamic spikes, $t_2$ : static spikes), as shown in (d).
+
+where $S_{i,j}(t)$ is the spike train input to this layer, $t_f$ denotes the most recent firing time, $t_w$ is a moment before $t$ that can be set as a constant, and $\tau$ is the time constant. In practice, we can set $t_w$ to a small value so as to avoid threshold instability due to dynamic spike.
+
+Finally, the grayscale value of the visual image can be estimated from the neuron state and firing threshold: if the neuron $(i,j)$ belongs to a static neuron at moment $t$ , in other words, $M_{i,j}^{t} = 0$ , then the grayscale value is
+
+$$
+G _ {i, j, t} = \vartheta_ {i j} (t) \tag {18}
+$$
+
+Otherwise
+
+$$
+G _ {i, j, t} = \vartheta_ {i j} \left(t ^ {-}\right) * \kappa (t) ^ {\gamma} \tag {19}
+$$
+
+where $\vartheta_{ij}(t^{-})$ denotes the convergence value of $\vartheta_{ij}$ before time $t$ , $\kappa(t) = t^{-} / (t_{isi} \int_0^t S_{ij}(x) dx)$ is an adjustment parameter to reconstruct the accurate gray value of dynamic
+
+region, $t_{isi}$ denotes the inter-spike interval corresponding to time $t$ , and $\gamma$ controls the contrast of reconstructed dynamic region.
+
+# 4. Experiment
+
+# 4.1. Spike Dataset
+
+To test the proposed spiking neural model, we build a dataset including spike sequences captured by the spike camera1. This dataset contains eight sequences including two categories of normal speed (Class A) and high speed (Class B) scenarios. Each sequence is captured by the spike camera with $40,000\mathrm{Hz}$ sampling rate. Class A contains four sequences, of which "Office" is an indoor scene, and "Gallery", "Lake" and "Flower" are outdoor scenes. Class
+
+
+Class A (Normal speed)
+Figure 6. The reconstruction results on Class A and B. We compared our method with TFW, TFI and TFA [28] on Class A. Since TFP and TFA have no ability to reconstruct dynamic scenes, we only compare our methods with TFI on Class B.
+
+Table 1. The quantitative metrics on Class A and B. (a higher value means better image quality)
+
+| Metric | Method | Class A (Normal speed) | Class B (High speed) | |
| Office | Gallery | Lake | Flower | Car | Train | Ro1 | Ro2 | Mean |
| 2-D entropy | TFW | 9.12 | 8.68 | 9.45 | 9.22 | - | - | - | - | 9.12 |
| TFA | 7.38 | 12.41 | 12.69 | 11.88 | - | - | - | - | 11.09 |
| TFI | 10.01 | 9.85 | 10.51 | 10.01 | 10.71 | 11.01 | 10.23 | 9.81 | 10.27 |
| Ours | 10.38 | 12.38 | 12.83 | 12.63 | 10.76 | 10.85 | 11.72 | 11.69 | 11.66 |
| OG-IQA [20] | TFW | 0.5729 | 0.4445 | 0.7575 | 0.8959 | - | - | - | - | 0.6677 |
| TFA | 0.2737 | 0.6707 | 0.8369 | 0.8660 | - | - | - | - | 0.6618 |
| TFI | 0.5738 | 0.4134 | 0.5110 | 0.8523 | 0.8637 | 0.7829 | 0.5602 | 0.5305 | 0.6359 |
| Ours | 0.5921 | 0.6879 | 0.8379 | 0.8727 | 0.8720 | 0.7897 | 0.6009 | 0.8105 | 0.7579 |
+
+B includes "Car", "Train", "Rotation1 (Ro1)" and "Rotation2 (Ro2)". Among them, "Car" describes a car traveling at a speed of $100\mathrm{km/h}$ (kilometers per hour), while "Train" records a train with $350\mathrm{km/h}$ speed. The sequence "Rotation1" describes a disk with $2000\mathrm{rpm}$ (revolutions per minute), and the sequence "Rotation2" depicts an electric fan with $2600\mathrm{rpm}$ .
+
+# 4.2. Visual Texture Reconstruction
+
+# 4.2.1 Qualitative Analysis
+
+The spiking neural model is implemented using the Brian2 neural simulator [27]. All neurons are modeled as LIF neurons. The dimension of the network is designed to fit the camera resolution of $250 \times 400$ , in other words, each layer using 100,000 neurons.
+
+To evaluate the performance of our method, we compared three methods proposed in [28], namely TFW (texture from window), TFI (texture from inter-spike interval) and TFA (adaptive texture reconstruction). The parameters of the three methods are set according to the default parameters given in original paper. Fig 6 shows the experimental results. The results of TFW and TFI have low contrasts, which makes it difficult to distinguish the details of the image. TFA improves contrast, but some regions in the image are too bright, which affects the overall visual effect of the image. Our method solves the above problems. Subjectively, the reconstructed image quality is better than the other three methods.
+
+Class B contains four high-speed motion scenes. Since TFP and TFA have no ability to reconstruct dynamic scenes, we only compare our method to TFI on Class B. TFI is a method of image reconstruction based on instantaneous intensity, it has the ability to reconstruct high-speed motion because it conforms to the sampling principle of the camera. However, TFI only uses the information of the current moment, the historical information in temporal domain is not used. Benefit from the three-layer spiking neural model, our approach makes full use of both historical and current information. The results show that the contrast of static region is improved, while the saliency and clarity of dynamic region are enhanced.
+
+# 4.2.2 Quantitative Analysis
+
+In Table 1, we give a quantitative evaluation on the proposed dataset. Two no-reference image quality assessment metrics, two-dimensional (2-D) entropy [18] and OG-IQA [20], are employed into our experiment. 2-D entropy uses both the gray value of a pixel and its local average gray value, it measures the amount of information in the image. OG-IQA uses perceptual image features for image quality assessment and gives a score (the range is 0-1, 1 is the best). As shown in Table 1, our method achieves better than other methods in both 2-D entropy and OG-IQA metrics, this is consistent with the results of subjective observation in Fig 6.
+
+Quantitatively, for further evaluate the high-speed scenes in Class B, we employ standard deviation (STD) and a no-reference image blur metric called CPBD [22]. The result
+
+
+Figure 7. The effect of STDP. The blue line denotes the noise level estimated by [24], while the red line represents the signal-to-noise ratio. The experiment was performed on Class A. Intuitively, when the STDP strength is 0.2, the result is the best.
+
+Table 2. The STD and CPBD metrics on Class B.
+
+| Metric | Method | Car | Train | Ro1 | Ro2 | Mean |
| STD | TFI | 53.82 | 60.57 | 22.79 | 31.55 | 42.18 |
| Ours | 58.43 | 66.91 | 37.57 | 47.11 | 52.51 |
| CPBD | TFI | 0.7797 | 0.9009 | 0.8461 | 0.6516 | 0.7946 |
| [22] | Ours | 0.7960 | 0.9072 | 0.8482 | 0.7958 | 0.8368 |
+
+is shown in Table 2. The STD is related to the contrast of the image. Generally speaking, larger standard deviation (STD) means higher contrast. CPBD is used to measure the motion blur. Lower CPBD values mean more blur and vice versa. In summary, our method maintains sharpness while maintaining a higher contrast.
+
+To better understand the effect of STDP, we performed an experiment on our dataset. STDP learning rule can adjust synaptic weight adaptively according to the input spike. If an irregular spike is input, which is usually caused by noise, the STDP mechanism can make its influence smaller and achieve the purpose of denoising. In the experiment, an image noise estimation method [24] is used, and signal-to-noise ratio (SNR) is obtained by standard deviation and noise. We adjust the STDP strength from 0 to 0.50, and compare the noise and SNR of the results. As shown in Fig 7, with appropriate STDP strength (0.20 gets the highest SNR), the windows and buildings are clearer, and most of the noise is eliminated.
+
+# 4.3. Comparisons with other vision sensors
+
+Fig 8 shows the comparison of spike camera, CeleX, DAVIS240B and Huawei P30. Spike camera with the proposed reconstruction method can clearly show the detail of movement process. DVS only records the change of luminance intensity, it is very difficult to reconstruct the texture. We use two recently published DVS reconstruction methods [26] and [25] to generate visual image, but the results are unsatisfactory; while CeleX can roughly see the process of falling pages, but the shadow is serious, the edges of front and back pages can not be clearly distinguished; Huawei P30 rear camera can record videos with 60 FPS in default mode, the pages and electric fan are blurred. The video results can be found in our supplementary material.
+
+
+Figure 8. The reconstruction results of different vision sensors.
+
+There are also some limitations in our method: some mechanisms in our model (e.g. motion confidence matrix and STDP) need a short period of previous spike data (about 15ms) to calculate the current state. If the camera itself moves too fast, the spike train received by the neuron may comes from different objects thus causing blur. Despite of this, we think it does not affect the application.
+
+# 5. Conclusion
+
+In this paper, we have proposed a novel three-layer spiking neural model to reconstruct visual images for spike camera. We comprehensively discuss the spike distribution and construct a probability model to describe it. Additionally, a dynamic neuron extraction model is proposed to distinguish the dynamic and static neurons. A combination of biologically plausible mechanisms in introduced to process the continuous-time spikes. Finally, the visual image can be reconstructed according to the state of the neuron and the firing threshold. To test our method, we build a dataset including normal-speed and high-speed scenes. The results show that our method can reconstruct high quality visual images in both high-speed motion and static scenes.
+
+Acknowledgments. This work is partially supported by grants from the National Natural Science Foundation of China under contract No. 61825101 and No. U1611461.
+
+# References
+
+[1] Patrick Lichtsteiner an Christoph Posch and Tobi Delbruck. A $128 \times 128$ 120 db 15 μs latency asynchronous temporal contrast vision sensor. IEEE Journal of Solid-State Circuits, 43(2):566-576, 2008. 1
+[2] Juan Antonio Lenero Bardallo, Jose-Maria Guerrero-Rodriguez, Ricardo Carmona-Galan, and Angel Rodriguez-Vazquez. On the analysis and detection of flames with an asynchronous spiking image sensor. IEEE Sensors Journal, 18(16):6588-6595, Aug 2018. 1
+[3] Michel Baudry. Synaptic plasticity and learning and memory: 15 years of progress. Neurobiology of learning and memory, 70(1-2):113-118, 1998. 3, 5
+[4] Guo-qiang Bi and Mu-ming Poo. Synaptic modifications in cultured hippocampal neurons: dependence on spike timing, synaptic strength, and postsynaptic cell type. Journal of Neuroscience, 18(24):10464-10472, 1998. 3, 4, 5
+[5] 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. IEEE Journal of Solid-State Circuits, 49(10):2333-2341, 2014. 1
+[6] Eugenio Culurciello, Ralph Etienne-Cummings, and Kwabena A Boahen. A biomorphic digital image sensor. IEEE Journal of Solid-State Circuits, 38(2):281-294, 2003. 1
+[7] F Yu Daniel and Jeffrey A Fessler. Mean and variance of single photon counting with deadtime. Physics in Medicine & Biology, 45(7):2043, 2000. 2
+[8] Tobi Delbrück, Bernabe Linares-Barranco, Eugenio Culurciello, and Christoph Posch. Activity-driven, event-based vision sensors. In IEEE International Symposium on Circuits and Systems, pages 2426-2429, 2010. 1
+[9] Peter U Diehl and Matthew Cook. Unsupervised learning of digit recognition using spike-timing-dependent plasticity. Frontiers in Computational Neuroscience, 9:99, 2015. 3, 4, 5
+[10] Pierre Falez, Pierre Tirilly, Joan Marius Bilasco, Philippe Devienne, and Pierre Boulet. Mastering the output frequency in spiking neural networks. In 2018 International Joint Conference on Neural Networks (IJCNN), pages 1-8. IEEE, 2018. 5
+[11] Daniel Gehrig, Henri Rebecq, Guillermo Gallego, and Davide Scaramuzza. Asynchronous, photometric feature tracking using events and frames. In 2018 European Conference on Computer Vision (ECCV), pages 750-765, 2018. 1
+[12] Stuart Geman and Donald Geman. Stochastic relaxation, gibbs distributions, and the bayesian restoration of images. IEEE Transactions on Pattern Analysis and Machine Intelligence, (6):721-741, 1984. 3, 4
+[13] Menghan Guo, Jing Huang, and Shoushun Chen. Live demonstration: A $768 \times 640$ pixels 200meps dynamic vision sensor. In 2017 IEEE International Symposium on Circuits and Systems (ISCAS), pages 1-1. IEEE, 2017. 1
+[14] Christof Koch and Idan Segev. Methods in neuronal modeling: from ions to networks. MIT press, 1998. 3
+[15] Vladimir Kolmogorov and Ramin Zabih. What energy functions can be minimized via graph cuts? IEEE Transactions
+
+on Pattern Analysis and Machine Intelligence, (2):147-159, 2004. 5
+[16] Juan Antonio Leero-Bardallo, D. H. Bryn, and Philipp Hfliger. Bio-inspired asynchronous pixel event tricolor vision sensor. IEEE Transactions on Biomedical Circuits and Systems, 8(3):345-357, June 2014. 1
+[17] Stan Z Li. Markov random field modeling in image analysis. Springer Science & Business Media, 2009. 4
+[18] Li Xi, Liu Guosui, and Jinlin Ni. Autofocusing of isar images based on entropy minimization. IEEE Transactions on Aerospace and Electronic Systems, 35(4):1240-1252, Oct 1999. 7
+[19] Martin Litzenberger, Christoph Posch, D Bauer, Ahmed Nabil Belbachir, P Schon, B Kohn, and H Garn. Embedded vision system for real-time object tracking using an asynchronous transient vision sensor. In Digital Signal Processing Workshop-signal Processing Education Workshop, pages 173-178, 2006. 1
+[20] Lixiong Liu, Yi Hua, Qingjie Zhao, Hua Huang, and Alan Conrad Bovik. Blind image quality assessment by relative gradient statistics and adaboosting neural network. Signal Processing: Image Communication, 40:1-15, 2016. 7
+[21] Ana I Maqueda, Antonio Loquercio, Guillermo Gallego, Narciso García, and Davide Scaramuzza. Event-based vision meets deep learning on steering prediction for self-driving cars. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5419-5427, 2018. 1
+[22] Niranjan D Narvekar and Lina J Karam. A no-reference image blur metric based on the cumulative probability of blur detection (cpbd). IEEE Transactions on Image Processing, 20(9):2678-2683, 2011. 7, 8
+[23] Christoph Posch, Daniel Matolin, and Rainer Wohlgenan-nt. An asynchronous time-based image sensor. IEEE International Symposium on Circuits and Systems, pages 2130-2133, 2008. 1
+[24] Stanislav Pyatykh, Jürgen Hesser, and Lei Zheng. Image noise level estimation by principal component analysis. IEEE Transactions on Image Processing, 22(2):687-699, 2012. 8
+[25] Henri Rebecq, René Ranftl, Vladlen Koltun, and Davide S-caramuzza. Events-to-video: Bringing modern computer vision to event cameras. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3857-3866, 2019. 8
+[26] Cedric Scheerlinck, Nick Barnes, and Robert Mahony. Continuous-time intensity estimation using event cameras. In 2018 Asian Conference on Computer Vision (ACCV), pages 308-324. Springer, 2018. 8
+[27] Marcel Stimberg, Romain Brette, and Dan Goodman. Brian 2: an intuitive and efficient neural simulator. BioRxiv, page 595710, 2019. 7
+[28] Lin Zhu, Siwei Dong, Tiejun Huang, and Yonghong Tian. A retina-inspired sampling method for visual texture reconstruction. In 2019 IEEE International Conference on Multimedia and Expo (ICME), pages 1432-1437, 2019. 1, 2, 7
\ No newline at end of file
diff --git a/retinalikevisualimagereconstructionviaspikingneuralmodel/images.zip b/retinalikevisualimagereconstructionviaspikingneuralmodel/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..84d2cc599c454875e91596a3ea5d2bc4223bd1ad
--- /dev/null
+++ b/retinalikevisualimagereconstructionviaspikingneuralmodel/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:97a18a7c6e20f4b7c1ed686593d7eedaa2c586885267ea0d45dc1608ff377452
+size 587620
diff --git a/retinalikevisualimagereconstructionviaspikingneuralmodel/layout.json b/retinalikevisualimagereconstructionviaspikingneuralmodel/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdf603dd0131fd0f6ebbf201c5ce45f926c7db90
--- /dev/null
+++ b/retinalikevisualimagereconstructionviaspikingneuralmodel/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d7d8a436f5f602776bda3818e9fb77472fe72574f90a353e8e6192d68b92f9b
+size 359334
diff --git a/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_content_list.json b/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..240951f61ec7f21e476976684bbbadf721122816
--- /dev/null
+++ b/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c611b0e2a98e04349767b1ac0638fc1477cf516db2cc05955431f16383998f4e
+size 89343
diff --git a/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_model.json b/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6e7d95294a9ec14471013885f90b9364126b7c2a
--- /dev/null
+++ b/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b5de17dfcb490989381909f0ecbb3e37483c31d27e7c777d57b62487141f1f92
+size 111269
diff --git a/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_origin.pdf b/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f759cc5b86ba7837b7b65ac647685158aedeb29e
--- /dev/null
+++ b/retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ad6a49750e039a111b8ca81a7f10e417bcf9f82189433cb55effb0e13b7b1b9f
+size 2960157
diff --git a/retinatrackonlinesinglestagejointdetectionandtracking/full.md b/retinatrackonlinesinglestagejointdetectionandtracking/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..80c61e61f3fe34b0edadfddeaf1f945c569c349a
--- /dev/null
+++ b/retinatrackonlinesinglestagejointdetectionandtracking/full.md
@@ -0,0 +1,358 @@
+# RetinaTrack: Online Single Stage Joint Detection and Tracking
+
+Zhichao Lu*, Vivek Rathod*, Ronny Votel, Jonathan Huang Google
+
+{lzc,rathodv,ronnyvotel,jonathanhuang}@google.com
+
+# Abstract
+
+Traditionally multi-object tracking and object detection are performed using separate systems with most prior works focusing exclusively on one of these aspects over the other. Tracking systems clearly benefit from having access to accurate detections, however and there is ample evidence in literature that detectors can benefit from tracking which, for example, can help to smooth predictions over time. In this paper we focus on the tracking-by-detection paradigm for autonomous driving where both tasks are mission critical. We propose a conceptually simple and efficient joint model of detection and tracking, called RetinaTrack, which modifies the popular single stage RetinaNet approach such that it is amenable to instance-level embedding training. We show, via evaluations on the Waymo Open Dataset, that we outperform a recent state of the art tracking algorithm while requiring significantly less computation. We believe that our simple yet effective approach can serve as a strong baseline for future work in this area.
+
+# 1. Introduction
+
+The tracking-by-detection paradigm today has become the dominant method for multi object tracking (MOT) and works by detecting objects in each frame independently and then performing data association across frames of a video. In recent years, both aspects of this approach (detection and data association) have seen significant technological advances due to the adoption of deep learning.
+
+Despite the fact that these two tasks often go hand in hand and the fact that deep learning has made models easily amenable to multitask training, even today it is far more common to separate the two aspects than to train them jointly in one model, with most papers often focusing on detection metrics or tracking metrics and rarely both. This task separation has led to more complex models and less efficient approaches. It is telling that the flagship benchmark in this area (MOT Challenge [42]) assumes that models will make use of publicly available detections and that papers continue to claim the use of a real-time tracker while not measuring the time required to perform detection.
+
+In this paper we are interested primarily in the autonomous driving domain where object detection and multi-object tracking are mission-critical technologies. If we cannot detect and track, we will not be able to predict where vehicles and pedestrians are going (and at what speed), and consequently we will not, e.g., know whether to yield to a pedestrian at the corner or whether to drive full speed down a street despite cars coming down an opposing lane.
+
+We focus specifically on RGB inputs which, while typically not the only sensing modality used within a modern autonomous vehicle, play an important role; RGB cameras do not have the same range constraints as LIDAR, are considerably cheaper and are capable of detecting much smaller objects which are important particularly for highway driving where the faster driving speeds make it important to be able to react to distant vehicles or pedestrians.
+
+In the setting of autonomous driving, speed and accuracy are both essential and therefore the choice of architecture is critical as one cannot simply take the heaviest/most performant model or the most lightweight but not as accurate model. We base our model on the RetinaNet detector [36] which is real-time while reaching state of art accuracy and is specifically designed to detect small objects well. To this base detector, we add instance-level embeddings for the purposes of data association. However the vanilla RetinaNet architecture is not suitable for these per-instance embeddings — we propose a simple but effective modification to RetinaNet's post-FPN prediction subnetworks to address these issues. We show via ablations that our model, which we dub, RetinaTrack, benefits from joint training of the tracker and detector. It has small computational overhead compared to base RetinaNet and is therefore fast — due to its simplicity, it is also easy to train via Google TPUs.
+
+To summarize, our main contributions are as follows:
+
+- We propose a jointly trained detection and tracking model - our method is simple, efficient and could be feasibly deployed in an autonomous vehicle.
+- We propose a simple modification to single shot detection architectures that allow for extracting instance level features; we use these features for tracking, but they could also be useful for other purposes.
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 1: Example vehicle tracking results on the Waymo Open Dataset — tracks are color coded and for clarity we highlight two tracks in each sequence with arrows. Challenges in this dataset include small objects, frequent occlusions due to other traffic or pedestrians, changing scales and low illumination.
+
+
+
+
+
+
+
+
+
+- We establish initial strong baselines for detection and tracking from 2d images on the Waymo Open dataset [2] (Figure 1) and show that our method achieves state of the art performance.
+
+We hope our simple model will serve as a solid baseline and ease future research in joint detection and tracking.
+
+# 2. Related Work
+
+Traditionally multi-object tracking and detection have been treated in two separate literatures with trackers often using detectors as black box modules but not necessarily incorporating them deeply. In recent years both fields have begun to rely heavily on deep learning which makes it natural to model both tasks jointly. However with a few exceptions, joint training of detection and tracking remains the exception rather than the rule. And there are few papers that evaluate both tracking and detection with papers often focusing on one evaluation exclusively.
+
+# 2.1. Object Detection in Images and Video
+
+In recent years there has been an explosion of technological progress in the field of object detection driven largely by community benchmarks like the COCO challenge [37] and Open Images [31]. There have also been a number of advances in detection specific model architectures including anchor-based models, both single stage (e.g., SSD [39], RetinaNet [36], Yolo variants [44, 45]) and two-stage detectors (e.g., Fast/Faster R-CNN [19, 24, 47], R-FCN [13]), as well as the newer anchor-free models (e.g., CornerNet [32, 33], CenterNet [65], FCOS [55]).
+
+Building on these single frame architectures are methods incorporating temporal context for better detection in video (specifically to combat motion blur, occlusion, rare poses of objects, etc). Approaches include the use of 3d convolutions (e.g., I3D, S3D) [8,41,62] or recurrent networks [29,38] to extract better temporal features. There are also a number of works that use tracking-like concepts of some form in order to aggregate, but their main focus lies in detection and
+
+not tracking. For example, there are works exploiting flow (or flow-like quantities) to aggregate features [6, 66-68]. Recently there are also papers that propose object level attention-based aggregation methods [14, 51, 59, 60] which effectively can be viewed at high level as methods to aggregate features along tracks. In many of these cases, simple heuristics to "smooth" predictions along time are also used, including tubelet smoothing [20] or SeqNMS [22].
+
+# 2.2. Tracking
+
+Traditionally trackers have played several different roles. In the cases mentioned above, the role of the tracker has been to improve detection accuracy in videos (e.g. by smoothing predictions over time). In other cases, trackers have also been used to augment (traditionally much slower) detectors allowing for real-time updates based on intermittent detector updates (e.g. [3, 7]).
+
+Finally in applications such as self-driving and sports analysis, track outputs are themselves of independent interest. For example typical behavior prediction modules take object trajectories as input in order to forecast future trajectories (and thereby react to) predicted behavior of a particular object (like a car or pedestrian) [9, 54, 56, 63, 64]. In this role, the tracking-by-detection paradigm has become the predominant approach taken for multi-object tracking, where detection is first run on each frame of an input sequence, then the results linked across frames (this second step is called data association).
+
+In the pre-deep learning era, tracking-by-detection methods [11, 21, 61] tended to focus on using whatever visual features were available and finding a way to combat the combinatorial explosion of the various graph optimization problems [12, 17,46] that have been formulated to determine optimal trajectories. In recent years, this trend has been reversed with authors using simple matching algorithms (e.g. Hungarian matching [43]) and focusing on learning features that are better for data association e.g., via deep metric learning [4, 34, 48, 50, 52, 53, 58]. For example [58] proposed
+
+Deep Sort, a simple yet strong baseline that takes offline detections (produced by Faster RCNN) and links them using an offline trained deep ReID model and Kalman filter motion model. In this context, our work can be viewed as a simplified pipeline compared to Deep Sort, relying on a more lightweight detection network which is unified with a subnetwork tasked with performing ReID.
+
+# 2.3. Detection meets Tracking
+
+Strong detection is critical to strong tracking. This can be seen via the commonly used CLEAR MOT metric (MOTA, multiple object tracking accuracy) [42] which penalizes false positives, false negatives and identity switches (the first two terms of which are detection related). The recent Tracktor paper [4] pushes this observation to the limit achieving strong results using only a single frame Faster R-CNN detection model. Tracking itself is accomplished by exploiting the behavior of the second stage of Faster R-CNN that allows an imprecisely specified proposal (e.g. a detection from the previous frame) to be "snapped" onto the closest object in the image. With a few small modifications (including an offline trained ReID component), Tracktor is currently state of the art on the MOT17 Challenge and we compare against this strong baseline in our experiments.
+
+To address the issue that detection can have such an outsized impact on tracking metrics, benchmarks such as the MOT Challenge have tried to make things "fair" by having multiple methods use exactly the same out-of-the-box provided detections. However this restriction unnecessarily ties one hands as it assumes that the two will be done separately and consequently can preclude jointly trained models such as our own. One wonders whether the paucity of joint detection/tracking literature may be due in part to this emphasis on using black box detections.
+
+Prior to our work, there have been several recent attempts to train joint tracking/detection models. Feichtenhofer et al. [16] run an R-FCN ([13]) base detection architecture and simultaneously compute correlation maps between high level feature maps of consecutive frames which are then passed to a secondary prediction tower in order to predict frame-to-frame instance motion. Like [16], we train for both tasks jointly. However where they focus exclusively on detection metrics for Imagenet Vid, motivated by autonomous driving needs, we evaluate both tracking and detection metrics. Our architecture is also considerably simpler, faster and based on a stronger single stage detector.
+
+There are also several works that predict 3d tubelets [18, 26] directly using 3d inputs by using 2d anchor grids that are allowed to "wiggle" in time via a predicted temporal sequence of spatial offsets. However these methods are typically heavier and require a mechanism to associate tubelets amongst each other, often relying on simple heuristics combining single frame scores and IOU overlap. We directly learn to associate detections (and show that this is useful).
+
+Finally the work most related to our approach is Wang et al. [57] which also combines an FPN based model (with YOLO v3) with an additional embedding layer. In contrast, we use a modification of RetinaNet which has stronger detection performance and we show that without our modifications to the FPN, performance suffers.
+
+# 3. The RetinaTrack Architecture
+
+In this section we describe the design of a variant of RetinaNet that allows us to extract per-instance level features. Like other anchor based detectors, every detection produced by RetinaNet is associated with an anchor. In order to link a detection to those in another frame, we would like to be able to identify a feature vector associated with its corresponding anchor and pass it to an embedding network which will be trained with metric learning losses.
+
+# 3.1. RetinaNet
+
+To begin, we review the popular RetinaNet architecture [36] and explain why the vanilla model is not suitable for instance level embeddings. Modern convolutional object detectors extract feature maps from sliding window positions arranged along a regular grid over the image. In anchor-based methods such as RetinaNet, we place $K$ anchor boxes $\{A_1,\dots ,A_K\}$ of different shapes (varying aspect ratios and sizes) on top of each grid point and ask the model to make predictions (e.g., classification logits, box regression offsets) relative to these anchors.
+
+In the case of RetinaNet, we use an FPN-based (feature pyramid network) feature extractor [35] which produces multiple layers of feature maps $F_{i}$ with different spatial resolutions $W_{i} \times H_{i}$ (Figure 2a). Each feature map $F_{i}$ is then passed to two post-FPN task-specific convolutional subnetworks predicting $K$ tensors (one for each possible anchor shape) $\{Y_{i,k}^{cls}\}_{k=1:K}$ each of shape $W_{i} \times H_{i} \times N$ representing $N$ -dimensional classification logits, as well as $K$ tensors $\{Y_{i,k}^{loc}\}_{k=1:K}$ of shape $W_{i} \times H_{i} \times 4$ representing box regression offsets. (Figure 2b). Note that typically papers collapse these outputs to be a single combined tensor instead of $K$ tensors with one for each anchor shape — however for our purposes we separate these predictions for clarity (with the end result being equivalent).
+
+More formally, we can write the RetinaNet classification and location prediction tensors as a function of each of the feature maps $F_{i}$ as follows:
+
+$$
+Y _ {i, k} ^ {c l s} \left(F _ {i}\right) \equiv \operatorname {S i g m o i d} \left(\operatorname {C o n v} \left(\operatorname {C o n v} ^ {(4)} \left(F _ {i}; \theta^ {c l s}\right); \phi_ {k} ^ {c l s}\right)\right), \tag {1}
+$$
+
+$$
+Y _ {i, k} ^ {l o c} \left(F _ {i}\right) \equiv \operatorname {C o n v} \left(\operatorname {C o n v} ^ {(4)} \left(F _ {i}; \theta^ {l o c}\right); \phi_ {k} ^ {l o c}\right), \tag {2}
+$$
+
+where $k\in \{1,\ldots K\}$ ) indexes into the $K$ anchors. We use $\mathrm{Conv}^{(4)}$ to refer to 4 intermediate $3\times 3$ convolution layers (which include batch norm and ReLu layers unless otherwise specified). The model parameters after the FPN are $\theta^{cls},\{\phi_k^{cls}\}_{k = 1}^K,\theta^{loc}$ and $\{\phi_k^{loc}\}_{k = 1}^K$ . Importantly, while
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 2: Architecture diagrams. (a) Feature Pyramid Network (FPN) and Post-FPN layers of (vanilla) (b) RetinaNet and (c) RetinaTrack. In order to capture instance level features RetinaTrack splits the computational pathways among different anchor shapes at an earlier stage in the Post-FPN subnetwork of RetinaNet. Yellow boxes $F_{i}$ represent feature maps produced by the FPN. In both models we share convolutional parameters across all FPN layers. At level of a single FPN layer, gray boxes represent convolutional layers that are unshared while colored boxes represent sharing relationships (boxes with the same color share parameters).
+
+
+Figure 3: In order to track successfully through occlusions, we need to be able to model that objects that share the same anchor grid center have distinct tracking features. Here, green boxes represent two anchors centered at the same location which match the cars in the scene. Blue dots represent centers of the anchor grid.
+
+the classification and box regression subnetworks have different parameters for a given FPN layer, the parameters are shared across FPN layers which allow us to treat feature vectors extracted from different layers as if they belonged to compatible embedding spaces.
+
+# 3.2. Modifying task-prediction subnetworks to have anchor-level features
+
+From Equations 1,2 all convolutional parameters of RetinaNet are shared amongst all $K$ anchors until the final convolution for the classification and regression subnetworks. Therefore there is no clear way to extract per-instance features since if two detections match to anchors at the same location with different shapes, then the only point in the network at which they would be distinguished are at the final class and box regression predictions. This can be especially problematic when tracking through occlusions when objects are more likely to correspond to anchors which share the same location (Figure 3).
+
+Our solution is to force the split among the anchors to occur earlier among the post-FPN prediction layers, allowing us to access intermediate level features that can still be
+
+uniquely associated with an anchor (and consequently a final detection). Our proposed modification is simple — we end up with a similar architecture to RetinaNet, but tie/untie weights in a different manner compared to the vanilla architecture. In our RetinaTrack model we predict via the following parameterization (c.f. Equations 1, 2):
+
+$$
+F _ {i, k} = \operatorname {C o n v} ^ {\left(m _ {1}\right)} \left(F _ {i}; \theta_ {k}\right), \tag {3}
+$$
+
+$$
+Y _ {i, k} ^ {c l s} \equiv \operatorname {S i g m o i d} \left(\operatorname {C o n v} \left(\operatorname {C o n v} ^ {\left(m _ {2}\right)} \left(F _ {i, k}; \theta^ {c l s}\right); \phi^ {c l s}\right)\right), \tag {4}
+$$
+
+$$
+Y _ {i, k} ^ {l o c} \equiv \operatorname {C o n v} \left(\operatorname {C o n v} ^ {\left(m _ {2}\right)} \left(F _ {i, k}; \theta^ {l o c}\right); \phi^ {l o c}\right). \tag {5}
+$$
+
+Thus for each post-FPN layer $F_{i}$ , we first apply $K$ convolutional sequences (with $m_{1}$ layers) in parallel to predict the $F_{i,k}$ tensors, which we view as per-anchor instance-level features, since from this point on, there will be a unique $F_{i,k}$ associated with every detection produced by the RetinaNet architecture (Figure 2c). We will refer to this first segment of the model as the task-shared post-FPN layers which use separate parameters $\theta_{k}$ for each of the $K$ anchor shapes, but share $\theta_{k}$ across FPN layers (as well as the two tasks of classification and localization).
+
+The $F_{i,k}$ are not task-specific features, but we next apply two parallel sequences of task-specific post-FPN layers to each $F_{i,k}$ . Each sequence consists of $m_2$ $3 \times 3$ convolutions followed by a $3 \times 3$ final convolution with $N$ output channels in the case of classification logits (where $N$ is the number of classes) and 4 output channels in the case of box regression offsets. For our two task specific subnetworks, we share parameters $\theta^{cls}$ , $\phi^{cls}$ , $\theta^{loc}$ and $\phi^{loc}$ across both the $K$ anchor shapes as well as all FPN layers so that after the task-shared layers, all features can be considered as belonging to compatible spaces.
+
+# 3.3. Embedding architecture
+
+Having the instance level features $F_{i,k}$ now in hand, we additionally apply a third sequence of task-specific layers
+
+consisting of $m_3 \times 1$ convolution layers projecting the instance level features to a final track embedding space with each convolution layer mapping to 256 output channels:
+
+$$
+Y _ {i, k} ^ {e m b} \equiv \operatorname {C o n v} ^ {\left(m _ {3}\right)} \left(F _ {i, k}; \theta^ {e m b}\right). \tag {6}
+$$
+
+We use batch norm [28] and ReLU nonlinearities after each convolution except at the final embedding layer and use the same shared parameters across all FPN layers and all $K$ anchor shapes (see again Figure 2c).
+
+To summarize, RetinaTrack predicts per-anchor instance-level features $F_{i,k}$ . Given a detection $d$ , there is a unique anchor that generated $d$ — and the feature maps $F_{i,k}$ now give us a unique feature vector associated with $d$ . Where RetinaNet models run 4 convolutional layers for each of the two task-specific subnetworks, in RetinaTrack, each output tensor is the result of $m_1 + m_2 + 1$ (or $m_1 + m_3$ in the case of the track embeddings) convolutional layers where $m_1$ , $m_2$ and $m_3$ are structural hyperparameters. We discuss ablations for these settings further in Section 4.
+
+# 3.4. Training details
+
+At training time we minimize an unweighted sum of the two standard RetinaNet losses (Sigmoid Focal Loss for classification, and Huber Loss for box regression) as well as an additional embedding loss which encourages detections corresponding to the same track to have similar embeddings. Specifically we train with triplet loss [10, 49] using the BatchHard strategy for sampling triplets [25].
+
+$$
+\mathcal {L} _ {B H} (\theta ; X) = \sum_ {j = 1} ^ {A} \text {S o f t P l u s} \left(m + \max _ {\substack {p = 1 \dots A \\ t _ {j} = t _ {p}}} D _ {j p} - \min _ {\substack {\ell = 1 \dots A \\ t _ {j} \neq t _ {\ell}}} D _ {j \ell}\right), \tag{7}
+$$
+
+where $A$ is the number of anchors that match to groundtruth boxes, $t_y$ is the track identity assigned to anchor $y$ , $D_{ab}$ is the non-squared Euclidean distance between the embeddings of anchor $a$ and anchor $b$ and $m$ is the margin (set to $m = 0.1$ in experiments). Thus triplets are produced by finding a hard positive and a hard negative for each anchor. In practice, we sample 64 triplets for computing the loss.
+
+For detection losses we follow a target assignment convention similar to that described in [36]. Specifically, an anchor is assigned to a groundtruth box if it has intersection-over-union (IOU) overlap of 0.5 or higher and to background otherwise. Additionally, for each groundtruth box, we force the nearest anchor (with respect to IOU) to be a match even if this IOU is less than the threshold. For triplet losses, we follow a similar convention for assigning track identities to anchors, using a more stringent criterion of $IOU = .7$ or higher for positive matches — finding that this more stringent criterion leads to improved tracking results. Only anchors that match to track identities are used to produce triplets. Further, triplets are always produced from within the same clip.
+
+We train on Google TPUs (v3) [30] using Momentum SGD with weight decay 0.0004 and momentum 0.9. We construct each batch using 128 clips, drawing two frames for each clip spaced 8 frames apart (Waymo sequences run at $10\mathrm{Hz}$ , so this corresponds to a temporal stride of 0.8 seconds). Batches are placed on 32 TPU cores, colocating frames from the same clip, yielding a per-core batch size of 4 frame pairs. Unless otherwise specified, images are resized to $1024 \times 1024$ resolution, and in order to fit this resolution in TPU memory, we use mixed precision training with bfloat16 type in all our training runs [1].
+
+We initialize the model using a RetinaTrack model (removing embedding projections) pretrained on the COCO dataset. Next (unless otherwise stated) we train using a linear learning rate warmup for the first 1000 steps increasing to a base learning rate of 0.001, then use a cosine annealed learning rate [40] for 9K steps. Following RetinaNet, we use random horizontal flip and random crop data augmentations. We also allow all batch norm layers to update independently during training and do not force them to be tied even if neighboring convolution layers are shared.
+
+# 3.5. Inference and Tracking Logic
+
+We use our embeddings within a simple single hypothesis tracking system based on greedy bipartite matching. At inference time we construct a track store holding stateful track information. For each track we save previous detections (including bounding boxes, class predictions and scores), embedding vectors and "track states" indicating whether a track is alive or dead (for simplicity, we do not consider tracks to ever be in a "tentative" state, c.f. [58]). We initialize the track store to be empty, then for each frame in a clip, we take the embedding vectors corresponding to the top scoring 100 detections from RetinaTrack.
+
+These detections are filtered by score thresholding and then we compare the surviving embedding vectors against those in the track store via some specified similarity function $S$ and run greedy bipartite matching disallowing matches where the cosine distance is above a threshold $1 - \epsilon$ . Based on this greedy matching, we then add a detection to an existing track in the track store or we use it to initialize a new track. In our experiments, our similarity function $S$ is always a uniformly weighted sum of IOU overlap (using a truncation threshold of 0.4) and a cosine distance between embeddings.
+
+For each live track in the track store, we save up to $H$ of its most recent (detection, embedding vector, state) triplets thus allowing new detections to match to any of these $H$ most recent observations for all tracks. Tracks are kept alive for up to 40 frames for re-identification purposes. Conversely we mark a track as dead if it has not been re-identified in over 40 frames.
+
+| Architecture | Share task weights | m1 | m2 | K | mAP | Inference time (ms per frame) |
| RetinaNet | No | - | - | 6 | 36.17 | 45 |
| RetinaNet | Yes | - | - | 6 | 35.35 | 40 |
| RetinaNet | No | - | - | 1 | 31.45 | 37 |
| RetinaNet | Yes | - | - | 1 | 30.71 | 30 |
| RetinaTrack | - | 1 | 3 | 6 | 35.11 | 83 |
| RetinaTrack | - | 2 | 2 | 6 | 35.55 | 75 |
| RetinaTrack | - | 3 | 1 | 6 | 35.74 | 74 |
+
+Figure 4: COCO17 ablations. Performance of vanilla RetinaNet and RetinaTrack (without tracking embedding layers) in terms of single image object detection performance on COCO17. $m_{1}$ denotes the number of task-shared post-FPN layers and $m_{2}$ denotes the number of task-specific post-FPN layers.
+
+# 4. Experiments
+
+In our experiments we focus on the recently released Waymo Open dataset [2] v1 (Waymo for short). We also report results on the larger v1.1 release in Section 4.4. This dataset contains annotations on 200K frames collected at 10 Hz in Waymo vehicles and covers various geographies and weather conditions. Frames come from 5 camera positions (front and sides). For the purposes of this paper, we focus on 2d detection and tracking and more specifically only on the 'vehicle' class as the dataset has major class imbalance, which is not our main focus. In addition to Waymo, we report ablations on the COCO17 dataset [37].
+
+Finally we evaluate both detection and tracking metrics as measured by standard mean AP [15,18,37] (mAP) as well as CLEAR MOT tracking metrics [5,42], specifically using the COCO AP (averaging over IOU thresholds between 0.5 and 0.95) and the py-motmetrics library. We also benchmark using Nvidia V100 GPUs reporting inference time in milliseconds per frame. For all models we only benchmark the "deep learning part", ignoring any bookkeeping logic required by the tracker which is typically very lightweight.
+
+Evaluating a model simultaneously for detection and tracking requires some care. Detection mAP measures a model's average ability to trade off between precision and recall without requiring a hard operating point — it's therefore better to use a low or zero score threshold for detection mAP. However CLEAR MOT tracking metrics such as MOTA require selecting a single operating point as they directly reference true/false positives and in practice are fairly sensitive to these hyperparameter choices. It is often better to use a higher score threshold to report tracking metrics so as to not admit too many false positives. In our experiments we simple use separate thresholds for evaluation: we evaluate our model as a detector using a near-zero score threshold and as a tracker using a higher score threshold.
+
+# 4.1. Evaluating RetinaTrack as a detector
+
+As a preliminary ablation (Table 4), we study the effect of our architectural modifications to RetinaNet on standard single image detection by evaluating on COCO17. In these experiments we drop the embedding layers of RetinaTrack since COCO is not a video dataset.
+
+For these experiments only, we train with a slightly different setup compared to our later Waymo experiments. We use Resnet-50 as a base feature extractor (Imagenet initialized), and train at $896 \times 896$ resolution with bfloat16 [1] mixed precision. We train with batches of size 64 split across 8 TPU v3 cores, and performing per-core batch normalization. We use a linear learning rate warmup for the first 2K steps increasing to a base learning rate of 0.004, then use a cosine annealed learning rate [40] for 23K steps. Note that we could use heavier feature extractors or higher image resolutions to improve performance, but the main objective of these ablations is to shed light on variations of the Post-FPN subnetworks of RetinaNet and RetinaTrack.
+
+Recall that $m_{1}$ and $m_{2}$ refer to the number of convolutions for the task-shared and task-specific post-FPN subnetworks respectively. We set $m_{1} + m_{2} = 4$ so as to be comparable to RetinaNet. $K$ is the number of anchor shapes per location which we set to 6 by default but to show that having multiple anchor shapes per location is important for detection, we also compare against a simplified RetinaNet which uses only 1 box per location. Finally we experiment with a version of vanilla RetinaNet where the task-specific subnetworks are forced to share their weights (the "Share task weights" column in Table 4) since this is closer to the task-shared post-FPN layers of RetinaTrack.
+
+We note firstly that using $K = 6$ anchors per location is very important to strong performance on COCO and that it is better to have separate task-specific subnetworks than it is to share, confirming observations by [36]. We also observe that by using RetinaTrack, we are able to extract per-instance features by design (which we will next use for tracking, but could be generally useful) while achieving similar detection performance on COCO. If one does not need per-instance level features, one can still get slightly better numbers with the original prediction head layout of RetinaNet (which is similar to that of SSD [39] and the RPN used by many papers, e.g., [23, 47]). Among the 3 settings of $(m_1, m_2)$ for RetinaTrack, we find that using 3 task-shared layers $(m_1 = 3)$ followed a single task-specific layer $(m_2 = 1)$ , has a slight edge over the other configurations.
+
+We report running times (averaged over 500 COCO images) in Table 4. Our modifications increase running time over vanilla RetinaNet — this is unsurprising since the
+
+| Architecture | Share task weights | m1 | m2 | m3 | K | MOTA | mAP | Inference time (ms per frame) |
| RetinaNet | No | - | - | - | 6 | - | 38.19 | 34 |
| RetinaNet* | No | - | - | - | 6 | 38.02 | 37.43 | 44 |
| RetinaNet | Yes | - | - | - | 6 | - | 37.95 | 30 |
| RetinaNet* | Yes | - | - | - | 6 | 37.63 | 36.75 | 40 |
| RetinaNet | No | - | - | 2 | 1 | 30.94 | 35.20 | 33 |
| RetinaNet | Yes | - | - | 2 | 1 | 31.20 | 35.08 | 29 |
| RetinaTrack | - | 1 | 3 | 2 | 6 | 38.71 | 37.96 | 88 |
| RetinaTrack | - | 2 | 2 | 2 | 6 | 39.08 | 38.14 | 81 |
| RetinaTrack | - | 3 | 1 | 2 | 6 | 39.12 | 38.24 | 70 |
+
+Figure 5: Waymo ablations. Performance of vanilla RetinaNet and RetinaTrack (including tracking embedding layers) in terms of detection mAP and tracking MOTA on the Waymo Open Dataset. $m_{1}$ denotes the number of task-shared post-FPN layers, $m_{2}$ denotes the number of task-specific post-FPN layers, and $m_{3}$ denotes the number of embedding layers. RetinaNet* is a vanilla RetinaNet model (with $K = 6$ ) trained with tracking losses where instance embedding vectors are shared among "colliding anchors".
+
+| # embedding layers | MOTA | mAP |
| 0 | 38.52 | 37.93 |
| 2 | 39.19 | 38.24 |
| 4 | 38.85 | 38.24 |
+
+Figure 6: Track embedding subnetwork depth ablation. We train versions of RetinaTrack with $m_3 = 0, 2$ , and 4 projection layers.
+
+cost of the post-FPN subnetworks have now been multiplied by $K$ . Among the three variants of RetinaTrack, $(m_{1} = 3, m_{2} = 1)$ is again the fastest.
+
+# 4.2. Architectural ablations
+
+For our remaining experiments we evaluate on Waymo, this time including the embedding network with triplet loss training and additionally evaluating tracking performance using the system described in Section 3.5.
+
+We first ablate the depth of the embedding network (see Table 6) in which we train models using $m_3 = 0, 2$ and 4 projection layers (fixing $m_1 = 3$ and $m_2 = 1$ as was shown to be best on the COCO ablation above), obtaining best performance for both detection and tracking with 2 layers.
+
+Setting $m_3 = 2$ layers for the embedding subnetwork, we present our ablations on the Waymo dataset in Table 5, training via the method described in Section 3.4.
+
+To demonstrate the value of RetinaTrack's anchor-level features for tracking, we evaluate two baseline versions of the vanilla RetinaNet architecture — (1) one where we use $K = 1$ anchor shapes since in this case it is possible to extract per-instance feature vectors, and (2) the standard $K = 6$ setting where during tracking we simply force embeddings for anchors that "collide" at the same spatial center to be the same (we refer to this baseline as RetinaNet*).
+
+As with the COCO ablations, we see that using multiple $(K = 6)$ anchor shapes is important to both detection and tracking metrics. Thus it is unsurprising that RetinaTrack significantly outperforms the RetinaNet based $(K = 1)$ tracking baseline likely mostly by virtue of being a stronger detector. However both RetinaNet* rows exhibit lower MOTA and mAP results compared to their nonstarred counterparts, suggesting that "abusing" vanilla Reti
+
+naNet to perform tracking by ignoring colliding anchors is harmful both for detection and tracking, thus underscoring the importance of RetinaTrack's per-anchor embeddings.
+
+Our best RetinaTrack configuration reaches 39.12 MOTA and has a mAP of 38.24. In contrast to the COCO ablations where vanilla RetinaNet retains a slight edge over RetinaTrack, here we see that RetinaTrack outperforms RetinaNet as a detector, suggesting that by including tracking losses, we are able to boost detection performance.
+
+Finally with a running time of 70ms per frame, we note that inference with RetinaTrack is faster than the sensor framerate (10 Hz) in the Waymo dataset. Compared to the COCO setting, RetinaTrack must run additional convolution layers for embeddings, but since COCO has 80 classes which makes the top of the network slightly heavier, the final running time is slightly lower in the Waymo setting.
+
+# 4.3. Joint vs Independent training
+
+To demonstrate the benefit of joint training with detection and tracking tasks, we now compare RetinaTrack against three natural baselines which use the same tracking system as RetinaTrack but change the underlying data association similarity function (Table 8):
+
+- An IOU baseline, where detection similarity is measured only by IOU overlap (with no embeddings),
+- RetinaTrack w/o triplet loss, in which we ignore the triplet loss (and thus do not train the model specifically for tracking) and measure embedding similarity via the per-instance feature vectors $F_{i,k}$ , and
+- RetinaTrack w/R-50 ReID, in which again we ignore triplet loss when training RetinaTrack and feed the detections to an offline-trained re-identification (ReID) model. For the ReID model, we train a Resnet-50 based TriNet model [25] to perform ReID on Waymo.
+
+We observe that even the IOU-only tracker provides a reasonably strong baseline on Waymo, most likely by virtue of have a strong detection model — it is likely that this tracker is more accurate when the car is driving slowly (compared to, e.g., highway driving). However, using visual
+
+| Model | MOTA | TP | FP | ID switches | mAP | Inference time (ms per frame) |
| Tracktor | 35.30 | 106006 | 15617 | 16652 | 36.17 | 45 |
| Tracktor++ | 37.94 | 112801 | 15642 | 10370 | 36.17 | 2645 |
| RetinaTrack | 39.19 | 112025 | 11669 | 5712 | 38.24 | 70 |
+
+Figure 7: We compare RetinaTrack to Tracktor/Tracktor++ [4] which are currently state of the art on the MOT17 Challenge.
+
+| Model | MOTA | mAP | Inference time (ms) |
| IOU baseline | 35.36 | 38.53 | 70 |
| RetinaTrack w/o triplet loss | 37.92 | 38.58 | 70 |
| RetinaTrack, w/R-50 ReID | 37.39 | 38.58 | 80 |
| RetinaTrack | 39.19 | 38.24 | 70 |
+
+embeddings allows us to outperform this simple baseline in all cases, and RetinaTrack when trained with detection and metric learning losses jointly outperforms these baselines.
+
+# 4.4. Comparison against state of the art
+
+We finally compare (Table 7) against the recent Tracktor and Tracktor++ algorithms which are currently state of the art on MOT Challenge. For these experiments we use our own Tensorflow reimplementations of Tracktor and Tracktor++ which adds a ReID component and camera motion compensation (CMC). Our implementation differs in some details from that described in the original paper in that it is based on the Tensorflow Object Detection API [27] and does not use an FPN. We use the same ReID model as the one in Section 4.3, which matches the approach taken in the Tracktor paper. To verify that our reimplementations are competitive, we submitted results from our Resnet-101 based Tracktor models to the official MOT Challenge server, which achieve nearly identical MOTA numbers as the official submission which uses an FPN (53.4 vs. 53.5). We also submitted results from a Resnet-152 based Tracktor which currently outperforms all entries on the public leaderboard (with 56.7 MOTA).
+
+On Waymo, we use a Resnet-50 based Tracktor running at $1024 \times 1024$ resolution to be comparable to our model. If we compare the Tracktor (without CMC or ReID) MOTA score to the IOU tracking performance in Table 8, we see that the two approaches are roughly on par. We believe that IOU based tracking can achieve parity with Tracktor here due to (1) having highly accurate detections to begin with, and (2) significant camera motion which hurts Tracktor.
+
+In fact we observe that Tracktor needs the $++$ to significantly outperform the IOU based tracker. However it is far slower — in addition to running Faster R-CNN, it must run a second Resnet-50 model for ReID followed by CMC (which is time consuming).2
+
+Figure 8: Comparison of joint training (RetinaTrack) with alternatives: (1) IOU based similarity tracker, (2) RetinaTrack w/o triplet loss, (3) RetinaTrack w/R-50 ReID,
+
+| Model | MOTA | mAP | Inference time (ms) |
| IOU baseline | 38.25 | 45.78 | 70 |
| Tracktor++ | 42.62 | 42.41 | 2645 |
| RetinaTrack | 44.92 | 45.70 | 70 |
+
+Figure 9: Evaluations on the Waymo v1.1 dataset (which has a $4 \times$ larger training set than the v1 dataset).
+
+RetinaTrack outperforms both variants on tracking and detection. It is able to achieve these improvements by significantly reducing the number of false positives and ID switches. And despite being slower than vanilla Tracktor (whose running time is dominated by Faster R-CNN), RetinaTrack is significantly faster than Tracktor++.
+
+Evaluation on the Waymo v1.1 dataset. As a baseline for future comparisons, we also reproduce our evaluations on the Waymo v1.1 release with $\sim 800\mathrm{K}$ frames for training containing $\sim 1.7\mathrm{M}$ annotated vehicles. For these evaluations, we train for $100\mathrm{K}$ steps with a base learning rate of 0.004 (and all other hyperparameters fixed). Results are shown in Table 9, where we again see the same trends with RetinaTrack significantly outperforming a baseline IOU based tracker as well as outperforming Tracktor++ with a significantly faster running time.
+
+# 5. Conclusion
+
+In this paper we have presented a simple but effective model, RetinaTrack, which trains jointly on detection and tracking tasks and extends single stage detectors to handle instance-level attributes, which we note may be of independent interest for applications beyond tracking.
+
+Additionally we have demonstrated the effectiveness of joint training over the prevailing approach of training independent detection and tracking models. This approach allows RetinaTrack to outperform the current state of the art in multi-object tracking while being significantly faster and able to track through long periods of object disappearance. Finally we hope that our work can serve as a strong baseline for future research in detection and tracking.
+
+# Acknowledgements
+
+We are grateful to Sara Beery, Yuning Chai, Wayne Hung, Henrik Kretzschmar, David Ross, Tina Tian, and Jack Valmadre for valuable discussions.
+
+# References
+
+[1] Bfloat16: The secret to high performance on cloud tpus. https://cloud.google.com/blog/ products/ai-machine-learning/bfloat16-the-secret-to-high-performance-on-cloud-tpus.5,6
+[2] Waymo open dataset: An autonomous driving dataset, 2019. 2, 6
+[3] Ben Benfold and Ian Reid. Stable multi-target tracking in real-time surveillance video. In CVPR 2011, pages 3457-3464. IEEE, 2011. 2
+[4] Philipp Bergmann, Tim Meinhardt, and Laura Leal-Taixe. Tracking without bells and whistles. arXiv preprint arXiv:1903.05625, 2019. 2, 3, 8
+[5] Keni Bernstein and Rainer Stiefelhagen. Evaluating multiple object tracking performance: the clear mot metrics. Journal on Image and Video Processing, 2008;1, 2008. 6
+[6] Gedas Bertasius, Lorenzo Torresani, and Jianbo Shi. Object detection in video with spatiotemporal sampling networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 331-346, 2018. 2
+[7] Jean-Yves Bouguet et al. Pyramidal implementation of the affine lucas kanade feature tracker description of the algorithm. 2001. 2
+[8] 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. 2
+[9] Yuning Chai, Benjamin Sapp, Mayank Bansal, and Dragomir Anguelov. Multipath: Multiple probabilistic anchor trajectory hypotheses for behavior prediction. arXiv preprint arXiv:1910.05449, 2019. 2
+[10] Gal Chechik, Varun Sharma, Uri Shalit, and Samy Bengio. Large scale online learning of image similarity through ranking. Journal of Machine Learning Research, 11(Mar):1109-1135, 2010. 5
+[11] Wongun Choi. Near-online multi-target tracking with aggregated local flow descriptor. In Proceedings of the IEEE international conference on computer vision, pages 3029-3037, 2015. 2
+[12] Ingemar J. Cox and Sunita L. Hingorani. An efficient implementation of reid's multiple hypothesis tracking algorithm and its evaluation for the purpose of visual tracking. IEEE Transactions on pattern analysis and machine intelligence, 18(2):138-150, 1996. 2
+[13] 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. 2, 3
+[14] Hanming Deng, Yang Hua, Tao Song, Zongpu Zhang, Zhengui Xue, Ruhui Ma, Neil Robertson, and Haibing Guan. Object guided external memory network for video object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 6678-6687, 2019. 2
+[15] Mark Everingham, SM Ali Eslami, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The
+
+pascal visual object classes challenge: A retrospective. International journal of computer vision, 111(1):98-136, 2015. 6
+[16] Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Detect to track and track to detect. In Proceedings of the IEEE International Conference on Computer Vision, pages 3038-3046, 2017. 3
+[17] Thomas Fortmann, Yaakov Bar-Shalom, and Molly Scheffe. Sonar tracking of multiple targets using joint probabilistic data association. IEEE journal of Oceanic Engineering, 8(3):173-184, 1983. 2
+[18] Rohit Girdhar, Georgia Gkioxari, Lorenzo Torresani, Manohar Paluri, and Du Tran. Detect-and-track: Efficient pose estimation in videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 350-359, 2018. 3, 6
+[19] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015. 2
+[20] Georgia Gkioxari and Jitendra Malik. Finding action tubes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 759-768, 2015. 2
+[21] Seyed Hamid Rezatofighi, Anton Milan, Zhen Zhang, Qinfeng Shi, Anthony Dick, and Ian Reid. Joint probabilistic data association revisited. In Proceedings of the IEEE international conference on computer vision, pages 3047-3055, 2015. 2
+[22] Wei Han, Pooya Khorrami, Tom Le Paine, Prajit Ramachandran, Mohammad Babaeizadeh, Honghui Shi, Jianan Li, Shuicheng Yan, and Thomas S Huang. Seq-nms for video object detection. arXiv preprint arXiv:1602.08465, 2016. 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. 6
+[24] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 2
+[25] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv preprint arXiv:1703.07737, 2017. 5, 7
+[26] 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. 3
+[27] Jonathan Huang, Vivek Rathod, Chen Sun, Menglong Zhu, Anoop Korattikara, Alireza Fathi, Ian Fischer, Zbigniew Wojna, Yang Song, Sergio Guadarrama, et al. Speed/accuracy trade-offs for modern convolutional object detectors. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7310-7311, 2017. 8
+[28] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 5
+[29] Kai Kang, Hongsheng Li, Tong Xiao, Wanli Ouyang, Junjie Yan, Xihui Liu, and Xiaogang Wang. Object detection in videos with tubelet proposal networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 727-735, 2017. 2
+
+[30] Sameer Kumar, Victor Bitorff, Dehao Chen, Chiachen Chou, Blake Hechtman, HyoukJoong Lee, Naveen Kumar, Peter Mattson, Shibo Wang, Tao Wang, et al. Scale mlperf-0.6 models on google tpu-v3 pods. arXiv preprint arXiv:1909.09756, 2019. 5
+[31] Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont-Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Tom Duerig, et al. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. arXiv preprint arXiv:1811.00982, 2018. 2
+[32] 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. 2
+[33] Hei Law, Yun Teng, Olga Russakovsky, and Jia Deng. Cornernet-lite: Efficient keypoint based object detection. arXiv preprint arXiv:1904.08900, 2019. 2
+[34] Laura Leal-Taixe, Cristian Canton-Ferrer, and Konrad Schindler. Learning by tracking: Siamese cnn for robust target association. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 33-40, 2016. 2
+[35] 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. 3
+[36] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980-2988, 2017. 1, 2, 3, 5, 6
+[37] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 2, 6
+[38] Mason Liu and Menglong Zhu. Mobile video object detection with temporally-aware feature maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5686-5695, 2018. 2
+[39] 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. 2, 6
+[40] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.5, 6
+[41] Wenjie Luo, Bin Yang, and Raquel Urtasun. Fast and furious: Real time end-to-end 3d detection, tracking and motion forecasting with a single convolutional net. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 3569-3577, 2018. 2
+[42] Anton Milan, Laura Leal-Taixe, Ian Reid, Stefan Roth, and Konrad Schindler. Mot16: A benchmark for multi-object tracking. arXiv preprint arXiv:1603.00831, 2016. 1, 3, 6
+
+[43] James Munkres. Algorithms for the assignment and transportation problems. Journal of the society for industrial and applied mathematics, 5(1):32-38, 1957. 2
+[44] 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. 2
+[45] 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. 2
+[46] Donald Reid. An algorithm for tracking multiple targets. IEEE transactions on Automatic Control, 24(6):843-854, 1979. 2
+[47] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015. 2, 6
+[48] Amir Sadeghian, Alexandre Alahi, and Silvio Savarese. Tracking the untrackable: Learning to track multiple cues with long-term dependencies. In Proceedings of the IEEE International Conference on Computer Vision, pages 300-311, 2017. 2
+[49] 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. 5
+[50] Samuel Schulter, Paul Vernaza, Wongun Choi, and Manmohan Chandraker. Deep network flow for multi-object tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6951-6960, 2017. 2
+[51] Mykhailo Shvets, Wei Liu, and Alexander C Berg. Leveraging long-range temporal relationships between proposals for video object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 9756-9764, 2019. 2
+[52] Jeany Son, Mooyeol Baek, Minsu Cho, and Bohyung Han. Multi-object tracking with quadruplet convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5620-5629, 2017. 2
+[53] Siyu Tang, Bjoern Andres, Mykhaylo Andriluka, and Bernt Schiele. Multi-person tracking by multicut and deep matching. In European Conference on Computer Vision, pages 100-111. Springer, 2016. 2
+[54] Yichuan Charlie Tang and Ruslan Salakhutdinov. Multiple futures prediction. arXiv preprint arXiv:1911.00997, 2019. 2
+[55] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. arXiv preprint arXiv:1904.01355, 2019. 2
+[56] Chris Urmson, Joshua Anhalt, Drew Bagnell, Christopher Baker, Robert Bittner, MN Clark, John Dolan, Dave Duggins, Tugrul Galatali, Chris Geyer, et al. Autonomous driving in urban environments: Boss and the urban challenge. Journal of Field Robotics, 25(8):425-466, 2008. 2
+[57] Zhongdao Wang, Liang Zheng, Yixuan Liu, and Shengjin Wang. Towards real-time multi-object tracking. arXiv preprint arXiv:1909.12605, 2019.3
+
+[58] Nicolai Wojke, Alex Bewley, and Dietrich Paulus. Simple online and realtime tracking with a deep association metric. In 2017 IEEE International Conference on Image Processing (ICIP), pages 3645-3649. IEEE, 2017. 2, 5
+[59] Chao-Yuan Wu, Christoph Feichtenhofer, Haoqi Fan, Kaiming He, Philipp Krahenbuhl, and Ross Girshick. Long-term feature banks for detailed video understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 284-293, 2019. 2
+[60] Haiping Wu, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Sequence level semantics aggregation for video object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 9217-9225, 2019. 2
+[61] Yu Xiang, Alexandre Alahi, and Silvio Savarese. Learning to track: Online multi-object tracking by decision making. In Proceedings of the IEEE international conference on computer vision, pages 4705-4713, 2015. 2
+[62] Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In Proceedings of the European Conference on Computer Vision (ECCV), pages 305–321, 2018. 2
+[63] Raymond A Yeh, Alexander G Schwing, Jonathan Huang, and Kevin Murphy. Diverse generation for multi-agent sports games. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4610-4619, 2019. 2
+[64] Eric Zhan, Stephan Zheng, Yisong Yue, Long Sha, and Patrick Lucey. Generating multi-agent trajectories using programmatic weak supervision. arXiv preprint arXiv:1803.07612, 2018. 2
+[65] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019. 2
+[66] Xizhou Zhu, Jifeng Dai, Lu Yuan, and Yichen Wei. Towards high performance video object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7210-7218, 2018. 2
+[67] Xizhou Zhu, Yujie Wang, Jifeng Dai, Lu Yuan, and Yichen Wei. Flow-guided feature aggregation for video object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 408-417, 2017. 2
+[68] Xizhou Zhu, Yuwen Xiong, Jifeng Dai, Lu Yuan, and Yichen Wei. Deep feature flow for video recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2349-2358, 2017. 2
\ No newline at end of file
diff --git a/retinatrackonlinesinglestagejointdetectionandtracking/images.zip b/retinatrackonlinesinglestagejointdetectionandtracking/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..27897ff46087405a3426e5969f7f5ba22b78e06c
--- /dev/null
+++ b/retinatrackonlinesinglestagejointdetectionandtracking/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4414a5556cf658e86c762aaf57ecd7a2b48bd3ee2f243ce5620ce3f65d5a6ee7
+size 317554
diff --git a/retinatrackonlinesinglestagejointdetectionandtracking/layout.json b/retinatrackonlinesinglestagejointdetectionandtracking/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..0a3d5f7f02a3406e463ee694a2f82f48e5a2d704
--- /dev/null
+++ b/retinatrackonlinesinglestagejointdetectionandtracking/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d55f43d7ed120bccd4f385d6d7c3161653db0db7ef5934374b9b06f1c6f09cc4
+size 445460
diff --git a/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_content_list.json b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..88069833229306668c8975206b55d7d577da2b61
--- /dev/null
+++ b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ee109d7f0113645df241a4ca25f1907bdadd6ef68b77966174613043f2e239a
+size 88707
diff --git a/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_model.json b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..27a8bb06ad6f253c7e4a82425a45fa390d8df287
--- /dev/null
+++ b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c418f44c0cb803de6df9165b8de3135bb667e180dadd83e9767c8e819a5d2e4c
+size 100888
diff --git a/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_origin.pdf b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8d105b865d3eb49498eb83f97acc7bd117bf8961
--- /dev/null
+++ b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/c97f805a-6d0d-4e5d-9db8-7d1a68317f70_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2b8125002e6a4d77121330727bb64bdc327a167bcbe86ffb4f7fd43a4e2c3cab
+size 1185406
diff --git a/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/full.md b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..655a27cbedfd13ab7995456051c5256247de7e85
--- /dev/null
+++ b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/full.md
@@ -0,0 +1,386 @@
+# Reusing Discriminators for Encoding: Towards Unsupervised Image-to-Image Translation
+
+Runfa Chen, Wenbing Huang, Binghui Huang, Fuchun Sun*, Bin Fang Institute for Artificial Intelligence, Tsinghua University (THUAI) Beijing National Research Center for Information Science and Technology (BNRist), State Key Lab on Intelligent Technology and Systems, Department of Computer Science and Technology, Tsinghua University, Beijing, P.R.China
+
+crf18@mails.tsinghua.edu.cn, hwenbing@126.com
+
+{hbh18@mails., fcsun@, fangbin@mail.}tsinghua.edu.cn
+
+# Abstract
+
+Unsupervised image-to-image translation is a central task in computer vision. Current translation frameworks will abandon the discriminator once the training process is completed. This paper contends a novel role of the discriminator by reusing it for encoding the images of the target domain. The proposed architecture, termed as NICE-GAN, exhibits two advantageous patterns over previous approaches: First, it is more compact since no independent encoding component is required; Second, this plug-in encoder is directly trained by the adversary loss, making it more informative and trained more effectively if a multiscale discriminator is applied. The main issue in NICE-GAN is the coupling of translation with discrimination along the encoder, which could incur training inconsistency when we play the min-max game via GAN. To tackle this issue, we develop a decoupled training strategy by which the encoder is only trained when maximizing the adversary loss while keeping frozen otherwise. Extensive experiments on four popular benchmarks demonstrate the superior performance of NICE-GAN over state-of-the-art methods in terms of FID, KID, and also human preference. Comprehensive ablation studies are also carried out to isolate the validity of each proposed component. Our codes are available at https://github.com/alpc91/NICE-GAN-pytorch.
+
+# 1. Introduction
+
+Image-to-Image translation transforming images from one domain to the other has boosted a variety of applications in vision tasks, from colorization [39], image editing [6], super-resolution [20] to video generation [35]. Given the extensive effort of collecting paired images between do
+
+
+Figure 1: Illustrative difference between CycleGAN-alike methods and our NICE-GAN.
+
+mains, a more practical line of research [40, 25, 12, 21, 16] directs the goal to unsupervised scenario where no paired information is characterized. Due to the non-identifiability problem [25] in unsupervised translation, various methods have been proposed to address this issue by using additional regulations including weight-coupling [25], cycle-consistency [40, 17, 38], forcing the generator to the identity function [34], or more commonly, combination of them.
+
+When we revisit current successful translation frameworks (such as the one proposed by CycleGAN [40]), most of them consist of three components for each domain: an encoder to embed the input image to a low-dimension hidden space, a generator to translate hidden vectors to images of the other domain, and a discriminator for domain alignment by using GAN training [9]. While this piled-up way is standard, we are still interested in asking: is there any possibility to rethink the role of each component in current translation frameworks? and more importantly, can we change the current formulation (for example, to a more compact architecture) based on our rethinking?
+
+The answer is yes, if we check the relation between the encoder and the discriminator. Basically, the discriminator is to distinguish between the translated image of the source domain and the real image of the target domain. To do so, the discriminator should conduct sort of semantics encoding of the input images before it can tell what images are true and what are false. This, in other words, contends the two roles of the discriminator: encoding and classifying. Indeed, the DCGAN paper [30] has revealed the encoding ability of the discriminator: strongly responses to the input image are observed in the first 6 learned convolutional features from the last convolution layer in the discriminator.
+
+Upon the motivation mentioned above, this paper proposes to reuse the discriminator for encoding. In particular, we reuse early layers of certain number in the discriminator as the encoder of the target domain, as illustrated in Figure. 1. Such kind of reusing exhibits two-fold advantages: I. A more compact architecture is achieved. Since the encoder now becomes part of the discriminator, we no longer require an independent component for encoding. Also, unlike existing methods where the discriminator is abandoned after training, its encoding part is still kept for inference in our framework. II. The encoder is trained more effectively. Traditional training of the encoder is conducted by back-propagating the gradients from the generator, which is indirect. Here, by plugging it into the discriminator, the encoder is directly trained through the discriminative loss. Moreover, modern discriminators have resorted to the multi-scale scheme for more expressive power [8, 13, 7, 36]; our encoder will inherit the expressive ability by nature if the multi-scale discriminator is applied.
+
+A remaining issue of our approach is how to perform adversary training. For traditional methods [40, 25, 12, 21, 16], the encoder is trained along with the generator for minimizing the GAN loss, while the discriminator is trained separately to maximize the objective. In our framework, the encoder and the discriminator become overlap, and it will bring in instability if we apply traditional training setting—the encoder as part of translation is trained for minimizing, and at the same time it belongs to the discriminator and is also trained for maximizing. To eliminate the inconsistency, we develop a decoupled training paradigm. Specifically, the training of the encoder is only associated with the discriminator, independent of the generator. Our experiments on several benchmarks show that such simple decoupling promotes the training remarkably (see details in Section 4.7). Another intuition behind is that disentangling the encoder from the training of translation will make it towards more general purpose of encoding other than translation along, thereby enabling more generality.
+
+We summarize our contributions as follow.
+
+- To the best of our knowledge, we are the first to reuse discriminators for encoding specifically for un-
+
+supervised image-to-image translation. By such a reusing, a more compact and more effective architecture is derived, which is dubbed as No-Independent-Component-for-Encoding GAN (NICE-GAN).
+
+- Given that the reusing of discriminator will incur instability in terms of typical training procedure, this paper develops a decoupled training paradigm, which is simple yet efficient.
+- Extensive experimental evaluations on several popular benchmarks reveal that the proposed method outperforms various state-of-the-art counterparts. The comprehensive ablation studies are also conducted to verify the effectiveness of each proposed component.
+
+# 2. Related Work
+
+Image-to-image translation. Conditional GAN-based standard framework, proposed by Isola et al. [14], promotes the study on image-to-image translation. Several works extend it to deal with super-resolution[36] or video generation[35]. Despite of the promising results they attain, all these approaches need paired data for training, which limits their practical usage.
+
+Unsupervised image-to-image translation. In terms of unsupervised image-to-image translation with unpaired training data, CycleGAN [40], DiscoGAN [17], DualGAN [38] preserve key attributes between the input and the translated image by using a cycle-consistency loss. Various studies have been proposed towards extension of CycleGAN. The first kind of development is to enable multimodal generations: MUNIT [12] and DRIT [21] decompose the latent space of images into a domain-invariant content space and a domain-specific style space to get diverse outputs. Another enhancement of CycleGAN is to perform translation across multiple (more than two) domains simultaneously, such as StarGAN [5]. A more functional line of research focuses on transformation between domains with larger difference. For example, CoupledGAN [26], UNIT [25], ComboGAN [2] and XGAN [31] using domain-sharing latent space, and U-GAT-IT [16] resort to attention modules for feature selection. Recently, TransGAGA [37] and TravelGAN [1] are proposed to characterize the latent representation by using Cartesian product of geometry and preserving vector arithmetic, respectively.
+
+Introspective Networks. Exploring the double roles of the discriminator has been conducted by Introspective Neural Networks (INN) [15, 19, 23] and Introspective Adversarial Networks (IAN) [4, 33]. Although INN does share the same purpose of reusing discriminator for generation, it exhibits several remarkable differences compared to our NICE-GAN. First, INN and NICE-GAN tackle different tasks. INN is for pure generation, and the discriminator is reused for generation from hidden vectors to images (as decoding); our NICE-GAN is for translation, and the discrimi
+
+inator is reused for embedding from images to hidden vectors (as encoding). Furthermore, INN requires sequential training even when doing inference, while NICE-GAN only needs one forward pass to generate a novel image, depicting more efficiency. Regarding IAN, it is also for pure generation and reuses one discriminator to generate self-false samples, which is an introspective mechanism; our NICE-GAN reuses the discriminator of one domain to generate a false sample of the other, which is indeed a mutual introspective mechanism.
+
+# 3. Our NICE-GAN
+
+This section presents the detailed formulation of our method. We first introduce the general idea, and then follow it up by providing the details of each component in NICE-GAN. The decoupled training mechanism is specified as well.
+
+# 3.1. General Formulation
+
+Problem Definition. Let $\mathcal{X},\mathcal{Y}$ be two image domains. While supervised image-to-image translation requires to learn the conditional mappings $f_{x\rightarrow y} = p(\mathcal{Y}|\mathcal{X})$ and $f_{y\rightarrow x} = p(\mathcal{X}|\mathcal{Y})$ given the joint distribution $p(\mathcal{X},\mathcal{Y})$ , unsupervised translation learns $f_{x\rightarrow y}$ and $f_{y\rightarrow x}$ with only the marginals $p(\mathcal{X})$ and $p(\mathcal{Y})$ provided. Unsupervised translation is ill-posed, since there are infinitely many conditional probabilities corresponded to the same marginal distributions. To address this issue, current methods resort to adding extra regulations, such as weight-coupling [26, 25, 21], cycle-consistency [40, 17, 38], and identity-mapping-enforcing [34, 40], the latter two of which are employed in this paper.
+
+In most of existing frameworks, the translation $f_{x \to y}$ (resp. $f_{y \to x}$ ) is composed of an encoder $E_x$ (resp. $E_y$ ) and a generator $G_{x \to y}$ (resp. $G_{y \to x}$ ). By combining them all together, it gives $y' = f_{x \to y}(x) = G_{x \to y}(E_x(x))$ (resp. $x' = f_{y \to x}(y) = G_{y \to x}(E_y(y))$ ). The GAN [9] training fashion is usually adopted to enable the translated output to fit the distribution of the target domain. Namely, we use a discriminator $D_y$ (resp. $D_x$ ) to classify between the true image $y$ and the translated image $y'$ (resp. $x$ and $x'$ ).
+
+No Independent Component for Encoding (NICE). As mentioned in introduction, our NICE-GAN reuses discriminators for encoding, delivering the advantages of efficiency and effectiveness for training. Formally, we divide the discriminator $D_y$ into the encoding part $E_y^D$ and classification part $C_y$ . The encoding part $E_y^D$ will replace the original encoder in $f_{y\to x}$ , resulting in a new translation $f_{y\rightarrow x}(y) = G_{y\rightarrow x}(E_y^D (y))$ . Similarly for the discriminator $D_x$ , we define $E_x^D$ and $C_x$ , and reformulate the translation function as $f_{x\rightarrow y}(x) = G_{x\rightarrow y}(E_x^D (x))$ . As for the classification components $C_x$ and $C_y$ , we further employ the multiscale structure to boost the expressive power. Besides, the
+
+newly-formulated encoders $E_{x}^{D}$ and $E_{y}^{D}$ exist in the training loops of both translation and discrimination, making them difficult to train. Hence we proposed a decoupled training flowchart in NICE-GAN. The details of the architecture's build-up and training are presented in Section 3.2 and Section 3.3, respectively. Figure 2 illustrates our framework. Unless otherwise noticed, we will remove the superscript $D$ from $E_{x}^{D}$ and $E_{y}^{D}$ for simplicity in what follows.
+
+# 3.2. Architecture
+
+Multi-Scale Discriminators $D_x$ and $D_y$ . We only discuss $D_x$ here, since the formulation of $D_y$ is similar. Full details are provided in the supplementary material (SP). Our usage of multi-scale discriminators is inspired from previous works [8, 13, 7, 36]. In these approaches, the discriminator of different scale is applied to the image of different size (the small-size images are attained from the original image by down-sampling). In this paper, we consider a more efficient way by regarding the feature maps in different layers of the single input to be the images of different scales, and then feed each of them to the classifier with the corresponding input size for discriminating, which is similar to the application of feature pyramid representations in object detection (e.g. SSD [27] and FPN [24]).
+
+We now introduce our idea in a formal way. As mentioned above, the discriminator $D_{x}$ contains two parts: the encoder $E_{x}$ and the classifier $C_x$ . To enable multi-scale processing, the classifier $C_x$ is further divided into three sub-classifiers: $C_x^0$ for local scale (10 x 10 receptive field), $C_x^1$ for middle scale (70 x 70 receptive field), and $C_x^2$ for global scale (286 x 286 receptive field). $C_x^0$ is directly connected to the output of $E_{x}$ . Then, a down-sampling-convolution layer is conducted on $E_{x}$ to provide the feature maps of smaller scale, which are concatenated to two branches: one is linked to $C_x^1$ , and the other one is further down sampled through convolution layers followed by $C_x^2$ . For a single input image, $C_x^0$ , $C_x^1$ , and $C_x^2$ are all trained to predict whether the image is true or false. The multi-scale discriminator is also illustrated in Figure 2.
+
+Besides the multi-scale design, we develop a residual attention mechanism to further facilitate the feature propagation in our discriminator. Using attention in discriminator is originally proposed by U-GAT-IT [16]. Suppose the encoder contains feature maps of number $K$ (i.e. $E_{x} = \{E_{x}^{k}\}_{k=1}^{K}$ ). The idea of U-GAT-IT is first learning an attention vector $w$ , each element of which counts the importance of each feature map. Then, the attended features computed by $a(x) = w \times E_{x}(x) = \{w_{k} \times E_{x}^{k}(x)\}_{k=1}^{K}$ are leveraged for later classification. Upon but beyond U-GAT-IT, this paper further takes the residual connection into account, that is, we use $a(x) = \gamma \times w \times E_{x}(x) + E_{x}(x)$ , where the trainable parameter $\gamma$ determines the trade-off between the attended features and the original ones. When $\gamma = 0$ , it
+
+
+Figure 2: Illustration of the flowchart of NICE-GAN. Here we only display one translation stream from $\mathcal{X}$ to $\mathcal{Y}$ (from dog to cat). Note that we apply a decoupled training fashion: the encoder $E_{y}$ is fixed when minimizing the adversarial loss, the reconstruction loss and the cycle loss, and it is trained when maximizing the adversarial loss.
+
+returns to $E_{x}(x)$ indicating no attention is used, and otherwise, the attention is activated. By this modification, our method becomes more flexible on adjusting the importance of different feature maps and thus attains more effectiveness in training, which will be clarified by our experiments.
+
+Generators $G_{x \to y}$ and $G_{y \to x}$ . Both $G_{x \to y}$ and $G_{y \to x}$ are composed of six residual blocks [10], and two sub-pixel convolutional layers for up-sampling [32]. And, we use the AdaLIN light version similar to the paper [16]. In addition, spectral normalization [29] used for the discriminator and cycle-consistency loss is conducted to prevent generators from mode collapse. Full details are presented in the SP.
+
+# 3.3. Decoupled Training
+
+The training process is proceeded in terms of three kinds of losses: adversarial loss, identity reconstruction loss, and cycle-consistency loss. The adversarial loss is to pursue domain transfer, while both reconstruction loss and cycle-consistency loss are for tackling the non-identifiability issue as pointed out before.
+
+Since the encoder $E_{x}$ is not only a part of the discriminator $D_{x}$ but is also taken as the input of the generator $G_{x\rightarrow y}$ , it will incur inconsistency if we apply conventional adversarial training. To overcome this defect, we decouple the training of $E_{x}$ from that of the generator $G_{x\rightarrow y}$ . The details of formulating each loss are provided below.
+
+Adversarial loss. First, we make use of the least-square adversarial loss by [28] for its more stable training and higher quality of generation. The min-max game is conducted by
+
+$$
+\begin{array}{l} \min _ {G _ {x \to y}} \max _ {D _ {y} = (C _ {y} \circ E _ {y})} L _ {g a n} ^ {x \to y} := \mathbb {E} _ {y \sim y} \left[ (D _ {y} (y)) ^ {2} \right] \\ + \mathbb {E} _ {x \sim \chi} \left[\left(1 - D _ {y} \left(G _ {x \rightarrow y} \left(E _ {x} (x)\right)\right)\right) ^ {2} \right], \tag {1} \\ \end{array}
+$$
+
+where, $E_{x}$ is fixed and $E_{y}$ is trained when maximizing
+
+$L_{\text{gan}}^{x \to y}$ , and both of them are fixed when minimizing $L_{\text{gan}}^{x \to y}$ .
+
+Cycle-consistency loss. The cycle-consistency loss is first introduced by CycleGAN [40] and DiscoGAN [17], which is to force the generators to be each other's inverse.
+
+$$
+\min _ {\begin{array}{l}G _ {x \rightarrow y}\\G _ {y \rightarrow x}\end{array}} L _ {\text {c y c l e}} ^ {x \rightarrow y} := \mathbb {E} _ {x \sim \mathcal {X}} \left[ | x - G _ {y \rightarrow x} (E _ {y} (G _ {x \rightarrow y} (E _ {x} (x)))) | _ {1} \right], \tag {2}
+$$
+
+where $|\cdot|_1$ computes the $\ell_1$ norm, and both $E_x$ and $E_y$ are also frozen.
+
+Reconstruction loss. Forcing the generator to be close to the identity function is another crucial regulation technique in CycleGAN [40]. Unlike CycleGAN where the identity loss is based on domain similarity assumption, our reconstruction is based on the shared-latent space assumption. Reconstruction loss is to regularize the translation to be near an identity mapping when real samples' hidden vectors of the source domain are provided as the input to the generator of the source domain. Namely,
+
+$$
+\min _ {G _ {y \rightarrow x}} L _ {\text {r e c o n}} ^ {x \rightarrow y} := \mathbb {E} _ {x \sim \mathcal {X}} \left[ | x - G _ {y \rightarrow x} \left(E _ {x} (x)\right) | _ {1} \right], \tag {3}
+$$
+
+where $E_{x}$ is still kept unchanged.
+
+Similarly, we can define the losses from domain $\mathcal{V}$ to $\mathcal{X}$ : $L_{\text{gan}}^{y \to x}, L_{\text{cycle}}^{y \to x}$ , and $L_{\text{recon}}^{y \to x}$ .
+
+Full objective. The discriminators' final objective is
+
+$$
+\max _ {E _ {x}, C _ {x}, E _ {y}, C _ {y}} \lambda_ {1} L _ {\text {g a n}}; \tag {4}
+$$
+
+while the generators' final loss objective is
+
+$$
+\min _ {G _ {x \rightarrow y}, G _ {y \rightarrow x}} \lambda_ {1} L _ {g a n} + \lambda_ {2} L _ {c y c l e} + \lambda_ {3} L _ {r e c o n},
+$$
+
+where, $L_{\text{gan}} = L_{\text{gan}}^{x \to y} + L_{\text{gan}}^{y \to x}, L_{\text{cycle}} = L_{\text{cycle}}^{x \to y} + L_{\text{cycle}}^{y \to x}, L_{\text{recon}} = L_{\text{recon}}^{x \to y} + L_{\text{recon}}^{y \to x}$ , and $\lambda_1, \lambda_2, \lambda_3$ are
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+a)Input
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+b)NICE-GAN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+c)UGATIT
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+d)CycleGAN
+Figure 3: Examples of generated outputs. From top to bottom: dog $\leftrightarrow$ cat, winter $\leftrightarrow$ summer, photo $\leftrightarrow$ vangogh, and zebra $\leftrightarrow$ horse.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+e)UNIT
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+f)MUNIT
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+g)DRIT
+
+the trade-off weights (they are fixed as $\lambda_1 = 1$ , $\lambda_2 = 10$ , and $\lambda_3 = 10$ throughout our experiments).
+
+Note again, the encoders $E_{x}$ and $E_{y}$ are trained under the discriminator's objective but are decoupled from the training of generators. The benefit of the proposed decoupled training paradigm will be analyzed by our experiments.
+
+# 4. Experiments
+
+# 4.1. Baselines
+
+We compare the performance NICE-GAN with state-of-the-art methods including CycleGAN [40], UNIT [25],
+
+MUNIT [12], DRIT [21], and U-GAT-IT [16] considering their competitive performance on unsupervised image-to-image translation. All compared methods are conducted by using the public codes. Specifically for U-GAT-IT, we use its light version due to the memory limit of our GPU machine. The details of all baselines are introduced in the SP.
+
+# 4.2. Dataset
+
+The experiments are carried out on four popular benchmarks of unpaired images: horse $\leftrightarrow$ zebra, summer $\leftrightarrow$ winter-yosemite, yangogh $\leftrightarrow$ photo and cat $\leftrightarrow$ dog. The first three datasets are used in Cy
+
+Table 1: The FID and the KID $\times 100$ for different algorithms. Lower is better. All of the methods are trained to the 100K-th iterations. NICE-GAN* is the version that the generator network is composed of only four residual blocks.
+
+| Dataset Method | dog → cat | winter → summer | photo → vangogh | zebra → horse |
| FID | KID × 100 | FID | KID × 100 | FID | KID × 100 | FID | KID × 100 |
| NICE-GAN | 48.79 | 1.58 | 76.44 | 1.22 | 122.27 | 3.71 | 149.48 | 4.29 |
| NICE-GAN* | 51.98 | 1.50 | 79.02 | 1.35 | 122.59 | 3.53 | 150.57 | 4.43 |
| U-GAT-IT-light | 80.75 | 3.22 | 80.33 | 1.82 | 137.70 | 6.03 | 145.47 | 3.39 |
| CycleGAN | 119.32 | 4.93 | 79.58 | 1.36 | 136.97 | 4.75 | 156.19 | 5.54 |
| UNIT | 59.56 | 1.94 | 95.93 | 4.63 | 136.80 | 5.17 | 170.76 | 6.30 |
| MUNIT | 53.25 | 1.26 | 99.14 | 4.66 | 130.55 | 4.50 | 193.43 | 7.25 |
| DRIT | 94.50 | 5.20 | 78.61 | 1.69 | 136.24 | 5.43 | 200.41 | 10.12 |
| Dataset Method | cat → dog | summer → winter | vangogh → photo | horse → zebra |
| FID | KID × 100 | FID | KID × 100 | FID | KID × 100 | FID | KID × 100 |
| NICE-GAN | 44.67 | 1.20 | 76.03 | 0.67 | 112.00 | 2.79 | 65.93 | 2.09 |
| NICE-GAN* | 55.72 | 1.89 | 77.13 | 0.73 | 117.81 | 3.61 | 84.89 | 3.29 |
| U-GAT-IT-light | 64.36 | 2.49 | 88.41 | 1.43 | 123.57 | 4.91 | 113.44 | 5.13 |
| CycleGAN | 125.30 | 6.93 | 78.76 | 0.78 | 135.01 | 4.71 | 95.98 | 3.24 |
| UNIT | 63.78 | 1.94 | 112.07 | 5.36 | 143.96 | 7.44 | 131.04 | 7.19 |
| MUNIT | 60.84 | 2.42 | 114.08 | 5.27 | 138.86 | 6.19 | 128.70 | 6.92 |
| DRIT | 79.57 | 4.57 | 81.64 | 1.27 | 142.69 | 5.62 | 111.63 | 7.40 |
+
+Table 2: Total number of parameters and FLOPs of network modules. NICE-GAN* are the version that the generator network is composed of only four residual blocks.
+
+| Module Method | Total number of params(FLOPs) |
| Generators | Discriminators |
| U-GAT-IT-light | 21.2M(105.0G) | 112.8M(15.8G) |
| NICE-GAN | 16.2M(67.6G) | 93.7M(12.0G) |
| NICE-GAN* | 11.5M(48.2G) | 93.7M(12.0G) |
+
+cleGAN [40], whose train-test splits are respectively: 1,067/120 (horse), 1,334/140 (zebra); 1,231/309 (summer), 962/238 (winter); 400/400 (vangogh), 6,287/751 (photo). The last dataset is studied in DRIT [21][22], whose train-test splits are: 771/100 (cat), 1,264/100 (dog). All images of all datasets are cropped and resized to $256 \times 256$ for training and testing.
+
+# 4.3. Evaluation Metrics
+
+Human Preference. To compare the veracity of translation outputs generated by different methods, we carry out human perceptual study. Similar to Wang et al. [36], volunteers are shown an input image and three translation outputs from different methods, and given unlimited time they select which translation output looks better.
+
+The Fréchet Inception Distance (FID) proposed by Heusel et al. (2017) [11] contrast the statistics of generated samples against real samples. The FID fits a Gaussian distribution to the hidden activations of InceptionNet for each compared image set and then computes the Fréchet distance (also known as the Wasserstein-2 distance) between those Gaussians. Lower FID is better, corresponding to generated images more similar to the real.
+
+
+Figure 4: Human preference results. The number indicates the percentage of preference on that translation task. Abbreviation: (D)og, (C)at; (W)inter, (S)ummer; (P)hoto, (V)angogh; (Z)ebra, (H)orse.
+
+The Kernel Inception Distance (KID) developed by [3] is a metric similar to the FID but uses the squared Maximum Mean Discrepancy(MMD) between Inception representations with a polynomial kernel, $k(x,y) = \left(\frac{1}{d} x^{\mathrm{T}}y + 1\right)^{3}$ , where $d$ is the representation dimension. It can also be viewed as an MMD directly on input images with the kernel $K(x,y) = k(\theta(x),\theta(y))$ , where $\theta$ is the function mapping images to Inception representations. Unlike FID, KID has a simple unbiased estimator, making it more reliable especially when there are much more inception features channels than image numbers. Lower KID indicates more visual similarity between real and generated images. Our implementation of KID is based on https://github.com/mbinkowski/MMD-GAN where the hidden representations are from the Inception-v3 pool3 layer.
+
+# 4.4. Setup
+
+We use ReLU as the actionvation function in the generator and leaky-ReLU with a slope of 0.2 in the discriminator. We train all models using the Adam [18] optimizer with the learning rate 0.0001 and $(\beta 1, \beta 2) = (0.5, 0.999)$ on NVIDIA RTX 2080Ti GPUs. For data augmentation, we flip the images horizontally with a probability of 0.5, resized them to $286 \times 286$ , and randomly cropped them to $256 \times 256$ . The batch size is set to 1 for all experiments. We also use a weight decay at the rate of 0.0001. All models are trained over 100K iterations. More details on the training process and network architecture are provided in the SP.
+
+# 4.5. Comparisons with state of the arts
+
+Table 1 shows that our approach generally achieves the lowest FID or KID scores on all cases except zebra $\rightarrow$ horse, indicating the promising translation ability of our NICE framework on varying tasks. These two metrics maintain good consistency in relative scores, which fully demonstrates our NICE-GAN reasonably performs well regardless of what measure we have used. By contrast, other methods only perform well on certain datasets; for instance, U-GAT-IT-light, UNIT and MUNIT successfully transforms the semantic of objects(e.g. animal faces), while CycleGAN is good at modifying low-level characteristics (e.g. colors and textures). U-GAT-IT-light roughly shares the same structures (multi-scale discriminators and generators) as NICE-GAN, and it differs from NICE-GAN mainly in its independent formulation of encoders. Table 2 reports total number of parameters and FLOPs of U-GAT-IT-light and NICE-GAN, and it reads that our architecture is more compact by reusing discriminators for encoding. To further observe the visual difference, Figure 3 depicts the translated images of different methods on test sets. The generated images by NICE-GAN are almost more meaningful and have less artifacts than others (see the cat $\leftrightarrow$ dog task for an example).
+
+In addition to our method, we select two baselines achieving lowest KID scores in each dataset to conduct a human perceptual study. Firstly, volunteers are shown an example pair consisting of source-domain image and a target-domain image as a reference to better understand what style is translating. Secondly, they are given an input image, and three translated outputs among which one is from NICE-GAN and the other two from the selected baselines. They have unlimited time to choose which looks most real based on perceptual realism. The synthesized images are displayed in a randomized order to ensure fair comparisons. Besides, checkpoint questions are set and distributed to each volunteer to validating human effort. A total of 123 questionnaires are collected in which we find that 120 are valid. Figure 4 shows that NICE-GAN wins the majority of votes in all cases except for zebra→horse. These results
+
+Table 3: Ablation Study. Results of methods are all in 100K iterations of discriminator. NICE: No Independent Component for Encoding; RA: add residual connection in CAM attention module; $C_x^0$ for local scale (10 x 10 receptive field), $C_x^1$ for middle scale (70 x 70 receptive field), and $C_x^2$ for global scale (286 x 286 receptive field); -: decreasing the number of shared layers by 1; +: increasing by 1.
+
+| Data Set | Components | FID | KID × 100 |
| NICE | RA | \(C_x^0\) | \(C_x^1\) | \(C_x^2\) |
| dog → cat | × | × | ✓ | ✓ | ✓ | 80.75 | 3.22 |
| × | ✓ | ✓ | ✓ | ✓ | 67.60 | 2.94 |
| ✓ | × | ✓ | ✓ | ✓ | 63.80 | 3.27 |
| - | ✓ | ✓ | ✓ | ✓ | 48.55 | 1.23 |
| ✓ | ✓ | ✓ | ✓ | ✓ | 48.79 | 1.58 |
| + | ✓ | ✓ | ✓ | ✓ | 53.52 | 1.84 |
| ✓ | ✓ | ✓ | ✓ | × | 203.56 | 15.27 |
| ✓ | ✓ | ✓ | × | × | 216.03 | 18.57 |
| cat → dog | × | × | ✓ | ✓ | ✓ | 64.36 | 2.49 |
| × | ✓ | ✓ | ✓ | ✓ | 64.62 | 2.41 |
| ✓ | × | ✓ | ✓ | ✓ | 51.49 | 1.68 |
| - | ✓ | ✓ | ✓ | ✓ | 52.92 | 1.82 |
| ✓ | ✓ | ✓ | ✓ | ✓ | 44.67 | 1.20 |
| + | ✓ | ✓ | ✓ | ✓ | 54.90 | 2.17 |
| ✓ | ✓ | ✓ | ✓ | × | 238.62 | 21.41 |
| ✓ | ✓ | ✓ | × | × | 231.24 | 22.12 |
+
+are also consistent with the quantitative metrics in Table 1. More examples of the results from our model are included in the SP.
+
+# 4.6. Ablation study
+
+We conduct ablation studies on the cat $\leftrightarrow$ dog datasets in Table 3 to isolate the validity of the key components of our method: the NICE strategy, the multi-scale formulation and the Residual Attention (RA) mechanism in discriminators. We perform four groups of experiments.
+
+NICE and RA. The first group keeps employing the multiscale formulation but removes either or both of NICE and RA to draw the performance difference. The results are reported in Table 3. It verifies that each of NICE and RA contributes to the performance improvement while the importance of NICE is more significant. Overall, by combining all components, NICE-GAN remarkably outperforms all other variants. Figure 5 shows the latent vectors of each domain w/ and w/o NICE on cat $\leftrightarrow$ dog via t-SNE, as well as MMD to compute domain difference. Interestingly, with NICE training, the latent distributions of two domains become more clustered and closer, yet separable to each other. Such phenomenon explains why our NICE-GAN performs promisingly. By shortening the transition path between domains in the latent space, NICE-GAN built upon the shared latent space assumption can probably facilitate domain translation in the image space.
+
+The number of shared layers. For consistent comparison,
+
+
+Figure 5: The t-SNE visualization of the latent vectors, as well as the MMD to measure domain difference.
+
+we employ the commonly-used ResNet backbone in [40] as our generator and naturally share the whole encoder therein. We also evaluate the effect of changing the number of layers shared by discriminator and encoder. Table 3 shows that whether decreasing or increasing the number of layers generally hinders the performance. Thus, the best choice here is sharing the whole default encoder.
+
+Multi-scale. The third group of experiments is to evaluate the impact of the multi-scale formulation $(C_x^0, C_x^1, C_x^2)$ in discriminators. The results are summarized in Table 3. We find that removing $C_x^2$ will cause a serious detriment; the importance of $C_x^0$ and $C_x^1$ is task-dependent, and adding $C_x^1$ upon $C_x^0$ does not exhibit clear enhancement on this task. Actually, all three scales are generally necessary and multiscale is more robust, with more discussions in the SP.
+
+Weight-coupling. Besides, there are existing methods of model compression, such as weight-coupling [25, 21]. Sharing a few layers between two generators enables model compression but detriments the translation performance. For example on $\text{cat} \leftrightarrow \text{dog}$ , the FID increases from 48.79/44.67 to 49.67/56.32 if sharing the first layer of the decoders, and from 48.79/44.67 to 55.00/55.60 if sharing the last layer of encoders. Similar results are observed if we reuse the first layer of the classifiers, the FID increases from 48.79/44.67 to 61.73/46.65. It implies weight-coupling could weaken the translation power for each domain.
+
+# 4.7. Decoupled Training Analysis
+
+In our NICE framework, we decouple the training of $E_{x}$ from that of the generator $G_{x\rightarrow y}$ . To prove the effectiveness of this strategy, we develop two additional variants: NICE-GAN-1 and NICE-GAN-2. To be specific, NICE-GAN-1 adopts the conventional training approach, where the encoders are jointly trained with the discriminators and generators. As for NICE-GAN-2, it is also performed in a decoupled way but acts oppositely with our method, that is, the encoders are trained along with the generator, independent to the classifiers in the discriminators. From a more essential sense, the discriminators indeed degenerate to the classifiers in NICE-GAN-2.
+
+Figure 6 reports the training curves of NICE-GAN, NICE-GAN-1 and NICE-GAN-2. Clearly, the training of NICE-GAN-1 is unstable, which is consistent with our analysis. NICE-GAN-2 performs more stably and better than NICE-GAN-1, but is still inferior to our NICE-GAN. We conjecture that in NICE-GAN-2, using the classifiers for
+
+
+
+
+Figure 6: Decoupled Training Analysis. NICE-GAN: decoupled training, $E_{x}$ and $E_{y}$ will only be updated by $maxL_{gan}$ ; NICE-GAN-1: jointly train the discriminators and generators, $E_{x}$ and $E_{y}$ will be updated by $minmaxL_{gan}, minL_{cycle}$ and $minL_{recon}$ ; NICE-GAN-2: decoupled training, $E_{x}$ and $E_{y}$ will be updated by $minL_{gan}, minL_{cycle}$ and $minL_{recon}$ .
+
+
+
+
+
+discriminating is actually aligning the distributions of hidden vectors. Nevertheless, NICE-GAN leverages both the encoders and classifiers for discriminating, underlying that it is matching the distributions of image space, thus more precise information is captured.
+
+A clear disentanglement of responsibilities of different components makes NICE-GAN simple and effective. Besides, It further supports the idea [4] that features learned by a discriminatively trained network tend to be more expressive than those learned by an encoder network trained via maximum likelihood, and thus better suited for inference.
+
+# 5. Conclusion
+
+In this paper, we present NICE-GAN, a novel framework for unsupervised image-to-image translation. It reuses discriminators for encoding and develops a decoupled paradigm for efficient training. Comparable experimental evaluations on several popular benchmarks reveal that NICE-GAN generally achieves superior performance over state-of-the-art methods. Our research is expected to evoke the rethinking on what discriminators actually can do, and it is potentially applicable to refresh the GAN-based models in other cases.
+
+Acknowledgement. This research was jointly funded by the National Natural Science Foundation of China (NSFC) and the German Research Foundation (DFG) in project Cross Modal Learning, NSFC 61621136008/DFG TRR-169, and the National Natural Science Foundation of China(Grant No.91848206). We thank Chengliang Zhong, Mingxuan Jing and Dr. Tao Kong for the insightful advice.
+
+# References
+
+[1] Matthew Amodio and Smita Krishnaswamy. Travelgian: Image-to-image translation by transformation vector learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8983-8992, 2019.
+[2] Asha Anoosheh, Eirikur Agustsson, Radu Timofte, and Luc Van Gool. Combogan: Unrestrained scalability for image domain translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 783-790, 2018.
+[3] M Binkowski, DJ Sutherland, M Arbel, and A Gretton. Demystifying mmd gans. In International Conference on Learning Representations, 2018.
+[4] Andrew Brock, Theodore Lim, James Millar Ritchie, and Nicholas J Weston. Neural photo editing with introspective adversarial networks. In 5th International Conference on Learning Representations, 2017.
+[5] Yunjey Choi, Minje Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8789-8797, 2018.
+[6] Tali Dekel, Chuang Gan, Dilip Krishnan, Ce Liu, and William T Freeman. Sparse, smart contours to represent and edit images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3511-3520, 2018.
+[7] Ugur Demir and Gozde Unal. Patch-based image inpainting with generative adversarial networks. arXiv preprint arXiv:1803.07422, 2018.
+[8] Ishan Durugkar, Ian Kemp, and Sridhar Mahadevan. Generative multi-adversarial networks. In International Conference on Learning Representations, 2017.
+[9] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014.
+[10] 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.
+[11] 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.
+[12] Xun Huang, Ming-Yu Liu, Serge Belongie, and Jan Kautz. Multimodal unsupervised image-to-image translation. In ECCV, 2018.
+[13] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Globally and locally consistent image completion. ACM Transactions on Graphics (ToG), 36(4):107, 2017.
+[14] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adver
+
+sarial networks. In Computer Vision and Pattern Recognition (CVPR), 2017 IEEE Conference on, 2017.
+[15] Long Jin, Justin Lazarow, and Zhuowen Tu. Introspective classification with convolutional nets. In Advances in Neural Information Processing Systems, pages 823-833, 2017.
+[16] Junho Kim, Minjae Kim, Hyeonwoo Kang, and Kwang Hee Lee. U-gat-it: Unsupervised generative attentional networks with adaptive layer-instance normalization for image-to-image translation. In International Conference on Learning Representations, 2020.
+[17] Taeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jung Kwon Lee, and Jiwon Kim. Learning to discover cross-domain relations with generative adversarial networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1857–1865. JMLR.org, 2017.
+[18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[19] Justin Lazarow, Long Jin, and Zhuowen Tu. Introspective neural networks for generative modeling. In Proceedings of the IEEE International Conference on Computer Vision, pages 2774-2783, 2017.
+[20] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681-4690, 2017.
+[21] Hsin-Ying Lee, Hung-Yu Tseng, Jia-Bin Huang, Maneesh Kumar Singh, and Ming-Hsuan Yang. Diverse image-to-image translation via disentangled representations. In European Conference on Computer Vision, 2018.
+[22] Hsin-Ying Lee, Hung-Yu Tseng, Qi Mao, Jia-Bin Huang, Yu-Ding Lu, Maneesh Kumar Singh, and Ming-Hsuan Yang. Drit++: Diverse image-to-image translation viadisentangled representations. arXiv preprint arXiv:1905.01270, 2019.
+[23] Kwonjoon Lee, Weijian Xu, Fan Fan, and Zhuowen Tu. Wasserstein introspective neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3702-3711, 2018.
+[24] 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.
+[25] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In Advances in neural information processing systems, pages 700-708, 2017.
+[26] Ming-Yu Liu and Oncel Tuzel. Coupled generative adversarial networks. In Advances in neural information processing systems, pages 469-477, 2016.
+[27] 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.
+[28] Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative
+
+adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 2794-2802, 2017.
+[29] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018.
+[30] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
+[31] Amélie Royer, Konstantinos Bousmalis, Stephan Gouws, Fred Bertsch, Inbar Mosseri, Forrester Cole, and Kevin Murphy. Xgan: Unsupervised image-to-image translation for many-to-many mappings. arXiv preprint arXiv:1711.05139, 2017.
+[32] Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1874-1883, 2016.
+[33] Jianlin Su. O-gan: Extremely concise approach for auto-encoding generative adversarial networks, 2019.
+[34] Yaniv Taigman, Adam Polyak, and Lior Wolf. Unsupervised cross-domain image generation. In International Conference on Learning Representations, 2016.
+[35] 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.
+[36] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8798-8807, 2018.
+[37] Wayne Wu, Kaidi Cao, Cheng Li, Chen Qian, and Chen Change Loy. Transgaga: Geometry-aware unsupervised image-to-image translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8012-8021, 2019.
+[38] Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. Dualgan: Unsupervised dual learning for image-to-image translation. In Proceedings of the IEEE international conference on computer vision, pages 2849-2857, 2017.
+[39] Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European conference on computer vision, pages 649-666. Springer, 2016.
+[40] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networkss. In Computer Vision (ICCV), 2017 IEEE International Conference on, 2017.
\ No newline at end of file
diff --git a/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/images.zip b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..07530136d8d0d63bc25cd1b37facd37f72f8ef26
--- /dev/null
+++ b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54af4b84aafa7b87b56e3163843410e2d923020e1e6900566c7230b611bb96e5
+size 802951
diff --git a/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/layout.json b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..128e7f1ca40fbdabcbe0d7c448a37e099bd2bf12
--- /dev/null
+++ b/reusingdiscriminatorsforencodingtowardsunsupervisedimagetoimagetranslation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:728190b7590bfc4731e12be2a139114d4b2af6cfbd4ec5b6f71739567f0f25ec
+size 496871
diff --git a/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_content_list.json b/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5fe1e5bfc3f1ea85edd65099a11b1d5d9ea35bf2
--- /dev/null
+++ b/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ef201747798267cfda9419943a44df9c1d7a37a9ac3790dae05b317d4bf237a
+size 65569
diff --git a/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_model.json b/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7f31a5ccde1580e2411a3f1c95b94ab428469ae5
--- /dev/null
+++ b/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5342e900e619a1d3aa2078f13304a83d80265ed321953902c8dd07fae88983bd
+size 81409
diff --git a/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_origin.pdf b/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c7b4f5dd5838de831630369a35e49fd1b2225cca
--- /dev/null
+++ b/revealnetseeingbehindobjectsinrgbdscans/2336c82a-6f6d-4bd0-a344-87b2f9663588_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c0804763e76df0e6e0196e49c577b72a5dd3540a09b3776df9365b51136458f0
+size 3203791
diff --git a/revealnetseeingbehindobjectsinrgbdscans/full.md b/revealnetseeingbehindobjectsinrgbdscans/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0f7e4aa7f12dc2d013dc2422692d86abd35c3a74
--- /dev/null
+++ b/revealnetseeingbehindobjectsinrgbdscans/full.md
@@ -0,0 +1,258 @@
+# RevealNet: Seeing Behind Objects in RGB-D Scans
+
+Ji Hou
+
+Angela Dai
+
+Matthias Nießner
+
+Technical University of Munich
+
+
+Figure 1: RevealNet takes an RGB-D scan as input and learns to "see behind objects": from the scan's color images and geometry (encoded as a TSDF), objects in the observed scene are detected (as 3D bounding boxes and class labels) and for each object, the complete geometry of that object is predicted as per-instance masks (in both seen and unseen regions).
+
+# Abstract
+
+During 3D reconstruction, it is often the case that people cannot scan each individual object from all views, resulting in missing geometry in the captured scan. This missing geometry can be fundamentally limiting for many applications, e.g., a robot needs to know the unseen geometry to perform a precise grasp on an object. Thus, we introduce the task of semantic instance completion: from an incomplete RGB-D scan of a scene, we aim to detect the individual object instances and infer their complete object geometry. This will open up new possibilities for interactions with objects in a scene, for instance for virtual or robotic agents. We tackle this problem by introducing RevealNet, a new data-driven approach that jointly detects object instances and predicts their complete geometry. This enables a semantically meaningful decomposition of a scanned scene into individual, complete 3D objects, including hidden and unobserved object parts. RevealNet is an end-to-end 3D neural network architecture that leverages joint color and geometry feature learning. The fully-convolutional nature of our 3D network enables efficient inference of semantic instance completion for 3D scans at scale of large indoor environments in a single forward pass. We show that pre
+
+dicting complete object geometry improves both 3D detection and instance segmentation performance. We evaluate on both real and synthetic scan benchmark data for the new task, where we outperform state-of-the-art approaches by over 15 in mAP@0.5 on ScanNet, and over 18 in mAP@0.5 on SUNCG.
+
+# 1. Introduction
+
+Understanding 3D environments is fundamental to many tasks spanning computer vision, graphics, and robotics. In particular, in order to effectively navigate, and moreover interact with an environment, an understanding of the geometry of a scene and the objects it comprises of is essential. This is in contrast to the partial nature of reconstructed RGB-D scans; e.g., due to sensor occlusions. For instance, for a robot exploring an environment, it needs to infer where objects are as well as what lies behind the objects it sees in order to efficiently navigate or perform tasks like grasping. That is, it needs not only instance-level knowledge of objects in the scene, but to also estimate the missing geometry of these objects. Additionally, for content creation or mixed reality applications, captured scenes must be decomposable
+
+into their complete object components, in order to enable applications such as scene editing or virtual-real object interactions; i.e., it is often insufficient to segment object instances only for observed regions.
+
+Thus, we aim to address this task of "seeing behind objects," which we refer to as semantic instance completion: predicting object detection as well as instance-level completion for an input partial 3D scan of a scene. Previous approaches have addressed these tasks independently: 3D instance segmentation segments object instances from the visible surface of a partial scan [43, 14, 46, 45, 18, 26, 23, 8], and 3D scan completion approaches predict the full scene geometry [39, 7], but lack the notion of individual objects. In contrast, our approach focuses on the instance level, as knowledge of instances is essential towards enabling interaction with the objects in an environment.
+
+In addition, the task of semantic instance completion is not only important towards enabling object-level understanding and interaction with 3D environments, but we also show that the prediction of complete object geometry informs the task of semantic instance segmentation. Thus, in order to address the task of semantic instance completion, we propose to consider instance detection and object completion in an end-to-end, fully differentiable fashion.
+
+From an input RGB-D scan of a scene, our RevealNet model sees behind objects to predict each object's complete geometry. First, object bounding boxes are detected and regressed, followed by object classification and then a prediction of complete object geometry. Our approach leverages a unified backbone from which instance detection and object completion are predicted, enabling information to flow from completion to detection. We incorporate features from both color image and 3D geometry of a scanned scene, as well as a fully-convolutional design in order to effectively predict the complete object decomposition of varying-sized scenes. To address the task of semantic instance completion for real-world scans, where ground truth complete geometry is not readily available, we further introduce a new semantic instance completion benchmark for ScanNet [4], leveraging the Scan2CAD [1] annotations to evaluate semantic instance completion (and semantic instance segmentation).
+
+In summary, we present a fully-convolutional, end-to-end 3D CNN formulation to predict 3D instance completion that outperforms state-of-the-art, decoupled approaches to semantic instance completion by 15.8 in $\mathrm{mAP} @ 0.5$ on real-world scan data, and 18.5 in $\mathrm{mAP} @ 0.5$ on synthetic data:
+
+- We introduce the task of semantic instance completion for 3D scans;
+- we propose a novel, end-to-end 3D convolutional network which predicts 3D semantic instance completion as object bounding boxes, class labels, and complete object geometry,
+
+- and we show that semantic instance completion task can benefit semantic instance segmentation and detection performance.
+
+# 2. Related Work
+
+Object Detection and Instance Segmentation Recent advances in convolutional neural networks have now begun to drive impressive progress in object detection and instance segmentation for 2D images [9, 33, 23, 32, 20, 13, 21]. Combined with the increasing availability of synthetic and real-world 3D data [4, 39, 2], we are now seeing more advances in object detection [37, 38, 31, 30] for 3D. Sliding Shapes [37] predicted 3D object bounding boxes from a depth image, designing handcrafted features to detect objects in a sliding window fashion. Deep Sliding Shapes [38] then extended this approach to leverage learned features for object detection in a single RGB-D frame. Frustum PointNet [31] tackles the problem of object detection for an RGB-D frame by first detecting object in the 2D image before projecting the detected boxes into 3D to produce final refined box predictions. VoteNet [30] propose a reformulation of Hough voting in the context of deep learning through an end-to-end differentiable architecture for 3D detection purpose.
+
+Recently, several approaches have been introduced to perform 3D instance segmentation, applicable to single or multi-frame RGB-D input. Wang et al. [43] introduced SGPN to operate on point clouds by clustering semantic segmentation predictions. Li et al. [46] leverages an object proposal-based approach to predict instance segmentation for a point cloud. Simultaneously, Hou et al. [14] presented an approach leveraging joint color-geometry feature learning for detection and instance segmentation on volumetric data. Lahoud et al. [18] proposes to use multi-task losses to predict instance segmentation. Yang et al. [45] and Liu et al. [22] both use bottom-up methods to predict instance segmentation for a point cloud. Our approach also leverages an anchor-based object proposal mechanism for detection, but we leverage object completion to predict instance completion, as well as show that completing object-level geometry can improve detection and instance segmentation performance on volumetric data.
+
+3D Scan Completion Scan completion of 3D shapes has been a long-studied problem in geometry processing, particularly for cleaning up broken mesh models. In this context, traditional methods have largely focused on filling small holes by locally fitting geometric primitives, or through continuous energy minimization [40, 27, 47]. Surface reconstruction approaches on point cloud inputs [15, 16] can also be applied in this fashion to locally optimize for missing surfaces. Other shape completion approaches leverage priors such as symmetry and structural priors [42, 24, 29,
+
+36, 41], or CAD model retrieval [25, 34, 17, 19, 35] to predict the scan completion.
+
+Recently, methods leveraging generative deep learning have been developed to predict the complete geometry of 3D shapes [44, 6, 11, 12]. Song et al. [39] extended beyond shapes to predicting the voxel occupancy for a single depth frame leveraging the geometric occupancy prediction to achieve improved 3D semantic segmentation. Recently, Dai et al. [7] presented a first approach for data-driven scan completion of full 3D scenes, leveraging a fullyconvolutional, autoregressive approach to predict complete geometry along with 3D semantic segmentation. Both Song et al. [39] and Dai et al. [7] show that inferring the complete scan geometry can improve 3D semantic segmentation. With our approach for 3D semantic instance completion, this task not only enables new applications requiring instance-based knowledge of a scene (e.g., virtual or robotic interactions with objects in a scene), but we also show that instance segmentation can benefit from instance completion.
+
+# 3. Method Overview
+
+Our network takes as input an RGB-D scan, and learns to join together features from both the color images as well as the 3D geometry to inform the semantic instance completion. The architecture is shown in Fig. 2.
+
+The input 3D scan is encoded as a truncated signed distance field (TSDF) in a volumetric grid. To combine this with color information from the RGB images, we first extract 2D features using 2D convolutional layers on the RGB images, which are then back-projected into a 3D volumetric grid, and subsequently merged with geometric features extracted from the geometry. The joint features are then fed into an encoder-decoder backbone, which leverages a series of 3D residual blocks to learn the representation for the task of semantic instance completion. Objects are detected through anchor proposal and bounding box regression; these predicted object boxes are then used to crop and extract features from the backbone encoder to predict the object class label as well as the complete object geometry for each detected object as per-voxel occupancies.
+
+We adopt in total five losses to supervise the learning process illustrated in Fig. 2. Detection contains three losses: (1) objectness using binary cross entropy to indicate that there is an object, (2) box location using a Huber loss to regress the 3D bounding box locations, and (3) classification of the class label loss using cross entropy. Following detection, the completion head contains two losses: per-instance completion loss using binary cross entropy to predict per-voxel occupancies, and a proxy completion loss using binary cross entropy to classify the surface voxels belonging to all objects in the scene.
+
+Our method operates on a unified backbone for detection
+
+followed by instance completion, enabling object completion to inform the object detection process; this results in effective 3D detection as well as instance completion. Its fully-convolutional nature enables us to train on cropped chunks of 3D scans but test on a whole scene in a single forward pass, resulting in an efficient decomposition of a scan into a set of complete objects.
+
+# 4. Network Architecture
+
+From an RGB-D scan input, our network operates on the scan's reconstructed geometry, encoded as a TSDF in a volumetric grid, as well as the color images. To jointly learn from both color and geometry, color features are first extracted in 2D with a 2D semantic segmentation network [28], and then back-projected into 3D to be combined with the TSDF features, similar to [5, 14]. This enables complementary semantic features to be learned from both data modalities. These features are then input to the backbone of our network, which is structured in an encoder-decoder style.
+
+The encoder-decoder backbone is composed of a series of five 3D residual blocks, which generates five volumetric feature maps $\mathbb{F} = \{f_i|i = 1\dots 5\}$ . The encoder results in a reduction of spatial dimension by a factor of 4, and symmetric decoder results in an expansion of spatial dimension by a factor of 4. Skip connections link spatially-corresponding encoder and decoder features. For a more detailed description of the network architecture, we refer to the appendix.
+
+# 4.1. Color Back-Projection
+
+As raw color data is often of much higher resolution than 3D geometry, to effectively learn from both color and geometry features, we leverage color information by back-projecting 2D CNN features learned from RGB images to 3D, similar to [5, 14]. For each voxel location $v_{i} = (x,y,z)$ in the 3D volumetric grid, we find its pixel location $p_i = (x,y)$ in 2D views by camera intrinsic and extrinsic matrices. We assign the voxel feature at location $v_{i}$ with the learned 2D CNN feature vector at $p_i$ . To handle multiple image observations of the same voxel $v_{i}$ , we apply element-wise view pooling; this also allows our approach to handle a varying number of input images. Note that this back-projection is differentiable, allowing our model to be trained end-to-end and benefit from both RGB and geometric signal.
+
+# 4.2. Object Detection
+
+For object detection, we predict the bounding box of each detected object as well as the class label. To inform the detection, features are extracted from feature maps $F_{2}$ and $F_{3}$ of the backbone encoder. We define two set of anchors on these two features maps, $A_{s} = \{a_{i}|i = 1\ldots N_{s}\}$ and
+
+
+Figure 2: Our RevealNet network architecture takes an RGB-D scan as input. Color images are processed with 2D convolutions to spatially compress the information before back-projecting into 3D, to be merged with the 3D geometry features of the scan (following [5, 14]). These joint features are used for object detection (as 3D bounding boxes and class labels) followed by per-instance geometric completion, for the task of semantic instance completion. In contrast to [14], which leverages separate backbones for detection and instance segmentation, our network maintains one unified backbone for both detection and completion head, allowing the completion task to directly inform the detection parameters.
+
+$A_{b} = \{a_{i}|i = 1\ldots N_{b}\}$ representing 'small' and 'large' anchors for the earlier $F_{2}$ and later $F_{3}$ , respectively, so that the larger anchors are associated with the feature map of larger receptive field. These anchors $A_{s}\cup A_{b}$ are selected through a k-means clustering of the ground truth 3D bounding boxes. For our experiments, we use $N_{s} + N_{b} = 9$ . From these $N_{s} + N_{b}$ clusters, $A_{b}$ are those with any axis $>1.125\mathrm{m}$ , and the rest are in $A_{s}$ .
+
+The two features maps $F_{2}$ and $F_{3}$ are then processed by a 3D region proposal to regress the 3D object bounding boxes. The 3D region proposal first employs a $1 \times 1 \times 1$ convolution layer to output objectness scores for each potential anchor, producing an objectness feature map with $2(N_{s} + N_{b})$ channels for the positive and negative objectness probabilities. Another $1 \times 1 \times 1$ convolution layer is used to predict the 3D bounding box locations as 6-dimensional offsets from the anchors; we then apply a nonmaximum suppression based on the objectness scores. We use a Huber loss on the log ratios of the offsets to the anchor sizes to regress the final bounding box predictions:
+
+$$
+\Delta_ {x} = \frac {\mu - \mu_ {a n c h o r}}{\phi_ {a n c h o r}} \quad \Delta_ {w} = \ln (\frac {\phi}{\phi_ {a n c h o r}})
+$$
+
+where $\mu$ is the box center point and $\phi$ is the box width. The final bounding box loss is then:
+
+$$
+L _ {\Delta} = \left\{ \begin{array}{l l} \frac {1}{2} \Delta^ {2}, & \text {i f} | \Delta | \leq 2 \\ | \Delta |, & \text {o t h e r w i s e .} \end{array} \right.
+$$
+
+Using these predicted object bounding boxes, we then predict the object class labels using features cropped from
+
+the bounding box locations from $F_{2}$ and $F_{3}$ . We use a 3D region of interest pooling layer to unify the sizes of the cropped feature maps to a spatial dimension of $4 \times 4 \times 4$ to be input to an object classification MLP.
+
+# 4.3. Instance Completion
+
+For each object, we infer its complete geometry by predicting per-voxel occupancies. Here, we crop features from feature map $F_{5}$ of the backbone, which has a feature map resolution matching the input spatial resolution, using the predicted object bounding box. These features are processed through a series of five 3D convolutions which maintain the spatial resolution of their input. The complete geometry is then predicted as voxel occupancy using a binary cross entropy loss.
+
+We predict $N_{\mathrm{class}}$ potential object completions for each class category, and select the final prediction based on the predicted object class. We define ground truth bounding boxes $b_{i}$ and masks $m_{i}$ as $\gamma = \{(b_i,m_i)|i = 1\dots N_b\}$ . Further, we define predicted bounding boxes $\hat{b}_i$ along with predicted masks $\hat{m}_i$ as $\hat{\gamma} = \{(\hat{b}_i,\hat{m}_i)|i = 1\dots \hat{N}_b\}$ . During training, we only train on predicted bounding boxes that overlap with the ground truth bounding boxes:
+
+$$
+\begin{array}{l} \Omega = \left\{\left(\hat {b} _ {i}, \hat {m} _ {i}, b _ {i}, m _ {i}\right) \mid \operatorname {I o U} \left(\hat {b} _ {i}, b _ {i}\right) \geq 0. 5, \right. \\ \left. \forall (\hat {b} _ {i}, \hat {m} _ {i}) \in \hat {\gamma}, \forall (b _ {i}, m _ {i}) \in \gamma \right\} \\ \end{array}
+$$
+
+We can then define the instance completion loss for each
+
+ | display | table | bathtub | trashbin | sofa | chair | cabinet | bookshelf | avg |
| Scene Completion + Instance Segmentation | 1.65 | 0.64 | 4.55 | 11.25 | 9.09 | 9.09 | 0.18 | 5.45 | 5.24 |
| Instance Segmentation + Shape Completion | 2.27 | 3.90 | 1.14 | 1.68 | 14.86 | 9.93 | 7.11 | 3.03 | 5.49 |
| Ours - RevealNet (no color) | 13.16 | 11.28 | 13.64 | 18.19 | 24.79 | 15.87 | 8.60 | 10.60 | 14.52 |
| Ours - RevealNet (no proxy) | 21.94 | 7.63 | 12.55 | 28.24 | 20.38 | 22.58 | 13.42 | 9.51 | 17.03 |
| Ours - RevealNet | 26.86 | 13.21 | 22.31 | 28.93 | 29.41 | 23.64 | 15.35 | 14.48 | 21.77 |
+
+Table 1: 3D Semantic Instance Completion on ScanNet [4] scans with Scan2CAD [1] targets at mAP@0.5. Our end-to-end formulation achieves significantly better performance than alternative, decoupled approaches that first use state-of-the-art scan completion [7] and then instance segmentation [14] method or first instance segmentation [14] and then shape completion [6].
+
+associated pair in $\Omega$ :
+
+$$
+L _ {\text {c o m p l}} = \frac {1}{| \Omega |} \sum_ {\Omega} \operatorname {B C E} (\operatorname {s i g m o i d} \left(\hat {m} _ {i}\right), m _ {i} ^ {\prime}),
+$$
+
+$$
+m _ {i} ^ {\prime} (v) = \left\{ \begin{array}{l l} m _ {i} (v) & \text {i f} v \in \hat {b _ {i}} \cap b _ {i} \\ 0 & \text {o t h e r w i s e .} \end{array} \right.
+$$
+
+We further introduce a global geometric completion loss on entire scene level that serves as an intermediate proxy. To this end, we use feature map $F_{5}$ as input to a binary cross entropy loss whose target is the composition of all complete object instances of the scene:
+
+$$
+L _ {\text {g e o m e t r y}} = \mathrm {B C E} (\operatorname {s i g m o i d} (F _ {5}), \cup_ {(b _ {i}, m _ {i}) \in \gamma}).
+$$
+
+Our intuition is to obtain a strong gradient during training by adding this additional constraint to each voxel in the last feature map $F_{5}$ . We find that this global geometric completion loss further helps the final instance completion performance; see Sec 6.
+
+# 5. Network Training
+
+# 5.1.Data
+
+The input 3D scans are represented as truncated signed distance fields (TSDFs) encoded in volumetric grids. The TSDFs are generated through volumetric fusion [3] during the 3D reconstruction process. For all our experiments, we used a voxel size of $\approx 4.7\mathrm{cm}$ and truncation of 3 voxels. We also input the color images of the RGB-D scan, which we project to the 3D grid using their camera poses. We train our model on both synthetic and real scans, computing 9 anchors through $k$ -means clustering; for real-world ScanNet [4] data, this results in 4 small anchors and 5 large anchors, and for synthetic SUNCG [39] data, this results in 3 small anchors and 6 large anchors.
+
+At test time, we leverage the fully-convolutional design to input the full scan of a scene along with its color images. During training, we use random $96 \times 48 \times 96$ crops $(4.5 \times 2.25 \times 4.5$ meters) of the scanned scenes, along with a greedy selection of $\leq 5$ images covering the most object geometry in the crop. Only objects with $50\%$ of their complete geometry inside the crop are considered.
+
+# 5.2. Optimization
+
+We train our model jointly, end-to-end from scratch. We use an SGD optimizer with batch size 64 for object proposals and 16 for object classification, and all positive bounding box predictions ( $>0.5$ IoU with ground truth box) for object completion. We use a learning rate of 0.005, which is decayed by a factor of 0.1 every 100k steps. We train our model for 200k steps ( $\approx 60$ hours) to convergence, on a single Nvidia GTX 1080Ti. Additionally, we augment the data for training the object completion using ground truth bounding boxes and classification in addition to predicted object detection.
+
+# 6. Results
+
+We evaluate our approach on semantic instance completion performance on synthetic scans of SUNCG [39] scenes as well as on real-world ScanNet [4] scans, where we obtain ground truth object locations and geometry from CAD models aligned to ScanNet provided by Scan2CAD [1]. To evaluate semantic instance completion, we use a mean average precision metric on the complete masks (at IoU 0.5). Qualitative results are shown in Figs. 3 and 4.
+
+Comparison to state-of-the-art approaches for semantic instance completion. Tables 1 and 2 evaluate our method against state of the art for the task of semantic instance completion on our real and synthetic scans, respectively. Qualitative comparisons on ScanNet scans [4] with Scan2CAD [1] targets (which provide ground truth for complete object geometry) are shown in Fig. 3. We compare to state-of-the-art 3D instance segmentation and scan completion approaches used sequentially; that is, first applying a 3D instance segmentation approach followed by a shape completion method on the predicted instance segmentation, as well as first applying a scene completion approach to the input partial scan, followed by a 3D instance segmentation method. For 3D instance segmentation, we evaluate 3D-SIS [14], which achieves state-of-the-art performance on a dense volumetric grid representation (the representation we use), and for scan completion we evaluate the 3D
+
+
+Figure 3: Qualitative results on real-world ScanNet [4] scenes with Scan2CAD [1] targets. Close-ups are shown on the right. Note that different colors denote distinct object instances in the visualization. Our approach effectively predicts complete individual object geometry, including missing structural components (e.g., missing chair legs), across varying degrees of partialness in input scan observations.
+
+
+
+EPN [6] shape completion approach and ScanComplete [7] scene completion approach. Our end-to-end approach for semantic instance completion results in significantly improved performance due to information flow from instance completion to object detection. For instance, this allows our instance completion to more easily adapt to some inaccuracies in detection, which strongly hinders a decoupled approach. Note that the ScanComplete model applied on
+
+ScanNet data is trained on synthetic data, due to the lack of complete ground truth scene data (Scan2CAD provides only object ground truth) for real-world scans.
+
+Does instance completion help instance detection and segmentation? We can also evaluate our semantic instance completion predictions on the task of semantic instance segmentation by taking the intersection between the predicted complete mask and the input partial scan geom-
+
+ | cab | bed | chair | sofa | tabl | door | wind | bkshf | cntr | desk | shlf | curt | drsr | mirr | tv | nigh | toil | sink | lamp | bath | ostr | ofurn | oprop | avg |
| SC + IS | 3.0 | 0.6 | 19.5 | 0.8 | 18.1 | 15.9 | 0.00 | 0.0 | 1.0 | 2.3 | 3.0 | 0.0 | 0.5 | 0.0 | 9.2 | 10.4 | 23.9 | 3.4 | 9.1 | 0.0 | 0.0 | 0.0 | 9.1 | 5.5 |
| IS + SC | 0.3 | 0.0 | 7.4 | 0.4 | 3.0 | 9.1 | 0.0 | 0.0 | 0.2 | 0.0 | 0.0 | 0.0 | 2.3 | 0.0 | 3.0 | 0.0 | 2.6 | 0.0 | 1.8 | 0.0 | 0.0 | 0.0 | 4.6 | 1.5 |
| no color | 19.05 | 41.8 | 38.2 | 11.9 | 23.9 | 9.1 | 0.0 | 0.0 | 2.5 | 21.6 | 9.1 | 0.0 | 12.6 | 4.6 | 49.4 | 33.8 | 63.4 | 36.9 | 38.8 | 14.7 | 15.9 | 0.0 | 23.8 | 20.5 |
| no proxy | 12.9 | 46.1 | 39.4 | 26.8 | 30.3 | 1.0 | 15.9 | 0.0 | 9.1 | 18.2 | 3.4 | 0.0 | 1.1 | 0.0 | 43.6 | 34.0 | 69.1 | 32.4 | 29.6 | 31.1 | 14.6 | 0.0 | 23.3 | 20.9 |
| Ours | 14.7 | 58.3 | 38.2 | 28.8 | 29.5 | 0.0 | 15.9 | 54.6 | 9.1 | 12.1 | 9.1 | 0.0 | 6.2 | 0.0 | 49.4 | 33.5 | 61.2 | 34.5 | 29.5 | 27.1 | 16.4 | 0.0 | 23.5 | 24.0 |
+
+Table 2: 3D Semantic Instance Completion on synthetic SUNCG [39] scans at mAP@0.5. Our semantic instance completion approach achieves significantly better performance than alternative approaches with decoupled state-of-the-art scan completion (SC) [7] followed by instance segmentation (IS) [14], as well as instance segmentation followed by shape completion [6]. We additionally evaluate our approach without color input (no color) and without a completion proxy loss on the network backbone (no proxy).
+
+
+Figure 4: Qualitative results on SUNCG dataset [39] (left: full scans, right: close-ups). We sample RGB-D images to reconstruct incomplete 3D scans from random camera trajectories inside SUNCG scenes. Note that different colors denote distinct object instances in the visualization.
+
+
+
+etry to be the predicted instance segmentation mask. We show that predicting instance completion helps instance segmentation, evaluating our method on 3D semantic instance segmentation with and without completion, on Scan-
+
+Net [4] and SUNCG [39] scans in Tables 3 and 4, as well as 3D-SIS [14], an approach jointly predicts 3D detection and instance segmentation, which also operates on dense volumetric data, achieving state-of-the-art performance on this
+
+ | 3D Detection | Instance Segmentation |
| 3D-SIS [14] | 25.70 | 20.78 |
| Ours (no compl) | 31.93 | 24.49 |
| Ours (no color) | 29.29 | 23.55 |
| Ours (no proxy) | 31.52 | 25.92 |
| Ours | 36.39 | 30.52 |
+
+Table 3: 3D Detection and Instance Segmentation on ScanNet [4] scans with Scan2CAD [1] annotations at mAP@0.5. We evaluate our instance completion approach on the task of instance segmentation and detection to justify our contribution that instance completion task helps instance segmentation and detection. We evaluate our approach without completion (no compl), without color input (no color), and without a completion proxy loss on the network backbone (no proxy). Predicting instance completion notably increases performance of predicting both instance segmentation and detection (Ours vs. no compl). We additionally compare against 3D-SIS [14], a state-of-the-art approach for both 3D detection and instance segmentation on 3D dense volumetric data (the representation we use).
+
+ | 3D Detection | Instance Segmentation |
| 3D-SIS [14] | 24.70 | 20.61 |
| Ours (no compl) | 29.80 | 23.86 |
| Ours (no color) | 31.75 | 31.59 |
| Ours (no proxy) | 34.05 | 32.59 |
| Ours | 37.81 | 36.28 |
+
+Table 4: 3D Detection and Instance Segmentation on synthetic SUNCG [39] scans at mAP@0.5. To demonstrate the benefits of instance completion task for instance segmentation and 3D detection, we evaluate our semantic instance completion approach on the task of instance segmentation and 3D detection. Predicting instance completion notably benefits 3D detection and instance segmentation (Ours vs. no compl).
+
+representation. We find that predicting instance completion significantly benefits instance segmentation, due to a more unified understanding of object geometric structures.
+
+Additionally, we evaluate the effect on 3D detection in Tables 3 and 4; predicting instance completion also significantly improves 3D detection performance. Note that in contrast to 3D-SIS [14] which uses separate backbones for detection and instance segmentation, our unified backbone helps 3D mask information (complete or non-complete) propagate through detection parameters to improve 3D detection performance.
+
+What is the effect of a global completion proxy? In Tables 1 and 2, we demonstrate the impact of the geometric completion proxy loss; here, we see that this loss improves the semantic instance completion performance on both real
+
+and synthetic data. In Tables 3 and 4, we can see that it also improves 3D detection and semantic instance segmentation performance.
+
+Can color input help? Our approach takes as input the 3D scan geometry as a TSDF as well as the corresponding color images. We evaluate our approach with and without the color input stream; on both real and synthetic scans, the color input notably improves semantic instance completion performance, as shown in Tables 1 and 2.
+
+# 7. Limitations
+
+Our approach shows significant potential in the task of semantic instance completion, but several important limitations still remain. First, we output a binary mask for the complete object geometry, which can limit the amount of detail represented by the completion; other 3D representations such as distance fields or sparse 3D representations [10] could potentially resolve greater geometric detail. Our approach also uses axis-aligned bounding boxes for object detection; it would be helpful to additionally predict the object orientation. We also do not consider object movement over time, which contains significant opportunities for semantic instance completion in the context of dynamic environments.
+
+# 8. Conclusion
+
+In this paper, we tackle the problem of "seeing behind objects" by predicting the missing geometry of individual objects in RGB-D scans. This opens up many possibilities for complex interactions with objects in 3D, for instance for efficient navigation or robotic grasping. To this end, we introduced the new task of semantic instance completion along with RevealNet, a new 3D CNN-based approach to jointly detect objects and predict their complete geometry. Our proposed 3D CNN learns from both color and geometry features to detect and classify objects, then predicts the voxel occupancy for the complete geometry of the object in an end-to-end fashion, which can be run on a full 3D scan in a single forward pass. On both real and synthetic scan data, we significantly outperform state-of-the-art approaches for semantic instance completion. We believe that our approach makes an important step towards higher-level scene understanding and helps to enable object-based interactions and understanding of scenes, which we hope will open up new research avenues.
+
+# Acknowledgments
+
+This work was supported by the ZD.B, a Google Research Grant, an Nvidia Professor Partnership, a TUM-IAS Rudolf Moßbauer Fellowship, and the ERC Starting Grant Scan2CAD (804724).
+
+# References
+
+[1] Armen Avetisyan, Manuel Dahnert, Angela Dai, Manolis Savva, Angel X. Chang, and Matthias Nießner. Scan2cad: Learning cad model alignment in rgb-d scans. In Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2019. 2, 5, 6, 8
+[2] 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. International Conference on 3D Vision (3DV), 2017. 2
+[3] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. In Proceedings of the 23rd annual conference on Computer graphics and interactive techniques, pages 303-312. ACM, 1996. 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 Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2017. 2, 5, 6, 7, 8
+[5] Angela Dai and Matthias Nießner. 3dmv: Joint 3d-multiview prediction for 3d semantic scene segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 3, 4
+[6] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3d-encoder-predictor cnns and shape synthesis. In Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2017. 3, 5, 6, 7
+[7] Angela Dai, Daniel Ritchie, Martin Bokeloh, Scott Reed, Jürgen Sturm, and Matthias Nießner. Scancomplete: Large-scale scene completion and semantic segmentation for 3d scans. In Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2018. 2, 3, 5, 6, 7
+[8] Cathrin Elich, Francis Engelmann, Jonas Schult, Theodora Kontogianni, and Bastian Leibe. 3d-bevis: Birds-eye-view instance segmentation. arXiv preprint arXiv:1904.02199, 2019. 2
+[9] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015. 2
+[10] Benjamin Graham and Laurens van der Maaten. Submanifold sparse convolutional networks. arXiv preprint arXiv:1706.01307, 2017. 8
+[11] Xiaoguang Han, Zhen Li, Haibin Huang, Evangelos Kalogerakis, and Yizhou Yu. High Resolution Shape Completion Using Deep Neural Networks for Global Structure and Local Geometry Inference. In IEEE International Conference on Computer Vision (ICCV), 2017. 3
+[12] Christian Hane, Shubham Tulsiani, and Jitendra Malik. Hierarchical surface prediction for 3d object reconstruction. arXiv preprint arXiv:1704.00710, 2017. 3
+[13] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In Computer Vision (ICCV), 2017 IEEE International Conference on, pages 2980-2988. IEEE, 2017. 2
+[14] Ji Hou, Angela Dai, and Matthias Nießner. 3d-sis: 3d semantic instance segmentation of rgb-d scans. In Proc. Computer
+
+Vision and Pattern Recognition (CVPR), IEEE, 2019. 2, 3, 4, 5, 7, 8
+[15] Michael Kazhdan, Matthew Bolitho, and Hugues Hoppe. Poisson surface reconstruction. In Proceedings of the fourth Eurographics symposium on Geometry processing, volume 7, 2006. 2
+[16] Michael Kazhdan and Hugues Hoppe. Screened poisson surface reconstruction. ACM Transactions on Graphics (TOG), 32(3):29, 2013. 2
+[17] Young Min Kim, Niloy J Mitra, Dong-Ming Yan, and Leonidas Guibas. Acquiring 3d indoor environments with variability and repetition. ACM Transactions on Graphics (TOG), 31(6):138, 2012. 3
+[18] 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
+[19] Yangyan Li, Angela Dai, Leonidas Guibas, and Matthias Nießner. Database-assisted object retrieval for real-time 3d reconstruction. In Computer Graphics Forum, volume 34, pages 435-446. Wiley Online Library, 2015. 3
+[20] 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, volume 1, page 4, 2017. 2
+[21] Tsung-Yi Lin, Priyal Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. IEEE transactions on pattern analysis and machine intelligence, 2018. 2
+[22] Chen Liu and Yasutaka Furukawa. Masc: Multi-scale affinity with sparse convolution for 3d instance segmentation. arXiv preprint arXiv:1902.04478, 2019. 2
+[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. 2
+[24] Niloy J Mitra, Leonidas J Guibas, and Mark Pauly. Partial and approximate symmetry detection for 3d geometry. In ACM Transactions on Graphics (TOG), volume 25, pages 560-568. ACM, 2006. 3
+[25] Liangliang Nan, Ke Xie, and Andrei Sharf. A search-classify approach for cluttered indoor scene understanding. ACM Transactions on Graphics (TOG), 31(6):137, 2012. 3
+[26] Gaku Narita, Takashi Seno, Tomoya Ishikawa, and Yohsuke Kaji. Panopticfusion: Online volumetric semantic mapping at the level of stuff and things. arXiv preprint arXiv:1903.01177, 2019. 2
+[27] Andrew Nealen, Takeo Igarashi, Olga Sorkine, and Marc Alexa. Laplacian mesh optimization. In Proceedings of the 4th international conference on Computer graphics and interactive techniques in Australasia and Southeast Asia, pages 381-389. ACM, 2006. 2
+[28] Adam Paszke, Abhishek Chaurasia, Sanggil Kim, and Eugenio Culurciello. Enet: A deep neural network architecture for real-time semantic segmentation. arXiv preprint arXiv:1606.02147, 2016. 3
+[29] Mark Pauly, Niloy J Mitra, Johannes Wallner, Helmut Pottmann, and Leonidas J Guibas. Discovering structural
+
+regularity in 3d geometry. In ACM transactions on graphics (TOG), volume 27, page 43. ACM, 2008. 3
+[30] 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. 2
+[31] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-d data. arXiv preprint arXiv:1711.08488, 2017. 2
+[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. 2
+[33] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015. 2
+[34] Tianjia Shao, Weiwei Xu, Kun Zhou, Jingdong Wang, Dongping Li, and Baining Guo. An interactive approach to semantic modeling of indoor scenes with an rgbd camera. ACM Transactions on Graphics (TOG), 31(6):136, 2012. 3
+[35] Yifei Shi, Pinxin Long, Kai Xu, Hui Huang, and Yueshan Xiong. Data-driven contextual modeling for 3d scene understanding. Computers & Graphics, 55:55-67, 2016. 3
+[36] Ivan Sipiran, Robert Gregor, and Tobias Schreck. Approximate symmetry detection in partial 3d meshes. In Computer Graphics Forum, volume 33, pages 131-140. Wiley Online Library, 2014. 3
+[37] Shuran Song and Jianxiong Xiao. Sliding shapes for 3d object detection in depth images. In European conference on computer vision, pages 634-651. Springer, 2014. 2
+[38] Shuran Song and Jianxiong Xiao. Deep sliding shapes for amodal 3d object detection in rgb-d images. arXiv preprint arXiv:1511.02300, 2015. 2
+[39] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. Proceedings of 30th IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2, 3, 5, 7, 8
+[40] Olga Sorkine and Daniel Cohen-Or. Least-squares meshes. In Shape Modeling Applications, 2004. Proceedings, pages 191–199. IEEE, 2004. 2
+[41] Pablo Speciale, Martin R Oswald, Andrea Cohen, and Marc Pollefeys. A symmetry prior for convex variational 3d reconstruction. In European Conference on Computer Vision, pages 313-328. Springer, 2016. 3
+[42] Sebastian Thrun and Ben Wegbreit. Shape from symmetry. In Tenth IEEE International Conference on Computer Vision (ICCV'05) Volume 1, volume 2, pages 1824-1831. IEEE, 2005. 3
+[43] 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
+[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. 3
+[45] 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. 2
+[46] Li Yi, Wang Zhao, He Wang, Minhyuk Sung, and Leonidas Guibas. Gspn: Generative shape proposal network for 3d instance segmentation in point cloud. arXiv preprint arXiv:1812.03320, 2018. 2
+[47] Wei Zhao, Shuming Gao, and Hongwei Lin. A robust hole-filling algorithm for triangular mesh. The Visual Computer, 23(12):987-997, 2007. 2
\ No newline at end of file
diff --git a/revealnetseeingbehindobjectsinrgbdscans/images.zip b/revealnetseeingbehindobjectsinrgbdscans/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..39de8491a210f46260c8c96a5879427f60c603b3
--- /dev/null
+++ b/revealnetseeingbehindobjectsinrgbdscans/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c9698f76330f9376a6c66306dc57fef3174f2786f9085458e587edf09e04b4d
+size 722931
diff --git a/revealnetseeingbehindobjectsinrgbdscans/layout.json b/revealnetseeingbehindobjectsinrgbdscans/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2be1e9670148afc8626906e24c438e97dbfa9f2a
--- /dev/null
+++ b/revealnetseeingbehindobjectsinrgbdscans/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f10660fc4f04f12c7dff48f4956cd3a9e00b399df5b333b5181a0a648f4d0c2b
+size 294550
diff --git a/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_content_list.json b/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f3ae23507138905423c95fad95e3a238113e742
--- /dev/null
+++ b/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dae11adc806bbd21cdd842107f8503c791f9512e9e13bd8960d60721cca98297
+size 79476
diff --git a/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_model.json b/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..599ed2acb8bc70871f6b36b3550f78d4845c8700
--- /dev/null
+++ b/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6577e4344e6ae7891d34ec93bea54dd3dca31d757d331f9e60d1370df0f2e734
+size 97455
diff --git a/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_origin.pdf b/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5d5a001875f9c1cad7fd16ba6300ee38c82dcf9e
--- /dev/null
+++ b/reverseperspectivenetworkforperspectiveawareobjectcounting/c249461c-2e4e-4105-990d-ded7e045dc60_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78e3cdaf0a78b67b0e36c60a22eb6936a79c8e9b9fceffe09c85e2da430001b6
+size 5189518
diff --git a/reverseperspectivenetworkforperspectiveawareobjectcounting/full.md b/reverseperspectivenetworkforperspectiveawareobjectcounting/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f9d1319fc269074f2e7ace2f4e46d80150b6e6aa
--- /dev/null
+++ b/reverseperspectivenetworkforperspectiveawareobjectcounting/full.md
@@ -0,0 +1,377 @@
+# Reverse Perspective Network for Perspective-Aware Object Counting
+
+Yifan Yang $^{1}$ , Guorong Li $^{*,1,2}$ , Zhe Wu $^{1}$ , Li Su $^{1,2}$ , Qingming Huang $^{1,2,3}$ , Nicu Sebe $^{4}$
+
+$^{1}$ School of Computer Science and Technology, UCAS, Beijing, China
+
+$^{2}$ Key Lab of Big Data Mining and Knowledge Management, UCAS, Beijing, China
+
+3Key Lab of Intelligent Information Processing, Institute of Computing Technology, CAS,
+
+Beijing, China
+
+4University of Trento, Trento, Italy
+
+{yangyifan16,wuzhe14}@mails.ucas.ac.cn,{liguorong,suli,qmhuang}@ucas.ac.cn,niculae.sebe@unitn.it
+
+# Abstract
+
+One of the critical challenges of object counting is the dramatic scale variations, which is introduced by arbitrary perspectives. We propose a reverse perspective network to solve the scale variations of input images, instead of generating perspective maps to smooth final outputs. The reverse perspective network explicitly evaluates the perspective distortions, and efficiently corrects the distortions by uniformly warping the input images. Then the proposed network delivers images with similar instance scales to the regressor. Thus the regression network doesn't need multiscale receptive fields to match the various scales. Besides, to further solve the scale problem of more congested areas, we enhance the corresponding regions of ground-truth with the evaluation errors. Then we force the regressor to learn from the augmented ground-truth via an adversarial process. Furthermore, to verify the proposed model, we collected a vehicle counting dataset based on Unmanned Aerial Vehicles (UAVs). The proposed dataset has fierce scale variations. Extensive experimental results on four benchmark datasets show the improvements of our method against the state-of-the-arts.
+
+# 1. Introduction
+
+Counting objects is a hot topic in computer vision because of its wide applications in many areas. The most critical challenge of the counting task is scale variations. Significant effort has been devoted to addressing this issue [30, 19, 20, 32, 29, 4, 23, 13]. These approaches employ detection framework [20, 24] or regression framework [30, 19, 20].
+
+Several approaches [39, 4, 18, 21] employ a network with multi-scale receptive fields to adapt to the various
+
+
+Figure 1: To diminish the scale variation, we uniformly expand the space near the horizon and shrink the space near the lens. The warped image with similar scales releases the burden of training a regression network.
+
+scales. These methods significantly increase the computation cost brought by learning implicit perspective representations. However, Li et al. [19] prove that the various reception fields deliver similar results. Several other methods [31, 37, 36, 8] exploit perspective maps to normalize the final density maps and achieve accuracy improvements. However, these approaches learn from extra annotations or density maps to generate perspective maps in a supervised way. Besides, the generated perspective maps are highly noised. Therefore, smoothing the outputs with these perspective maps inevitably introduces noises.
+
+As shown in Fig. 1, in the original image, there is significant scale variation caused by the perspective. Due to networks share the convolution kernels across space, it is challenging for them to adapt to the continuous scales. In
+
+
+Figure 2: Compared with the existing datasets, the proposed dataset has more dramatic scale variations.
+
+
+
+spired by a drawing style named reverse perspective [35], in which all the objects have similar scales despite their various locations, we seek to transform the input images to obtain similar instance scales. While reversing the perspective, it is critical to maintain local structures to avoid introducing distortions. Therefore, we uniformly warp the images. As shown in Fig. 1, the warped image has similar instance scales. Therefore, unlike the multi-branch approaches [39, 4, 18, 21], the regression network doesn't need different receptive fields to adapt to the various scales. Thus we efficiently reduce the model complexity.
+
+In this paper, we propose a reverse perspective network to diminish the scale variations of input images in an unsupervised way. Concretely, the proposed network consists of a perspective estimator and a coordinate transformer. The perspective estimator firstly evaluates the degrees of perspective distortions to obtain perspective factors. Then, guided by the perspective factors, the coordinate transformer warps the input images to obtain similar instance scales. After this transformation, we employ a single branch fully convolutional network to estimate the density maps. Before training the regressor, we pre-train the reverse perspective network to learn to correct the perspective distortions. As the perspective information is rarely available, we propose an objective function to optimize the reverse perspective network in an unsupervised way. Besides, as the reverse perspective network is a lightweight network and is easy to overfit, we look upon the perspective correction problem as a few-shot learning approach and train the proposed method through meta-learning.
+
+The reverse perspective network still has limitations while encountering seriously crowded regions. To further solve the scale problem in these areas, we strengthen the ground-truth with the evaluation errors. Then the proposed framework forces the regressor to learn from the augmented density maps via an adversarial network.
+
+To verify the ability of the reverse perspective network to solve scale variations, we collected a vehicle counting dataset with dramatic scale variations1, based on UAVs and
+
+
+a)
+
+
+b)
+Figure 3: a) and b) are the perspective maps generated by PACNN [31] and PGCNet [36] respectively, which are highly noised. The proposed network warps a uniform grid map, and c) is the warped image.
+
+
+c)
+
+named UAVVC, which has more dramatic scale variations than the existing datasets (see Fig. 2). Our proposed method achieves state of the art results.
+
+The main contributions of our method are summarized as follows:
+
+- We propose a reverse perspective network to diminish the scale variations of input images in an unsupervised way. Therefore, we efficiently reduce the model complexity of the regression network.
+- To improve the estimation accuracies in more congested areas, we strengthen the ground-truth with evaluation errors and force the regressor to learn from it via an adversarial network.
+- To verify the ability of the proposed method to handle scale variations, we collect a vehicle counting dataset based on UAVs, which has dramatic scale variations.
+
+# 2. Related Work
+
+We categorize the object counting literature into scale-aware approaches and perspective-aware methods. In this section, we analyze the methods in both trends.
+
+# 2.1. Scale-Aware Approaches
+
+Most existing approaches solve the scale variations by employing a network with various receptive fields. Zhang et al. [39] and Sam et al. [28] employ multi-column networks with various kernel sizes, while Deb et al. [7] expand the multi-column network with different dilation rates. Otherwise, several other approaches utilize inception blocks to gain different receptive fields [4, 18, 21]. These algorithms significantly increase the computation cost brought by learning implicit perspective representations and want the receptive fields to match the corresponding scales automatically. However, Li et al. [19] prove that the various receptive fields deliver similar results. Besides changing the convolution kernels, a deep network can also obtain various receptive fields from its different layers. Many counting approaches utilize similar architectures with U-net [27] to count crowds and achieve promising performance
+
+
+Figure 4: The framework of the proposed method. The reverse perspective network estimates the perspective factor of input images and warps the images with generated sampling grids. The regressor then estimates the crowd count in the warped images. We further deliver the estimation results and strengthen ground-truth to the adversarial residual network. The reverse perspective network is pre-trained through unsupervised meta-learning, while the regressor is trained with pixel-loss and the adversarial network.
+
+[30, 4, 22, 18]. Moreover, some approaches employ multiagents to handle various scales. Sam et al. [29] and Shi et al. [32] train a set of regressors to match the image patches with various densities. Liu et al. [20] use a detector and a regressor to estimate the crowd count and propose a decisionnet to merge the estimation results of two agents. However, these approaches achieve restricted scale diversity, comparing with the continuous scales.
+
+In this work, we uniformly transform the images to obtain similar scales. The warped images reduce the model complexity as well as the burden of training the regressor to adapt to the continuous scales.
+
+# 2.2. Perspective-Aware Approaches
+
+Several algorithms have been proposed to handle the scale variations with perspective information. Shen et al. [30], Sam et al. [29] and Cao et al. [4] split an image into several patches and estimate the crowd count in them. A narrow view angle relieves the variation of target scale, yet the coarse scene splitting strategy has limited influence on the arbitrary perspectives. Besides, some approaches employ perspective maps to normalize the output density maps. Liu et al. [22] design a branch to integrate perspective maps into density maps. However, perspective maps are rarely available. Shi et al. [31] and Zhang et al. [37] generate perspective maps with extra annotations. Yan et al. [36] generate perspective maps from density maps. However, as shown in Fig. 3, the generated perspective maps are highly noised. Therefore, smoothing the outputs with these perspective maps inevitably introduce noises.
+
+Different from them, we evaluate the perspective distor
+
+tion in an unsupervised way, and uniformly correct the distortions to avoid introducing new deformities.
+
+# 3. Method
+
+The framework of our proposed method is shown in Fig. 4. We employ a single branch regressor to evaluate the crowd count. Before the regressor, the reverse perspective network effectively diminishes the scale variations of input images. Thus the proposed network reduces the model complexity and releases the burden of training the regressor to adapt to the continuous scales. Concretely, the reverse perspective network first evaluates the perspective distortions of input images and generates grid maps for sampling. The proposed network then samples the original images to diminish the scale variations, and the regressor network evaluates the crowd count in the warped images. However, the reverse perspective network still has limitations while encountering regions with serious scale variations. We further address this issue by forcing the regressor to learn from augmented ground-truth via an adversarial network. In this section, we first elaborate on the reverse perspective network and the training method. In the last subsection, we explain the adversarial residual learning method.
+
+# 3.1. Reverse Perspective Network
+
+As shown in Fig. 4, the reverse perspective network consists of a perspective estimator and a coordinate transformer. Both components are trained end-to-end with unsupervised meta-learning.
+
+A key observation is that the information about objects
+
+is embedded in intermediate CNN features of classification networks [3, 6, 9]. Correspondingly, we evaluate the spatial capacity with the features extracted by the first ten convolutional layers of the pre-trained VGG-16 [33]. We denote the features as $G(X; \psi) \in \mathbb{R}^{CWH}$ , where $\psi$ denotes the parameters of the convolutional layers, $X$ is the input images, $C, W, H$ stand for the number of channels, width, and height respectively.
+
+While training, the reverse perspective network warps the extracted features to estimate space capacities. In the reference stage, we transfer the input image instead.
+
+Perspective Estimation As perspective information is rarely available, we estimate the spatial capacity to predict the perspective. The perspective estimator firstly regresses a class-agnostic density map from the extracted features via a convolutional network. The density map is formulated as:
+
+$$
+Y ^ {C L} = f _ {d} (G (X, \psi), \zeta), \tag {1}
+$$
+
+where $Y^{CL} \in \mathbb{R}^{1WH}$ , $f_{d}(\cdot)$ denotes dilated convolution operation, and $\zeta$ is the parameters of the convolutional layers.
+
+As $Y^{CL}$ reveals the spatial capacity rather than the count of specific objects, we exploit the perspective information from it. Images are commonly captured with approaching horizontal viewpoints, so the spatial capacity linearly transforms vertically. Consequently, we embed the vertical capacity of an image into a capacity vector with an adaptive average pooling operation. The capacity vector is defined as:
+
+$$
+c _ {v} = \text {A d a p t i v e A v e r a g e P o o l i n g} (Y ^ {C L}, K), \tag {2}
+$$
+
+where $K$ is a pre-defined vertical dimension. As the horizon vector of $Y^{CL}$ is pooled to a single element, $c_{v} \in \mathbb{R}^{1K1}$ . The pooling operation embeds an image with an arbitrary resolution to a scale fixed capacity vector.
+
+Afterward, we transfer the vector to capacity features with $K$ channels, marked as $c_v^T \in \mathbb{R}^{K11}$ . The perspective estimator then employs fully connected layers to regress the perspective factor $\alpha_o$ as follows:
+
+$$
+\alpha_ {o} = f _ {p} \left(c _ {v} ^ {T}, \eta\right), \tag {3}
+$$
+
+where $f_{p}(\cdot)$ is the full connected operation, and $\eta$ indicates the parameters. Since the perspective factor has a clear geometric meaning and guides the coordinate transformer to warp the images, we normalize the factor to a range of (0,1]:
+
+$$
+\alpha = \exp (- r e l u \left(\alpha_ {o}\right)) + \epsilon , \tag {4}
+$$
+
+where $\epsilon$ is a constant close to zero.
+
+Coordinate Transformer As the instance scales are related to the capacity of their belonging space, we shrink the space near the lens to diminish the perspective distortions. A toy example with a dramatic scale variation is shown in
+
+
+Figure 5: Sketch of a toy example, which simulates the changing of densities and capacities of a density map during coordinates transformation.
+
+Fig. 5(a). The higher density of the upper area indicates smaller instance scales, while the down area with lower density contains relative bigger objects. When we compress the down area in Fig. 5(b), the density increases, and the scale variation is diminished as well.
+
+While correcting the perspective distortions, it is critical to maintain local structures to avoid introducing new deformities. Therefore, we employ a coordinate transformation method to uniformly compress the vertical space of images and maintain the horizontal structure. Notably, the transformation method reconstructs the original image from elliptic coordinates to the cartesian coordinates.
+
+Here, we first explain the elliptic coordinate. In geometry, the elliptic coordinate system is a two-dimensional orthogonal coordinate system in which the coordinate lines are confocal ellipses and hyperbolas. The two foci are fixed, and the focal length is denoted as $2c$ . The most common coordinate system $(\mu, \nu)$ for elliptic curves is defined as:
+
+$$
+\begin{array}{l} \begin{array}{r l} x & = c * \cosh (\mu) \cos (\nu) \\ y & = c * \sinh (\mu) \sin (\nu) \end{array} \tag {5} \\ { y } { = c * \sinh ( \mu ) \sin ( \nu ) , } \\ \end{array}
+$$
+
+where $\mu$ is a nonnegative real number which denotes the distance from the pixel to the centre, $\nu \in [0,2\pi ]$ is the corresponding eccentric angle. When transforming from elliptic coordinates to the cartesian coordinates, the space near the x-axis virtually stays the same, yet the space far from the x-axis is compressed.
+
+The perspective factor is utilized as an adjustment term to guide the perspective correction, and is given the geometry meaning of ratio of the focal length to the image width. As shown in Fig. 6, as the radius is fixed, the perspective factor decides the curvature of confocal ellipses. In other word, it determines the intensity of deformations, and when the perspective factor is smaller, the deformation is more fierce. Moreover, we normalize the $X$ coordinate to $X_{E}\in [0,\pi ]$ , and $Y$ coordinate to $Y_{E}\in [0,1]$ . Therefore,
+
+
+Figure 6: The influence of different perspective factors on the coordinates transformation.
+
+the transformation is formulated as:
+
+$$
+\begin{array}{l} x _ {C T} = \frac {\alpha}{2} * \cosh (x _ {E}) \cos (y _ {E}) \\ y _ {1} = \frac {\alpha}{2} + \sinh (x _ {E}) \sin (y _ {E}) \end{array} \tag {6}
+$$
+
+$$
+{y _ {C T}} {= \frac {\alpha}{2} * \sinh (x _ {E}) \sin (y _ {E}),}
+$$
+
+where $(x_{CT},y_{CT})$ are the cartesian coordinates of the warped image.
+
+We employ the transformation method to generate the grid maps of the new image, then employ the differentiable sampler, which was proposed by Jaderberg et al. [16], to warp the original image.
+
+Ideally, the reverse perspective network can be trained end-to-end with the regression network. However, such a strategy ignores the internal structure of the perspective maps and results in inferior results. Otherwise, we warp the images rather than the features to maintain the semantic information in deeper features.
+
+# 3.2. Training Method
+
+Unsupervised Loss The ground-truth perspective factors are rarely available. Thus we propose an unsupervised loss in this subsection to train the reverse perspective network without extra annotations.
+
+While an image row is compressed, the activated features are constrained to the central part, and the row density of the active region is changed as well. Based on this observation, we exploit the row densities of the warped features to reveal the global density distribution. We first formulate the average row density as:
+
+$$
+D _ {j} ^ {H} = \frac {1}{w _ {j}} \sum_ {i = 1} ^ {W} \sum_ {k = 1} ^ {C} G _ {\text {w a r p e d}} (i, j, k), \tag {7}
+$$
+
+where $G_{\text{warped}}(i,j,k)$ stands for warped features, and $i,j,k$ are the indexes of column, row, channel respectively. Moreover, $D_j^H$ is the average density of j-th row, and $w_j$ is the number of effective pixels in this row. Accordingly, the row density vector of warped features is defined as $D_H = [D_1^H,D_2^H,\dots ,D_W^H]$ .
+
+As shown in Fig. 5, subfigures (b) and (d) are the corresponding row density vectors of (a) and (c). A small variance of the row density vector indicates more uniform scale
+
+
+Figure 7: The two example images with various perspectives. The first row is the outputs of the proposed network which is trained with SGD method. While the second row is the outputs of the proposed method, which trained with meta-learning.
+
+distributions in the frames. Thus we devise an unsupervised regression loss to constrain the row density vector of the warped features. We formulate the objective function as:
+
+$$
+\mathcal {L} _ {v d} = \operatorname {V a r} \left(D ^ {H}\right). \tag {8}
+$$
+
+Meta Learning It is desirable to employ the standard training process, for instance, SGD method, to train the reverse perspective network. However, the reverse perspective is a lightweight network and is easy to overfit. As shown in Fig. 7, the reverse perspective network, which is trained by the SGD, generates similar perspective factors.
+
+To address the above issues, we treat perspective correction as a few-short learning problem and employ a meta-learning algorithm to optimize the proposed network. The meta-learning specializes in learning from small amounts of data, and the learned meta-model can fast adapt to indeterminate scenes. In the pre-training stage, we split the data into several small tasks, and employ Reptile [25], which is an efficient meta-learning algorithm, to train our regression network with only raw and unlabeled observations. Afterward, we fine-tune the learned meta-model to adapt to each image in both training and reference stages.
+
+In short, Reptile averages several updates of the network, instead of updating the network on the average loss function. This strategy is guaranteeing to learn an initialization that is good for fast adaptations. The Reptile method $\mathcal{M}(\cdot)$ randomly samples the training dataset into p-tasks $\mathcal{T}_p$ . During training, $\mathcal{M}(\cdot)$ inputs a set of tasks $\mathcal{T}_i$ , and produces a learning procedure $\mathrm{SGD}(L,\theta ,k)$ . The learning procedure performs $k$ gradient steps on loss $L$ starting with $\theta$ and returns the final parameter vector. The training process on a single task $\tau$ is formulated as:
+
+$$
+\begin{array}{r c l} W & = & \operatorname {S G D} \left(L _ {\tau}, \theta , k\right) \\ \hat {\theta} & = & \theta + \eta (\theta - W), \end{array} \tag {9}
+$$
+
+where the $\hat{\theta}$ is the updated parameters, and $\eta$ is a scalar.
+
+Benefiting from the sample and efficient Reptile method, we obtain a more sensitive meta-model, which is fine-tuned on each test image.
+
+
+Figure 9: Representative frames of UAVVC, which have different perspectives, for instance, high latitude, front-view in low latitude, side-view, and top-view.
+
+
+
+
+
+
+
+# 3.3. Adversarial Residual Learning
+
+The reverse perspective network still has limitations while encountering seriously crowded regions. Therefore, we augment the ground-truth density map with the evaluation error, which highlights the congested area. The augmented ground-truth is formulated as:
+
+$$
+Y _ {A u g} = Y + \varphi (Y - \hat {Y}), \tag {10}
+$$
+
+where $Y$ is the ground-truth density map, $\hat{Y}$ is the evaluation output, and $\varphi$ is a scalar.
+
+To force the regressor to learn from the augmented ground-truth, we employ an adversarial structure named Adversarial Structure Matching (ASM) [14] to extract the structures of congested areas. ASM employs an auto encoder-decoder framework. The encoder analyzes the structure of both estimated and the augmented density maps, while the decoder reconstructs the augmented density maps from the hidden features. While training, the regressor is trained to minimize the distance between hidden features of the evaluation and the augmented ground-truth, while the encoder is trained to enlarge the distance. The adversarial loss function is formulated as:
+
+$$
+\max _ {A} \min _ {R} \mathcal {L} _ {a r} = \mathbb {E} _ {X Y} \left[ | A (R (X)) - A \left(Y _ {A u g}\right) | \right], \tag {11}
+$$
+
+where $R(\cdot)$ is the regression network, $A(\cdot)$ is the encoder, and $X$ is the input image. The adversarial approach forces the regression network to pay more attention to the objects that are easily overlooked.
+
+# 4. UAV-based Vehicle Counting Dataset
+
+There are limited datasets for the vehicle counting task. Among them TRANCOS_v3 [10] is collected by fixed cameras, while CARPK [12] and PUCPR+ [1] contain images captured by UAVs. We show a representative frame of each dataset in Fig. 8. As shown, they only present constrained traffic circumstances with narrow viewpoints, which have limited scale variations, as such, are not suitable to verify the proposed method.
+
+To fill this gap, we collected a UAV-based dataset with 50 different scenarios for vehicle counting, termed as UAVVC. The proposed dataset is manually annotated with 32,770 bounding boxes, instead of traditional point annotations. We show representative frames in Fig. 9. The proposed dataset has four kinds of perspectives, i.e., front-view in
+
+
+TRANCOS_v3
+Figure 8: Representative frame of TRANCOS_v3, CARPK, and PUCPR+, which have limited perspectives.
+
+
+CARPK
+
+
+PUCPR+
+
+Table 1: Summary of existing related datasets.
+
+| Dataset | Resolution | Frames | View-Points | Scenes | Weather | Notation |
| TRANCOS | 640x480 | 824 | fixed | 43 | 2 | Points |
| CARPK | 1,280x720 | 1,448 | fixed | 7 | 1 | BoundingBox |
| PUCPR+ | 1,280x720 | 125 | fixed | 1 | 3 | BoundingBox |
| Ours | 1,024x540 | 738 | flexible | 50 | 5 | BoundingBox |
+
+Table 2: The evaluation results on ShanghaiTech datasets
+
+ | ShanghaiTech Part A | ShanghaiTech Part B |
| Method | MAE | MSE | MAE | MSE |
| MCMM [39] | 110.2 | 173.2 | 26.4 | 41.3 |
| SANet [4] | 67.0 | 104.5 | 8.4 | 13.6 |
| CSRNet [19] | 68.2 | 115.0 | 10.6 | 16.0 |
| IG-CNN [26] | 72.5 | 118.2 | 13.6 | 21.1 |
| TEDnet [18] | 64.2 | 109.1 | 8.2 | 12.8 |
| ADCrowdNet [21] | 63.2 | 98.9 | 8.2 | 15.7 |
| CG-DRCN [34] | 64.0 | 98.4 | 8.5 | 14.4 |
| ADMG [17] | 64.7 | 97.1 | 8.1 | 13.6 |
| ANF [2] | 63.9 | 99.4 | 8.3 | 13.2 |
| Ours | 61.2 | 96.9 | 8.1 | 11.6 |
+
+high latitude, front-view in low latitude, side-view, and top-view. With the unconstrained viewing points, there are dramatic scale variations. The frames are also collected in different weather conditions, for instance, sunny, raining, fog, night, and raining night. All these shooting conditions increase the diversity of the dataset and make it closer to the real traffic circumstances. More importantly, the dramatic scale variation can be used to verify our proposed method.
+
+The statistics of our proposed dataset and existing datasets are shown in Table 1. The UAVVC is more diverse and provides more precise annotations. Moreover, three critical distributions are shown in Fig. 2. As shown, the proposed dataset has more dramatic scale variations, also is more balanced than others in all the criterions. The dataset and all the experimental results are available on https://github.com/CrowdCounting.
+
+# 5. Experiments
+
+We evaluate our approach on four datasets: ShanghaiTech [39], WorldExpo10 [15], UCSD [5], and the proposed UAVVC. In this section, we first evaluate and compare our method with the previous state-of-the-art approaches [39, 4, 26, 21, 19, 18, 34, 17, 2] on these datasets. Then we present ablation study results on ShanghaiTech
+
+Table 3: The MAE evaluation results on the WorldExpo10 dataset.
+
+| Method | Sce.1 | Sce.2 | Sce.3 | Sce.4 | Sce.5 | Avg. |
| MCMM [39] | 3.4 | 20.6 | 12.9 | 13.0 | 8.1 | 11.6 |
| SANet [4] | 2.6 | 13.2 | 9.0 | 13.3 | 3.0 | 8.2 |
| CSRNet [19] | 2.9 | 11.5 | 8.6 | 16.6 | 3.4 | 8.6 |
| IG-CNN [26] | 2.6 | 16.1 | 10.15 | 20.2 | 7.6 | 11.3 |
| TEDnet [18] | 2.3 | 10.1 | 11.3 | 13.8 | 2.6 | 8.0 |
| ADCrowdNet [21] | 1.6 | 15.8 | 11.0 | 10.9 | 3.2 | 8.5 |
| ADMG [17] | 4.0 | 18.1 | 7.2 | 12.3 | 5.7 | 9.5 |
| Ours | 2.4 | 10.2 | 9.7 | 11.5 | 3.8 | 8.2 |
+
+
+Figure 10: Examples in ShanghaiTech dataset. The first column is the input images, and the second column is the warped images, while the third column is the estimated density maps. The proposed method adaptively warps the images and delivers accurate estimations.
+
+Part A dataset. In these experiments, we evaluate the performance with MAE and MSE metrics.
+
+# 5.1. Implementation details
+
+We employ CSRNet as our regression network. The most time-consuming operation of the proposed method is generating the grid maps. During transformation, we first generate initial grid maps with a resolution of $10^{*}10$ , then enlarge them to the desired resolution. Therefore, the reverse perspective network introduces limited time complexity. The reverse perspective network is pre-trained on the training set of each dataset, respectively. For meta-learning, we set the inner batch size to 5, inner iterations to 20, and the learning rate to 1e-6. When training the regression network, we also warp the ground-truth density maps with the generated grid maps. The learning rate is set to 1e-7, and the $\varphi$ is set to 1e-6, while the $K$ is set to 20.
+
+# 5.2. Evaluation and comparison
+
+ShanghaiTech dataset [37] focuses on the pedestrian counting. There are 1,198 images with different perspectives and resolutions. This dataset has two parts named Part A and Part B. We report the comparison between our method and state-of-arts in Table 2. Our method achieves the lowest MAE (the highest accuracy) on both parts. Fig. 10 shows samples of Part A and Part B. It can be seen that the proposed method is well adaptable to arbitrary perspectives.
+
+WorldExpo10 dataset [39] has 3,980 annotated frames.
+
+Table 4: The evaluation results on the UCSD dataset
+
+| Method | MAE | MSE |
| MCMM [39] | 1.07 | 1.35 |
| SANet [4] | 1.02 | 1.29 |
| CSRNet [19] | 1.16 | 1.47 |
| ADCrowdNet [21] | 0.98 | 1.25 |
| Ours | 1.32 | 1.23 |
+
+Table 5: The evaluation results on UAVVC dataset, where IFSV stands for intra-frame scale variance and the second to the fifth columns are the corresponding MAE results.
+
+| Method | IFSV ∈ [0.0, 1.0] | IFSV ∈ [1.0, 3.0] | IFSV ∈ [3.0, 5.0] | IFSV ∈ [5.0, 10.0] | Total MAE | Total MSE |
| MCMM [39] | 32.14 | 46.37 | 64.48 | 61.22 | 50.63 | 85.46 |
| VGG-16 [38] | 51.32 | 62.41 | 80.34 | 76.31 | 67.12 | 103.20 |
| CSRNet [19] | 13.11 | 19.61 | 28.02 | 25.65 | 18.32 | 32.27 |
| Ours | 12.98 | 13.26 | 21.00 | 19.70 | 13.21 | 20.07 |
+
+We divide this dataset into a training set with 3,380 frames and a testing set with 600 frames. We list the result comparisons of MAE in Table 3, where our method achieves the best 8.2 average MAE against other methods. Some of the scenes are sparse, and the MAE is already quite low, being thus hard to achieve a significant improvement.
+
+UCSD dataset [5] contains 2,000 frames captured by surveillance cameras, and the frames have the same perspective. The comparison between state-of-the-art crowd counting methods and our method is summarized in Table 4. Our approach overall performs comparably with the best algorithm, but much better than the others. This is because there are limited scale variations in the UCSD dataset, so our method achieves limited improvements.
+
+UAVVC is our newly proposed dataset with 500 and 385 images for training / testing. Table 5 shows the comparisons of our method against MCNN [39], VGG-16 [33] and CSRNet [19], and our method achieves the best results. More importantly, according to intra-frame scale standard variance, we classify the testing images into four groups and respectively evaluate the MAE metric on each group. Our proposed method achieves improvement in each group. Especially on the image group with larger-scale variation, the performance improvements of our method are more prominent. These experiments verify the ability of the proposed algorithm to handle dramatic scale variations. We show three examples in Fig. 11, each of which has a unique perspective. In the dataset, we do not provide the region of interesting masks. Thus it is challenging for the regressors to recognize the objects in complicated scenes. As shown, compared with the baseline [19], our method delivers more accurate results, and is less likely to recognize backgrounds as vehicles. The similar scales in warped images facilitate the regressor to tell the vehicles from backgrounds.
+
+# 5.3. Ablation study
+
+In this section, we conduct several experiments to study the effect of different aspects of our method on ShanghaiTech Part A and show the results in Table 6.
+
+Baseline Our method achieves $10.3\%$ accuracy improve
+
+Table 6: The ablation study results on ShanghaiTech Part A. Where RAN stands for residual adversarial network.
+
+| Method | Baseline | Ours | w/o RAN | End-to-End Trained | Warp Features | Trained with SGD | New Baseline | Modified New Baseline |
| MAE | 68.2 | 61.2 | 63.4 | 72.1 | 66.2 | 70.6 | 109.6 | 94.3 |
+
+
+Figure 11: Examples in UAVVC. In each row, the first image is the input image, the second one is the output of CSR-Net, and the third one is the output of our algorithm.
+
+
+Figure 12: We show two examples in ShanghaiTech Part A. The first column is the input images, the second column is the outputs of baseline, while the third column is the warped images, and the last column is the outputs of proposed method.
+
+ment compared with the baseline. We show the qualitative comparison between baseline and our method in Fig. 12. The two congested scenes have different perspectives, and our method achieves more accurate estimation results. More importantly, our density maps are brighter. That is because we diminish the scale variations of the input images, and the density maps of the proposed method have fewer picture contrasts.
+
+Without Adversarial Network While we only employ the reverse perspective network, the MAE decreases by $7.0\%$ , yet it is still not as good as that of ours. This is because the reverse perspective network has limitations, for instance, in the first example of Fig. 12, the most congested areas are not enough stretched, and the scale variation is still fierce. The adversarial network force the regressor to pay more attention to these areas.
+
+End-to-End Training We train the reverse perspective network with the regression network in an end-to-end fashion, and the performance decreases by $5.7\%$ . This is because such a strategy ignores the internal structure of the perspective maps and results in inferior results.
+
+Warp Features Instead We pre-train the reverse perspective network, and utilize it to warp the features directly.
+
+This strategy is less time consuming, yet it only receives $2.9\%$ performance increase. This is because warping features wrecks the semantic information of the deep features and makes the objects unrecognizable.
+
+Traditional Learning Method We pre-train the reverse perspective network with the SGD method. As a result, the network is overfitted and delivers similar perspective factors with limited variance. Thus the method obtains a $3.5\%$ performance decrease. This is because simple averaging the loss function wears down the implicit information of perspectives and scenes.
+
+Extensibility To evaluate the extensibility of the proposed framework, we employ a new backbone with various receptive fields as the backbone of CSRNet, which is the first ten convolution layers of ResNet-101 [11]. The new baseline is trained with original and warped images, respectively. As shown in Table. 6, our proposed method decreases MAE by $14.0\%$ compared with new baseline, yet not as good as the VGG based one. Moreover, the VGG based one with warped images obtains better performance than ResNet one with original images. This experiment affirms that the proposed network is more effective than the various receptive fields.
+
+# 6. Conclusion
+
+In this paper, we propose a reverse perspective network to diminish the scale variations while estimating the crowd densities. The reverse perspective network estimates the perspective distortions in an unsupervised way and warps the original images to obtain similar scales. To further solve the scale issue in seriously congested areas, we force the regressor to learn from the augmented ground-truth via an adversarial network. Moreover, to verify the proposed framework, we collected a UAV-based vehicle counting dataset, which has dramatic intra-scene and inter-scene scale variations. Extensive experimental results demonstrate the state-of-the-art performance of our method. In the future work, we will research the perspective evaluation of videos, which has continuous perspectives and scenes.
+
+Acknowledgements This work was supported in part by the Italy-China collaboration project TALENT:2018YFE0118400, in part by National Natural Science Foundation of China: 61620106009, 61772494, 61931008, U1636214, 61836002 and 61976069, in part by Key Research Program of Frontier Sciences, CAS: QYZDJ-SSW-SYS013, in part by Youth Innovation Promotion Association CAS, in part by the University of Chinese Academy of Sciences.
+
+# References
+
+[1] Paulo Almeida, Luiz S Oliveira, Alceu De Souza Britto, Eunelson J Silva, and Alessandro L Koerich. Pklot-a robust dataset for parking lot classification. Expert Systems With Applications, 42(11):4937-4949, 2015. 6
+[2] Zhang Anran, Yue Lei, Shen Jiayi, Zhu Fan, Zhen Xiantong, Cao Xianbin, and Shao Ling. Attentional neural fields for crowd counting. IEEE International Conference on Computer Vision, 2019. 6
+[3] David Bau, Bolei Zhou, Aditya Khosla, Aude Oliva, and Antonio Torralba. Network dissection: Quantifying interpretability of deep visual representations. Computer Vision and Pattern Recognition, 2017. 4
+[4] Xinkun Cao, Zhipeng Wang, Yanyun Zhao, and Fei Su. Scale aggregation network for accurate and efficient crowd counting. Computer Vision and Pattern Recognition, pages 757-773, 2018. 1, 2, 3, 6, 7
+[5] Antoni B Chan, Zhangsheng John Liang, and Nuno Vasconcelos. Privacy preserving crowd monitoring: Counting people without people models or tracking. Computer Vision and Pattern Recognition, pages 1-7, 2008. 6, 7
+[6] Edo Collins, Radhakrishna Achanta, and Sabine Susstrunk. Deep feature factorization for concept discovery. European Conference on Computer Vision, 14:352-368, 2018. 4
+[7] Diptodip Deb and Jonathan Ventura. An aggregated multicolumn dilated convolution network for perspective-free counting. Computer Vision and Pattern Recognition, pages 195-204, 2018. 2
+[8] Junyu Gao, Qi Wang, and Xuelong Li. Pcc net: Perspective crowd counting via spatial convolutional network. IEEE Transactions on Circuits and Systems for Video Technology, abs/1905.10085, 2019. 1
+[9] Abel Gonzalezgarcia, Davide Modolo, and Vittorio Ferrari. Do semantic parts emerge in convolutional neural networks. International Journal of Computer Vision, 126(5):476-494, 2018. 4
+[10] Ricardo Guerrerogomezolmedo, Beatrix Torrejimenez, Roberto Javier Lopezstare, Saturnino Maldonadobascon, and Daniel Onor Rubio. Extremely overlapping vehicle counting. Computer Vision and Pattern Recognition, pages 423-431, 2015. 6
+[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. Computer Vision and Pattern Recognition, pages 770-778, 2016. 8
+[12] Meng-Ru Hsieh, Yen-Liang Lin, and Winston H. Hsu. Drone-based object counting by spatially regularized regional proposal networks. IEEE International Conference on Computer Vision, 2017. 6
+[13] Siyu Huang, Xi Li, Zhongfei Zhang, Fei Wu, Shenghua Gao, Rongrong Ji, and Junwei Han. Body structure aware deep crowd counting. IEEE Transactions on Image Processing, 27(3):1049-1059, 2018. 1
+[14] Jyhjing Hwang, Tsungwei Ke, Jianbo Shi, and Stella X Yu. Adversarial structure matching for structured prediction tasks. Computer Vision and Pattern Recognition, pages 4056-4065, 2019. 6
+
+[15] Haroon Idrees, Imran Saleemi, Cody Seibert, and Mubarak Shah. Multi-source multi-scale counting in extremely dense crowd images. Computer Vision and Pattern Recognition, pages 2547-2554, 2013. 6
+[16] Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. Neural Information Processing Systems, pages 2017-2025, 2015. 5
+[17] Wan Jia and Chan Antoni. Adaptive density map generation for crowd counting. IEEE International Conference on Computer Vision, 2019. 6, 7
+[18] Xiaolong Jiang, Zehao Xiao, Baochang Zhang, Xiantong Zhen, Xianbin Cao, David Doermann, and Ling Shao. Crowd counting and density estimation by trellis encoder-decoder network. Computer Vision and Pattern Recognition, 2019. 1, 2, 3, 6, 7
+[19] Yuhong Li, Xiaofan Zhang, and Deming Chen. Csrnet: Dilated convolutional neural networks for understanding the highly congested scenes. Computer Vision and Pattern Recognition, pages 1091-1100, 2018. 1, 2, 6, 7
+[20] Jiang Liu, Chenqiang Gao, Deyu Meng, and Alexander G Hauptmann. Decidenet: Counting varying density crowds through attention guided detection and density estimation. Computer Vision and Pattern Recognition, pages 5197-5206, 2018. 1, 3
+[21] Ning Liu, Yongchao Long, Changqing Zou, Qun Niu, Li Pan, and Hefeng Wu. Adcrowdnet: An attention-injective deformable convolutional network for crowd understanding. Computer Vision and Pattern Recognition, pages 3220-3229, 2018. 1, 2, 6, 7
+[22] Weizhe Liu, Mathieu Salzmann, and Pascal Fua. Context-aware crowd counting. Computer Vision and Pattern Recognition, pages 5094-5103, 2019. 3
+[23] Xialei Liu, Joost Van De Weijer, and Andrew D Bagdanov. Leveraging unlabeled data for crowd counting by learning to rank. Computer Vision and Pattern Recognition, pages 7661-7669, 2018. 1
+[24] Yuting Liu, Miaojing Shi, Qijun Zhao, and Xiaofang Wang. Point in, box out: Beyond counting persons in crowds. Computer Vision and Pattern Recognition, 2019. 1
+[25] Alex Nichol and John Schulman. Reptile: a scalable meta-learning algorithm. Learning, 2018. 5
+[26] Viresh Ranjan, Hieu Le, and Minh Hoai. Iterative crowd counting. European Conference on Computer Vision, pages 278-293, 2018. 6, 7
+[27] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. Medical Image Computing and Computer Assisted Intervention, pages 234-241, 2015. 2
+[28] Deepak Babu Sam and R Venkatesh Babu. Top-down feedback for crowd counting convolutional neural network. National Conference on Artificial Intelligence, pages 7323-7330, 2018. 2
+[29] Deepak Babu Sam, Neeraj Sajjan, R Venkatesh Babu, and Mukundhan Srinivasan. Divide and grow: Capturing huge diversity in crowd images with incrementally growing cnn. Computer Vision and Pattern Recognition, pages 3618-3626, 2018. 1, 3
+
+[30] Zan Shen, Yi Xu, Bingbing Ni, Minsi Wang, Jianguo Hu, and Xiaokang Yang. Crowd counting via adversarial cross-scale consistency pursuit. In Computer Vision and Pattern Recognition, pages 5245-5254, June 2018. 1, 3
+[31] Miaojing Shi, Zhaohui Yang, Chao Xu, and Qijun Chen. Revisiting perspective information for efficient crowd counting. Computer Vision and Pattern Recognition, pages 7271-7280, 2018. 1, 2, 3
+[32] Zenglin Shi, Le Zhang, Yun Liu, Xiaofeng Cao, Yangdong Ye, Mingming Cheng, and Guoyan Zheng. Crowd counting with deep negative correlation learning. Computer Vision and Pattern Recognition, pages 5382-5390, 2018. 1, 3
+[33] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations, abs/1409.1556, 2014. 4, 7
+[34] Sindagi Vishwanath, Yasarla Rajeev, and Patel Vishal. Pushing the frontiers of unconstrained crowd counting: New dataset and benchmark method. IEEE International Conference on Computer Vision, 2019. 6
+[35] Wikipedia. Reverse perspective. https://en.wikipedia.org/wiki/Reverse_perspective.2
+[36] Zhaoyi Yan, Yuchen Yuan, Wangmeng Zuo, Xiao Tan, Yezhen Wang, Shilei Wen, and Errui Ding. Perspective-guided convolution networks for crowd counting. Computer Vision and Pattern Recognition, 2019. 1, 2, 3
+[37] Cong Zhang, Hongsheng Li, Xiaogang Wang, and Xiaokang Yang. Cross-scene crowd counting via deep convolutional neural networks. Computer Vision and Pattern Recognition, pages 833-841, 2015. 1, 3, 7
+[38] Shanghang Zhang, Guanhang Wu, Joao Paulo Costeira, and Jose M F Moura. Fcn-rlstm: Deep spatio-temporal neural networks for vehicle counting in city cameras. International Conference on Computer Vision, pages 3687–3696, 2017. 7
+[39] Yingying Zhang, Desen Zhou, Siqin Chen, Shenghua Gao, and Yi Ma. Single-image crowd counting via multi-column convolutional neural network. Computer Vision and Pattern Recognition, pages 589-597, 2016. 1, 2, 6, 7
\ No newline at end of file
diff --git a/reverseperspectivenetworkforperspectiveawareobjectcounting/images.zip b/reverseperspectivenetworkforperspectiveawareobjectcounting/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ac57a61c643fcc89fc586bd842f57e9a031d9759
--- /dev/null
+++ b/reverseperspectivenetworkforperspectiveawareobjectcounting/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e4d30ca0acdbe597a86e07e7d20935c184d3833ae6748eff72221b323d1e6fde
+size 643032
diff --git a/reverseperspectivenetworkforperspectiveawareobjectcounting/layout.json b/reverseperspectivenetworkforperspectiveawareobjectcounting/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..70ef2382f458835dde33aad68b06d6c3810632cc
--- /dev/null
+++ b/reverseperspectivenetworkforperspectiveawareobjectcounting/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6f9ee6d97f1962ff114d1cb8012a87864f95625936e2b544c441275d70088af5
+size 392548
diff --git a/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_content_list.json b/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..39e7d0040c3bba6f26c7f3f18bc7728bdc28e423
--- /dev/null
+++ b/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ee014604349df7bf70515a6a373efbb45f54b3f445bf29c34965ceda1dc9d94b
+size 70384
diff --git a/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_model.json b/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..04699ac0436d00f08b89825d766afe167b4f10eb
--- /dev/null
+++ b/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f22439678e7f237594eba06ad162e17840f87d82001235564da24b2af67fdea3
+size 84357
diff --git a/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_origin.pdf b/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3c481b63d8e7a4a89f6ea6b3609ed85d5715a2b7
--- /dev/null
+++ b/revisitingknowledgedistillationvialabelsmoothingregularization/1ca73900-f58b-4a06-a51f-145d2d902b57_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1af1256116e8004fe1851718a09c87b84367c1343c2ef2d131edd3c972b9ad68
+size 495164
diff --git a/revisitingknowledgedistillationvialabelsmoothingregularization/full.md b/revisitingknowledgedistillationvialabelsmoothingregularization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..37370c9cec95b47a17c196d8f63fc0ad998878f5
--- /dev/null
+++ b/revisitingknowledgedistillationvialabelsmoothingregularization/full.md
@@ -0,0 +1,297 @@
+# Revisiting Knowledge Distillation via Label Smoothing Regularization
+
+Li Yuan $^{1}$ Francis EH Tay $^{1}$ Guilin Li $^{2}$ Tao Wang $^{1}$ Jiashi Feng $^{1}$
+
+$^{1}$ National University of Singapore $^{2}$ Huawei Noah's Ark Lab $\{\text { ylustcnus, twangnh } \} @$ gmail.com, $\{\text { mpetayeh,elefjia } \} @$ nus.edu.sg, guilinli2@huawei.com
+
+# Abstract
+
+Knowledge Distillation (KD) aims to distill the knowledge of a cumbersome teacher model into a lightweight student model. Its success is generally attributed to the privileged information on similarities among categories provided by the teacher model, and in this sense, only strong teacher models are deployed to teach weaker students in practice. In this work, we challenge this common belief by following experimental observations: 1) beyond the acknowledgment that the teacher can improve the student, the student can also enhance the teacher significantly by reversing the KD procedure; 2) a poorly-trained teacher with much lower accuracy than the student can still improve the latter significantly. To explain these observations, we provide a theoretical analysis of the relationships between KD and label smoothing regularization. We prove that 1) KD is a type of learned label smoothing regularization and 2) label smoothing regularization provides a virtual teacher model for KD. From these results, we argue that the success of KD is not fully due to the similarity information between categories from teachers, but also to the regularization of soft targets, which is equally or even more important.
+
+Based on these analyses, we further propose a novel Teacher-free Knowledge Distillation (Tf-KD) framework, where a student model learns from itself or manually-designed regularization distribution. The Tf-KD achieves comparable performance with normal KD from a superior teacher, which is well applied when a stronger teacher model is unavailable. Meanwhile, Tf-KD is generic and can be directly deployed for training deep neural networks. Without any extra computation cost, Tf-KD achieves up to $0.65\%$ improvement on ImageNet over well-established baseline models, which is superior to label smoothing regularization.
+
+# 1. Introduction
+
+Knowledge Distillation (KD) [7] aims to transfer knowledge from one neural network (teacher) to another (student). Usually, the teacher model has a strong learning capacity
+
+with higher performance, which teaches a lower-capacity student model through providing "soft targets". It is commonly believed that the soft targets of the teacher model can transfer "dark knowledge" containing privileged information on similarity among different categories [7] to enhance the student model.
+
+In this work, we first examine such a common belief through following exploratory experiments: 1) let student models teach teacher models by transferring soft targets of the students; (2) let poorly-trained teacher models with worse performance teach students. Based on the common belief, it is expected that the teacher model would not be enhanced significantly via training from the students and poorly-trained teachers would not enhance the students, as the weak student and poorly-trained teacher models cannot provide reliable similarity information between categories. However, after extensive experiments on various models and datasets, we observe contradictory results: the weak student can improve the teacher and the poorly-trained teacher can also enhance the student remarkably. Such intriguing results motivate us to interpret KD as a regularization term, and we re-examine knowledge distillation from the perspective of Label Smoothing Regularization (LSR) [16] that regularizes model training by replacing the one-hot labels with smoothed ones.
+
+We then analyze theoretically the relationships between KD and LSR. For LSR, by splitting the smoothed label into two parts and examining the corresponding losses, we find the first part is the ordinary cross-entropy for ground-truth distribution (one-hot label) and outputs of model, and the second part corresponds to a virtual teacher model which provides a uniform distribution to teach the model. For KD, by combining the teacher's soft targets with the one-hot ground-truth label, we find that KD is a learned LSR where the smoothing distribution of KD is from a teacher model but the smoothing distribution of LSR is manually designed. In a nutshell, we find KD is a learned LSR and LSR is an ad-hoc KD. Such relationships can explain the above counterintuitive results—the soft targets from weak student and poorly-trained teacher models can effectively
+
+regularize the model training, even though they lack strong similarity information between categories. We therefore argue that the similarity information between categories cannot fully explain the dark knowledge in KD, and the soft targets from the teacher model indeed provide effective regularization for the student model, which are equally or even more important.
+
+Based on the analyses, we conjecture that with nonreliable or even zero similarity information between categories from the teacher model, KD may still well improve the student models. We thus propose a novel Teacher-free Knowledge Distillation (Tf-KD) framework with two implementations. The first one is to train the student model by itself (i.e., self-training), and the second is to manually design a target distribution as a virtual teacher model which has $100\%$ accuracy. The first method is motivated by replacing the dark knowledge with predictions from the model itself, and the second method is inspired by the relationships between KD and LSR. We validate through extensive experiments that the two implementations of Tf-KD are both simple yet effective. Particularly, in the second implementation without similarity information in the virtual teacher, Tf-KD still achieves comparable performance with normal KD, which clearly justifies:
+
+Dark knowledge does not just include the similarity between categories, but also imposes regularization on the student training.
+
+Tf-KD well applies to scenarios where the student model is too strong to find teacher models or computational resource is limited for training teacher models. For example, if we take a cumbersome single model ResNeXt101- $32\times 8\mathrm{d}$ [18] as the student model (with 88.79M parameters and 16.51G FLOPs on ImageNet), it is hard or computationally expensive to train a stronger teacher model. We deploy our virtual teacher to teach this powerful student and achieve $0.48\%$ improvement on ImageNet without any extra computation cost. Similarly, when taking a powerful single model ResNeXt29- $8\times 64\mathrm{d}$ with 34.53M parameters as a student model, our self-training implementation achieves more than $1.0\%$ improvement on CIFAR100 (from $81.03\%$ to $82.08\%$ ).
+
+Our contributions are summarized as follows:
+
+- By designing two exploratory experiments on teacher models of KD, we observe counterintuitive results, which motivate us to interpreted KD as a regularization method.
+- We then provide theoretical analysis to reveal the relationships between KD and label smoothing regularization.
+- We propose Teacher-free Knowledge Distillation (Tf-KD), which achieves comparable performance with
+
+normal knowledge distillation and superior performance to label smoothing regularization on ImageNet-2012.
+
+# 2. Exploratory Experiments and Counterintuitive Observations
+
+To examine the common belief on dark knowledge in KD, we conduct two exploratory experiments:
+
+1) The standard knowledge distillation is to adopt a teacher to teach a weaker student. What if we reverse the operation? Based on the common belief, the teacher should not be improved significantly because the student is too weak to transfer effective knowledge.
+2) If we use a poorly-trained teacher which has much worse performance than the student to teach the student, it is assumed to bring no improvement to the latter. For example, if a poorly-trained teacher with only $10\%$ accuracy is adopted in an image classification task, the student would learn from its soft targets with $90\%$ error, thus the student should not be improved or even suffer worse performance.
+
+We name the "student teach teacher" as Reversed Knowledge Distillation (Re-KD), and the "poorly-trained teacher teach student" as Defective Knowledge Distillation (De-KD) (Fig. 1). We conduct Re-KD and De-KD experiments on CIFAR10, CIFAR100 and Tiny-ImageNet datasets with a variety of neural networks. For fair comparisons, all experiments are conducted with the same settings and hyper-parameters are obtained by grid search from 70 epochs training (200 epochs in total). Detailed implementation and experiment settings are given in Supplementary Material.
+
+# 2.1. Reversed Knowledge Distillation
+
+We conduct Re-KD experiments on the three datasets respectively. CIFAR10 and CIFAR100 [9] contain natural RGB images of 32x32 pixels with 10 and 100 classes, respectively, and Tiny-ImageNet is a subset of ImageNet [3] with 200 classes, where each image is down-sized to 64x64 pixels. For generality of the experiments, we adopt 5-layer plain CNN, MobileNetV2 [15] and ShufflenetV2 [10] as student models and ResNet18, ResNet50 [6], DenseNet121 [8] and ResNeXt29-8×64d as teachers. The results of Re-KD on the three datasets are given in Tabs. 1 to 3.
+
+In Tab. 1, the teacher models are improved significantly by learning from students, especially for teacher models ResNet18 and ResNet50. The two teachers obtain more than $1.1\%$ improvement when taught by MobileNetV2 and ShuffleNetV2. We can also observe similar results on CIFAR10 and Tiny-ImageNet. When comparing Re-KD
+
+
+(a) Normal KD
+
+
+(b) Reversed KD
+
+
+(c) Defective KD
+Figure 1. (a) Normal KD framework. (b)(c) Diagrams of exploratory experiments we conduct.
+
+$(S \rightarrow T)$ with Normal KD $(T \rightarrow S)$ , we can see in most cases, Normal KD achieves better results. It should be noted that Re-KD takes the teacher's accuracy as the baseline accuracy, which is much higher than that of Normal KD. However, in some cases, we can find Re-KD outperforms Normal KD. For instance, in Tab. 2 (3rd row), the student model (plain CNN) can only be improved by $0.31\%$ when taught by MobileNetV2, but the teacher (MobileNetV2) can be improved by $0.92\%$ by learning from the student. We have similar observations for ResNeXt29 and ResNet18 (4th row in Tab. 2).
+
+We claim that while the standard knowledge distillation can improve the performance of students on all datasets, the superior teacher can also be enhanced significantly by learning from a weak student, as suggested through the Re-KD experiments.
+
+# 2.2. Defective Knowledge Distillation
+
+We conduct De-KD on CIFAR100 and Tiny-ImageNet. We adopt MobileNetV2 and ShuffleNetV2 as student models and ResNet18, ResNet50 and ResNeXt29 $(8\times 64\mathrm{d})$ as teacher models. The poorly-trained teachers are trained by 1 epoch (ResNet18) or 50 epochs (ResNet50 and ResNeXt29), with very poor performance. For example, ResNet18 only obtains $15.48\%$ accuracy on CIFAR100 and $9.41\%$ accuracy on Tiny-ImageNet after trained with 1 epoch, and ResNet50 obtains $45.82\%$ and $31.01\%$ on CIFAR100 and Tiny-ImageNet, after trained with 50 epochs (200 epochs in total).
+
+From De-KD experiment results on CIFAR100 in Tab. 4, we observe that the student can be greatly promoted even when distilled by a poorly-trained teacher. For instance, the MobileNetV2 and ShuffleNetV2 can be promoted by $2.27\%$ and $1.48\%$ when taught by the one-epoch-trained ResNet18 with only $15.48\%$ accuracy (2nd row). For poorly-trained ResNeXt29 with $51.94\%$ accuracy (4th row), we find ResNet18 can still be improved by $1.41\%$ and MobileNetV2 obtains $3.14\%$ improvement. From the De-KD experiment results on Tiny-ImageNet in Tab. 4, we find
+
+ResNet18 with $9.14\%$ accuracy can still enhance the teacher model MobileNetV2 by $1.16\%$ . Other poorly-trained teachers are all able to enhance the students to some degree.
+
+To better demonstrate the distillation accuracy of a student when taught by poorly-trained teachers with different levels of accuracy, we save 9 checkpoints of ResNet18 and ResNeXt29 in the normal training process. Taking these checkpoints as teacher models to teach MobileNetV2, we observe that MobileNetV2 can always be improved by poorly-trained ResNet18 or poorly-trained ResNeXt29 with different levels of accuracy (Fig. 2). So we can say while a poorly-trained teacher provides much more noisy logits to the student, the student can still be enhanced. The De-KD experiment results are also conflicted with the common belief.
+
+The counterintuitive results of Re-KD and De-KD make us rethink the "dark knowledge" in KD, and we argue that it does not just contain the similarity information. Lacking enough similarity information, a model can still provide "dark knowledge" to enhance other models. To explain this, we make a reasonable assumption and view knowledge distillation as a model regularization, and investigate what is the additional information in the "dark knowledge" of a model. In the next, we will analyze the relationships between knowledge distillation and label smoothing regularization to explain the experimental results of Re-KD and De-KD.
+
+# 3. Knowledge Distillation and Label Smoothing Regularization
+
+We mathematically analyze the relationships between Knowledge Distillation (KD) and Label Smoothing Regularization (LSR), hoping to explain the intriguing results of exploratory experiments in Sec. 2. Given a neural network $S$ to train, we first give loss function of LSR for $S$ . For each training example $x$ , $S$ outputs the probability of each label $k \in \{1 \dots K\} : p(k|x) = \text{softmax}(z_k) = \frac{\exp(z_k)}{\sum_{i=1}^{K} \exp(z_i)}$ , where $z_i$ is the logit of the neural network $S$ . The ground
+
+Table 1. Normal KD and Re-KD experiment results on CIFAR100. We report mean±std (in %) over 3 runs. The number in parenthesis means increased accuracy over baseline (T: teacher, S: student).
+
+| Teacher: baseline | Student: baseline | Normal KD (T→S) | Re-KD (S→T) |
| ResNet18: 75.87 | MobileNetV2: 68.38 | 71.05±0.16 (+2.67) | 77.28±0.28 (+1.41) |
| ShuffleNetV2: 70.34 | 72.05±0.13 (+1.71) | 77.35±0.32 (+1.48) |
| ResNet50: 78.16 | MobileNetV2: 68.38 | 71.04±0.20 (+2.66) | 79.30±0.11 (+1.14) |
| ShuffleNetV2: 70.34 | 72.15±0.18 (+1.81) | 79.43±0.39 (+1.27) |
| DenseNet121: 79.04 | MobileNetV2: 68.38 | 71.29±0.23 (+2.91) | 79.55±0.11 (+0.51) |
| ShuffleNetV2: 70.34 | 72.32±0.25 (+1.98) | 79.83±0.05 (+0.79) |
| ResNeXt29: 81.03 | MobileNetV2: 68.38 | 71.65±0.41 (+3.27) | 81.53±0.14 (+0.50) |
| ResNet18: 75.87 | 77.84±0.15 (+1.97) | 81.62±0.22 (+0.59) |
+
+Table 2. Re-KD experiment results (accuracy, mean±std over 3 runs in %) on CIFAR10.
+
+| Teacher: baseline | Student: baseline | Normal KD (T→S) | Re-KD (S→T) |
| ResNet18: 95.12 | Plain CNN: 87.14 | 87.67±0.17 (+0.53) | 95.33±0.12 (+0.21) |
| MobileNetV2: 90.98 | 91.69±0.14 (+0.71) | 95.71±0.11 (+0.59) |
| MobileNetV2: 90.98 | Plain CNN: 87.14 | 87.45±0.18 (+0.31) | 91.81±0.23 (+0.92) |
| ResNeXt29: 95.76 | ResNet18: 95.12 | 95.80±0.13 (+0.68) | 96.49±0.15 (+0.73) |
+
+Table 3. Re-KD experiment results (accuracy, in %) on Tiny-ImageNet.
+
+| Teacher: baseline | Student: baseline | Normal KD (T→S) | Re-KD (S→T) |
| ResNet18: 63.44 | MobileNetV2: 55.06 | 56.70 (+1.64) | 64.12 (+0.68) |
| ShuffleNetV2: 60.51 | 61.19 (+0.68) | 64.35 (+0.91) |
| ResNet50: 67.47 | MobileNetV2: 55.06 | 56.02 (+0.96) | 67.68 (+0.21) |
| ShuffleNetV2: 60.51 | 60.79 (+0.28) | 67.62 (+0.15) |
| ResNet18: 63.44 | 64.23 (+0.79) | 67.89 (+0.42) |
+
+Table 4. De-KD accuracy (in %) on two datasets. Pt-Teacher is "Poorly-trained Teacher". Refer to the "Normal KD" in Tabs. 1 to 3 for the accuracy of students taught by "fully-trained teacher".
+
+| Dataset | Pt-Teacher: baseline | Student: baseline | De-KD |
| CIFAR100 | ResNet18: 15.48 | MobileNetV2: 68.38 | 70.65±0.35 (+2.27) |
| ShuffleNetV2: 70.34 | 71.82±0.11 (+1.48) |
| ResNet50: 45.82 | MobileNetV2: 68.38 | 71.45±0.23 (+3.09) |
| ShuffleNetV2: 70.34 | 72.11±0.09 (+1.77) |
| ResNet18: 75.87 | 77.23±0.11 (+1.23) |
| ResNeXt29: 51.94 | MobileNetV2: 68.38 | 71.52±0.27 (+3.14) |
| ShuffleNetV2:70.34 | 72.26±0.36 (+1.92) |
| ResNet18: 75.87 | 77.28±0.17 (+1.41) |
| Tiny-ImageNet | ResNet18: 9.41 | MobileNetV2: 55.06 | 56.22 (+1.16) |
| ShuffleNetV2: 60.51 | 60.66 (+0.15) |
| ResNet50: 31.01 | MobileNetV2:55.06 | 56.02 (+0.96) |
| ShuffleNetV2: 60.51 | 61.09 (+0.58) |
+
+truth distribution over the labels is $q(k|x)$ . We write $p(k|x)$ as $p(k)$ and $q(k|x)$ as $q(k)$ for simplicity. The model $S$ can be trained by minimizing the cross-entropy loss: $H(q,p) = -\sum_{k=1}^{K} q(k)\log(p(k))$ . For a single ground-truth label $y$ , the $q(y|x) = 1$ and $q(k|x) = 0$ for all $k \neq y$ .
+
+In LSR, it minimizes the cross-entropy between modified label distribution $q^{\prime}(k)$ and the network output $p(k)$ , where
+
+$q^{\prime}(k)$ is the smoothed label distribution formulated as
+
+$$
+q ^ {\prime} (k) = (1 - \alpha) q (k) + \alpha u (k), \tag {1}
+$$
+
+which is a mixture of $q(k)$ and a fixed distribution $u(k)$ , with weight $\alpha$ . Usually, the $u(k)$ is uniform distribution as $u(k) = 1 / K$ . The cross-entropy loss $H(q', p)$ defined over the smoothed labels is
+
+
+(a) ResNet18
+
+
+(b) ResNeXt29
+Figure 2. MobileNetV2 taught by ResNet18 and ResNeXt29 with different accuracy on CIFAR100. MobileNetV2 is enhanced by different poorly-trained teachers compared with baseline (the red line). The final point of two blue lines is the result taught by "fully-trained teacher".
+
+$$
+\begin{array}{l} H \left(q ^ {\prime}, p\right) = - \sum_ {k = 1} ^ {K} q ^ {\prime} (k) \log p (k) = (1 - \alpha) H (q, p) + \alpha H (u, p) \\ = (1 - \alpha) H (q, p) + \alpha \left(D _ {K L} (u, p) + H (u)\right), \tag {2} \\ \end{array}
+$$
+
+where $D_{KL}$ is the Kullback-Leibler divergence (KL divergence) and $H(u)$ denotes the entropy of $u$ and is a constant for the fixed uniform distribution $u(k)$ . Thus, the loss function of label smoothing to model $S$ can be written as
+
+$$
+\mathcal {L} _ {L S} = (1 - \alpha) H (q, p) + \alpha D _ {K L} (u, p). \tag {3}
+$$
+
+For knowledge distillation, the teacher-student learning mechanism is applied to improve the performance of the student. We assume the student is the model $S$ with output prediction $p(k)$ , and the output prediction of the teacher network is $p_{\tau}^{t}(k) = \text{softmax}(z_{k}^{t}) = \frac{\exp(z_{k}^{t} / \tau)}{\sum_{i=1}^{K} \exp(z_{i}^{t} / \tau)}$ , where $z^{t}$ is the output logits of the teacher network and $\tau$ is the temperature to soften $p^{t}(k)$ (written as $p_{\tau}^{t}(k)$ after softened). The idea behind knowledge distillation is to let the student (the model $S$ ) mimic the teacher by minimizing the cross-entropy loss and KL divergence between the predictions of student and teacher as
+
+$$
+\mathcal {L} _ {K D} = (1 - \alpha) H (q, p) + \alpha D _ {K L} \left(p _ {\tau} ^ {t}, p _ {\tau}\right). \tag {4}
+$$
+
+Comparing Eq. (3) and Eq. (4), we find the two loss functions have a similar form. The only difference is that the $p_{\tau}^{t}(k)$ in $D_{KL}(p_{\tau}^{t}, p_{\tau})$ is a distribution from a teacher model and $u(k)$ in $D_{KL}(u, p)$ is the pre-defined uniform distribution. From this view, we can consider KD as a special case of LSR where the smoothing distribution is learned but not pre-defined. On the other hand, if we view the regularization term $D_{KL}(u, p)$ as a virtual teacher model of knowledge distillation, this teacher model will give a uniform probability to all classes, meaning it has a random accuracy (1% accuracy for CIFAR100, 0.1% accuracy for ImageNet).
+
+Since $D_{KL}(p_{\tau}^{t}, p_{\tau}) = H(p_{\tau}^{t}, p_{\tau}) - H(p_{\tau}^{t})$ , where the entropy $H(p_{\tau}^{t})$ is constant for a fixed teacher model, we
+
+can reformulate Eq. (4) to
+
+$$
+\begin{array}{l} L _ {K D} = (1 - \alpha) H (q, p) + \alpha \left(D _ {K L} \left(p _ {\tau} ^ {t}, p _ {\tau}\right) + H \left(p _ {\tau} ^ {t}\right)\right) \\ = (1 - \alpha) H (q, p) + \alpha H \left(p _ {\tau} ^ {t}, p _ {\tau}\right). \tag {5} \\ \end{array}
+$$
+
+If we set the temperature $\tau = 1$ , we have $L_{KD} = H(\tilde{q}^t,p)$ where $\tilde{q}^t$ is
+
+$$
+\tilde {q} ^ {t} (k) = (1 - \alpha) q (k) + \alpha p ^ {t} (k). \tag {6}
+$$
+
+If we compare Eq. (6) with Eq. (1), it is more clearly seen that KD is a special case of LSR. Moreover, the distribution $p^t(k)$ is a learned distribution (from a trained teacher) instead of a uniform distribution $u(k)$ . We visualize the output probability $p^t(k)$ of a teacher and compare it with label smoothing in Supplementary Material, and find with higher temperature $\tau$ , the $p^t(k)$ is more similar to the uniform distribution $u(k)$ of label smoothing.
+
+Based on the comparison of the two loss functions, we summarize the relationships between knowledge distillation and label smoothing regularization as follows:
+
+- Knowledge distillation is a learned label smoothing regularization, which has a similar function with the latter, i.e. regularizing the classifier layer of the model.
+- Label smoothing is an ad-hoc knowledge distillation, which can be revisited as a teacher model with random accuracy and temperature $\tau = 1$ .
+- With higher temperature, the distribution of teacher's soft targets in knowledge distillation is more similar to the uniform distribution of label smoothing.
+
+Therefore, the experiment results of Re-KD and De-KD can be explained as the soft targets of the model in high temperature are closer to a uniform distribution of label smoothing, where the learned soft targets can provide model regularization for the teacher model. That is why a student can enhance the teacher and a poorly-trained teacher can still improve the student model.
+
+# 4. Teacher-free Knowledge Distillation
+
+As we above analyzed, the "dark knowledge" in the teacher model is more of a regularization term than the similarity information between categories. Intuitively, we consider replacing the output distribution of the teacher model with a simple one. We therefore propose a novel Teacher-free Knowledge Distillation (Tf-KD) framework with two implementations. Tf-KD is especially applicable to cases where a stronger teacher model is not available, or only limited computation resources are provided.
+
+The first Tf-KD method is self-training knowledge distillation, denoted as $\mathrm{Tf - KD}_{\text{self}}$ . As aforementioned, the teacher can be taught by a student and a poorly-trained teacher can also enhance the student. Hence when a stronger teacher model is not available, we propose to deploy "self-training". It should be noted that the teacher in KD always means a stronger model. We name self-training as a teacher-free method because the model is not a teacher with stronger learning capacity than itself. Our $\mathrm{Tf - KD}_{\text{self}}$ is similar to Born-again networks [4], but there are two differences. Our motivation (self-training/self-regularization) is different from Born-again networks; and our method use soft targets of model self as regularization, while Born-again networks utilize an ensemble of student models to train itself iteratively. Specifically, we first train the student model in the normal way to obtain a pre-trained model, which is then used to provide soft label to train itself as in Eq. (4). Formally, given a model $S$ , we denote its pretrained model as $S^p$ ; then we try to minimize the KL divergence of the logits between $S$ and $S^p$ by $\mathrm{Tf - KD}_{\text{self}}$ . The loss function of $\mathrm{Tf - KD}_{\text{self}}$ to train model $S$ is
+
+$$
+L _ {s e l f} = (1 - \alpha) H (q, p) + \alpha D _ {K L} \left(p _ {\tau} ^ {t}, p _ {\tau}\right), \tag {7}
+$$
+
+where $p, p_{\tau}^{t}$ are the output probability of $S$ and $S^p$ respectively, $\tau$ is the temperature and $\alpha$ is the weight.
+
+The second implementation of our Tf-KD method is to manually design a teacher with $100\%$ accuracy. In Sec. 3, we reveal LSR is a virtual teacher model with random accuracy. So, if we design a teacher with higher accuracy, we can assume it would bring more improvement to the student. We propose to combine KD and LSR to build a simple teacher model which will output distribution for classes as the following:
+
+$$
+p ^ {d} (k) = \left\{ \begin{array}{l l} a & \text {i f} k = c, \\ (1 - a) / (K - 1) & \text {i f} k \neq c, \end{array} \right. \tag {8}
+$$
+
+where $K$ is the total number of classes, $c$ is the correct label and $a$ is the correct probability for the correct class. We always set $a \geq 0.9$ , so the probability of a correct class is much higher than that of an incorrect one, and the manually-designed teacher model has $100\%$ accuracy for any dataset.
+
+
+Figure 3. Distribution of manually designed teacher (softened by $\tau = 20$ ) on 10-class dataset. C6 is the correct label. As a comparison, the orange bar is the uniform distribution of LSR.
+
+We name this method as Teacher-free KD by manually-designed regularization, denoted as $\mathrm{Tf - KD}_{reg}$ . The loss function is
+
+$$
+L _ {r e g} = (1 - \alpha) H (q, p) + \alpha D _ {K L} (p _ {\tau} ^ {d}, p _ {\tau}), \qquad (9)
+$$
+
+where $\tau$ is the temperature to soften the manually-designed distribution $p^d$ (as $p_{\tau}^{d}$ after softening). We set a high temperature $\tau \geq 20$ to make this virtual teacher output a soft probability, in which way it gains the smoothing property as LSR. We visualize the distribution of the manually designed teacher in Fig. 3. As Fig. 3 shows, this manually designed teacher model outputs soft targets with $100\%$ classification accuracy, and also has the smoothing property of label smoothing. But the $\mathrm{Tf - KD}_{reg}$ is not an over-parameterized version of LSR because the temperature $\tau \gg 1$ , thus Eq. 9 will not be equal to Eq. 3 when we adjust the parameters $\alpha$ , $a$ or $u(k)$ .
+
+The two Teacher-free methods, $\mathrm{Tf - KD_{self}}$ and $\mathrm{Tf - KD_{reg}}$ , are very simple yet effective, as validated via extensive experiments in the next section.
+
+# 5. Experiments on Tf-KD
+
+In this section, we conduct experiments to evaluate Tf-KD $_{self}$ and Tf-KD $_{reg}$ on three datasets for image classification: CIFAR100, Tiny-ImageNet and ImageNet. For fair comparisons, all experiments are conducted with the same setting.
+
+# 5.1. Experiments for Self-training
+
+For our $\mathrm{Tf - KD}_{\mathrm{self}}$ and Normal KD, the hyperparameters (temperature $\tau$ and $\alpha$ ) are obtained by grid search from 70 epochs training (200 epochs), the values of hyper-parameters are given in Supplementary Material.
+
+CIFAR100. On CIFAR100, we use baseline models including MobileNetV2, ShuffleNetV2, GoogLeNet, ResNet18, DenseNet121 and ResNeXt29(8×64d). The baselines are trained for 200 epochs, with batch size 128. The initial learning rate is 0.1 and then divided by 5 at the
+
+Table 5. Accuracy improvement comparison (in %) on CIFAR100 (T: Teacher, R: ResNet, RX: ResNeXt, D: DenseNet).
+
+| Model | Baseline | Tf-KDself | Normal KD [T] |
| MobileNetV2 | 68.38 | 70.96 (+2.58) | +2.67 [R18] |
| ShuffleNetV2 | 70.34 | 72.23 (+1.89) | +1.71 [R18] |
| ResNet18 | 75.87 | 77.10 (+1.23) | +1.19 [R50] |
| GoogLeNet | 78.72 | 80.17 (+1.45) | +1.39 [RX29] |
| DenseNet121 | 79.04 | 80.26 (+1.22) | +1.15 [RX29] |
| ResNeXt29 | 81.03 | 82.08 (+1.05) | +1.12 [RX101] |
+
+60th, 120th, 160th epoch. We use SGD optimizer with the momentum of 0.9, and weight decay is set to 5e-4.
+
+Tab. 5 shows the test accuracy of the six models. It can be seen that our $\mathrm{Tf - KD}_{\text{self}}$ consistently outperforms the baselines. For example, as a powerful model with 34.52M parameters, ResNeXt29 improves itself by $1.05\%$ with self-regularization. Even when compared to Normal KD with a superior teacher in Tab. 5 (4th column), our method achieves comparable performance (experiment settings for Tf-KD and Normal KD are the same and hyper-parameters are searched for both $\mathrm{Tf - KD}_{\text{self}}$ and Normal KD). For example, with ResNet50 to teach ReseNet18, the student has a $1.19\%$ improvement, but our method achieves $1.23\%$ improvement without using any stronger teacher model. We also obtain similar results for MobileNetV2 by $\mathrm{Tf - KD}_{\text{self}}$ in Fig. 4.
+
+
+Figure 4. MobileNetV2 obtains similar improvement by self-regularization or taught by ResNet18.
+
+Tiny-ImageNet. On Tiny-ImageNet, we use baseline models including MobileNetV2, ShuffleNetV2, ResNet50, DenseNet121. They are trained for 200 epochs with batch size $bn = 128$ for MobileNetV2, ShuffleNetV2 and $bn = 64$ for ResNet50, DenseNet121. The initial learning rate is $\eta = 0.1 * \frac{bn}{128}$ and then divided by 10 at the 60th, 120th, 160th epoch. We use SGD optimizer with momentum of 0.9, and weight decay is set to 5e-4. Tab. 6 shows the results of Tf-KD $_{self}$ on Tiny-ImageNet. It can be seen that Tf-KD $_{self}$ consistently improves the baseline models and achieves comparable improvement with Normal KD.
+
+ImageNet. ImageNet-2012 is one of the largest datasets for object classification, with over 1.3m hand-annotated images. The baseline models we use on this dataset include
+
+Table 6. Tf-KD ${}_{\text{self }}$ experiment results on Tiny-ImageNet (in %).
+
+| Model | Baseline | Tf-KDself | Normal KD [T] |
| MobileNetV2 | 55.06 | 56.77 (+1.71) | +1.64 [R18] |
| ShuffleNetV2 | 60.51 | 61.36 (+0.85) | +0.68 [R18] |
| ResNet50 | 67.47 | 68.18 (+0.71) | +0.76 [D121] |
| DenseNet121 | 68.15 | 68.29 (+0.14) | +0.16 [RX29] |
+
+ResNet18, ResNet50, DenseNet121, RexNeXt101 (32x8d), and we adopt official implementation of Pytorch to train them. We set batch size $bn = 512$ for ResNet18, ResNet50, DenseNet121, and $bn = 256$ for RexNeXt101. Following common experiment settings [5], the initial learning rate is $\eta = 0.1 * \frac{bn}{256}$ which is then divided by 10 at the 30th, 60th, 80th epoch in total 90 epochs. We use SGD optimizer with momentum of 0.9, and weight decay is 1e-4. Results are reported in Tab. 7. We can see that the self-training can further improve the baseline performance on ImageNet-2012. As a comparison, we also use DenseNet121 to teach ResNet18 on ImageNet, and ResNet18 obtains $0.56\%$ improvement, which is comparable with our Tf-KDself (Tab. 8).
+
+Table 7. Tf-KD $_{self}$ experiment results on ImageNet (Top1 accuracy, in%).
+
+| Model | Baseline | Tf-KDself |
| ResNet18 | 69.84 | 70.42 (+0.58) |
| ResNet50 | 75.77 | 76.41 (+0.64) |
| DenseNet121 | 75.28 | 75.72 (+0.44) |
| ResNeXt101 | 79.28 | 79.56 (+0.28) |
+
+Table 8. Comparison between Tf-KD ${}_{\text{self }}$ and Normal KD on ImageNet (Top1 accuracy, in %).
+
+| Model | Baseline | Tf-KDself | Normal KD [T] |
| ResNet18 | 69.84 | 70.42 (+0.58) | 70.40 (+0.56) [D121] |
+
+# 5.2. Experiments for Manually-designed Regularization
+
+For all experiments of $\mathrm{Tf - KD}_{reg}$ , we adopt the same implementation settings with $\mathrm{Tf - KD}_{\text{self}}$ , except for using a virtual output distribution as a regularization term (Eq. (9)). For fair comparisons, experiment settings for Normal KD and $\mathrm{Tf - KD}_{reg}$ are the same. See Supplementary Material for hyper-parameters of $\mathrm{Tf - KD}_{reg}$ .
+
+CIFAR100 and Tiny-ImageNet. For $\mathrm{Tf - KD_{reg}}$ experiments on CIFAR100 and Tiny-ImageNet, we set the probability for correct classes as $a = 0.99$ (Eq. (8)). The temperature $\tau$ and $\alpha$ in Eq. (9) are different for different baseline models (see Supplementary Material). From Tab. 9 and Tab. 10, we can observe with no teacher used and just a regularization term added, $\mathrm{Tf - KD_{reg}}$ achieves comparable performance with Normal KD on both CIFAR100 and Tiny-ImageNet.
+
+ImageNet. For the $\mathrm{Tf - KD}_{reg}$ on ImageNet, we adopt temperature $\tau = 20$ as normal knowledge distillation, and
+
+Table 9. Tf-KDreg achieves comparable results with Normal KD on CIFAR100.
+
+| Model | Baseline | Tf-KDreg | Normal KD [Teacher] | + LSR |
| MobileNetV2 | 68.38 | 70.88 (+2.50) | 71.05 (+2.67) [ResNet18] | 69.32 (+0.94) |
| ShuffleNetV2 | 70.34 | 72.09 (+1.75) | 72.05 (+1.71) [ResNet18] | 70.83 (+0.49) |
| ResNet18 | 75.87 | 77.36 (+1.49) | 77.19 (+1.32) [ResNet50] | 77.26 (+1.39) |
| GoogLeNet | 78.15 | 79.22 (+1.07) | 78.84 (+0.99) [ResNeXt29] | 79.07 (+0.92) |
+
+Table 10. Tf- $\mathrm{KD}_{reg}$ experiment results on Tiny-ImageNet.
+
+| Model | Baseline | Tf-KDreg | Normal KD [Teacher] | + LSR |
| MobileNetV2 | 55.06 | 56.47 (+1.41) | 56.53 (+1.47) [ResNet18] | 56.24 (+1.18) |
| ShuffleNetV2 | 60.51 | 60.93 (+0.42) | 61.19 (+0.68) [ResNet18] | 60.66 (+0.11) |
| ResNet50 | 67.47 | 67.92 (+0.45) | 68.15 (+0.68) [ResNeXt29] | 67.63 (+0.16) |
| DenseNet121 | 68.15 | 68.37 (+0.18) | 68.44 (+0.26) [ResNeXt29] | 68.19 (+0.04) |
+
+$\alpha = 0.1$ as label smoothing regularization. The probability for correct classes in the manually-designed teacher is $a = 0.99$ (Eq. (9)). We test our $\mathrm{Tf - KD_{reg}}$ with four baseline models: ResNet18, ResNet50, DenseNet121 and ResNeXt101 (32x8d). As a regularization term, the manually designed teacher achieves consistent improvement compared with baselines. For example, the proposed Tf $\mathrm{KD}_{reg}$ improves the top1 accuracy of ResNet50 by $0.65\%$ on ImageNet-2012 (Tab. 11). Even for a huge single model ResNeXt101 (32x8d) with 88.79M parameters, our method achieves $0.48\%$ improvement by using the manually designed teacher.
+
+Table 11. Test accuracy improvement (in %) on ImageNet.
+
+| Model | Baseline | +Tf-KDreg | + LSR |
| ResNet18 | 69.84 | 70.24 (+0.40) | 70.02 (+0.18) |
| ResNet50 | 75.77 | 76.42 (+0.65) | 76.38 (+0.51) |
| DenseNet121 | 75.28 | 75.62 (+0.34) | 75.24 (-0.04) |
| ResNeXt101 | 79.28 | 79.76 (+0.48) | 79.67 (+0.39) |
+
+Comparing our two methods $\mathrm{Tf - KD_{self}}$ and $\mathrm{Tf - KD_{reg}}$ , we observe that $\mathrm{Tf - KD_{self}}$ works better in small dataset (CIFAR100) while $\mathrm{Tf - KD_{reg}}$ performs slightly better in large dataset (ImageNet).
+
+Comparison with LSR The $\mathrm{Tf - KD_{reg}}$ is motivated by LSR, which can be seen as a modification of LSR. This modification significantly improves the performance of neuron networks without extra computation cost. Same as LSR, $\mathrm{Tf - KD_{reg}}$ can serve as a generic regularization method to normally train neural networks. We compare our $\mathrm{Tf - KD_{reg}}$ with label smoothing on CIFAR100, TinyImageNet and ImageNet. For fair comparisons, experiment settings for $\mathrm{Tf - KD_{reg}}$ and LSR are the same. The results are shown in Tab. 9, 10 and 11. It can be seen that $\mathrm{Tf - KD_{reg}}$ consistently outperforms LSR. Additionally, the formulation of $\mathrm{KDR}_{man}$ is similar to LSR, but it is not an overparameterized version of label smoothing. We give detailed comparison between $\mathrm{Tf - KD_{reg}}$ and LSR to show the difference in Supplementary Material.
+
+# 6. Related Work
+
+Knowledge Distillation Since [7] proposed knowledge distillation based on prior work [2], KD has been widely
+
+adopted or modified [14, 19, 20, 4, 1, 11, 17]. Different from existing works, our work challenges the common belief of knowledge distillation based on our designed exploratory experiments. A related work is deep mutual learning [21], which proposes to let an ensemble of student models to learn with each other by minimizing the KL Divergence of predictions. Comparatively, our work reveals the relationship between KD and label smoothing, and our proposed Tf-KD can serve as a general method for neural network training. Another related work is Born-again networks [4], which use similar method as $\mathrm{Tf - KD}_{\text{self}}$ . The difference is that Born-again networks utilize an ensemble of students to train itself in the final step.
+
+Label Smoothing Szegedy et al. [16] proposed LSR to replace the "hard labels" with smoothed labels, boosting performance of many tasks like image classification, language translation and speech recognition [13]. Recently, [12] empirically showed label smoothing can also help improve model calibration. In our work, we adopt label smoothing regularization to understand the regularization function of knowledge distillation.
+
+# 7. Conclusion
+
+In this work, we find through experiments and analyses that the "dark knowledge" of a teacher model is more of a regularization term than similarity information of categories. Based on the relationship between KD and LSR, we propose Teacher-free KD. Experiment results show our Tf-KD can achieve comparable results with Normal KD in image classification. Our work also suggests that, when it is hard to find a stronger teacher for a powerful model or computation resource is limited to train teacher models, the targeted model can still get enhanced by self-training or a manually-designed regularization term.
+
+Acknowledgement Jiashi Feng was partially supported by AI.SG R-263-000-D97-490, NUS ECRA R-263-000-C87-133 and MOE Tier-II R-263-000-D17-112. Besides, we thank Dr.Jianan Li, Mr.Daquan Zhou and Mr.Yujun Shi for discussion during this work.
+
+# References
+
+[1] R. Anil, G. Pereyra, A. Passos, R. Ormandi, G. E. Dahl, and G. E. Hinton. Large scale distributed neural network training through online distillation. arXiv preprint arXiv:1804.03235, 2018.
+[2] J. Ba and R. Caruana. Do deep nets really need to be deep? In Advances in neural information processing systems, pages 2654-2662, 2014.
+[3] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255. IEEE, 2009.
+[4] T. Furlanello, Z. C. Lipton, M. Tschannen, L. Itti, and A. Anandkumar. Born again neural networks. arXiv preprint arXiv:1805.04770, 2018.
+[5] P. Goyal, P. Dollár, R. Girshick, P. Noordhuis, L. Wesolowski, A. Kyrola, A. Tulloch, Y. Jia, and K. He. Accurate, large minibatch sgd: TrainingImagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
+[6] 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.
+[7] G. Hinton, O. Vinyals, and J. Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
+[8] G. Huang, Z. Liu, L. Van Der Maaten, and K. Q. Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700-4708, 2017.
+[9] A. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
+[10] N. Ma, X. Zhang, H.-T. Zheng, and J. Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Proceedings of the European Conference on Computer Vision (ECCV), pages 116-131, 2018.
+[11] S.-I. Mirzadeh, M. Farajtabar, A. Li, and H. Ghasemzadeh. Improved knowledge distillation via teacher assistant: Bridging the gap between student and teacher. arXiv preprint arXiv:1902.03393, 2019.
+[12] R. Müller, S. Kornblith, and G. Hinton. When does label smoothing help? arXiv preprint arXiv:1906.02629, 2019.
+[13] G. Pereyra, G. Tucker, J. Chorowski, L. Kaiser, and G. Hinton. Regularizing neural networks by penalizing confident output distributions. arXiv preprint arXiv:1701.06548, 2017.
+[14] A. Romero, N. Ballas, S. E. Kahou, A. Chassang, C. Gatta, and Y. Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
+[15] M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen. Mobilenetv2: Inverted residuals and linear bottle-necks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4510-4520, 2018.
+[16] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818-2826, 2016.
+[17] T. Wang, L. Yuan, X. Zhang, and J. Feng. Distilling object detectors with fine-grained feature imitation. In The
+
+IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
+[18] S. Xie, R. Girshick, P. Dollar, Z. Tu, and K. He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017.
+[19] J. Yim, D. Joo, J. Bae, and J. Kim. A gift from knowledge distillation: Fast optimization, network minimization and transfer learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4133-4141, 2017.
+[20] R. Yu, A. Li, V. I. Morariu, and L. S. Davis. Visual relationship detection with internal and external linguistic knowledge distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1974-1982, 2017.
+[21] Y. Zhang, T. Xiang, T. M. Hospedales, and H. Lu. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4320-4328, 2018.
\ No newline at end of file
diff --git a/revisitingknowledgedistillationvialabelsmoothingregularization/images.zip b/revisitingknowledgedistillationvialabelsmoothingregularization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9e9facc20d633440eec09d65295d228cb86b9e22
--- /dev/null
+++ b/revisitingknowledgedistillationvialabelsmoothingregularization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1201bc87c6b41759cd845aba296446d6dd5548c4f95e209e2891e7a60cd4d1ec
+size 611969
diff --git a/revisitingknowledgedistillationvialabelsmoothingregularization/layout.json b/revisitingknowledgedistillationvialabelsmoothingregularization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..da004a63a54221fd12554f50e339ba23c1d04ddf
--- /dev/null
+++ b/revisitingknowledgedistillationvialabelsmoothingregularization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05d2ca86cae4527f01409b420bf0fb487a1e64ced848a177d79750de5668ca79
+size 422783
diff --git a/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_content_list.json b/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9cbd116ba0479e60104b8b1c90960115c405704e
--- /dev/null
+++ b/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4fc4b83804c8abffa851a067bea44371d54de2a59e99af5a7bf8563ca0505549
+size 71117
diff --git a/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_model.json b/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d050f378ed6aeb110699dbc182bbacdd3875d0ea
--- /dev/null
+++ b/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4705c164f24a7c3d833f37b05517fd5249bd175e21e2356626b531906a9de168
+size 86375
diff --git a/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_origin.pdf b/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f700de02906a06755148743fabcd5ff21254edfe
--- /dev/null
+++ b/revisitingposenormalizationforfinegrainedfewshotrecognition/b75f6653-a181-4cb4-abff-82bfd3ae15a4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:246a81b722cc14f0db0a02347d15c14a59c044134714246a242e12d18c13fdcd
+size 976857
diff --git a/revisitingposenormalizationforfinegrainedfewshotrecognition/full.md b/revisitingposenormalizationforfinegrainedfewshotrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1734ebbc22c4089c888e10eb47035efe27de8e84
--- /dev/null
+++ b/revisitingposenormalizationforfinegrainedfewshotrecognition/full.md
@@ -0,0 +1,285 @@
+# Revisiting Pose-Normalization for Fine-Grained Few-Shot Recognition
+
+Luming Tang Davis Wertheimer Bharath Hariharan Cornell University
+
+{1t453,dww78,bh497}@cornell.edu
+
+# Abstract
+
+Few-shot, fine-grained classification requires a model to learn subtle, fine-grained distinctions between different classes (e.g., birds) based on a few images alone. This requires a remarkable degree of invariance to pose, articulation and background. A solution is to use pose-normalized representations: first localize semantic parts in each image, and then describe images by characterizing the appearance of each part. While such representations are out of favor for fully supervised classification, we show that they are extremely effective for few-shot fine-grained classification. With a minimal increase in model capacity, pose normalization improves accuracy between 10 and 20 percentage points for shallow and deep architectures, generalizes better to new domains, and is effective for multiple few-shot algorithms and network backbones. Code is available at https://github.com/Tsingularity/PoseNorm_Fewshot.
+
+# 1. Introduction
+
+The ability to generalize with minimal fine-tuning is a crucial property for learned neural models, not just to unseen data but also to unseen types of data. Consider the task shown in Figure 1. We are given just a single image (or a very small number) from a few bird species, and from this information alone we must learn to recognize them. Humans are known to be very good at this few-shot learning task [19], but machines struggle: in spite of dramatic progress in visual recognition and two years of focused research, performance on several few-shot benchmarks remains far below that of fully supervised approaches.
+
+This is a problem in practice, especially for fine-grained classification problems (such as that in Figure 1). In this setting, distinct classes can number in the hundreds, while the expertise and effort required to correctly label these classes can make annotation expensive. Together, this makes the collection of large labeled training sets for fine-grained classification difficult, sometimes prohibitively so. The ability of neural networks to handle fine-grained, few-shot learning
+
+can thus be crucial for real-world applications.
+
+What is the reason behind the large gap between machine and human performance on this task? An intuitive hypothesis is that humans use a much more stable feature representation, which is invariant to large spatial deformations. For example, in the bird classification task, we might characterize a bird image using the attributes of its various parts: the shape of the beak, the color of the wing, the presence or absence of a crown. Such a characterization is invariant not just to changes in the image background, but also to variation in camera pose and articulation, allowing us to effectively perceive similarities and differences across a wide range of bird species, and individual images of them.
+
+Such a featurization is "pose normalized", and was explored as a promising direction for fine-grained classification before the re-discovery of convolutional networks [32]. Researchers found, however, that end-to-end training with black-box architectures, and without pose normalization, led to great improvement in the standard benchmarks (albeit with consistent modifications, such as bilinear pooling [16]). Indeed, in recent years, winners on the annual fine-grained classification challenges [1] have mostly focused on these black-box architectures. The intuitive idea of pose normalization has fallen by the wayside.
+
+In contrast, we argue that the dominance of black-box architectures over pose-normalized representations is an artifact of the fully-supervised classification problem. In these settings, all classes to be distinguished are known a priori, and we have significant amounts of training data for each class. This reduces the need for pose and background invariance, since the training data will likely include a broad range of variation within each class. At the same time, leveraging category-specific biases in pose and background will likely be beneficial, since the representation need not generalize to new classes. These factors act in favor of black-box architectures with no built-in inductive biases. However, if we want the learnt model to adapt to new classes from limited data, as in few-shot learning, the intuitive invariance of pose normalization becomes more useful.
+
+In this paper, we revisit pose normalization for the task of few-shot, fine-grained classification, and demonstrate its
+
+
+Figure 1. Left: The fine-grained few-shot recognition task. Objects share the same part structure and differences between categories are subtle. Middle: Based on a simple pose estimator, a pose-normalized representation can capture semantic part information. Right: On both shallow and deep backbones, pose normalization increases few-shot learning performance significantly. A shallow architecture with our representation (4-layer ConvNet+Pose Normalization) even outperforms a much deeper blackbox network without it (ResNet18).
+
+
+
+
+
+usefulness in this setting. Pose normalization is implemented through an extremely simple modification to convolutional architectures, adding very few new parameters (in contrast to prior methods that increase network size by a factor of two or higher [34, 10]). Our method is orthogonal to the choice of few-shot learning technique and backbone neural architecture. We evaluate our approach on three different few-shot learning techniques, two differently-sized backbone architectures, and three fine-grained classification datasets of bird species and aircraft. We find that:
+
+1. Pose normalization provides significant gains across the board, in some cases providing a more than 20 point improvement in accuracy, while requiring no part annotations for novel classes.
+2. In all settings, pose normalization outperforms black-box modifications to the neural architecture, such as bilinear pooling.
+3. The advantages of pose normalization are apparent even when as little as only $5\%$ of the base class training data is annotated with pose.
+4. Pose normalization is effective for both shallow and deep network architectures. Shallow networks with pose normalization outperform deeper blackbox ones.
+
+The large performance gains we observe, along with the simplicity of the architecture itself, points to the power of pose normalization in fine-grained, few-shot classification.
+
+# 2. Related Work
+
+Fine-grained recognition is a classic problem in computer vision, and a recurring challenge [1]. While we focus on bird species classification [26], the presented ideas apply to other fine-grained tasks, such as identifying models of
+
+aircraft [17], cars [15], or any other problem where objects have a consistent set of parts. In the context of fine-grained recognition, Farrell et al. [6] proposed the idea of pose normalization: predicting the parts of the object and recording the appearance of each part as a descriptor. Many versions of the idea have since been explored, including varying the kind of parts [32, 10, 33], the part detector [31], and the combination of these ideas with neural networks [34]. The last of these is the most similar to our work. However, all of these approaches are concerned with fully supervised recognition, whereas here we look at few-shot recognition.
+
+Pose normalization has also served as inspiration for black-box models where the parts are unsupervised. Lin et al. [16] introduce bilinear pooling as a generalization of such normalization, and we compare to this idea in our work. Spatial Transformer Networks [14] instantiate unsupervised pose normalization explicitly and train it end-to-end. Other instantiations of this intuition have also been proposed [4, 11, 21]. However, these unsupervised approaches add significant complexity and computation, making it difficult to discern the benefits of pose-normalization alone. In contrast, we focus on a lightweight, straightforward, semantic approach to show that pose normalization, not added network power, is responsible for improved performance.
+
+Few-shot learning methods can be loosely organized into the following three groups: 1) Transfer learning baselines train standard classification networks on base classes, and then learn a new linear classifier for the novel classes on the frozen representation. Recent work has shown this to be competitive [3, 27, 18]. 2) Meta-learning techniques train a "learner": a function that maps small labeled training sets and test images to test predictions. Examples include ProtoNet [20], MatchingNet [25], RelationNet [22] and MAML [7]. These learners might sometimes include learnt data augmentation [28], which some methods train
+
+using pose annotations [5]. 3) Weight generation techniques generate classification weights for new categories [8, 9].
+
+Most few-shot learning methods use blackbox network architectures, which function well given enough labeled data, but may suffer in the highly constrained few-shot learning scenario. Wertheimer and Hariharan [29] revisit the bilinear pooling of Lin et al. [16] and find it to work well. They also introduce a simple, effective localization-normalized representation, but which is limited to coarse object bounding boxes instead of fine-grained parts. Zhu et al. [35] introduce a semantic-guided multi-attention module to help zero-shot learning, but is fully unsupervised. We compare to an unsupervised baseline in our experiments.
+
+Pose normalization increases invariance to common modes of variation. An alternative to increasing invariance is to use learnt data augmentation [12, 28, 5]. However, this typically requires large additional networks and significant computation. Instead, we focus on a lightweight approach. Note also that one of our baselines [8] already outperforms a recent augmentation method [28].
+
+In the following sections, we first overview few-shot recognition. We then show that pose-normalization of features can act as a plug-and-play network layer in a range of few-shot learning algorithms.
+
+# 3. Few-Shot Recognition
+
+The goal of few-shot learning is to build a learner that can produce an effective classifier given only a small labeled set of examples. In the classic few-shot setting, the learner is first provided a large labeled set (the representation set, $D_{\text{repre}}$ ) consisting of many labeled images from base classes $Y_{\text{base}}$ . The learner must set its parameters, and any hyper-parameters, using this data. It then encounters a disjoint set of novel classes $Y_{\text{novel}}$ from which it gets a small set of reference images $D_{\text{refer}}$ . The learner must then learn a classifier for the novel classes from this set.
+
+In most techniques, we can divide the learner into three modules: a feature-map extractor $f_{\theta}$ , a feature aggregator $g_{\phi}$ , and a learning algorithm $h_w$ .
+
+The feature map extractor $f_{\theta}$ is usually implemented as a deep convolutional neural network, with learnable parameters $\theta$ . For each input image $x$ , the network yields the corresponding feature map tensor $\mathbf{F} = f_{\theta}(x) \in \mathbb{R}^{C \times H \times W}$ , where $C, H, W$ denote respectively the channel, height, and width dimensions of the feature map.
+
+The feature aggregator $g_{\phi}$ is a transformation parameterized by $\phi$ , converting feature maps into global feature vectors: $\pmb{v} = g_{\phi}(\pmb{F}) \in \mathbb{R}^{d}$ , where $d$ is the latent dimensionality. Typically $g_{\phi}$ is a global average pooling module.
+
+The learning algorithm $h_w$ takes a dataset $S$ of training feature vectors and corresponding labels, and a test feature vector $v$ , and outputs a probability distribution over labels
+
+$\hat{p}$ for the latter: $\hat{p}(x) = h_w(v, S)$ . For our purposes we consider three representative methods:
+
+Transfer learning follows the standard network pretraining and fine-tuning procedure. $h_w$ is implemented by a simple linear classifier with a learned weight matrix and softmax activation. Functions $f_{\theta}, g_{\phi}$ are trained concurrently with $h_w$ , minimizing the standard cross-entropy loss over data in $D_{repre}$ . To adapt the model to novel classes, feature extractor parameters $\theta, \phi$ are frozen, and $h_w$ trains a new linear classifier on the novel classes in $D_{refer}$ .
+
+Prototypical network [20] is a representative meta-learning method that produces a prototype representation for each class by averaging the feature vectors within that class. $h_w$ is then a non-parametric classifier assigning class probabilities based on the distance between a datapoint's feature vector and each class prototype. Every training episode samples $N$ classes from the base categories $Y_{base}$ , and a small support set and query set of images from within each one. Support images form class prototypes, while N-way classification on the query set produces the loss, and corresponding update gradients to parameters $\theta, \phi$ .
+
+In Dynamic few-shot learning [8], $h_w$ is once again a linear (or cosine) classifier, but instead of being directly fine-tuned on $D_{\text{refer}}$ , the classifier is generated by a learnt weight generator $G$ . The training process consists of two stages. The first is standard classification training on $D_{\text{repre}}$ . During the second stage, the feature extractor parameters $\theta, \phi$ are frozen. To train the generator $G$ , the algorithm randomly picks several "fake" novel classes from $Y_{\text{base}}$ , and treats them as if they were truly novel, performing classification with the classifier weights generated by $G$ and minimizing the classification loss on simulated "test" examples from these classes.
+
+# 4. Pose-Normalized Feature Vectors
+
+Two intuitions motivate our proposed method. First, for fine-grained recognition, the difference in appearances between two classes tends to be extremely small. In the few-shot setting, it is even harder for an algorithm to capture these subtle differences, as only a few examples are available for reference. Using pose normalization to focus the feature representation on the most informative parts of each image should then benefit the learning process. Second, because fine-grained recognition involves similar kinds of objects, they are likely to share the same semantic structures. Thus it is highly probable that a pose estimator trained on base classes will generalize, even to unseen novel classes.
+
+We assume $M$ distinct parts. Part annotations are available for (some) base-class training samples in $D_{\text{repr}}$ , but not for novel classes. We format part annotations for each image $x$ as an $M \times H \times W$ location tensor $\boldsymbol{m}^*$ , where $H \times W$ is the spatial resolution of the feature map.
+
+We now present our method for extracting pose
+
+
+Figure 2. The pose normalization framework for training and inference. The pose estimator takes an intermediate output of the network backbone as input and generates pose heatmap predictions. The feature vector is calculated by applying each heatmap as an attention over the feature map. The final representation is the concatenation of these vectors. In this example, the number of parts $M = 2$ .
+
+
+
+normalized feature vectors. For this, the network must first estimate pose. We use an extremely small, two-layer convolutional network $q_{\phi}$ . This operates on a feature map tensor $\pmb{F}^{\prime} \in \mathbb{R}^{C^{\prime} \times H^{\prime} \times W^{\prime}}$ extracted from an intermediate layer of the feature map extractor $f_{\theta}$ . $q_{\phi}$ uses sigmoid activation in the final layer and produces a heatmap location prediction for all annotated parts $\pmb{m} = q_{\phi}(\pmb{F}^{\prime}) \in \mathbb{R}^{M \times H \times W}$ . We deliberately use a small $q_{\phi}$ and reuse computation in $f_{\theta}$ to minimize the effect the additional parameters might have on the final performance of the classifier. Improved performance should indicate that pose information is useful for fine-grained few-shot learning, not a larger network.
+
+Given the heatmap $\pmb{m}$ and feature map $\pmb{F}$ , we must construct a feature vector $\pmb{v}$ . Each channel in $\pmb{m}$ is applied as a spatial attention mask to the feature map, producing an attention-normalized feature vector. Concatenating these $M$ part description vectors produces the final representation vector for the image. Formally, denoting $\pmb{F}(h,w) \in \mathbb{R}^{C}$ as the feature vector for location $(h,w)$ in feature map $\pmb{F}$ , and $m_{i}(h,w) \in \mathbb{R}$ as the heatmap pixel value at position $(h,w)$ for the $i$ -th part category, $\pmb{v} \in \mathbb{R}^{CM}$ is calculated as:
+
+$$
+\boldsymbol {v} _ {i} = \frac {\sum_ {h , w} ^ {H , W} \boldsymbol {F} (h , w) \cdot m _ {i} (h , w)}{\epsilon + \sum_ {h , w} ^ {H , W} m _ {i} (h , w)} \tag {1}
+$$
+
+$$
+\boldsymbol {v} = \left[ \boldsymbol {v} _ {0}, \dots , \boldsymbol {v} _ {i}, \dots , \boldsymbol {v} _ {M} \right] \tag {2}
+$$
+
+where $\epsilon = 10^{-5}$ . The loss during training is the sum of the pixel-wise log loss between the ground truth part location heatmap $m^{*}$ and the predicted heatmap $m$ , and the original few-shot classification loss:
+
+$$
+\begin{array}{l} L _ {p o s e} = - \frac {1}{M H W} \sum_ {i, h, w} ^ {M, H, W} [ m _ {i} ^ {*} (h, w) \log m _ {i} (h, w) \\ \left. + \left(1 - m _ {i} ^ {*} (h, w)\right) \log \left(1 - m _ {i} (h, w)\right) \right] \tag {3} \\ \end{array}
+$$
+
+$$
+L _ {t o t a l} = L _ {f e w s h o t} + \alpha \cdot L _ {p o s e} \tag {4}
+$$
+
+where $\alpha$ is a balancing hyper-parameter. To facilitate learning in the classification branch, feature vectors for few-shot classification are initially produced from the ground truth part annotation heatmap $m^{*}$ instead of the predicted heatmap $m$ . Afterwards, the pose estimation network's parameters $\phi$ are frozen. In subsequent adaptation/fine-tuning and evaluation/inference stages on novel classes, feature vectors are calculated from the predicted heatmap $m$ . An overview of our approach is provided in figure 2.
+
+Note that while we assume a fixed set of consistent part labels during training, we do not require parts to consistently appear across all objects, nor must any particular object contain all the specified parts. Thus, our pose estimator should generalize broadly: any fine-grained classification of objects that depends on the appearance of various parts (e.g., cars, furniture, insects) is amenable to this approach.
+
+# 5. Experiments
+
+# 5.1. Datasets and implementation details
+
+We experiment with the CUB dataset [26] which consists of 11,788 images from 200 classes. It also includes 15 part annotations for each image, thus $M = 15$ . Following the evaluation setup in [29, 3], we randomly split the dataset into 100 base, 50 validation and 50 novel classes. Base category images form the representation set $D_{\text{repre}}^{CUB}$ . For each validation and novel class, we randomly sample $20\%$ of its images to form the reference set $D_{\text{refer}}^{CUB}$ . The remaining novel images form the query set $D_{\text{query}}^{CUB}$ , which is used for evaluating algorithms. Note that our models have access to part annotations only in base classes. No part annotation information is available for any image in the validation or novel classes, including both their reference and query sets.
+
+NABird evaluation: There are only 50 novel classes in CUB's evaluation set, which can potentially make evaluation noisy. The accuracy differences between few-shot learning algorithms also decrease significantly in the pres
+
+ence of domain shift [3]. Thus, in order to verify the robustness and generalization capacity of our proposed method, we also evaluate our CUB models on another, much larger bird dataset: NABird [23] (NA), which, after removing overlap with CUB, contains 418 classes and 35,733 images. As before, we randomly sample $20\%$ of images from each category to form the reference set $D_{refer}^{NA}$ . The remaining images form the query set $D_{query}^{NA}$ .
+
+Network backbone: For the feature map extractor $f_{\theta}$ , previous work [20, 29, 8] adopts a standard architecture: a 4-layer, 64-channel convolution network with batch normalization and ReLU. In this setting, the input image size is $84 \times 84$ and the output feature map is $64 \times 10 \times 10$ . Deeper backbones can significantly reduce the differences in performance between these methods [3], so in addition to the 4-layer network, we also train and evaluate a ResNet18 [13] backbone, with a few technical modifications that increase performance across all models. We change the stride of the last block's first convolution and downsampling layers from 2 to 1. The output size of the last block thus remains at $14 \times 14$ instead of $7 \times 7$ . We also add a $1 \times 1$ convolution with batch normalization to the last layer of the original ResNet18, which reduces the number of channels from 512 to 32. The input size of our modified ResNet18 is still $224 \times 224$ , but the output size becomes $32 \times 14 \times 14$ .
+
+Pose estimation module: The layers of the pose estimation network $q_{\phi}$ are composed as Conv-BN-ReLU-Conv, where Conv denotes $3 \times 3$ convolution. In the 4-layer ConvNet, $q_{\phi}$ takes as input the feature map after the second convolution. The number of input/output channels for the two convolution layers in $q_{\phi}$ are $64 / 30$ and $30 / M$ where $M$ is the number of part categories. In the ResNet18, $q_{\phi}$ takes the third block's feature map as input, and the corresponding convolution channel sizes are $256 / 64$ and $64 / M$ . It can be seen that the number of learnable parameters introduced by $q_{\phi}$ is small compared to the original backbone network.
+
+# 5.2. Baseline methods
+
+For the few-shot learning algorithm, we denote transfer learning, prototypical networks, and dynamic few-shot learning as transfer, proto, and dynamic, respectively. We compare our proposed pose normalization approach (PN) with the following feature aggregation methods, across all learning algorithms and network backbones:
+
+Average pooling is the most straightforward method, commonly adopted in previous work. All subsequent models use average pooling when a feature aggregator is not otherwise specified.
+
+We also present a baseline that trains this average-pooled feature extractor and classifier jointly with a localizer, with the latter discarded at test time. This Multi-Task model, denoted MT, examines whether pose estimation functions purely as a regularizer in few-shot training.
+
+Bilinear pooling (BP) [16] is an effective module for expanding the latent feature space and increasing expressive power in fine-grained visual classifiers. Recent work [29] found that BP can be adapted to prototypical networks, improving performance without increasing parameter count.
+
+Few-shot localization (FSL) [29] uses bounding box annotations in the representation and reference sets. The model learns to localize an object before classifying it, thus improving few-shot classification accuracy. Since this model's localizer is learnt in a prototypical way, it doesn't introduce any additional convolutional layers.
+
+Bounding box normalization (bbN) is a more direct comparison to bounding box based methods that does not require box annotations for novel classes. We use the PN model but set $M = 2$ , and train the localizer to separate images into foreground/background regions based on the ground truth bounding boxes for base class training data.
+
+Unsupervised pose normalization (uPN) is based on unsupervised localization [29], a competitive localization method where feature maps are partitioned into soft regions based on feature distance from a set of learned parameter vectors. Following the same core idea, we introduce $M = 15$ learned, category-agnostic pose vectors, and spatially partition the feature map based on relative feature distance to each vector at each location. We mean-pool over the resulting 15 soft regions, as if they were 15 predicted part locations, to produce a feature vector for the classifier. The pose vectors are learned parameters, trained end-to-end and jointly with the classifier architecture, requiring no part annotations or separate localization module.
+
+In addition, we include an oracle version of our model: Pose normalization with ground truth pose (PN gt).
+
+# 5.3. Few-shot recognition results
+
+We first train all models on $D_{\text{repre}}^{CUB}$ , using the validation set to select the best hyper-parameters and stopping point for each model. We then evaluate them on $D_{\text{query}}^{CUB}$ using the limited set of labeled novel class images in $D_{\text{refer}}^{CUB}$ . For the evaluation metric, we use the all-way evaluation [29, 12, 28] rather than the commonly adopted 5-way task. The algorithm is required to distinguish all novel classes simultaneously, a more challenging setup. For the number of reference images, we consider both the standard 1-shot/5-shot and the all-shot setting proposed by [29], i.e. utilizing all the labeled images for each novel category in $D_{\text{refer}}^{CUB}$ .
+
+For CUB, all-shot results are shown in table 1. For 1 and 5 shot settings, we plot the mean of 600 randomly generated test episodes in figures 3 and 4. The $95\%$ confidence intervals are all less than 0.6 percentage points. Using the above models trained on CUB, we then do the same evaluation on NA, using $D_{refer}^{NA}$ and $D_{query}^{NA}$ . The number of novel classes in NA is large (418), and the number of images per class is unbalanced. We therefore only report the all-way
+
+
+Figure 3. Accuracy comparison on CUB. All models use a ResNet18 prototypical network. Pose normalization dominates other methods under all settings.
+
+all-shot results in table 2, with both mean accuracy over all test samples and mean accuracy per class. We average over 8 trials for the proto, proto+uPN, and proto+PN models in each of the above mentioned settings. $95\%$ confidence intervals are all within 0.9 percentage points.
+
+From these experimental results, we conclude that:
+
+1. Pose normalization provides significant and consistent performance gains over the (average-pooled) baseline. Accuracy improves for both shallow and deep network backbones, for all three few-shot learning approaches, and for both evaluation datasets. Under the all-way, all-shot setting on CUB, the accuracy gain is consistently greater than 15 points for the 4-layer ConvNet, across all three learning algorithms, and reaches 20 points on ResNet18. Shallow networks with pose normalization can even outperform their deeper counterparts.
+2. In all settings, pose normalization outperforms other aggregation functions, including black-box modifications (bilinear pooling), techniques based on bounding box localization (FSL and bbN) and unsupervised pose normalization. It also outperforms multi-task training, indicating that normalization, rather than the additional auxiliary loss, is key.
+3. Pose information is more effective than coarse object location. In table 1, PN and bbN contribute similar quantities of new learnable parameters, but the fine-grained pose information in PN causes it to outperform bbN, which only focuses on a coarse bounding box. By comparing PN with PN-gt, we see that a better pose estimator could potentially contribute an even larger boost to performance.
+
+# 5.4. Impact of the number of pose annotations
+
+While part locations are often cheaper to obtain than fine-grained expert class labels (see the careful labelling
+
+| Model | 4-layer ConvNet | ResNet18 |
| transfer | 33.42 | 46.47 |
| transfer+PN | 49.96 | 57.53 |
| transfer+PN-gt | 56.40 | 58.54 |
| proto | 32.09 | 42.73 |
| proto+MT | 35.56 | 50.93 |
| proto+BP | 35.56 | 41.04 |
| proto+FSL | 39.60 | 47.43 |
| proto+bbN | 37.75 | 44.02 |
| proto+uPN | 46.24 | 53.18 |
| proto+PN | 49.56 | 63.44 |
| proto+PN-gt | 59.55 | 62.63 |
| dynamic | 35.77 | 43.27 |
| dynamic+PN | 54.17 | 60.19 |
| dynamic+PN-gt | 62.67 | 60.09 |
+
+Table 1. Few-shot classification results for different models on the CUB dataset. Models are organized by few-shot learning algorithm, then by feature representation method. Pose normalization gives a significant performance boost for all three few-shot learning algorithms, with both shallow and deep network backbones.
+
+| Model | 4-layer
+mean | ConvNet
+per-class | ResNet18 |
| mean | per-class |
| transfer | 12.63 | 11.24 | 20.22 | 17.54 |
| transfer+PN | 24.60 | 21.76 | 28.36 | 25.57 |
| proto | 8.73 | 8.37 | 13.33 | 12.55 |
| proto+MT | 10.59 | 10.10 | 16.41 | 15.42 |
| proto+BP | 10.47 | 9.83 | 15.09 | 14.04 |
| proto+FSL | 12.34 | 11.61 | 15.62 | 14.81 |
| proto+bbN | 10.57 | 10.00 | 13.05 | 12.32 |
| proto+uPN | 18.91 | 17.51 | 22.12 | 20.77 |
| proto+PN | 21.02 | 19.47 | 32.66 | 30.59 |
| dynamic | 12.13 | 11.26 | 14.82 | 13.44 |
| dynamic+PN | 26.17 | 24.07 | 30.10 | 27.86 |
+
+Table 2. Performance of CUB models on NA. The performance boost introduced by pose normalization is still significant in this new domain. Performance is consistent with CUB observations.
+
+
+Figure 4. Performance comparison for dynamic few-shot learning models on CUB. The accuracy boost from pose normalization is significant and consistent.
+
+pipeline of [23]), it could still be the case that high-quantity part annotations are difficult to collect. We therefore consider an ablation of our model, where a limited number of training images have part annotations. For the remaining images, $L_{\text{pose}}$ is not computed, and the predicted pose
+
+
+Figure 5. Few-shot test accuracy for pose normalization when part annotations are sparse. The performance drop is surprisingly small. Pose normalization outperforms bilinear pooling even when only $5\%$ of annotations are available during training.
+
+heatmap produces feature vectors for classifier training instead of the ground truth.
+
+We evaluate prototypical networks on CUB with both shallow and deep backbones, and vary the percentage of images with part annotation. Results are given in figure 5. Pose normalization is highly robust to annotation sparsity during training (less than 5 points fluctuation when above $30\%$ availability), and consistently outperforms BP even with as few as $5\%$ pose annotations available.
+
+# 5.5. Evaluation on FGVC-Aircraft
+
+We evaluate the generality of these conclusions on fine-grained aircraft classification [17] (FGVC-Aircraft), which contains 10,000 images spanning 100 aircraft models. Following the same ratio as CUB, we split the classes into 50 base, 25 validation and 25 novel. The reference/query split is as described in Section 5.1. Since this dataset doesn't contain any part annotation, we use an independent dataset OID-Aircraft [24] (OID) to jointly train our pose normalization module. OID contains 6,357 images, ignoring those shared with FGVC, and 5 part annotations per image (thus $M = 5$ ). OID contains no classification labels.
+
+Each training iteration samples an image batch from OID and FGVC. OID images are used to calculate $L_{\text{pose}}$ , while FGVC images use predicted pose heatmaps to get feature vectors. Results are shown in Table 3. Although the pose estimator is trained on disjoint images, it remains effective at boosting aircraft recognition performance. We conclude that pose normalization generalizes across fine-grained few-shot classification tasks. Extending this approach to non-fine-grained tasks or class-specific parts is not straightforward, but could be a valuable direction for future research.
+
+| Model | 4-layer ConvNet | ResNet18 |
| 1-shot | 5-shot | all-shot | 1-shot | 5-shot | all-shot |
| proto | 24.40 | 43.24 | 52.06 | 46.27 | 63.15 | 67.76 |
| proto+PN | 26.04 | 50.35 | 60.83 | 58.72 | 77.75 | 81.96 |
+
+Table 3. Few-shot results under all three evaluation settings on the FGVC-Aircraft dataset. Results averaged over five trials.
+
+# 6. Analysis
+
+# 6.1. Model interpretation
+
+Accuracy notwithstanding, we would like for pose-normalized representations to be human-interpretable, unlike prior black-box representations. To investigate what the model actually learns, we conduct two experiments to analyze the learnt pose normalized representation. Both use the proto+PN model with a ResNet18 backbone.
+
+Part importance: Every type of bird is likely to have a set of particularly distinguishable part attributes. To verify that our model learns this, we conduct the following test. For each class, we iterate over the parts and calculate the test accuracy when the corresponding part feature vector is removed from the representation. The magnitude of the resulting drop in accuracy can be construed as the importance of each part for this class as learned by the model. We visualize this learned importance for three species in figure 6 and compare it with species descriptions from a field guide. Our network scores largely conform to expert judgments.
+
+Nearest neighbors: Different birds might share the same part attribute; for example, the California Gull and the Ring-billed Gull have the same beak shape. Therefore in pose normalization, the beak vectors for these two birds should be close, as part vectors are designed to encode regional information in a class-agnostic way. To verify this, we find the top-5 images in the reference set with the closest part vectors to a given vector from a query image/part pair. Four random examples are given in figure 7. Generally, our assumption holds - the vector describing the given part in each query image does generalize to other species.
+
+# 6.2. Pose estimation
+
+Following prior work on evaluating pose estimation [30, 2] we calculate the normalized PCK (normalized using the diagonal of the bounding box) at different thresholds for both shallow and deep network backbones. Results are given in figure 8. We see that both estimates can give accurate results. While the deeper network backbone does produce a better estimate, this boost is also quite limited. We believe that a more sophisticated pose estimator could lead to better results on few-shot recognition.
+
+# 6.3. Unsupervised pose normalization
+
+We note that unsupervised pose normalization also performs well from a classification perspective (see table 1).
+
+
+Figure 6. Visualizing accuracy drop for selected bird species when removing individual part vectors (part importance). On the right are quoted descriptions from bird experts on how to recognize those species. The estimated part importance matches well to expert judgments.
+
+
+Figure 7. Images with the closest part vector to the query image, for a given part location. Images are labeled with a green box if it belongs to the same category as the query image. We see that part representations capture semantically meaningful attributes of the part location across classes.
+
+
+Figure 8. Pose estimation results for different network backbones.
+
+As shown in Figure 9, the deeper backbone with unsupervised pose normalization does produce localized keypoints, which might help classification. However, observe that the semantic meaning of these keypoints is not consistent
+
+
+Figure 9. Visualization of unsupervised heatmaps. Semantic content is highly inconsistent, and difficult to interpret meaningfully.
+
+across images (figure 9, top two rows). The prediction is also unstable, with different channels sometimes providing similar heatmaps (figure 9, bottom row). This inconsistency could help to explain why machine-discovered parts underperform hand-designed ones in fine-grained, few-shot classification.
+
+# 7. Conclusion
+
+We show that a simple, lightweight pose normalization module can lead to consistently large performance gains on fine-grained few-shot recognition without any part annotations at test time. Our results hold for shallow and deep network backbones, multiple few-shot learning algorithms, and multiple domains. In addition to significant accuracy improvements, we also show that pose-normalized representations are highly human-interpretable. We therefore highly recommend pose normalization as a general area for the fine-grained few-shot learning community to revisit.
+
+# Acknowledgements
+
+This work was partly supported by a DARPA LwLL grant.
+
+# References
+
+[1] https://sites.google.com/view/fgvc6/home.
+[2] Mykhaylo Andriluka, Leonid Pishchulin, Peter Gehler, and Bernt Schiele. 2d human pose estimation: New benchmark and state of the art analysis. In Proceedings of the IEEE Conference on computer Vision and Pattern Recognition, pages 3686-3693, 2014.
+[3] Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Wang, and Jia-Bin Huang. A closer look at few-shot classification. In International Conference on Learning Representations, 2019.
+[4] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 764-773, 2017.
+[5] Mandar Dixit, Roland Kwitt, Marc Niethammer, and Nuno Vasconcelos. Aga: Attribute-guided augmentation. In CVPR, 2017.
+[6] Ryan Farrell, Om Oza, Ning Zhang, Vlad I Morariu, Trevor Darrell, and Larry S Davis. Birdlets: Subordinate categorization using volumetric primitives and pose-normalized appearance. In 2011 International Conference on Computer Vision, pages 161-168. IEEE, 2011.
+[7] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1126-1135. JMLR.org, 2017.
+[8] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4367-4375, 2018.
+[9] Spyros Gidaris and Nikos Komodakis. Generating classification weights with cnn denoising autoencoders for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 21-30, 2019.
+[10] Pei Guo and Ryan Farrell. Aligned to the object, not to the image: A unified pose-aligned representation for fine-grained recognition. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1876-1885. IEEE, 2019.
+[11] Junwei Han, Xiwen Yao, Gong Cheng, Xiaoxu Feng, and Dong Xu. P-cnn: Part-based convolutional neural networks for fine-grained visual categorization. IEEE transactions on pattern analysis and machine intelligence, 2019.
+[12] Bharath Hariharan and Ross Girshick. Low-shot visual recognition by shrinking and hallucinating features. In Proceedings of the IEEE International Conference on Computer Vision, pages 3018-3027, 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] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in neural information processing systems, pages 2017-2025, 2015.
+
+[15] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13), Sydney, Australia, 2013.
+[16] Tsung-Yu Lin, Aruni RoyChowdhury, and Subhransu Maji. Bilinear cnn models for fine-grained visual recognition. In Proceedings of the IEEE international conference on computer vision, pages 1449-1457, 2015.
+[17] S. Maji, J. Kannala, E. Rahtu, M. Blaschko, and A. Vedaldi. Fine-grained visual classification of aircraft. Technical report, 2013.
+[18] Akihiro Nakamura and Tatsuya Harada. Revisiting fine-tuning for few-shot learning. arXiv preprint arXiv:1910.00216, 2019.
+[19] Lauren A Schmidt. Meaning and compositionality as statistical induction of categories and constraints. PhD thesis, Massachusetts Institute of Technology, 2009.
+[20] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pages 4077-4087, 2017.
+[21] Yifan Sun, Liang Zheng, Yali Li, Yi Yang, Qi Tian, and Shengjin Wang. Learning part-based convolutional features for person re-identification. IEEE transactions on pattern analysis and machine intelligence, 2019.
+[22] Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1199-1208, 2018.
+[23] Grant Van Horn, Steve Branson, Ryan Farrell, Scott Haber, Jessie Barry, Panos Ipeirotis, Pietro Perona, and Serge Belongie. Building a bird recognition app and large scale dataset with citizen scientists: The fine print in fine-grained dataset collection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 595-604, 2015.
+[24] A. Vedaldi, S. Mahendran, S. Tsogkas, S. Maji, B. Girshick, J. Kannala, E. Rahtu, I. Kokkinos, M. B. Blaschko, D. Weiss, B. Taskar, K. Simonyan, N. Saphra, and S. Mohamed. Understanding objects in detail with fine-grained attributes. In Proceedings of the IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2014.
+[25] 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.
+[26] 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.
+[27] Yan Wang, Wei-Lun Chao, Kilian Q Weinberger, and Laurens van der Maaten. Simpleshot: Revisiting nearest-neighbor classification for few-shot learning. arXiv preprint arXiv:1911.04623, 2019.
+[28] Yu-Xiong Wang, Ross Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7278-7286, 2018.
+
+[29] Davis Wertheimer and Bharath Hariharan. Few-shot learning with localization in realistic settings. In Computer Vision and Pattern Recognition (CVPR), 2019.
+[30] Yi Yang and Deva Ramanan. Articulated human detection with flexible mixtures of parts. IEEE transactions on pattern analysis and machine intelligence, 35(12):2878-2890, 2012.
+[31] Ning Zhang, Jeff Donahue, Ross Girshick, and Trevor Darrell. Part-based r-cnns for fine-grained category detection. In European conference on computer vision, pages 834-849. Springer, 2014.
+[32] Ning Zhang, Ryan Farrell, and Trever Darrell. Pose pooling kernels for sub-category recognition. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 3665-3672. IEEE, 2012.
+[33] Ning Zhang, Manohar Paluri, Marc'Aurelio Ranzato, Trevor Darrell, and Lubomir Bourdev. Panda: Pose aligned networks for deep attribute modeling. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1637-1644, 2014.
+[34] Ning Zhang, Evan Shelhamer, Yang Gao, and Trevor Darryll. Fine-grained pose prediction, normalization, and recognition. arXiv preprint arXiv:1511.07063, 2015.
+[35] Yizhe Zhu, Jianwen Xie, Zhiqiang Tang, Xi Peng, and Ahmed Elgammal. Learning where to look: Semantic-guided multi-attention localization for zero-shot learning. arXiv preprint arXiv:1903.00502, 2019.
\ No newline at end of file
diff --git a/revisitingposenormalizationforfinegrainedfewshotrecognition/images.zip b/revisitingposenormalizationforfinegrainedfewshotrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..438e499365bc6289462e7bd31071abd44aa20f47
--- /dev/null
+++ b/revisitingposenormalizationforfinegrainedfewshotrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2edaee44c906e5313fa1b09c8ebbf4ed92960842c72ed47a297056f1e0f8b3b0
+size 453155
diff --git a/revisitingposenormalizationforfinegrainedfewshotrecognition/layout.json b/revisitingposenormalizationforfinegrainedfewshotrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..cb6f9e0ff1e91d62ae4c5c3e81824e8aba50dc7f
--- /dev/null
+++ b/revisitingposenormalizationforfinegrainedfewshotrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:53fbd6af00dac31f82e6e3ca1b9bc5b933fd2ade7a0af610f711fe92f9d6d828
+size 373508
diff --git a/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_content_list.json b/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2554b9072465a7c2e9409a9b5f3c7fd91261127a
--- /dev/null
+++ b/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:61a4328f2376203be54d0ac494b6024850e99014ec6d3ef0a37712687d9c5b72
+size 85575
diff --git a/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_model.json b/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..38ebf88c6cbb135ba0acfd92e697677c9874065e
--- /dev/null
+++ b/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b540e05f322c8bc464e8fbf6d8710029e3ab151145756e21a58cd444fb07f6e
+size 109248
diff --git a/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_origin.pdf b/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..38b0adaf525d780f1dc7cbc7da2144bfbd61a594
--- /dev/null
+++ b/revisitingsaliencymetricsfarthestneighborareaundercurve/d5f4d1bd-1b96-4fa9-be93-923b03d6a240_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1b29ab0cc24764346b0e7827d1bfa2105696b4266d7cdb24d906d35ec4cb8dc
+size 2173067
diff --git a/revisitingsaliencymetricsfarthestneighborareaundercurve/full.md b/revisitingsaliencymetricsfarthestneighborareaundercurve/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..787092f6497cc2915bda8dd9d3f30b05c01fe316
--- /dev/null
+++ b/revisitingsaliencymetricsfarthestneighborareaundercurve/full.md
@@ -0,0 +1,331 @@
+# Revisiting Saliency Metrics: Farthest-Neighbor Area Under Curve
+
+Sen Jia
+
+Ryerson University
+
+sen.jia@ryerson.ca
+
+Neil D. B. Bruce
+
+Ryerson University, Vector Institute
+
+bruce@ryerson.ca
+
+# Abstract
+
+In this paper, we propose a new metric to address the long-standing problem of center bias in saliency evaluation. We first show that distribution-based metrics cannot measure saliency performance across datasets due to ambiguity in the choice of standard deviation, especially for Convolutional Neural Networks. Therefore, our proposed metric is AUC-based because ROC curves are relatively robust to the standard deviation problem. However, this requires sufficient unique values in the saliency prediction to compute AUC scores. Secondly, we propose a global smoothing function for the problem of few value degrees in predicted saliency output. Compared with random noise, our smoothing function can create unique values without losing the existing relative saliency relationship. Finally, we show our proposed AUC-based metric can generate a more directional negative set for evaluation, denoted as Farthest-Neighbor AUC (FN-AUC). Our experiments show FN-AUC can measure spatial biases, central and peripheral, more effectively than S-AUC without penalizing the fixation locations. The generated negative samples are available at: https://github.com/ SenJia/Farthest-Neighbor-AUC.
+
+# 1. Introduction
+
+Extensive studies have been proposed to predict the most salient region within an image. Saliency methods can be roughly grouped into two categories, bottom-up and top-down. The former considers the visual stimuli of an image to determine the Regions Of Interest(ROIs); while the latter one assumes the ROI is task-dependent, prior knowledge plays a significant part in saliency prediction. With the recent development of Convolutional Neural Networks (CNNs), saliency prediction heavily relies on model-based algorithms which can be trained in an end-to-end fashion. A new question has emerged regarding what type of saliency features are the best design for applications, top-down or bottom-up? Hand-crafted or CNN-learned?
+
+The measurement of saliency is still challenging because the definition of "saliency" varies depending on the vi
+
+
+Image
+
+
+Fixation
+Figure 1. A saliency sample from the SALICON dataset.
+
+
+Distribution
+
+sion task [2], so saliency algorithms can also be grouped by different taxonomies for different purposes [10, 16, 6]. In this paper, we follow the common problem setting in [29, 45], computational models are trained to predict the most salient region to the Human Visual System(HVS). Not only is this a common assumption to all the CNN-based methods [27, 9, 28, 34, 13, 12, 31, 24, 25], but it also can be used in an extremely wide range of applications [48, 1, 47, 44, 26, 22, 35]. However, it is still difficult to comprehensively evaluate saliency models due to the bias of each metric. For instance, the challenge of Large-Scale Scene Understanding [27] uses seven saliency metrics, Shuffled Area Under Curve (S-AUC), Information Gain (IG) [32], Normalized Scanpath Saliency (NSS) [38], Pearson's Correlation Coefficient (CC), AUC-Judd, SIMilarity (SIM) and Kullback-Leibler Divergence (KLD) [30]. Another public saliency benchmark, MIT300 [28], applies eight saliency metrics, AUC-Judd, AUC-Borji, S-AUC, NSS, CC, KLD, SIM and Earth Mover's Distance (EMD) [40]. The use of multiple measures indicates that it is difficult to evaluate a model from only one angle. Previous studies intended to categorize and compare those metrics, e.g., [39, 11] grouped the metrics into location-based and distribution-based. As shown in Figure 1, the location-based measure consists of a set of fixation locations captured by an eye tracker or mouse click. While the distribution of saliency is normally considered as a post-process on the raw data by applying a Gaussian filter.
+
+To evaluate a saliency model, one solution is to overcome the "disagreement" among the metrics. Kummerer et al. [32] proposed to optimize the saliency scale, center bias and spatial blurring jointly. But their post-process can hardly satisfy all the metrics simultaneously, the process requires all the compared models and optimization only uses the loss of IG. Later this idea was extended to a metric-
+
+tailored design [33], saliency models and saliency maps are decoupled so that one model can output different metric specific maps. However, their solutions are based on the assumption that all the metrics are able to evaluate saliency reasonably, the output should be optimized separately and specifically for each metric. In this work, we are more interested in investigating the differences among those metrics in theory. We believe some of the metrics may contain inherent drawbacks so that not necessarily all the metrics should be considered. The first contribution of this work is that we revisit the widely used saliency metrics based on [11], showing that the "balanced" metrics, NSS and CC, still have limitations in evaluating modern CNN-based systems. Saliency datasets have been created using their own choices of Gaussian standard deviation and a CNN model learns to fit this biased distribution, see Section 2.
+
+Center bias is a long-standing problem in saliency evaluation, simply placing a Gaussian distribution at the center could outperform a well-designed system on most of the metrics [46]. S-AUC is a common solution used by the SALICON and the MIT benchmarks, a negative set is sampled based on the positive from other images within the same dataset. The study [11] shows a centered Gaussian distribution can only achieve an S-AUC score of 0.5. However, S-AUC has a strong bias that it only considers negatives near the center, peripherally-favored systems can achieve higher scores [8]. In this paper, we propose a new saliency metric which introduces one more constraint on the spatial relationship between the positive and negative. We show that the distribution of all fixations can be interpreted as a 2D probability density distribution. Our method builds the negative set for each image by searching its farthest neighbors according to the distribution similarity, denoted as FN-AUC. We also propose a fast version of our FN-AUC in case the size of the dataset is too large. To compare with S-AUC, we propose a strategy to measure the quality of the sampled negative set, which takes the spatial relationship of both the center bias and the positive into account, see Section 3.2. Our experiment shows FN-AUC can draw a more reasonable negative set in order to penalize the center bias only without undermining the true positives, Section 4.3.
+
+Another contribution of this work is that we propose a global smoothing strategy in computing AUC metrics. Based on the MIT benchmark, it is problematic to compute the receiver operating characteristic (ROC) property when many locations share the same value magnitude, which could result in a lower performance as well. This is a scenario that is common for CNN based models which can produce near binary outputs. One solution could be jittering a map by adding small random noise, but this may break the relative saliency rank. We propose to apply a Gaussian filter using a relatively large standard deviation, the output is expected to cover all regions within a map. In this way, our
+
+| Dataset | Size (Width by Height) | σ | CC |
| Toronto [9] | 681 × 511 | 20 | .998 |
| MIT1003 [29] | (Min - Max)405 - 1024 | 24 | .998 |
| CAT2000 [3] | 1920 × 1080 | 41 | .998 |
| SALICON [27] | 640 × 480 | 19 | .999 |
+
+Table 1. The attributes of the four saliency datasets. Gaussian processes with different standard deviations are used to generate the distribution ground-truth.
+
+method can generate a map with unique values for an AUC metric, meanwhile retaining the relative saliency relationship, see Section 2.3.
+
+# 2. Revisiting Saliency Metrics
+
+In this section, we first revisit the widely used saliency metrics based on previous studies [39, 8, 11]. We further investigate the impact of applying the balanced saliency metrics across datasets, NSS and CC.
+
+# 2.1. Distribution-based Metrics
+
+The distribution-based saliency metrics, SIM, CC, EMD and KLD, consider each saliency map as a distribution then the similarity between two maps can be measured based on a probabilistic view. The drawbacks of IG, SIM and KLD have already been studied in that they focus more on FNs than $\mathrm{FPs}^1$ which leads to a biased evaluation. While the EMD metric is sensitive to the sparsity of the map, a lower score can be obtained due to fewer bins requiring moving. The CC measure is recommended for penalizing FPs and FNs equally [11]. However, when comparing two distributions, the "shape" of each distribution also plays an important role (the choice of the Gaussian sigma $\sigma$ ). Especially for CNN-based saliency systems, a CNN model is designed to learn the distribution information from the training set, a lower performance may be achieved only because the test set is drawn from a different distribution. This is a common problem in practice because there is no standard on how to build the ground-truth, each dataset was built using a different $\sigma$ value. The Gaussian filter can be written as:
+
+$$
+g (m, n) = \frac {1}{2 \pi \sigma^ {2}} \cdot e ^ {- \frac {m ^ {2} + n ^ {2}}{2 \sigma^ {2}}} \tag {1}
+$$
+
+where $m$ and $n$ represent the distance from the current location and $\sigma$ denotes the standard deviation. We search the $\sigma$ value used by the four saliency datasets, Toronto[9], MIT1003[29], CAT2000[3] and SALICON [27], based on the highest CC score achieved. As we can see in Table 1, the $\sigma$ value used varies across those datasets. A high performance can be achieved simply because the distributions of the training and test sets are similar and vice versa. We believe the location of ROI should be considered more for saliency instead of the distribution, a good model should
+
+capture the correct region but the shape (or contrast) is less important. One can imagine that all the distribution-based metrics suffer from the inherent drawback of shape sensitivity and it is difficult to avoid the center bias problem, see Section 4.
+
+# 2.2. Location-based Metrics
+
+Location-based metrics do not rely on the distribution built by the Gaussian process(Equation 1). Similar to CC, NSS is the recommended metric due to its equal penalty on FPs and FNs [11]. However, NSS essentially considers all the fixation locations as positive and the others as negative, more FPs will be introduced when a larger $\sigma$ is applied on the training set. Our experiment validates this hypothesis by showing the highest NSS score is achieved when training on the setting of the smallest $\sigma$ , see Section 4.1. This bias of NSS also makes it challenging to evaluate models across datasets.
+
+The family of AUC metrics was criticized for ignoring FPs with small values [11]. But the FPs will be ignored only when its value is smaller than the smallest threshold (value at fixations). That is, in practice, the ignored FPs would be relatively small and this relative saliency is considered to be more important than absolute magnitudes [8]. One study [11] has shown that AUC metrics are robust to $\sigma$ , but this happens only when the highest value of prediction is a TP. Our experiment shows the AUC metric is also slightly affected by the choice of $\sigma$ , Section 4.1, but they are relatively more robust than CC and NSS. Nevertheless, the AUC metric is still the most promising way to overcome the center bias issue because we can directly sample negatives rather than considering distribution properties. Before discussing the center bias and demonstrating our method, we first show a potential problem in computing AUC metrics and our proposed global smoothing function in the next section.
+
+# 2.3. Global Smoothing Strategy
+
+As shown in Figure 1, there are different ways to represent the fixation ground-truth. Both of the maps can be considered as matrices, the distribution map can also be interpreted as a 2D probability function and the fixation map can be converted into a set of positive locations. In this work, we demonstrate our method using all interpretations of saliency. For clarity, we denote a matrix as $\mathbf{X}$ or $\mathbf{Y}$ (an image or the fixation map, the first and second graphs in Figure 1), a set of coordinates as $\mathcal{P}$ or $\mathcal{N}$ and the probability function as $f_{\mathbf{X}}$ (density or distribution maps, third graph in Figure 1) and they can be converted to each other, see Section 3.2.
+
+All the AUC-based metrics are computed by applying various thresholds on the map to draw an ROC curve. This can be problematic when different positive locations share
+
+
+(a) Quantized
+
+
+Figure 2. (a) A quantized example map to show the problem of limited value degrees. (b) A random noise map, $\mathbf{O}$ , to jitter the output. (c) Our proposed global Gaussian map. $\mathbf{G}$ .
+
+
+(b) Random Noise
+(c) Global Gaussian
+
+
+Figure 3. ROC curves of the three maps, the AUC scores are: Quantized(black): 0.573, Jittered with Random Noise(blue): 0.774, Jittered with Global Gaussian(red): 0.790
+
+the same magnitude value. Let's denote an output map as $\hat{\mathbf{Y}}$ and we quantize the map into three value degrees to demonstrate this problem, $\{0,0.5,1\}$ . It is worth noting that this problem is not artificial since the output image format only contains 255 value degrees in most cases. One naive solution2 is to add a noise matrix $\mathbf{O}$ to the prediction map, $\hat{\mathbf{Y}} + \varepsilon \mathbf{O}$ , $O_i \sim \mathcal{U}(0,1)$ , $\mathbf{O} \in R^{h \times w}$ , where $O_i$ is $i$ th element of the noise matrix and $\varepsilon$ is a small number. But this operation may break the relative saliency relationship due to the randomness.
+
+In this work, we propose a global smoothing process to solve this problem. Instead of introducing random noise, we build a global Gaussian map, $\mathbf{G}$ , by applying Equation 1 using a relatively large standard deviation to diversify the value range, e.g., $\sigma = \min(h/4, w/4)$ . As shown in Figure 2, the noise matrix $\mathbf{O}$ used by [28] is similar to white Gaussian noise. Our global Gaussian map, $\mathbf{G}$ , covers most areas of the image for tie-breaking. From Figure 3, we can see that our proposed map $\mathbf{G}$ achieves a larger AUC compared with the random noise $\mathbf{O}$ . Note that this improvement is model-agnostic in evaluation, but we are hoping it results in a more meaningful prediction for a fair model comparison. This operation can be also combined with the widely used Gaussian post-process, which utilizes a small value of $\sigma$ to achieve "local" smoothness. Given the small performance differences between models, this operation may arguable help to disambiguate which are in fact the best performing.
+
+# 3. Center Bias and Spatial Metrics
+
+# 3.1. Center Bias
+
+The measurement of saliency has suffered from the center bias problem for a long time. There exist various causes for center bias, e.g., viewing strategy, initial orbital positions or motor bias. The main reason behind this may also be the photographer bias, humans tend to place the most interesting object or region near the center of an image [43, 36, 37, 42]. Therefore this tendency makes it difficult to show how good a saliency model is, a "faked" high performance may result from centrally biased methods. An early saliency study [36] has shown the stimuli in an image, e.g., color, intensity and orientation, are important in guiding attention. They also showed a discrepancy that the predictions are uniformly distributed within an image while the fixations are more likely to be near the center. This leads to a hypothesis that the low-level visual features have an indirect effect on attention, while the resulting 'objectness' is more significant [15]. Later an alternative explanation to their work was proposed by [4], the good performance achieved is because the objectness corresponds more with the center bias.
+
+We show the distribution maps by applying Equation 1 on all the fixation locations within each dataset in Figure 4. The center bias is intrinsic to HVS across the datasets such that a synthetic center bias map, fourth map in Figure 4 denoted as CB, can achieve a decent performance by covering most of the fixation locations. We believe the objective of saliency prediction is to model the mechanism of HVS regardless of what types of features should be used or what the bias could be. The metric applied is expected to differentiate a good system from a synthetic map. Most of the metrics suffer from this problem because they are not designed for spatial biases, especially for the distribution-based case. In contrast, the location-based metric seems more promising on this issue.
+
+The standard AUC metric was originally used for statistical analysis, and later was introduced to measure saliency performance by [7], also known as AUC-Judd [29], which considers all the non-fixated locations as negative. AUC-Borji [5] proposed to randomly sample negatives from all the non-fixated locations, which can be considered as a subset of AUC-Judd. But these two variants of AUC are not designed for the problem of center bias. S-AUC is a widely used metric specifically for the center bias, which samples negatives based on positive locations from other images within the same dataset. The assumption behind this is that the positives are also subject to a central Gaussian distribution so that they can be used to penalize the synthetic center map CB, see Figure 4. But this sampling strategy ignores the spatial relationship between the positive and negative, which may result in an "over-penalty" to TPs.
+
+
+Toronto
+SALICON
+CAT2000
+Center Bias
+Figure 4. Distribution maps generated using all the fixations within each dataset and the center bias map from the MIT benchmark.
+
+Furthermore, S-AUC may favor an "anti-center" prediction, saliency methods [21, 41] that are biased to peripheral regions and can achieve a higher S-AUC score [8].
+
+# 3.2. Farthest-Neighbor AUC
+
+Before we show our proposed FN-AUC, we first formalize AUC metrics in different representations and discuss their own focuses in evaluation. Let $\mathbf{X} \in R^{h \times w \times 3}$ and $\mathbf{Y} \in R^{h \times w}$ denote the input image and its fixation ground-truth (second image in Figure 1) respectively. The fixation map $\mathbf{Y}$ can be converted into a set of fixation locations, denoted as $\mathcal{F} = \{(m,n): \mathbf{Y}(m,n) = 1, m = 1 \ldots w, n = 1 \ldots h\}$ . The set of all the possible locations $\mathcal{S}$ can be formulated as $\mathcal{S} = \{(m,n): m = 1 \ldots w, n = 1 \ldots h\}$ , $\mathcal{F} \subseteq \mathcal{S}$ . When computing an AUC score, the positive set is $\mathcal{P} = \mathcal{F}$ , but the generation of the negative set varies depending on the AUC metric applied. For AUC-Judd, it considers all the non-fixated locations as negative, $\mathcal{N}^J = \{\forall l \in \mathcal{S}: l \notin \mathcal{P}\} \iff \mathcal{S} \setminus \mathcal{P}$ . For AUC-Borji, the negative set can be considered as applying Bernoulli sampling on $\mathcal{N}^J$ with a cardinality constraint, $\mathcal{N}^B = \{s \in \mathcal{N}^J: |\mathcal{N}^B| = |\mathcal{P}|\}$ , $\mathcal{N}^B \subseteq \mathcal{N}^J$ (a bijective function could be applied). It is obvious that both the AUC metrics actually focus on the same statistical property, but they can not overcome the center bias problem because no spatial information is utilized.
+
+For S-AUC, we build the positive set for the entire dataset by $\mathcal{P}_{all} = \{\mathcal{F}_1,\mathcal{F}_2,\dots ,\mathcal{F}_N\}$ , assuming there are $N$ samples in the dataset. The positive set of S-AUC is the same as AUC-Judd and AUC-Borji, $\mathcal{P} = \mathcal{F},\mathcal{P}\subseteq \mathcal{P}_{all}$ . For the negative set, S-AUC draws samples according to $\mathcal{N}^S = \{s\in \mathcal{P}_{all}:s\notin \mathcal{P},|\mathcal{N}^S | = |\mathcal{P}|\}$ . It is interesting to see that both S-AUC and AUC-Borji sample negatives from other sets, $\mathcal{P}_{all}$ and $\mathcal{N}^J$ respectively using the Bernoulli sampling process. But S-AUC implicitly assumes that the set $\mathcal{P}_{all}$ is spatially subject to a centered Gaussian distribution (empirically validated by Figure 4) so that the sampled negatives can be used to penalize the center bias. But AUC-Judd and AUC-Borji do not make use of this spatial information.
+
+Given the size of the image $(h,w)$ , we can easily "vectorize" the total positive set $\mathcal{P}_{all}$ into a fixation map by first initializing a zero matrix, $\mathbf{Y}_{\mathrm{all}} = \mathbf{0} \in R^{h \times w}$ , then $\mathbf{Y}_{\mathrm{all}}(m,n) = 1 : \forall (m,n) \in \mathcal{P}_{all}$ , let $v(\cdot)$ denote this "vectorization" conversion. A Gaussian filter (Equation 1) is applied on the map $\mathbf{Y}_{\mathrm{all}}$ to build the distribution map $f_{\mathbf{Y}_{\mathrm{all}}}$ for each dataset as shown in Figure 4. Al
+
+
+
+
+Figure 5. Diagram of our proposed FN-AUC vs S-AUC, our method aims at sampling a more directional negative set.
+S-AUC
+Figure 6. Distribution maps of the negative set sampled by S-AUC and FN-AUC, with different numbers of neighbors on the Toronto dataset.
+
+
+FN-AUC(K=5)
+
+
+FN-AUC(K=20)
+
+
+FN-AUC(K=50)
+
+
+FN-AUC(K=70)
+
+though the distribution map is a matrix, it can be interpreted as a 2D probability density function given the constraint $\sum_{m=1}^{h}\sum_{n=1}^{w}f_{\mathbf{Y}_{\mathrm{all}}}(m,n) = 1$ . In this way, the density maps in Figure 4 can be viewed as the probability function of the S-AUC sampling process. Although each element in the negative set $\mathcal{N}^S \subseteq \mathcal{P}_{all}$ is drawn by Bernoulli sampling, spatially it can be interpreted as a Poisson sampling process such that the sampled elements have a higher probability to be located near the center (equal probability for sampling).
+
+Given the synthetic center bias map $\mathbf{CB}$ (as shown in Figure 4) and its probability function $f_{\mathbf{CB}}$ , we can reformulate the center bias problem in terms of the distribution similarity between $f_{\mathbf{CB}}$ and $f_{\mathbf{Y}_{\mathrm{all}}}$ . The synthetic map is designed to "mimic" the distribution of the total fixations as a baseline such that the distance between the distributions should be low or minimized, $\arg \min(d(f_{\mathbf{CB}}, f_{\mathbf{Y}_{\mathrm{all}}}))$ . The S-AUC metric can penalize the center bias because the probability distribution of $f_{v(\mathcal{N}^S)}$ is similar to $f_{\mathbf{CB}}$ , given that $\mathcal{N}^S$ is sampled from $\mathcal{P}_{all}$ .
+
+The S-AUC metric only considers global position information that the negative sample should be near the center, but it ignores the relative spatial relationship between the positive and negative. The positive set is also a subset of the total $\mathcal{P} \subseteq \mathcal{P}_{all}$ , which means spatially the probability function of $f_{v(\mathcal{N}^S)}$ also overlaps with $f_{v(\mathcal{P})}$ . This may lead to an over-penalty on the TP rate and also explains why S-AUC blindly favors peripherally-focused methods [8]. To solve this problem, we propose to not only make use of the global information, but also take the relative spatial rela
+
+tionship into account. The sampled negative set should be able to penalize the center bias map CB meanwhile without affecting the positive set. It is easy to formulate this constraint in the representation of a probability function, $\arg \max (d(f_{v(\mathcal{P})},f_{v(\mathcal{N}^{FN})}))$ , the sampled negative set by FN-AUC should be far apart from the positive locations. We visually show the relationship between the negative sets drawn by S-AUC and our method in Figure 5. The negative set of S-AUC is near the center, which overlaps with the positive. While our method intends to avoid the positive locations but still sample within the area of the synthetic map CB.
+
+# Algorithm 1 Farthest-Neighbor AUC
+
+Input: $(\mathbf{X_i},\mathbf{Y_i})$ ,ith Data Sample in the dataset. $\mathcal{P}_{all} = \{\mathcal{F}_1,\mathcal{F}_2,\dots ,\mathcal{F}_N\}$ , a set contains all the fixation locations within the dataset.
+
+Output: $\mathcal{N}_i^{FN}$ the negative set for $i$ th sample.
+
+1: Initialize an empty list, denoted as $L$ .
+2: for $j = 1$ to $N$ do
+3: if $i \neq j$ then
+4: $d_{j} = d(f_{v(\mathcal{F}_{i})},f_{v(\mathcal{F}_{j})})$
+5: add $(d_j, \mathcal{F}_j)$ to $L$ .
+6: Sort $L$ in descending order based on $d_{j}$ . $\triangleright$ suppose $d(\cdot ,\cdot)$ is a similarity measure.
+7: Add the associated fixation set to the $\mathcal{N}_i^{FN}$ based on the top $K$ elements in $L$ , $\mathcal{N}_i^{FN} = \{\mathcal{F}_k : (d_k, \mathcal{F}_k) \in L, k = 1 \dots K\}$ .
+8: return $\mathcal{N}^{FN}$
+
+We show how our FN-AUC samples the negative set $\mathcal{N}^{FN}$ in Algorithm 1. The negative set consists of fixations from the neighbors that are least similar to the positive set, i.e. the farthest neighbors. Then we can sample from this negative set to have the same cardinality as the positive, $|\mathcal{N}^{FN}| = |\mathcal{P}|$ . It is obvious that the FN-AUC sampling process has a complexity of $O(n)$ . It is feasible to apply FN-AUC on a small dataset, e.g., Toronto, but it becomes problematic for large-scale datasets, e.g., SALICON. We also propose a fast version of FN-AUC for better scalability. Normally the number of fixations of each image is similar within one dataset. We can select only one farthest neighbor, $K = 1$ in Algorithm 1 and omitting the cardinality constraint. More importantly, we can set an empirical threshold to select the first matched element without iterating over the entire dataset, e.g., a CC score below zero (inversely related). One extreme case could be that there exists one sample whose positive set is near the corner, every other sample may select it as the farthest neighbor such that FP rate is always zero. In this case, increasing the number of neighbors $K$ can deliver a more robust sampling process. However, we did not experience this problem on the datasets even applying $K = 5$ . When $K$ equals to the total number of the images within a dataset ( $K = N - 1$ ), FN-
+
+
+Pos
+
+
+S(.769.758.987)
+
+
+S(.812.772.951)
+
+
+S(.779, .798, 1.025)
+
+
+
+
+
+
+
+
+
+
+Pos
+
+
+S(0.561, 0.687, 1.223)
+
+
+S(0.567, 0.624, 1.102)
+Figure 7. The negative set sampled by S-AUC and FN-AUC. The first column is the distribution map of positive locations. Columns 2-4 are negative maps by S-AUC, column 5-7 are negative maps by FN-AUC. The last column is the final output map of FN-AUC, sampled from columns 5-7. The top row is a sample from the Toronto dataset drawn using Algorithm 1, while the bottom is from the SALICON dataset drawn using the fast version of FN-AUC $(K = 3, CC < 0)$ . The annotation represents $(\beta, \gamma, \gamma/\beta)$ .
+
+
+S(.578, .627, 1.085)
+
+
+FN(.614.552.899)
+FN(0.791, 0.561, 0.710)
+
+
+FN(.648.631.974)
+FN(0.751, 0.391, 0.520)
+
+
+FN(.780.689.884)
+FN(0.829, 0.579, 0.698)
+
+
+Neg(.649, .494, .761)
+Neg(0.802, 0.529, 0.659)
+
+AUC will reduce to S-AUC by sampling from $\mathcal{P}_{all}$ . That is the larger value of $K$ , the more we penalize the center bias map, we can see the effect of this trade-off of $K$ in Figure 6.
+
+To compare with S-AUC, we propose to measure the quality of the negative set in two terms: 1) considering the negative set as positive locations and the center bias map CB as a prediction to measure the performance, hoping that a high score (e.g., CC or AUC) can be achieved so that the negative set can penalize CB. 2) considering the negative set as a prediction map $(f_{v(\mathcal{N})})$ to measure its performance on the ground-truth $\mathcal{P}$ , a low score is expected so that the negative set has little impact on the positive. Let's denote these two measures as $\uparrow \beta$ (the higher the better) and $\downarrow \gamma$ (the lower the better) respectively, we also show the ratio $\downarrow \gamma / \beta$ as an indicator of the quality.
+
+We can visually check the negative sets of $\mathcal{N}^S$ and $\mathcal{N}^{FN}$ in Figure 7 (presented in distribution for visualization). Unsurprisingly, the random samples from S-AUC, columns 2-4, tend to locate near the center, which leads to a higher $\beta$ value. But S-AUC dose not take the relative spatial relationship into account, the sampled negative map also largely overlaps with the positive, which results in a higher $\gamma$ value as well. While the three negative candidates drawn by FN-AUC(columns 5-7) try to avoid penalizing the positive, therefore a lower $\gamma$ can be achieved. Moreover, the negative set still intersects with the center bias map, because the samples are drawn from $\mathcal{P}_{all}$ whose 2D distribution is similar to $f_{\mathrm{CB}}$ . The final output negative set (the last column) sampled from the neighbors also achieves low scores of $\gamma$ and $\gamma/\beta$ . It is interesting to see that our proposed FN-AUC has a more significant effect when evaluating on the SALICON dataset. The maps of S-AUC(bottom row) have ratio values of $\gamma/\beta > 1$ , which indicates the negative set is penalized more on the positive over the center bias. The reason behind this is that the fixations of this dataset are more spread-out covering almost the whole image, see Figure 4. While our method can still generate more directional negative sets achieving low $\gamma/\beta$ values. (More examples are shown in Figure 1 in the supplementary material.)
+
+# 4. Experiment
+
+Implementation Details: SALICON is the largest saliency dataset. Its training set SALICON-train contains 10,000 images with a resolution of $480 \times 640$ for training. We train CNN models on SALICON-train and report result on SALICON-val and the other datasets as shown in Table 1. The Toronto dataset has a similar image size to SALICON, so we simply resize the Toronto dataset during evaluation. But for MIT1003 and CAT2000, the ratio of the image size is completely different from SALICON. We apply the padding strategy used in [13, 12], each image has been resized and padded to keep the same ratio (3/4) as the input.
+
+The network used is the ResNet-50 model [20], which has been pretrained on the ImageNet dataset. We simply apply the multi-level strategy used in [12, 31, 25] on the model, the side outputs from $\{conv1, conv10, conv22, conv40, conv49\}$ are combined to generate the final prediction. The initial learning rate was set to 0.1 with a weight decay of $1e^{-4}$ . The total number of training epochs was 10 and we reduced the learning rate every three epochs by multiplying by a factor of 0.1. The batch size was set to 8 and stochastic gradient descent was used to update the model after computing the mean squared error as the loss.
+
+Negative Set of FN-AUC: To compute FN-AUC scores, we first build the negative set $\mathcal{N}^{FN}$ for each dataset. The metric of CC was used to compare the two distributions however other similarity measures can also be applied. To compare with S-AUC, we build a more directional negative set for FN-AUC in this experiment, $K = 5$ , and the final negative set is randomly drawn from the neighbors such that the number of elements is the same as the positive set. For Toronto, MIT1003 and CAT2000, we used the standard procedure as shown in Algorithm 1. For SALICON, we applied the fast version of FN-AUC due to its large size with selected candidates chosen according to the first $K = 5$ neighbors satisfying the requirement of $CC < 0$ . An optimal way to choose $K$ could be based on the average ratio of $\gamma/\beta$ across the entire dataset.
+
+| Dataset | Metric | σ = 10 | σ = 20 | σ = 30 | σ = 40 | σ = 50 | Deviation |
| Toronto σ=20 | CC | 0.684 | 0.694 | 0.684 | 0.669 | 0.647 | 0.016 |
| NSS | 2.016 | 1.938 | 1.839 | 1.754 | 1.665 | 0.125 |
| AUC-J | 0.852 | 0.856 | 0.855 | 0.853 | 0.854 | 0.001 |
| AUC-B | 0.810 | 0.828 | 0.837 | 0.840 | 0.842 | 0.011 |
| S-AUC | 0.713 | 0.717 | 0.713 | 0.705 | 0.694 | 0.008 |
| FN-AUC | 0.805 | 0.817 | 0.824 | 0.824 | 0.820 | 0.006 |
| CAT2000 σ=41 | CC | 0.539 | 0.556 | 0.556 | 0.558 | 0.559 | 0.007 |
| NSS | 1.688 | 1.697 | 1.668 | 1.655 | 1.641 | 0.020 |
| AUC-J | 0.846 | 0.853 | 0.854 | 0.859 | 0.864 | 0.005 |
| AUC-B | 0.814 | 0.837 | 0.844 | 0.852 | 0.860 | 0.015 |
| S-AUC | 0.702 | 0.716 | 0.719 | 0.725 | 0.732 | 0.010 |
| FN-AUC | 0.704 | 0.716 | 0.716 | 0.719 | 0.717 | 0.005 |
| MIT1003 σ=24 | CC | 0.623 | 0.610 | 0.586 | 0.558 | 0.532 | 0.033 |
| NSS | 2.497 | 2.330 | 2.175 | 2.024 | 1.906 | 0.210 |
| AUC-J | 0.897 | 0.899 | 0.898 | 0.897 | 0.895 | 0.001 |
| AUC-B | 0.860 | 0.873 | 0.879 | 0.880 | 0.880 | 0.007 |
| S-AUC | 0.807 | 0.816 | 0.816 | 0.812 | 0.809 | 0.003 |
| FN-AUC | 0.758 | 0.778 | 0.788 | 0.788 | 0.783 | 0.011 |
| SALICON σ=19 | CC | 0.843 | 0.863 | 0.860 | 0.839 | 0.812 | 0.018 |
| NSS | 1.895 | 1.832 | 1.757 | 1.668 | 1.580 | 0.112 |
| AUC-J | 0.858 | 0.859 | 0.857 | 0.853 | 0.848 | 0.004 |
| AUC-B | 0.811 | 0.834 | 0.843 | 0.845 | 0.842 | 0.012 |
| S-AUC | 0.781 | 0.799 | 0.805 | 0.804 | 0.799 | 0.008 |
| FN-AUC | 0.833 | 0.857 | 0.868 | 0.867 | 0.861 | 0.012 |
+
+Table 2. CNN models trained on ground-truth maps built using different $\sigma$ values. The $\sigma$ value used by each test set is shown. The highest score of each row is highlighted in bold. The standard deviation shows how robust each metric is to the change of $\sigma$ . (AUC-J for AUC-Judd and AUC-B for AUC-Borji.)
+
+| CC | 0.018 | NSS | 0.116 | AUC-J | 0.002 |
| AUC-B | 0.011 | S-AUC | 0.007 | FN-AUC | 0.008 |
+
+# 4.1. The choice of $\sigma$
+
+As discussed in Section 2, the distribution map of ground-truth varies according to the choice of $\sigma$ . In this experiment, we show how this problem affects CNN-based systems when evaluating across datasets. Five different $\sigma$ values $\{10, 20, 30, 40, 50\}$ are applied on SALICON-train to build ground-truth for training using Equation 1. Then five CNN models with the same architecture are trained on each of the created ground-truth distributions. We evaluate the five models on different test sets using different metrics to show how sensitive those metrics are to the choice of $\sigma$ . A metric can be considered biased if a score for one model clearly outperforms or underperforms compared to the other models for the same metric since that the model architecture is the same.
+
+We report the results of the five models in Table 2. We can see that a high score of CC tends to be achieved by the matched distribution when similar $\sigma$ values are applied. The NSS metric favors a small $\sigma$ value and thus, less FPs are produced (a more sparse prediction). This experiment validates our discussion in Section 2. NSS is sensitive to the $\sigma$ value applied on the training set while CC relies more on the $\sigma$ difference between the training and test set. A potential risk that may further limit the practical use of distribution-based metrics is that interpolation operations (e.g., bi-linear) can also affect distribution properties. As shown in Table 2, the AUC metrics are also sensitive to the
+
+Table 3. The average deviation for each metric across datasets.
+
+| Method | CC | NSS | AUC-J | AUC-B | S-AUC | FN-AUC |
| CB | 0.397 | 0.969 | 0.802 | 0.786 | 0.515 | 0.607 |
| Itti [23] | 0.270 | 0.820 | 0.693 | 0.677 | 0.638 | 0.701 |
| AIM [9] | 0.312 | 0.896 | 0.725 | 0.720 | 0.659 | 0.725 |
| GBVS [19] | 0.569 | 1.519 | 0.829 | 0.819 | 0.636 | 0.747 |
| SUN [46] | 0.215 | 0.650 | 0.665 | 0.652 | 0.610 | 0.654 |
| SDSR [41] | 0.403 | 1.096 | 0.763 | 0.756 | 0.697 | 0.786 |
| CAS [18] | 0.449 | 1.271 | 0.781 | 0.768 | 0.688 | 0.781 |
| AWS [17] | 0.466 | 1.341 | 0.787 | 0.775 | 0.707 | 0.789 |
| SWD [14] | 0.575 | 1.523 | 0.836 | 0.828 | 0.632 | 0.741 |
| ImageSig [21] | 0.396 | 1.085 | 0.762 | 0.749 | 0.679 | 0.753 |
| CNN | 0.694 | 1.938 | 0.856 | 0.828 | 0.717 | 0.817 |
+
+Table 4. Comparison of different saliency methods on the Toronto dataset.
+
+choice of $\sigma$ . For the AUC metrics, AUB-Borji, S-AUC and FN-AUC, there exists a sampling process which may deliver slight randomness into evaluation. We report the deviation of each setting in the last column of Table 2 and its average score across datasets in Table 3. We can see that the sensitivity of AUC metric is relatively smaller than CC and NSS. Even though AUC-Judd seems correlated with $\sigma$ from Table 2, a low deviation score denotes that it does not show which setting has a clear advantage. Larger deviations of CC and NSS may result from their value range or the computation process and due to this, they may deliver false intuitions with respect to the quality of the model.
+
+# 4.2. Spatial Biases
+
+The inner workings of NNs are still under exploration but it is established that the features learned by NNs contain high-level objectness, therefore CNN-based methods may share the same spatial bias as discussed in [4]. Our proposed metric aims at solving the spatial bias problem, so we compare different types of "early" visual features(low-level) as well as the center bias map (Figure 4) using our metric. The center bias map, CB, is taken from the MIT benchmark. The traditional saliency methods for comparison include: Itti [23], AIM [9], GBVS [19], SUN [46], SDSR [41], CAS [18], AWS [17], SWD [14] and ImageSig(RGB) [21]. It has been shown that those traditional methods utilize various low-level features [8, 4, 46], which leads to relatively different predictions. Some of the hand-crafted methods are considerably time consuming (e.g., CAS needs more than 20 seconds to process each image due to its multiscale design). Therefore we only focus on the smallest dataset, Toronto, for simplicity. We take the model $(\sigma = 20)$ from the last experiment as a CNN baseline because it is the closest to the default settings of Toronto and SALICON. The metrics can be roughly categorized into biastolerant (CC, NSS, AUC-J, AUC-B) and bias-sensitive (S-AUC, FN-AUC).
+
+As shown in Table 4 and Figure 8, we can see that the CNN model achieves the best performance on all the metrics, including FN-AUC. While it is trivial to compare high-level vs low-level features in this experiment, we are more interested in how the metrics measure the intrinsic spatial
+
+
+Figure 8. Bar graph of the compared methods using different saliency metrics.
+
+
+Image
+Prediction
+Fixation
+FN-Negative
+Figure 9. Samples which have a large score difference between S-AUC and FN-AUC. From top to bottom (S-AUC, FN-AUC), 1:(0.573, 0.762), 2:(0.665, 0.867), 3:(0.540, 0.379), 4:(0.445, 0.285). The third column is the ground-truth distribution (positive) and the fourth column is the negative map drawn by FN-AUC.
+
+bias each method has. The first row, CB, indicates a Gaussian map can achieve decent scores on most of the metrics. The CB map achieves higher FN-AUC (0.607) than S-AUC (0.515) because S-AUC only penalizes center bias as discussed in Section 3.1 (all the methods can outperform random guess 0.5 on S-AUC). Moreover, Itti, AIM and SUN, all achieve lower performances on the bias-tolerant metrics, but our FN-AUC can still distinguish those methods from CB. From the study [45], the methods GBVS and AWS are the least and the most spatially consistent algorithms respectively. Therefore GBVS outperforms AWS on the bias-tolerant metrics, but AWS obtains higher scores on both of the bias-sensitive metrics, S-AUC and FN-AUC. We can also see this contrast between GBVS and other relatively consistent methods, SDSR, CAS and ImageSig. Moreover, our experiment shows the SWD method is even more spatially inconsistent than GBVS. When comparing with "early" vision, we are not surprised by the high perfor
+
+mance achieved by the CNN due to its ability to learn high-level features. One thing that should be noted is although CNNs may tend to output center-favored maps due to its "objectness" knowledge, the CNN model still outperforms GBVS and SWD by a large margin. Both S-AUC and FN-AUC can penalize the spatial bias and we further investigate the difference between the two metrics in the next section.
+
+# 4.3. Case Discussion
+
+Our FN-AUC differs from S-AUC in that we also consider the relative relationship with the positive set. It is important to visually check the samples on which the metrics disagree with each other the most. We show samples which achieve a large score difference between S-AUC and FN-AUC in Figure 9. We can see from the scores, the top five rows achieve higher FN-AUC than S-AUC. From the third column, we can see that the ground-truth is near the center, but S-AUC will penalize the prediction regardless of whether it is a reasonable output or not. In contrast, our proposed FN-AUC achieves a higher score because the sampled negative is a more directional, rather than blind penalty. From the bottom four rows of Figure 9, we can see that the S-AUC score is higher than FN-AUC. We can see that the ground-truth is still near the center, but the predicted saliency region is near the periphery. In this case, those predictions should be considered as low-scoring outputs. But the negative set sampled by S-AUC will always be near the center as shown in Figure 4 so that it cannot penalize the FPs. FN-AUC has a higher probability to penalize this type of prediction because it takes the spatial relationship into account. (More examples are shown in Figure 2 in the supplementary material.)
+
+# 5. Conclusion
+
+In this paper, we have shown that the NSS and CC metrics still suffer from sensitivity to the choice of the $\sigma$ value. This indicates that they can not fairly evaluate the CNN-based system on commonly used saliency datasets. NSS has been shown to be sensitive to the training set only, while CC is affected by the difference of $\sigma$ applied on the training and the test sets. The AUC metrics are relatively more robust to the change of $\sigma$ . We delved into the AUC metrics based on different mathematical representations to show the drawback of S-AUC. Our proposed FN-AUC metric considers the relative position information so that a more directional negative set can be built to penalize the center bias only. Finally, our proposed global smoothing strategy can deliver a more stable AUC computation by retaining the saliency relationship. By no means can our method completely solve the problem of saliency evaluation, but our work sheds new light on the drawbacks of existing metrics as well as introduces a new sampling process.
+
+# References
+
+[1] C. O. Ancuti, C. Ancuti, and P. Bekaert. Enhancing by saliency-guided decolorization. In Proceedings of the 2011 IEEE Conference on Computer Vision and Pattern Recognition, CVPR '11, pages 257-264, Washington, DC, USA, 2011. IEEE Computer Society. 1
+[2] Jonathan Boisvert and Neil Bruce. Predicting task from eye movements: On the importance of spatial distribution, dynamics, and image features. Neurocomputing, 207, 05 2016. 1
+[3] Ali Borji and Laurent Itti. CAT2000: A large scale fixation dataset for boosting saliency research. CoRR, abs/1505.03581, 2015. 2
+[4] Ali Borji, Dicky N. Sihite, and Laurent Itti. Objects do not predict fixations better than early saliency: A re-analysis of Einhäuser et al.'s data. Journal of Vision, 13(10):18-18, 08 2013. 4, 7
+[5] A. Borji, D. N. Sihite, and L. Itti. Quantitative analysis of human-model agreement in visual saliency modeling: A comparative study. IEEE Transactions on Image Processing, 22(1):55-69, Jan 2013. 4
+[6] A. Borji, H. R. Tavakoli, D. N. Sihite, and L. Itti. Analysis of scores, datasets, and models in visual saliency prediction. In 2013 IEEE International Conference on Computer Vision, pages 921-928, Dec 2013. 1
+[7] Neil D.B. Bruce and John K. Tsotsos. A statistical basis for visual field anisotropies. Neurocomputing, 69(10):1301 - 1304, 2006. Computational Neuroscience: Trends in Research 2006. 4
+[8] Neil D.B. Bruce, Calden Wloka, Nick Frosst, Shafin Rahman, and John K. Tsotsos. On computational modeling of visual saliency: Examining what's right, and what's left. Vision Research, 116:95 - 112, 2015. Computational Models of Visual Attention. 2, 3, 4, 5, 7
+[9] Neil D. B. Bruce and John K. Tsotsos. Saliency based on information maximization. In Proceedings of the 18th International Conference on Neural Information Processing Systems, NIPS'05, pages 155-162, Cambridge, MA, USA, 2005. MIT Press. 1, 2, 7
+[10] Z. Bylinskii, E.M. DeGennaro, R. Rajalingham, H. Ruda, J. Zhang, and J.K. Tsotsos. Towards the quantitative evaluation of visual attention models. Vision Research, 116:258 - 268, 2015. Computational Models of Visual Attention. 1
+[11] Z. Bylinskii, T. Judd, A. Oliva, A. Torralba, and F. Durand. What do different evaluation metrics tell us about saliency models? IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(3):740-757, March 2019. 1, 2, 3
+[12] Marcella Cornia, Lorenzo Baraldi, Giuseppe Serra, and Rita Cucchiara. A deep multi-level network for saliency prediction. CoRR, abs/1609.01064, 2016. 1, 6
+[13] M. Cornia, L. Baraldi, G. Serra, and R. Cucchiara. Predicting human eye fixations via an LSTM-based saliency attentive model. IEEE Transactions on Image Processing, 27(10):5142-5154, Oct 2018. 1, 6
+[14] L. Duan, C. Wu, J. Miao, L. Qing, and Y. Fu. Visual saliency detection by spatially weighted dissimilarity. In CVPR 2011, pages 473-480, June 2011. 7
+
+[15] Wolfgang Einhäuser, Merrielle Spain, and Pietro Perona. Objects predict fixations better than early saliency. Journal of Vision, 8(14):18-18, 11 2008. 4
+[16] Simone Frintrop, Erich Rome, and Henrik I. Christensen. Computational visual attention systems and their cognitive foundations: A survey. ACM Trans. Appl. Percept., 7(1):6:1-6:39, Jan. 2010. 1
+[17] A. Garcia-Diaz, X.R. Fdez-Vidal, X.M. Pardo, and R. Dosil. Saliency from hierarchical adaptation through decorrelation and variance normalization. Image and Vision Computing, 30(1):51-64, 2012. 7
+[18] S. Goferman, L. Zelnik-Manor, and A. Tal. Context-aware saliency detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(10):1915-1926, Oct 2012. 7
+[19] Jonathan Harel, Christof Koch, and Pietro Perona. Graph-based visual saliency. In Proceedings of the 19th International Conference on Neural Information Processing Systems, NIPS'06, pages 545-552, Cambridge, MA, USA, 2006. MIT Press. 7
+[20] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015. 6
+[21] X. Hou, J. Harel, and C. Koch. Image signature: Highlighting sparse salient regions. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(1):194-201, Jan 2012. 4, 7
+[22] Yuan-Ting Hu, Jia-Bin Huang, and Alexander G. Schwing. Unsupervised video object segmentation using motion saliency-guided spatio-temporal propagation. CoRR, abs/1809.01125, 2018. 1
+[23] L. Itti, C. Koch, and E. Niebur. A model of saliency-based visual attention for rapid scene analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 20(11):1254-1259, Nov 1998. 7
+[24] Saumya Jetley, Naila Murray, and Eleonora Vig. End-to-end saliency mapping via probability distribution prediction. CoRR, abs/1804.01793, 2018. 1
+[25] Sen Jia and Neil D.B. Bruce. Eml-net: an expandable multilayer network for saliency prediction. Image and Vision Computing, page 103887, 2020. 1, 6
+[26] S. Jia, Y. Zhang, D. Agrafiotis, and D. Bull. Blind high dynamic range image quality assessment using deep learning. In 2017 IEEE International Conference on Image Processing (ICIP), pages 765-769, Sept 2017. 1
+[27] Ming Jiang, Shengsheng Huang, Juanyong Duan, and Qi Zhao. Silicon: Saliency in context. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. 1, 2
+[28] Tilke Judd, Frédo Durand, and Antonio Torralba. A benchmark of computational models of saliency to predict human fixations. 01 2012. 1, 3
+[29] T. Judd, K. Ehinger, F. Durand, and A. Torralba. Learning to predict where humans look. In 2009 IEEE 12th International Conference on Computer Vision, pages 2106-2113, Sep. 2009. 1, 2, 4
+[30] S. Kullback and R. A. Leibler. On information and sufficiency. Ann. Math. Statist., 22(1):79-86, 03 1951. 1
+
+[31] Matthias Kümmerer, Lucas Theis, and Matthias Bethge. Deep gaze i: Boosting saliency prediction with feature maps trained onImagenet. CoRR, abs/1411.1045, 2014. 1, 6
+[32] Matthias Kümmerer, Thomas S. A. Wallis, and Matthias Bethge. Information-theoretic model comparison unifies saliency metrics. Proceedings of the National Academy of Sciences, 112(52):16054-16059, 2015. 1
+[33] Matthias Kümmerer, Thomas S. A. Wallis, and Matthias Bethge. Saliency benchmarking made easy: Separating models, maps and metrics. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss, editors, Computer Vision – ECCV 2018, pages 798–814, Cham, 2018. Springer International Publishing. 2
+[34] Matthias Kummerer, Thomas S. A. Wallis, Leon A. Gatys, and Matthias Bethge. Understanding low- and high-level contributions to fixation prediction. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. 1
+[35] Shengxi Li, Mai Xu, Yun Ren, and Zulin Wang. Closed-form optimization on saliency-guided image compression for hevc-msp. Trans. Multi., 20(1):155-170, Jan. 2018. 1
+[36] Derrick Parkhurst, Klinton Law, and Ernst Niebur. Modeling the role of salience in the allocation of overt visual attention. Vision Research, 42(1):107 - 123, 2002. 4
+[37] Derrick Parkhurst and Ernst Niebur. Scene content selected by active vision. Spatial vision, 16:125-54, 02 2003. 4
+[38] Robert J. Peters, Asha Iyer, Laurent Itti, and Christof Koch. Components of bottom-up gaze allocation in natural images. Vision Research, 45(18):2397 - 2416, 2005. 1
+[39] N. Riche, M. Duvinage, M. Mancas, B. Gosselin, and T. Dutoit. Saliency and human fixations: State-of-the-art and study of comparison metrics. In 2013 IEEE International Conference on Computer Vision, pages 1153-1160, Dec 2013. 1, 2
+[40] Y. Rubner, C. Tomasi, and L. J. Guibas. A metric for distributions with applications to image databases. In Sixth International Conference on Computer Vision (IEEE Cat. No.98CH36271), pages 59-66, Jan 1998. 1
+[41] Hae Jong Seo and Peyman Milanfar. Static and space-time visual saliency detection by self-resemblance. Journal of Vision, 9(12):15-15, 11 2009. 4, 7
+[42] Benjamin W. Tatler, Roland J. Baddeley, and Iain D. Gilchrist. Visual correlates of fixation selection: effects of scale and time. Vision Research, 45(5):643 - 659, 2005. 4
+[43] Po-He Tseng, Ran Carmi, Ian G. M. Cameron, Douglas P. Munoz, and Laurent Itti. Quantifying center bias of observers in free viewing of dynamic natural scenes. Journal of Vision, 9(7):4-4, 07 2009. 4
+[44] Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Cheng Li, Honggang Zhang, Xiaogang Wang, and Xiaou Tang. Residual attention network for image classification. CoRR, abs/1704.06904, 2017. 1
+[45] C. Wloka and J. Tstotsos. Spatially binned roc: A comprehensive saliency metric. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 525-534, June 2016. 1, 8
+[46] Lingyun Zhang, Matthew H. Tong, Tim K. Marks, Honghao Shan, and Garrison W. Cottrell. SUN: A Bayesian frame
+
+work for saliency using natural statistics. Journal of Vision, 8(7):32-32, 12 2008. 2, 7
+[47] W. Zhang, A. Borji, Z. Wang, P. Le Callet, and H. Liu. The application of visual saliency models in objective image quality assessment: A statistical evaluation. IEEE Transactions on Neural Networks and Learning Systems, 27(6):1266-1278, June 2016. 1
+[48] F. Zünd, Y. Pritch, A. Sorkine-Hornung, S. Mangold, and T. Gross. Content-aware compression using saliency-driven image retargeting. In 2013 IEEE International Conference on Image Processing, pages 1845-1849, Sep. 2013. 1
\ No newline at end of file
diff --git a/revisitingsaliencymetricsfarthestneighborareaundercurve/images.zip b/revisitingsaliencymetricsfarthestneighborareaundercurve/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a9e1f5ee9421f7c11cc3df20b80f9ec12811a87e
--- /dev/null
+++ b/revisitingsaliencymetricsfarthestneighborareaundercurve/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1ddaf9a389b51ed5478570169868fc80e3c5e9e2c1e7f8a04140eb25af94f012
+size 334879
diff --git a/revisitingsaliencymetricsfarthestneighborareaundercurve/layout.json b/revisitingsaliencymetricsfarthestneighborareaundercurve/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..dfbb146f1c691df64f72d5d223ea6e7da4fe6da5
--- /dev/null
+++ b/revisitingsaliencymetricsfarthestneighborareaundercurve/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c45b486c0e3c871eafda614bf559eacb378bd06b13d7773a9ba275051dac01d7
+size 505730
diff --git a/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_content_list.json b/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..45ac5b593b67b1e4f06fd9d880d6249d77323f95
--- /dev/null
+++ b/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa11020d7e01da3b942835f5c250a2291498795246ae95363dd549f17c1d2f76
+size 82673
diff --git a/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_model.json b/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..42fc15e0cc3495b9ccdb0336028107d35a629be7
--- /dev/null
+++ b/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37a8183790ab80f9d3ca2356b56f7a48c5437d1a4e5538a4cbdfd64990912b98
+size 98694
diff --git a/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_origin.pdf b/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4a9bb66f6a10e9d69aab0838c8ae90e66bc6ab84
--- /dev/null
+++ b/revisitingthesiblingheadinobjectdetector/39f093a8-03b3-4bcf-8b2f-e2529861b782_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:88a239735829381037b6a183ed9da5455b30e81ce8e8b5832f0bec8c78f8f8ce
+size 1147612
diff --git a/revisitingthesiblingheadinobjectdetector/full.md b/revisitingthesiblingheadinobjectdetector/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0f561746db233f9e2de73a3e1b10707aed7edc58
--- /dev/null
+++ b/revisitingthesiblingheadinobjectdetector/full.md
@@ -0,0 +1,334 @@
+# Revisiting the Sibling Head in Object Detector
+
+Guanglu Song1 Yu Liu2* Xiaogang Wang2
+1SenseTime X-Lab
+
+2The Chinese University of Hong Kong, Hong Kong
+1songguanglu@sensetime.com, 2yuliu, xgwang}@ee.cuhk.edu.hk
+
+# Abstract
+
+The "shared head for classification and localization" (sibling head), firstly denominated in Fast RCNN [9], has been leading the fashion of the object detection community in the past five years. This paper provides the observation that the spatial misalignment between the two object functions in the sibling head can considerably hurt the training process, but this misalignment can be resolved by a very simple operator called task-aware spatial disentanglement (TSD). Considering the classification and regression, TSD decouples them from the spatial dimension by generating two disentangled proposals for them, which are estimated by the shared proposal. This is inspired by the natural insight that for one instance, the features in some salient area may have rich information for classification while these around the boundary may be good at bounding box regression. Surprisingly, this simple design can boost all backbones and models on both MS COCO and Google OpenImage consistently by $\sim 3\%$ mAP. Further, we propose a progressive constraint to enlarge the performance margin between the disentangled and the shared proposals, and gain $\sim 1\%$ more mAP. We show the TSD breaks through the upper bound of nowadays single-model detector by a large margin (mAP 49.4 with ResNet-101, 51.2 with SENet154), and is the core model of our 1st place solution on the Google OpenImage Challenge 2019.
+
+# 1. Introduction
+
+Since the breakthrough of object detection performance has been achieved by seminal R-CNN families [10, 9, 30] and powerful FPN [21], the subsequent performance enhancement of this task seems to be hindered by some concealed bottlenecks. Even the advanced algorithms bolstered by AutoML [8, 38] have been delved, the performance gain is still limited to an easily accessible improvement range. As the most obvious distinction from the
+
+
+Figure 1. Illustration of the task spatial misalignment. The first column is the sensitive location for classification and the second column is the sensitive location for localization. The third column is the 3D visualization of the sensitivity distribution.
+
+generic object classification task, the specialized sibling head for both classification and localization comes into focus and is widely used in most of advanced detectors including single stage family [25, 33, 12], two-stage family [5, 18, 40, 26, 19] and anchor free family [17]. Considering the two different tasks share almost the same parameters, a few works become conscious about the conflict between the two object functions in the sibling head and try to find a trade-off way.
+
+IoU-Net [15] is the first to reveal this problem. They find the feature which generates a good classification score always predicts a coarse bounding box. To handle this problem, they first introduce an extra head to predict the IoU as the localization confidence, and then aggregate the localization confidence and the classification confidence together to be the final classification score. This approach does reduce the misalignment problem but in a compromise manner – the essential philosophy behind it is relatively raising the confidence score of a tight bounding box and reduce the score of a bad one. The misalignment still exists in each spatial point. Along with this direction, Double-Head R-CNN [35] is proposed to disentangle the sibling head into
+
+two specific branches for classification and localization, respectively. Despite of elaborate design of each branch, it can be deemed to disentangle the information by adding a new branch, essentially reduce the shared parameters of the two tasks. Although the satisfactory performance can be obtained by this detection head disentanglement, conflict between the two tasks still remain since the features fed into the two branches are produced by ROI Pooling from the same proposal.
+
+In this paper, we meticulously revisit the sibling head in the anchor-based object detector to seek the essence of the tasks misalignment. We explore the spatial sensitivity of classification and localization on the output feature maps of each layer in the feature pyramid of FPN. Based on the commonly used sibling head (a fully connected head $2-fc$ ), we illustrate the spatial sensitive heatmap in Figure.1. The first column is the spatial sensitive heatmap for classification and the second column is for localization. The warmer the better for the color. We also show their 3D visualizations in the third column. It's obvious that for one instance, the features in some salient areas may have rich information for classification while these around the boundary may be good at bounding box regression. This essential tasks misalignment in spatial dimension greatly limits the performance gain whether evolving the backbone or enhancing the detection head. In other words, if a detector try to infer the classification score and regression result from a same spatial point/anchor, it will always get an imperfect trade-off result.
+
+This significant observation motivates us to rethink the architecture of the sibling head. The optimal solution for the misalignment problem should be explored by the spatial disentanglement. Based on this, we propose a novel operator called task-aware spatial disentanglement (TSD) to resolve this barrier. The goal of TSD is to spatially disentangle the gradient flows of classification and localization. To achieve this, TSD generates two disentangled proposals for these two tasks, based on the original proposal in classical sibling head. It allows two tasks to adaptively seek the optimal location in space without compromising each other. With the simple design, the performance of all backbones and models on both MS COCO and Google OpenImage are boosted by $\sim 3\%$ mAP. Furthermore, we propose a progressive constraint (PC) to enlarge the performance margin between TSD and the classical sibling head. It introduces the hyper-parameter margin to advocate the more confident classification and precise regression. $\sim 1\%$ more mAP is gained on the basis of TSD. Whether for variant backbones or different detection frameworks, the integrated algorithms can steadily improve the performance by $\sim 4\%$ and even $\sim 6\%$ for lightweight MobileNetV2. Behind the outstanding performance gains, only a slight increased parameter is required, which is negligible for some heavy backbones.
+
+To summarize, the contributions of this paper are as follows:
+
+1) We delve into the essential barriers behind the tangled tasks in RoI-based detectors and reveal the bottlenecks that limit the upper bound of detection performance.
+2) We propose a simple operator called task-aware spatial disentanglement (TSD) to deal with the tangled tasks conflict. Through the task-aware proposal estimation and the detection head, it could generate the task-specific feature representation to eliminate the compromises between classification and localization.
+3) We further propose a progressive constraint (PC) to enlarge the performance margin between TSD and the classical sibling head.
+4) We validate the effectiveness of our approach on the standard COCO benchmark and large-scale OpenImage dataset with thorough ablation studies. Compared with the state-of-the-art methods, our proposed method achieves the mAP of 49.4 using a single model with ResNet-101 backbone and mAP of 51.2 with heavy SENet154.
+
+# 2. Methods
+
+In this section, we first describe the overall framework of our proposed task-aware spatial disentanglement (TSD), then detail the sub-modules in Sec. 2.2 and 2.3. Finally, we delve into the inherent problem in sibling head and demonstrate the advantage of TSD.
+
+# 2.1. TSD
+
+As shown in Figure.2 (a), denote a rectangular bounding box proposal as $P$ and the ground-truth bounding box as $B$ with class $y$ , the classical Faster RCNN [30] aims to minimize the classification loss and localization loss based on the shared $P$ :
+
+$$
+\mathcal {L} = \mathcal {L} _ {c l s} \left(\mathcal {H} _ {1} \left(F _ {l}, P\right), y\right) + \mathcal {L} _ {l o c} \left(\mathcal {H} _ {2} \left(F _ {l}, P\right), \mathcal {B}\right) \tag {1}
+$$
+
+where $\mathcal{H}_1(\cdot) = \{f(\cdot),\mathcal{C}(\cdot)\}$ and $\mathcal{H}_2(\cdot) = \{f(\cdot),\mathcal{R}(\cdot)\}$ . $f(\cdot)$ is the feature extractor and $\mathcal{C}(\cdot)$ and $\mathcal{R}(\cdot)$ are the functions for transforming feature to predict specific category and localize object. Seminal work [35] thinks the shared $f$ for classification and localization is not optimal, and they disentangle it to $f_{c}$ and $f_{r}$ for classification and regression, respectively. Although the appropriate head-decoupling brings a reasonable improvement, the inherent conflict caused by the tangled tasks in the spatial dimension is still lurking.
+
+For this potential problem, our goal is to alleviate the inherent conflict in sibling head by disentangling the tasks from the spatial dimension. We propose a novel TSD head for this goal as shown in Figure 2. In TSD, the Eq. 1 can be written as:
+
+$$
+\mathcal {L} = \mathcal {L} _ {c l s} ^ {D} \left(\mathcal {H} _ {1} ^ {D} \left(F _ {l}, \hat {P} _ {c}\right), y\right) + \mathcal {L} _ {l o c} ^ {D} \left(\mathcal {H} _ {2} ^ {D} \left(F _ {l}, \hat {P} _ {r}\right), \mathcal {B}\right) \tag {2}
+$$
+
+
+Figure 2. Illustration of the proposed TSD cooperated with Faster RCNN [30]. Input images are first fed into the FPN backbone and then, region proposal $P$ is generated by RPN. TSD adopts the RoI feature of $P$ as input and estimates the derived proposals $\hat{P}_c$ and $\hat{P}_r$ for classification and localization. Finally, two parallel branches are used to predict specific category and regress precise box, respectively.
+
+where disentangled proposals $\hat{P}_c = \tau_c(P, \Delta C)$ and $\hat{P}_r = \tau_r(P, \Delta R)$ are estimated from the shared $P$ . $\Delta C$ is a pointwise deformation of $P$ and $\Delta R$ is a proposal-wise translation. In TSD, $\mathcal{H}_1^D(\cdot) = \{f_c(\cdot), \mathcal{C}(\cdot)\}$ and $\mathcal{H}_2^D(\cdot) = \{f_r(\cdot), \mathcal{R}(\cdot)\}$ .
+
+In particular, TSD tasks the RoI feature of $P$ as input, and then generates the disentangled proposals $\hat{P}_c$ and $\hat{P}_r$ for classification and localization, respectively. Different tasks can be disentangled from the spatial dimension via the separated proposals. The classification-specific feature maps $\hat{F}_c$ and localization-specific feature maps $\hat{F}_r$ can be generated through parallel branches. In the first branch, $\hat{F}_c$ is fed into a three-layer fully connected networks for classification. In the second branch, the RoI feature $\hat{F}_r$ corresponding to derived proposal $\hat{P}_r$ will be extracted and fed into a similar architecture with the first branch to perform localization task. By disentangling the shared proposal for the classification and localization, TSD can learn the task-aware feature representation adaptively. TSD is applicable to most existing RoI-based detectors. As the training procedure adopts an end-to-end manner cooperated with the well-designed progressive constraint (PC), it is robust to the change of backbones and input distributions (e.g., training with different datasets.).
+
+# 2.2. Task-aware spatial disentanglement learning
+
+Inspired by Figure.1, we introduce the task-aware spatial disentanglement learning to alleviate the misalignment caused by the shared spatial clues. As shown in Figure.2 (b), define the RoI feature of $P$ as $F$ , we embed the deformation-learning manner into TSD to achieve this goal. For localization, a three-layer fully connected network $\mathcal{F}_r$ is designed to generate a proposal-wise translation on $P$ to produce a new derived proposal $\hat{P}_r$ . This procedure can be formulated as:
+
+$$
+\Delta R = \gamma \mathcal {F} _ {r} (F; \theta_ {r}) \cdot (w, h) \tag {3}
+$$
+
+where $\Delta R\in \mathbb{R}^{1\times 1\times 2}$ and the output of $\mathcal{F}_r$ for each layer is $\{256,256,2\}$ . $\gamma$ is a pre-defined scalar to modulate the magnitude of the $\Delta R$ and (w, h) is the width and height of $P$ . The derived function $\tau_r(\cdot)$ for generating $\hat{P}_r$ is:
+
+$$
+\hat {P} _ {r} = P + \Delta R \tag {4}
+$$
+
+Eq. 4 indicates the proposal-wise translation where the coordinate of each pixel in $P$ will be translated to a new coordinate with the same $\Delta R$ . The derived proposal $\hat{P}_r$ only focuses on the localization task and in the pooling function, we adopt the bilinear interpolation the same as [5] to make $\Delta R$ differentiable.
+
+For classification, given the shared $P$ , a pointwise deformation on a regular grid $k \times k$ is generated to estimate a derived proposal $\hat{P}_c$ with an irregular shape. For (x,y)-th grid, the translation $\Delta C(x, y, *)$ is performed on the sample points in it to obtain the new sample points for $\hat{P}_c$ . This procedure can be formulated as:
+
+$$
+\Delta C = \gamma \mathcal {F} _ {c} (F; \theta_ {c}) \cdot (w, h) \tag {5}
+$$
+
+where $\Delta C\in \mathbb{R}^{k\times k\times 2}$ . $\mathcal{F}_c$ is a three-layer fully connected network with output $\{256,256,k\times k\times 2\}$ for each layer and $\theta_{c}$ is the learned parameter. The first layer in $\mathcal{F}_r$ and $\mathcal{F}_c$ is shared to reduce the parameter. For generating feature map $\hat{F}_c$ by irregular $\hat{P}_c$ , we adopt the same operation with deformable RoI pooling [5]:
+
+$$
+\hat {F} _ {c} (x, y) = \sum_ {p \in G (x, y)} \frac {\mathcal {F} _ {B} \left(p _ {0} + \Delta C (x , y , 1) , p _ {1} + \Delta C (x , y , 2)\right)}{| G (x , y) |} \tag {6}
+$$
+
+where $G(x,y)$ is the (x,y)-th grid and $|G(x,y)|$ is the number of sample points in it. $(p_x,p_y)$ is the coordinate of the sample point in grid $G(x,y)$ and $\mathcal{F}_B(\cdot)$ is the bilinear interpolation [5] to make the $\Delta C$ differentiable.
+
+# 2.3. Progressive constraint
+
+At the training stage, the TSD and the sibling detection head defined in Eq. 1 can be jointly optimized by $\mathcal{L}_{cls}$ and $\mathcal{L}_{loc}$ . Beyond this, we further design the progressive constraint (PC) to improve the performance of TSD as shown in Figure.2 (c). For classification branch, PC is formulated as:
+
+$$
+\mathcal {M} _ {c l s} = \left| \mathcal {H} _ {1} (y | F _ {l}, P) - \mathcal {H} _ {1} ^ {D} \left(y | F _ {l}, \tau_ {c} (P, \Delta C)\right) + m _ {c} \right| _ {+} \tag {7}
+$$
+
+where $\mathcal{H}(y|\cdot)$ indicates the confidence score of the $y$ -th class and $m_c$ is the predefined margin. $|\cdot|_+$ is same as ReLU function. Similarly, for localization, there are:
+
+$$
+\mathcal {M} _ {l o c} = \left| I o U (\hat {\mathcal {B}}, \mathcal {B}) - I o U (\hat {\mathcal {B}} _ {D}, \mathcal {B}) + m _ {r} \right| _ {+} \tag {8}
+$$
+
+where $\hat{\mathcal{B}}$ is the predicted box by sibling head and $\hat{\mathcal{B}}_D$ is regressed by $\mathcal{H}_2^D (F_l,\tau_r(P,\Delta R))$ . If $P$ is a negative proposal, $M_{loc}$ is ignored. According to these designs, the whole loss function of TSD with Faster RCNN can be define as:
+
+$$
+\mathcal {L} = \underbrace {\mathcal {L} _ {r p n} + \mathcal {L} _ {c l s} + \mathcal {L} _ {l o c}} _ {\text {c l a s s i c a l} \text {l o s s}} + \underbrace {\mathcal {L} _ {c l s} ^ {D} + \mathcal {L} _ {l o c} ^ {D} + \mathcal {M} _ {c l s} + \mathcal {M} _ {l o c}} _ {\text {T S D} \text {l o s s}} \tag {9}
+$$
+
+We directly set the loss weight to 1 without carefully adjusting it. Under the optimization of $\mathcal{L}$ , TSD can adaptively learn the task-specific feature representation for classification and localization, respectively. Extensive experiments in Sec.3 indicates that disentangling the tangled tasks from the spatial dimension can significantly improve the performance.
+
+# 2.4. Discussion in context of related works
+
+In this section, we delve into the inherent conflict in tangled tasks. Our work is related to previous works in different aspects. We discuss the relations and differences in detail.
+
+# 2.4.1 Conflict in sibling head with tangled tasks
+
+Two core designs in classical Faster RCNN are predicting the category for a given proposal and learning a regression function. Due to the essential differences in optimization, classification task requires translation-agnostic property and to the contrary, localization task desires translation-aware property. The specific translation sensitivity property for classification and localization can be formulated as:
+
+$$
+\begin{array}{l} \mathcal {C} (f (F _ {l}, P)) = \mathcal {C} (f (F _ {l}, P + \varepsilon)), \\ \mathcal {C} (f ^ {\prime} (F _ {l}, P)) = \mathcal {C} (f ^ {\prime} (F _ {l}, P + \varepsilon)). \end{array} \tag {10}
+$$
+
+$$
+\mathcal {R} (f (F _ {l}, P)) \neq \mathcal {R} (f (F _ {l}, P + \varepsilon))
+$$
+
+where $\forall \varepsilon, IoU(P + \varepsilon, \mathcal{B}) \geq T$ . $\mathcal{C}$ is to predict category probability and $\mathcal{R}$ is the regression function whose output is $(\Delta \hat{x}, \Delta \hat{y}, \Delta \hat{w}, \Delta \hat{h})$ . $f(\cdot)$ is the shared feature extractor
+
+in classical sibling head and $T$ is the threshold to determine whether $P$ is a positive sample. There are entirely different properties in these two tasks. The shared spatial clues in $F_{l}$ and feature extractor for these two tasks will become the obstacles to hinder the learning. Different from [35, 15, 5, 43] where the evolved backbone or feature extractor is designed, TSD decouples the classification and regression from spatial dimension by separated $\hat{P}_{*}$ and $f_{*}(\cdot)$ .
+
+# 2.4.2 Different from other methods
+
+IoU-Net [15] first illustrates the misalignment between classification and regression. To alleviate this, it directly predicts the IoU to adjust the classification confidence via an extra branch. Unfortunately, this approach does not solve the inherent conflict between tangled tasks. For this same problem, Double-Head R-CNN [35] explores the optimal architectures for classification and localization, respectively. To learn more effective feature representation, DCN [5] with deformable RoI pooling is proposed to extract the semantic information from the irregular region. Whether evolving the backbone or adjusting the detection head, performance can be improved, but the increase is limited.
+
+In this paper, we observe that the essential problem behind the limited performance is the misaligned sensitivity in the spatial dimension between classification and localization. Neither designing better feature extraction methods nor searching for the best architecture can solve this problem. In this dilemma, TSD is proposed to decouple the classification and localization from both the spatial dimension and feature extractor. TSD first performs spatial disentanglement for classification and localization via separated proposals and feature extractors to break the predicament. With the further well-designed PC, it can learn the optimal sensitive location for classification and localization, respectively. Moreover, TSD is still applicable to DCN [5] although deformable RoI pooling in DCN is used to assist in estimating $\hat{F}_c$ . By task-aware spatial disentanglement, the simple TSD can easily achieve excellent performance for different backbones.
+
+# 3. Experiments
+
+We perform extensive experiments with variant backbones on the 80-category MS-COCO dataset [23] (object detection and instance segmentation) and 500-category OpenImageV5 challenge dataset [16]. For COCO dataset, following the standard protocol [27], training is performed on the union of $80\mathrm{k}$ train images and $35\mathrm{k}$ subset of val images and testing is evaluated on the remaining $5\mathrm{k}$ val images (minimal). We also report results on $20\mathrm{k}$ test-dev. For OpenImage dataset, following the official protocol [16], the model is trained on 1,674,979 training images and evaluated
+
+
+(a) $\mathrm{D}_{s8}$
+
+
+(b) $\mathrm{D}_{s16}$
+
+
+(c) $\mathrm{D}_{s32}$
+
+
+(d) $\mathrm{D}_{head}$
+Figure 3. Ablation studies on variant disentanglement options. (a)-(d) indicate disentangling the detector from stride 8, stride 16, stride 32 and sibling head, respectively.
+
+on the 34,917 val images. The $\mathrm{AP}_{5}$ on public leaderboard is also reported.
+
+# 3.1. Implementation details
+
+We initialize weights from pre-trained models on ImageNet [31] and the configuration of hyper-parameters follows existing Faster RCNN [30]. Images are resized such that the shorter edge is 800 pixels. The anchor scale and aspect ratio are set to 8 and $\{0.5, 1, 2\}$ . We train the models on 16 GPUs (effective mini-batch size is 32) for 13 epochs, with a learning rate warmup strategy [11] from 0.00125 to 0.04 in the first epoch. We decrease the learning rate by 10 at epoch 8 and epoch 11, respectively. RoIAlign [13] is adopted in all experiments, and the pooling size is 7 in both $\mathcal{H}_1^*$ and $\mathcal{H}_2^*$ . We use SGD to optimize the training loss with 0.9 momentum and 0.0001 weight decay. No data augmentations except standard horizontal flipping are used. Synchronized BatchNorm mechanism [29, 11] is used to make multi-GPU training more stable. At the inference stage, NMS with 0.5 IoU threshold is applied to remove duplicate boxes. For experiments in the OpenImage dataset, class-aware sampling is used.
+
+# 3.2. Ablation studies
+
+In this section, we conduct detailed ablation studies on COCO minival to evaluate the effectiveness of each module and illustrate the advance and generalization of the proposed TSD. $m_{c}$ and $m_{r}$ are set to 0.2 in these experiments.
+
+Task-aware disentanglement. When it comes to tangled tasks conflict in sibling detection head, it's natural to think about decoupling different tasks from the backbone or detection head. To evaluate these ideas, we conduct several experiments to illustrate the comparison between them. As shown in Figure.3, we design different decoupling options including backbone disentanglement and head disentanglement. Detailed performance is shown in Table.1. Decoupling the classification and localization from the backbone largely degrades the performance. It clearly shows that the
+
+| Disentanglement | #param | AP | AP.5 | AP.75 |
| ResNet-50 | 41.8M | 36.1 | 58.0 | 38.8 |
| ResNet-50+Ds8 | 81.1M | 22.3 | 46.3 | 16.7 |
| ResNet-50+Ds16 | 74.0M | 22.0 | 46.2 | 16.3 |
| ResNet-50+Ds32 | 59M | 20.3 | 44.7 | 13.2 |
| ResNet-50+Dhead | 55.7M | 37.3 | 59.4 | 40.2 |
| TSD w/o PC | 58.9M | 38.2 | 60.5 | 41.1 |
+
+semantic information in the backbone should be shared by different tasks. As expected, the task-specific head can significantly improve the performance. Compared with $\mathrm{D}_{\text {head }}$ , TSD w/o PC can further enhance the AP with the slight increased parameters, even for the demanding $\mathrm{AP}_{.75}$ . When faced with heavy backbones, a slight increased parameter is trivial but can still significantly improve the performance. This also substantiates the discussion in Sec. 2.4.1 that disentangling the tasks from spatial dimension can effectively alleviate the inherent conflict in sibling detection head.
+
+Table 1. Detailed performance and #parameter of different disentanglement methods.
+
+| Method | AP | AP.5 | AP.75 |
| TSD w/o PC | 38.2 | 60.5 | 41.1 |
| + Joint training with sibling head H* | 39.7 | 61.7 | 42.8 |
+
+Joint training with sibling head $\mathcal{H}_{*}$ . In TSD, the shared proposal $P$ can also be used to perform classification and localization in an extra sibling head. We empirically observe that the training of sibling head is complementary to the training of TSD, and the results are demonstrated in Table.2. This indicates that the derived proposals $\hat{P}_c$ and $\hat{P}_r$ are not conflict with the original proposal $P$ . At the inference stage, only the TSD head is retained.
+
+Table 2. Result of joint training with sibling $\mathcal{H}_{*}$ . The ResNet-50 with FPN is used as the basic detector.
+
+| Method | TSD | PC | AP | AP.5 | AP.75 |
| Mcls | Mloc |
| ResNet-50 | ✓ | | | 39.7 | 61.7 | 42.8 |
| ResNet-50 | ✓ | ✓ | | 40.1 | 61.7 | 43.2 |
| ResNet-50 | ✓ | | ✓ | 40.8 | 61.7 | 43.8 |
| ResNet-50 | ✓ | ✓ | ✓ | 41.0 | 61.7 | 44.3 |
+
+Table 3. Ablation studies on PC. All of the experiments is joint training with sibling head $\mathcal{H}_{*}$ . $\mathrm{m}_c$ and $\mathrm{m}_r$ are set to 0.2.
+
+Effectiveness of PC. In Sec. 2.3, we further propose the PC to enhance the performance of TSD. Table.3 reports the detailed ablations on it. We find that PC significantly improves the $\mathrm{AP}_{.75}$ by 1.5 and $\mathrm{AP}_{.5}$ is barely affected. This demonstrates that PC aims to advocate more confidential classification and precise regression for the accurate boxes. Even on the strict testing standards AP (IoU from 0.5:0.95),
+
+1.3 AP gain can also be obtained.
+
+| Method | PC | Pc | Pr | AP | AP.5 | AP.75 |
| TSD | | Point.w | - | 38.0 | 60.3 | 40.89 |
| TSD | | Point.w | Point.w | 38.5 | 60.7 | 41.7 |
| TSD | | Point.w | Prop.w | 38.2 | 60.5 | 41.1 |
| TSD | ✓ | Prop.w | Prop.w | 39.8 | 60.1 | 42.9 |
| TSD | ✓ | Point.w | Point.w | 40.7 | 61.8 | 44.4 |
| TSD | ✓ | Point.w | Prop.w | 41.0 | 61.7 | 44.3 |
+
+Derived proposal learning manner for $\mathcal{H}_*^D$ . There are different programmable strategies to generate the derived proposal $\hat{P}_r$ and $\hat{P}_c$ including proposal-wise translation (Prop.w) in Eq. 4, pointwise deformation (Point.w) such as deformable RoI pooling [5] or the tricky combination of them. To explore the differences of these learning manners, we conduct extensive experiments for COCO minival with ResNet-50. Table.4 demonstrates the comparison results. These comparisons illustrate that Point.w is beneficial to the classification task and cooperated with PC, Prop.w performs a slight advantage on localization. For generating the derived proposals, classification requires the optimal local features without regular shape restrictions and regression requires the maintenance of global geometric shape information.
+
+
+Figure 4. Results of TSD with variant $\mathfrak{m}_{*}$ for PC. These experiments are conducted based on ResNet-50 with FPN.
+
+Delving to the effective PC. PC demonstrates its superiority on regressing more precise bounding boxes. The hyper-parameters $m_{c}$ and $m_{r}$ play important roles in the training of TSD and to better understand their effects on performance, we conduct detailed ablation studies on them. Figure.4 reports the results and note that both of the $\mathcal{M}_{los}$ and $\mathcal{M}_{cls}$ can further improve the performance.
+
+# 3.3. Applicable to variant backbones
+
+Since the TSD and PC have demonstrated their outstanding performance on ResNet-50 with FPN, we further delve
+
+Table 4. Results of different proposal learning manners for ${\mathcal{H}}_{ * }^{D}$ .
+
+| Method | Ours | AP | AP.5 | AP.75 | runtime |
| ResNet-50 | | 36.1 | 58.0 | 38.8 | 159.4 ms |
| ResNet-50 | ✓ | 41.0 | 61.7 | 44.3 | 174.9 ms |
| ResNet-101 | | 38.6 | 60.6 | 41.8 | 172.4ms |
| ResNet-101 | ✓ | 42.4 | 63.1 | 46.0 | 189.0ms |
| ResNet-101-DCN | | 40.8 | 63.2 | 44.6 | 179.3ms |
| ResNet-101-DCN | ✓ | 43.5 | 64.4 | 47.0 | 200.8ms |
| ResNet-152 | | 40.7 | 62.6 | 44.6 | 191.3ms |
| ResNet-152 | ✓ | 43.9 | 64.5 | 47.7 | 213.2ms |
| ResNeXt-101 [36] | | 40.5 | 62.6 | 44.2 | 187.5ms |
| ResNeXt-101 [36] | ✓ | 43.5 | 64.5 | 46.9 | 206.6ms |
+
+into the adaptation on variant backbones. Based on Faster R-CNN, we directly conduct several experiments with different backbones and Table.5 summarizes the detailed performance on COCO minival. TSD can steadily improve the performance by $3\% \sim 5\%$ with additional $\sim 10\%$ time cost. Note that ResNet-50+TSD with 58.9M parameter can even outperform the ResNet-152 with 76.39M parameter. Based on the ResNet family, TSD is a more preferred choice than increasing backbone to improve performance. If not specified, all subsequent TSD indicates TSD+PC.
+
+Table 5. Results of TSD + PC with variant backbones. DCN means deformable convolution. The runtime includes network forward and post-processing (e.g., NMS for object detection). The runtime is the averaged value on a single Tesla V100 GPU and CPU E5-2680 v4.
+
+| Method | TSD | AP.5 (Val) | AP.5 (LB) |
| ResNet-50 | | 64.64 | 49.79 |
| ResNet-50 | ✓ | 68.18 | 52.55 |
| Cascade-DCN-SENet154 | | 69.27 | 55.979 |
| Cascade-DCN-SENet154 | ✓ | 71.17 | 58.34 |
| DCN-ResNeXt101* | | 68.70 | 55.05 |
| DCN-ResNeXt101* | ✓ | 71.71 | 58.59 |
| DCN-SENet154* | | 70 | 57.771 |
| DCN-SENet154* | ✓ | 72.19 | 60.5 |
+
+Table 6. Results of TSD on OpenImage dataset. * indicates we expand the anchor scale to $\{8,11,14\}$ and anchor aspect ratio to $\{0.1,0.5,1,2,4,8\}$ . Furthermore, mult-scale test is used for public leaderboard (LB) except for ResNet-50.
+
+# 3.4. Applicable to Mask R-CNN
+
+The proposed algorithms largely surpass the classical sibling head in Faster R-CNN. Its inherent properties determine its applicability to other R-CNN families such as Mask R-CNN for instance segmentation. To validate this, we conduct experiments with Mask R-CNN [13]. Performances are shown in Table.7 and the training configuration in Mask R-CNN is the same as the experiments in Faster R-CNN. It's obvious that TSD is still capable of detection branch in Mask R-CNN. The instance segmentation mask AP can also obtain promotion.
+
+| Method | Ours | \( AP^{bb} \) | \( AP^{bb}_{.5} \) | \( AP^{bb}_{.75} \) | \( AP^{mask} \) | \( AP^{mask}_{.5} \) | \( AP^{mask}_{.75} \) |
| ResNet-50 w. FPN | | 37.2 | 58.8 | 40.2 | 33.6 | 55.3 | 35.4 |
| ResNet-50 w. FPN | ✓ | 41.5 | 62.1 | 44.8 | 35.8 | 58.3 | 37.7 |
| ResNet-101 w. FPN | | 39.5 | 61.2 | 43.0 | 35.7 | 57.9 | 38.0 |
| ResNet-101 w. FPN | ✓ | 43.0 | 63.6 | 46.8 | 37.2 | 59.9 | 39.5 |
+
+Table 7. Results of Mask R-CNN with TSD. The proposed methods are only applied on the detection branch in Mask R-CNN. $\mathrm{AP}^{bb}$ means the detection performance and $\mathrm{AP}^{mask}$ indicates the segmentation performance.
+
+| Method | backbone | b&w | AP | \( AP_{.5} \) | \( AP_{.75} \) | \( AP_s \) | \( AP_m \) | \( AP_l \) |
| RefineDet512 [41] | ResNet-101 | | 36.4 | 57.5 | 39.5 | 16.6 | 39.9 | 51.4 |
| RetinaNet800 [22] | ResNet-101 | | 39.1 | 59.1 | 42.3 | 21.8 | 42.7 | 50.2 |
| CornerNet [17] | Hourglass-104 [28] | | 40.5 | 56.5 | 43.1 | 19.4 | 42.7 | 53.9 |
| ExtremeNet [42] | Hourglass-104 [28] | | 40.1 | 55.3 | 43.2 | 20.3 | 43.2 | 53.1 |
| FCOS [34] | ResNet-101 | | 41.5 | 60.7 | 45.0 | 24.4 | 44.8 | 51.6 |
| RPDet [39] | ResNet-101-DCN | ✓ | 46.5 | 67.4 | 50.9 | 30.3 | 49.7 | 57.1 |
| CenterNet511 [6] | Hourglass-104 | ✓ | 47.0 | 64.5 | 50.7 | 28.9 | 49.9 | 58.9 |
| TridentNet [20] | ResNet-101-DCN | ✓ | 48.4 | 69.7 | 53.5 | 31.8 | 51.3 | 60.3 |
| NAS-FPN [8] | AmoebaNet (7 @ 384) | ✓ | 48.3 | - | - | - | - | - |
| Faster R-CNN w FPN [21] | ResNet-101 | | 36.2 | 59.1 | 39.0 | 18.2 | 39.0 | 48.2 |
| \( Auto-FPN^† \)[38] | ResNet-101 | | 42.5 | - | - | - | - | - |
| Regionlets [37] | ResNet-101 | | 39.3 | 59.8 | - | 21.7 | 43.7 | 50.9 |
| Grid R-CNN [27] | ResNet-101 | | 41.5 | 60.9 | 44.5 | 23.3 | 44.9 | 54.1 |
| Cascade R-CNN [2] | ResNet-101 | | 42.8 | 62.1 | 46.3 | 23.7 | 45.5 | 55.2 |
| DCR [4] | ResNet-101 | | 40.7 | 64.4 | 44.6 | 24.3 | 43.7 | 51.9 |
| \( IoU-Net^† \)[15] | ResNet-101 | | 40.6 | 59.0 | - | - | - | - |
| Double-Head-Ext \( ^† \)[35] | ResNet-101 | | 41.9 | 62.4 | 45.9 | 23.9 | 45.2 | 55.8 |
| SNIPER [32] | ResNet-101-DCN | ✓ | 46.1 | 67.0 | 51.6 | 29.6 | 48.9 | 58.1 |
| DCNV2 [43] | ResNet-101 | ✓ | 46.0 | 67.9 | 50.8 | 27.8 | 49.1 | 59.5 |
| PANet [24] | ResNet-101 | ✓ | 47.4 | 67.2 | 51.8 | 30.1 | 51.7 | 60.0 |
| GCNet [3] | ResNet-101-DCN | ✓ | 48.4 | 67.6 | 52.7 | - | - | - |
| \( TSD^† \) | ResNet-101 | | 43.1 | 63.6 | 46.7 | 24.9 | 46.8 | 57.5 |
| TSD | ResNet-101 | | 43.2 | 64.0 | 46.9 | 24.0 | 46.3 | 55.8 |
| \( TSD^* \) | ResNet-101-DCN | ✓ | 49.4 | 69.6 | 54.4 | 32.7 | 52.5 | 61.0 |
| \( TSD^* \) | SENet154-DCN [14] | ✓ | 51.2 | 71.9 | 56.0 | 33.8 | 54.8 | 64.2 |
+
+Table 8. Comparisons of single-model results for different algorithms evaluated on the COCO test-dev set. $b\& w$ indicates training with bells and whistles such as multi-scale train/test, Cascade R-CNN or DropBlock [7]. $\dagger$ indicates the result on COCO minival set.
+
+# 3.5. Generalization on large-scale OpenImage
+
+In addition to evaluate on the COCO dataset, we further corroborate the proposed method on the large-scale OpenImage dataset. As the public dataset with large-scale boxes and hierarchy property, it brings a new challenge to the generalization of detection algorithms. To fully delve the effectiveness of the proposed algorithm, we run a number of ablations to analyze TSD. Table.6 illustrates the comparison and note that, even for heavy backbone, TSD can still give satisfactory improvements. Furthermore, TSD is complementary to Cascade R-CNN [2] and embedding it into this framework can also enhance the performance by a satisfactory margin.
+
+# 3.6. Comparison with state-of-the-Arts
+
+In this section, we evaluate our proposed method on COCO test-dev set and compare it with other state-of-the
+
+art methods. $m_{c}$ and $m_{r}$ are set to 0.5 and 0.2, respectively. For a fair comparison, we report the results of our methods under different settings in Table.8. For comparison with Grid R-CNN [27], we extend the training epochs for ResNet-101 to be consistent with it. For comparing with the best single-model TridentNet*, in TSD*, we apply the same configuration with it including multi-scale training, soft-NMS [1], deformable convolutions and the $3 \times$ training scheme on ResNet-101. The best single-model ResNet-101-DCN gives an AP of 49.4, already surpassing all of the other methods with the same backbone. To our best knowledge, for a single model with ResNet-101 backbone, our result is the best entry among the state-of-the-arts. TSD demonstrates its advantage on promoting precise localization and confidential classification, especially on higher IoU thresholds (AP.75). Furthermore, we explore the upper-bound of TSD with a heavy backbone. Surprisingly, it can
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 5. Visualization of the learnt $\hat{P}_r$ and $\hat{P}_c$ on examples from the COCO minival set. The first row indicates the proposal $P$ (yellow box) and the derived $\hat{P}_r$ (red box) and $\hat{P}_c$ (pink point, center point in each grid). The second row is the final detected boxes where the white box is ground-truth. TSD deposes the false positives in the first two columns and in other columns, it regresses more precise boxes.
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6. mAP across IoU criteria from 0.5 to 0.9 with 0.1 interval.
+
+achieve the AP of 51.2 with the single-model SENet154-DCN on COCO test-dev set. Soft-NMS is not used in this evaluation.
+
+# 3.7. Analysis and discussion
+
+Performance in different IoU criteria. Since TSD exhibits superior ability on regressing precise localization and predicting confidential category, we conduct several evaluations with more strict IoU criteria on COCO minival. Figure.6 illustrates the comparison between TSD based Faster R-CNN and baseline Faster R-CNN with the same ResNet-50 backbone across IoU thresholds from 0.5 to 0.9. Obviously, with the increasing IoU threshold, the improvement brought by TSD is also increasing.
+
+Performance in different scale criteria. We have analyzed the effectiveness of TSD under different IoU criteria. To better explore the specific improvement, we further test the mAP under objects with different scales. Table.9 reports the performance and TSD shows successes in objects with variant scales, especially for medium and large objects.
+
+What did TSD learn? Thanks to the task-aware spatial disentanglement (TSD) and the progressive constraint (PC), stable improvements can be easily achieved whether for variant backbones or variant datasets. Beyond the quantitative promotion, we wonder what TSD learned compared with the sibling head in Faster R-CNN. To better interpret
+
+| Criteria | TSD | AP.5 | AP.6 | AP.7 | AP.8 | AP.9 |
| APsmall | | 38.4 | 33.7 | 26.7 | 16.2 | 3.6 |
| APsmall | ✓ | 40.0 | 35.6 | 28.8 | 17.7 | 5.3 |
| APmedium | | 62.9 | 58.4 | 49.7 | 33.6 | 8.7 |
| APmedium | ✓ | 67.7 | 62.4 | 54.9 | 40.2 | 15.4 |
| APlarge | | 69.5 | 65.5 | 56.8 | 43.2 | 14.8 |
| APlarge | ✓ | 74.8 | 71.6 | 65.0 | 53.2 | 27.9 |
+
+Table 9. mAP across scale criteria from 0.5 to 0.9 with 0.1 interval.
+
+this, We showcase the illustrations of our TSD compared with sibling head as shown in Figure. 5. As expected, through TSD, it can depose many false positives and regress the more precise box boundary. For $\hat{P}_r$ , it tends to translate to the boundary that is not easily regressed. For $\hat{P}_c$ , it tends to concentrate on the local appearance and object context information as it did in sibling head with deformable RoI pooling [5]. Note that the tangled tasks in sibling head can be effectively separated from the spatial dimension.
+
+# 4. Conclusion
+
+In this paper, we present a simple operator TSD to alleviate the inherent conflict in sibling head, which learns the task-aware spatial disentanglement to bread through the performance limitation. In particular, TSD derives two disentangled proposals from the shared proposal and learn the specific feature representation for classification and localization, respectively. Further, we propose a progressive constraint to enlarge the performance margin between the disentangled and the shared proposals, which provides additional performance gain. Without bells and whistles, this simple design can easily boost most of the backbones and models on both COCO and large scale OpenImage consistently by $3\% \sim 5\%$ , and is the core model in our 1st solution of OpenImage Challenge 2019.
+
+# 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. 7
+[2] 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. 7
+[3] 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. 7
+[4] Bowen Cheng, Yunchao Wei, Honghui Shi, Rogerio Feris, Jinjun Xiong, and Thomas Huang. Revisiting rcnn: On awakening the classification power of faster rcnn. In The European Conference on Computer Vision (ECCV), September 2018. 7
+[5] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 764-773, 2017. 1, 3, 4, 6, 8
+[6] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 7
+[7] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In Advances in Neural Information Processing Systems, pages 10727-10737, 2018. 7
+[8] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Nas-fpn: Learning scalable feature pyramid architecture for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7036-7045, 2019. 1, 7
+[9] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015. 1
+[10] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Region-based convolutional networks for accurate object detection and segmentation. IEEE transactions on pattern analysis and machine intelligence, 38(1):142-158, 2015. 1
+[11] Priya Goyal, Piotr Dolkar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. 5
+[12] Zekun Hao, Yu Liu, Hongwei Qin, Junjie Yan, Xiu Li, and Xiaolin Hu. Scale-aware face detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6186-6195, 2017. 1
+[13] 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. 5, 6
+
+[14] 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. 7
+[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. 1, 4, 7
+[16] 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. 4
+[17] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In Proceedings of the European Conference on Computer Vision (ECCV), pages 734-750, 2018. 1, 7
+[18] Buyu Li, Yu Liu, and Xiaogang Wang. Gradient harmonized single-stage detector. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8577-8584, 2019. 1
+[19] Hongyang Li, Yu Liu, Wanli Ouyang, and Xiaogang Wang. Zoom out-and-in network with map attention decision for region proposal and object detection. International Journal of Computer Vision, 127(3):225-238, 2019. 1
+[20] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. arXiv preprint arXiv:1901.01892, 2019. 7
+[21] 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. 1, 7
+[22] 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. 7
+[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 4
+[24] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8759-8768, 2018. 7
+[25] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pages 21-37. Springer, 2016. 1
+[26] Yu Liu, Hongyang Li, Junjie Yan, Fangyin Wei, Xiaogang Wang, and Xiaou Tang. Recurrent scale approximation for object detection in cnn. In Proceedings of the IEEE International Conference on Computer Vision, pages 571-579, 2017. 1
+[27] Xin Lu, Buyu Li, Yuxin Yue, Quanquan Li, and Junjie Yan. Grid r-cnn. In Proceedings of the IEEE Conference on Com
+
+puter Vision and Pattern Recognition, pages 7363-7372, 2019. 4, 7
+[28] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In European conference on computer vision, pages 483-499. Springer, 2016. 7
+[29] Chao Peng, Tete Xiao, Zeming Li, Yuning Jiang, Xiangyu Zhang, Kai Jia, Gang Yu, and Jian Sun. Megdet: A large mini-batch object detector. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6181-6189, 2018. 5
+[30] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015. 1, 2, 3, 5
+[31] 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. 5
+[32] Bharat Singh, Mahyar Najibi, and Larry S Davis. Sniper: Efficient multi-scale training. In Advances in Neural Information Processing Systems, pages 9310-9320, 2018. 7
+[33] Guanglu Song, Yu Liu, Ming Jiang, Yujie Wang, Junjie Yan, and Biao Leng. Beyond trade-off: Accelerate fcn-based face detector with higher accuracy. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7756-7764, 2018. 1
+[34] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 7
+[35] Yue Wu, Yinpeng Chen, Lu Yuan, Zicheng Liu, Lijuan Wang, Hongzhi Li, and Yun Fu. Rethinking classification and localization in r-cnn. arXiv preprint arXiv:1904.06493, 2019. 1, 2, 4, 7
+[36] Saining Xie, Ross Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017. 6
+[37] Hongyu Xu, Xutao Lv, Xiaoyu Wang, Zhou Ren, Navaneeth Bodla, and Rama Chellappa. Deep regionlets for object detection. In Proceedings of the European Conference on Computer Vision (ECCV), pages 798-814, 2018. 7
+[38] Hang Xu, Lewei Yao, Wei Zhang, Xiaodan Liang, and Zhenguo Li. Auto-fpn: Automatic network architecture adaptation for object detection beyond classification. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1, 7
+[39] Ze Yang, Shaohui Liu, Han Hu, Liwei Wang, and Stephen Lin. Reppoints: Point set representation for object detection. arXiv preprint arXiv:1904.11490, 2019. 7
+[40] Xingyu Zeng, Wanli Ouyang, Junjie Yan, Hongsheng Li, Tong Xiao, Kun Wang, Yu Liu, Yucong Zhou, Bin Yang, Zhe Wang, et al. Drafting gbd-net for object detection. IEEE transactions on pattern analysis and machine intelligence, 40(9):2109-2123, 2017. 1
+
+[41] Shifeng Zhang, Longyin Wen, Xiao Bian, Zhen Lei, and Stan Z Li. Single-shot refinement neural network for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4203-4212, 2018. 7
+[42] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 850-859, 2019. 7
+[43] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9308-9316, 2019. 4, 7
\ No newline at end of file
diff --git a/revisitingthesiblingheadinobjectdetector/images.zip b/revisitingthesiblingheadinobjectdetector/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..46085edc56a9214e6c98f502eb48e826afedef86
--- /dev/null
+++ b/revisitingthesiblingheadinobjectdetector/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:286799a3fabe0dbd176881085faee4b651db07134f95943627b13a26aa770162
+size 725190
diff --git a/revisitingthesiblingheadinobjectdetector/layout.json b/revisitingthesiblingheadinobjectdetector/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1766a390f1fde3086712f4fae5565b400c2bfdda
--- /dev/null
+++ b/revisitingthesiblingheadinobjectdetector/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:279b23c147975f15265725b9da45b16f49fd43808f78cdb419e05efa6d75439f
+size 450057
diff --git a/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_content_list.json b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..17559deaf9b2eb1b98cd5d1235912e8c4cf4e60f
--- /dev/null
+++ b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b30928cff8e2c5dbad13876e7f9e636101b18d48ee851eb4319d9409207ed1c
+size 77087
diff --git a/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_model.json b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..26e40b3c41e708f5f0baede82ad1bfb71508905a
--- /dev/null
+++ b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:947b260ff7de7b6b2282c0b19692f54e634a3141193db1d66a14f56c065626b5
+size 96086
diff --git a/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_origin.pdf b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0ec1aa681c17e1e370ccb935ed6334f72107aa93
--- /dev/null
+++ b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/1b0456e9-12eb-4b10-a2ca-1aaf78686a62_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df70158511e392e2c627ca5093123c26c46456bf559ad6aa93c6fe914a6a7154
+size 7195181
diff --git a/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/full.md b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8a89251583c9523140f2ddd64988e3b70250c327
--- /dev/null
+++ b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/full.md
@@ -0,0 +1,343 @@
+# RiFeGAN: Rich Feature Generation for Text-to-Image Synthesis from Prior Knowledge
+
+Jun Cheng $^{1,2}$ , Fuxiang Wu $^{1,2*}$ , Yanling Tian $^{3}$ , Lei Wang $^{1,2}$ , Dapeng Tao $^{4}$
+$^{1}$ CAS Key Laboratory of Human-Machine Intelligence-Synergy Systems, Shenzhen Institutes of Advanced Technology, CAS, China
+2 The Chinese University of Hong Kong, Hong Kong, China
+3 Graduate School of Information, Production and Systems, Waseda University, Japan
+$^{4}$ School of Information Science and Engineering, Yunnan University, China
+
+{jun.cheng,fx.wul,lei.wang1}@siat.ac.cn,tianyanling@fuji.waseda.jp,dptao@ynu.edu.cn
+
+# Abstract
+
+Text-to-image synthesis is a challenging task that generates realistic images from a textual sequence, which usually contains limited information compared with the corresponding image and so is ambiguous and abstractive. The limited textual information only describes a scene partly, which will complicate the generation with complementing the other details implicitly and lead to low-quality images. To address this problem, we propose a novel rich feature generation text-to-image synthesis, called RiFeGAN, to enrich the given description. In order to provide additional visual details and avoid conflicting, RiFeGAN exploits an attention-based caption matching model to select and refine the compatible candidate captions from prior knowledge. Given enriched captions, RiFeGAN uses self-attentional embedding mixtures to extract features across them effectually and handle the diverging features further. Then it exploits multi-captions attentional generative adversarial networks to synthesize images from those features. The experiments conducted on widely-used datasets show that the models can generate images from enriched captions effectually and improve the results significantly.
+
+# 1. Introduction
+
+Generating realistic images from text descriptions is one of the most active research areas in recent years [10, 12, 16, 21, 24, 26, 33, 37]. Since natural language is one of the easiest ways to interact with people, text-to-image synthesis plays an important role in many areas, like the dual learning mechanism in captioning [31], and has wide potential applications, for instance, art generation, computer-aided design, and early-childhood education. Recently, many meth
+
+1) this bird is yellow with black and has a long, pointy beak.
+(2) the bird has a black body with yellow belly and black crown and bill.
+3) a small bird with black crown and throat and yellow wingbars and belly.
+(4) a bird with a yellow bottom half and black upper half with black yellow and white ....
+(5) yellow belly bird with black throat, crown, and wings with a white wingbars.
+6) this bird is yellow with black and has a long beak.
+7) this is a black bird with a yellow abdomen and tail coverts.
+8) this bird is yellow with black and has a yellow belly.
+9) this bird has wings that are black and has a yellow belly.
+10) this bird has a yellow belly and a black head and wing.
+
+
+(a) Real Image
+
+
+(b) DM-GAN
+
+
+(c) Our
+Figure 1. Captions and their corresponding images: $(a)$ is a real image; $(b)$ is generated by DM-GAN [37] with the first caption; $(c)$ is synthesized by our model without SAEMs with all captions; $(d)$ is synthesized by our model with all captions. The bold words in a caption indicate the prominent features of a bird, and a caption only describes part of the features.
+
+
+(d) Our
+
+ods have focused on improving generators of Generative Adversarial Networks (GANs) [8], like BigGANs [5], and training methods, such as Wasserstein GANs [2,9], to synthesize high-quality images. However, due to the ambiguity, abstraction and limited information of natural language, one caption lacks of much detailed information of objects. Thus the conditional generator is required to complement those details, which will make the generator complex and its training difficult.
+
+As shown in Fig.1, each caption only describes part of the features of a bird $(a)$ . Training with several corresponding captions from the same image, such as captions of $I$ - $10$ , can be simultaneously exploited to provide more detailed information. Therefore, the generated image $(d)$ is closer to the real image, compared with image $(b)$ synthesized with only one caption with limited information.
+
+Moreover, a large set of captions is hard to be handled directly to synthesize images. Thus image $(c)$ generated by our model without self-attentional embedding mixtures (SAEMs) is worse than image $(d)$ . To alleviate the problem of limited information and generate desirable visual details efficiently, additional captions, explicit complement, should be retrieved to enrich the description. To retrieve the compatible captions, we introduce an attention-based caption matching model to select candidate captions from prior knowledge built by the training dataset. The complement captions are selected from the candidates by comparing their embedding and the given one's to improve semantic consistency. For example, given the first caption 1) in Fig. 1, the others can be retrieved as complements to provide additional information.
+
+More captions can provide more visual details, but understanding their semantic meaning will be much harder since even understanding a long caption is not a trivial task. To resolve this dilemma, we transform the complex task of understanding the full captions into a relatively simpler task of understanding one caption and fusing the representations of the captions. Thus, we extract features from each caption via using an attentional model, followed by self-attentional embedding mixtures (SAEMs) to fuse those embeddings.
+
+In summary, this work has the following contributions:
+
+- We propose a novel framework called RiFeGAN for enriching the given caption from prior knowledge, formed by the training dataset, to tackle the problem of limited information and improve the quality of synthesized images.
+- We introduce a caption matching method, by using an attentional text-matching model, to retrieve compatible captions from prior knowledge automatically. Then, multicaptions attentional GANs with SAEMs to extract rich features are exploited to synthesize high-quality images. Consequently, we improve the performance on widely-used datasets significantly.
+
+# 2. Related Work
+
+In this section, we review the recent works of text matching and text-to-image synthesis.
+
+Text Matching: Pang et al. [18] model text matching as image recognition. They construct a matching matrix represented the similarities between words and utilize a convolutional neural network to capture matching patterns. Wan et al. [29] propose a deep architecture exploiting positional sentence representations, generated by a bidirectional long short term memory (Bi-LSTM), k-Max pooling, and a multi-layer perceptron, to match two sentences. Lee et al. [14] propose a Stacked Cross Attention model to align image regions and words and compute the image-text similarity. Yang et al. [32] present a fast and strong RE2 with multiple alignment processes to match two sentences.
+
+Most of GANs-based generative methods have achieved
+
+great progress on image generation and will be introduced from four aspects as follows:
+
+Generating with One Caption: Reed et al. [21] exploit deep symmetric structured joint embedding strategy to create visually-discriminative embeddings of text descriptions and propose an effective conditional GAN to synthesize plausible images according to the embeddings. Zhang et al. [35] transform the complex generating problem into several sub-problems and exploit multiple generators arranged in a tree-like structure to synthesize images progressively. Besides, they introduce a conditioning augmentation to stabilize the training process. Zhang et al. [36] introduce a single-stream generator architecture, which applies the hierarchical-nested adversarial objectives to regularize mid-level representations, to adapt jointed discriminators better and generate high-resolution images.
+
+Generating with One Caption and Understanding: Qiao et al. [19] propose a LeicaGAN to learn and imagine the prior of the diverse objects about semantics, textures, colors, shapes, and layouts. Qiao et al. [20] introduce a MirrorGAN to connect the dual tasks, text-to-image synthesis and text captioning, and constrain the regenerated caption aligning with the given caption.
+
+Generating with One Caption Attentionally: Xu et al. [30] propose multi-stage AttnGANs that synthesize different parts of a scene by focusing on different words in a caption. At the first stage, the generator uses the sentence embedding to synthesize an image. In the next stage, the word-context features are calculated by an attentional model and fed into the next generator. Based on AttnGANs, Zhu et al., [37] propose the Dynamic Memory Generative Adversarial Network (DM-GAN) to address the problems of heavily relying on the initial images and unchanged text representation in different stages.
+
+Generating with Multi-captions: Sharma et al. [24] extend the caption by adding a dialogue describing the scene further. Then the Skip-thought [13] or recurrent neural networks (RNNs) [1, 23] are exploited to get the embedding of the dialogue, and the StackGAN [35] is employed to generate images. Joseph et al. [11] propose Cross-Caption Cycle-Consistent (C4Synth) models to synthesize an image from multiple captions. They are inspired by CycleGAN and construct image generators, text captioners, and the discriminators. The models take the noise and the first caption to generate an image, followed by a discriminator to classify it from the real one and a captioner to generate the caption that should be similar to the next real caption. Next, the models iteratively process the remaining captions as described previously by replacing the noise with the output features of the previous generator. Thus, to generate an image, the generator needs to run as many times as the number of captions.
+
+Difference to Existing Works: Chatpainter [24] ex
+
+
+Figure 2. Model structure: given a caption, several captions, enriched features, will be retrieved from the knowledge base by exploiting text matching and refining models.
+
+ploits Skip-thought or RNNs to encode the sentences of dialogue to compute the embedding, then directly feeds the embedding into the StackGAN to synthesize images. Our work utilizes caption matching to enrich the descriptions and exploit SAEMs to extract features from multi-captions in an attentional framework. The results demonstrate the effectivity of our models. C4Synth [11] needs to run many times to synthesize an image, and the models need captioning models to generate captions, which makes the models more complex in training. Different from them, our work directly exploits a caption with enriched or multiple captions so that the full generator only executes only one time per image, and does not need the captioning model to help the training. Moreover, our work, firstly, exploits caption enriching to generate rich features and SAEMs to utilize multi-captions more effectively and achieves significant improvement.
+
+# 3. Text-to-Image Synthesis with Rich Feature
+
+In Fig 2, given a caption, we firstly enrich it instead of synthesizing images directly. In the caption matching, since there are several captions of an image in common datasets, similar to human memory, we treat each image and its captions of the training part as an item in the knowledge base (memories). Thus, the enriching process will retrieve the compatible items from the knowledge base and refine the captions of the items to return the best complement as the middle part of Fig. 2. Then, given enriched captions, an attentional GAN with SAEMs is introduced to synthesize images with the captions efficiently.
+
+# 3.1. Caption Matching with Prior Knowledge
+
+Given a caption, caption matching needs to return its compatible captions to enhance it, which are hard tasks in NLP. In order to simplify this problem, we treat the problem as an information retrieval problem and recall the relevant captions from the training dataset. Thus, given a dataset, we treat it as prior knowledge, a knowledge base $\Omega = \{\omega_i\}$ , where each item $\omega_{i}$ consists of an image $I_{i}$ and its captions $\{t_{i,k}\}_{k = 0}^{N^T}$ . Given a caption $t$ and an item $\omega_{i}$ , to evaluate their compatible score, we exploit RE2 [32], a fast and strong neural architecture for general purpose text match
+
+ing, to measure their score as,
+
+$$
+S _ {c o m p a t} (t, \omega_ {i}) = \frac {1}{N ^ {T}} \sum_ {k = 0} ^ {N ^ {T}} S _ {R E 2} (t, t _ {i, k}) \tag {1}
+$$
+
+where scorer $S_{RE2}(t_1, t_2)$ returns the matching score of given captions $t_1$ and $t_2$ . The scorer consists of several encoders, alignment layers, and fusion layers as shown in the second block of Fig. 2. The encoders stack several convolutional networks with the same padding to extract context embedding of words instead of recurrent networks. The alignment layer computes aligned representations of two sequences $\{c_{1,i}\}$ and $\{c_{2,i}\}$ as,
+
+$$
+\left\{ \begin{array}{l} c _ {1, i} ^ {\prime} = \sum_ {j} \alpha_ {i, j} ^ {\prime} \cdot c _ {2, j} \\ c _ {2, i} ^ {\prime} = \sum_ {j} \alpha_ {j, i} ^ {\prime} \cdot c _ {1, j} \end{array} \right. \tag {2}
+$$
+
+where $\alpha_{i,j}^{\prime}$ is an attentional weight proportional to the dot product of $c_{1,i}$ and $c_{1,j}$ . Fusion layers consist of feedforward networks to fuse $c_{*,i}^{\prime}$ and $c_{*,i}$ . Then, the multi-layer feed-forward neural network is exploited to return their matching score.
+
+Since the captions $\{t_{i,k}\}_{k = 0}^{NT}$ of item $\omega_{i}$ depict $I_{i}$ simultaneously, they are compatible with each other. Thus, we construct a positive sample $(t_i,\omega_{i,c})$ by selecting a caption from an item $\omega_{i}$ as $t_i$ randomly, and select the rest of the item as the context $\omega_{i,c}$ . Because the captions of different classes are likely conflicted with each other, we construct the negative samples $(t_{r(i)},\omega_{i,c})$ by selecting a caption $t_{r(i)}$ of $\omega_{r(i)}$ , where $r(i)\neq i$ returns a random index to $\Omega$ , and the classes of indexed items are different. Therefore, similar to the Pairwise Ranking Loss focusing on relative preferences between items, the compatible score is formed as a logistic regression, and the training loss is as follows,
+
+$$
+\begin{array}{l} L _ {c o m p a t} (\Omega) = - \frac {1}{N ^ {T}} \sum_ {i = 0} ^ {N ^ {T}} \sigma \left(S _ {c o m p a t} \left(t _ {i}, \omega_ {i, c}\right)\right) \tag {3} \\ + \sigma \left(S _ {c o m p a t} \left(t _ {r (i)}, \omega_ {i, c}\right)\right) \\ \end{array}
+$$
+
+where $\sigma$ is a sigmoid function. Given a caption $t$ , the K-best candidate captions, denoted by $\Omega_K(t)$ , can be retrieved from $\Omega$ by using Eq. 1. To improve the semantic consistency and exclude the conflicted captions further, we refine the captions by selecting $N^{test}$ captions whose embeddings are more closer to that of $t$ than others in terms of cosine similarity.
+
+
+Figure 3. The processing flow of multi-captions attentional GANs with SAEMs: $F_{i}$ is an upsampling module; $G_{i}$ and $D_{i}$ are the generator and discriminator respectively; $F_{i}^{attn}$ is an attention module taking $h_{i}$ and word embeddings as input; SAEM and MultiCaps-DAMSM state for self-attentional embedding mixer and multi-captions deep attentional multimodal similarity model respectively.
+
+# 3.2. Multi-captions Attentional GANs
+
+In text-to-image synthesis, given a caption, its embedding $e$ is created by using a text encoder and fed into conditional GANs to generate images. AttnGAN [30] can efficiently draw different sub-regions with different words. Thus, as described in Fig. 3, we construct the attentional GANs with SAEMs and MultiCaps-DAMSM, which will be elaborated in the following part, to support multicaptions. $F_{1}$ is an upsampling module which consists of a fully connected layer, followed by several upsampling modules constructed by an upsampling layer, a $3\times 3$ convolutional layer, a batch normalization layer, and a gated linear layer. $F_{2}$ and $F_{3}$ are upsampling modules which consist of several residual networks and an upsampling module. The module $G_{i}$ converts the inner feature $h_i\in R^{N_i\times N_w\times N_h}$ into an image by using a $3\times 3$ convolutional layer and a tanh activation function. $D_{i}$ is a discriminator constructed by several convolutional layers, batch normalization layers, and leaky rectified linear units. $F_{i}^{\text{attn}}$ is an attention module which takes the word features $w$ and the inner feature $h_{i}$ as input and computed as follows,
+
+$$
+F _ {i} ^ {a t t n} (h _ {i}, w) = \left[ \sum_ {k = 1} ^ {T} \alpha_ {1, k} w _ {k}, \dots , \sum_ {k = 1} ^ {T} \alpha_ {N _ {3}, k} w _ {k} \right] \quad (4)
+$$
+
+where $N_{3} = N_{w}\cdot N_{h}$ ; $\mathrm{T}$ is the length of $w$ ; the attentional weights are computed as,
+
+$$
+\alpha_ {j, k} = \frac {\exp \left(s _ {j , k}\right)}{\sum_ {k} \left(\exp \left(s _ {j , k}\right)\right)} \tag {5}
+$$
+
+where $s_{j,k}$ is the dot product of $h_{i,j}$ and $w_{k}$ ; $F_{ca}$ is the Conditioning Augmentation [35] projecting the text embedding into a lower conditional space to enforce the smoothness and encourage robustness.
+
+In Fig. 3, given a set of captions $\mathbf{T} = \{t_j\}_{j=0}^{N_T}$ , we exploit text encoders $f_{word}^{txt}$ and $f_{cap}^{txt}$ , which are bi-direction Long Short-Term Memories (LSTMs) [23], to extract the word features and the sentence feature of $t_j$ . In the first stage, $F_1$ takes $\hat{c}$ , the total feature computed by a SAEM, as input to
+
+calculate the inner features $h_1$ and synthesize an image. In the next stage, the attentional model $F_1^{attn}$ takes the word features and $h_1$ as input to get the attentional features for each caption, followed by a SAEM to compute the total attentional features $\hat{w}_1^j$ . Then $\hat{w}_1^j$ and $h_1$ are combined to synthesize the larger image by $F_2$ and $G_2$ . The third stage is similar to the second stage except MultiCaps-DAMSM will introduce an additional constraint in training.
+
+# 3.2.1. Self-Attentional Embedding Mixture
+
+Attention-based models have been applied successfully in many areas, like the dual task, captioning [7, 15]. Moreover, Zhang et al. [34] introduce a self-attention mechanism into convolutional GANs and achieve significant improvement in terms of Inception score [22]. Thus, we introduce SAEMs to fuse the embeddings of captions. Given the hidden state $h_i$ , generated by $F_i$ , for each $t_j$ , its corresponding embeddings are calculated as follows,
+
+$$
+\left\{ \begin{array}{l} \hat {c} ^ {j} = F _ {c a} \left(f _ {c a p} ^ {t x t} \left(t _ {j}\right)\right) \\ \hat {w} _ {i} ^ {j} = F _ {i} ^ {\text {a t t n}} \left(h _ {i}, f _ {\text {w o r d}} ^ {t x t} \left(t _ {j}\right)\right) \end{array} \right. \tag {6}
+$$
+
+where $\hat{c}^j\in R^{N_c}$ is the whole embedding of $t_j$ . $\hat{w}_i^j\in$ $R^{N_i\times N_i\times N_w}$ is the conditional embedding where each element focuses on different words. Therefore, in order to extract the whole embedding of captions $\mathbf{T}$ , we exploit selfattentional module [27] to fuse those embeddings as follows,
+
+$$
+\left\{ \begin{array}{l} \hat {c} = f _ {\text {m a x}} \left(f _ {\text {p o s w}} \left(L _ {\text {M H A}} \left(\left[ \hat {c} ^ {0}, \hat {c} ^ {1}, \dots , \hat {c} ^ {N _ {T}} \right]\right)\right)\right) \\ \hat {w} _ {i} = f _ {\text {m a x}} \left(f _ {\text {p o s w}} \left(L _ {\text {M H A}} \left(\left[ \hat {w} _ {i} ^ {0}, \hat {w} _ {i} ^ {1}, \dots , \hat {w} _ {i} ^ {N _ {T}} \right]\right)\right)\right) \end{array} \right. \tag {7}
+$$
+
+where $f_{max}(x)$ returns a tensor, the element of which is maximal across columns of $x$ ; $f_{posw}$ is the Position-wise Feed-Forward Networks, $L_{MHA}(v)$ is a multi-head attenuated version of the feedforward network.
+
+
+Figure 4. Multi-captions deep attentional multimodal similarity model.
+
+tion layer as follows,
+
+$$
+\begin{array}{l} L _ {M H A} (v) = \\ L _ {n l} \left(L _ {d r o p} \left(\left[ \begin{array}{c} H _ {0} (v) \\ \dots \\ H _ {N _ {H}} (v) \end{array} \right] ^ {T} \cdot M _ {3}\right) + v\right) \end{array} \tag {8}
+$$
+
+where $M_3 \in R^{N_H \cdot N_i \times N_i}$ is a projecting matrix; $L_{nl}$ is a layer normalization. The attentional function $H_i(E)$ is defined as,
+
+$$
+H _ {k} (v) = L _ {a t t} \left(M _ {4, 1} ^ {k} \cdot v, M _ {4, 2} ^ {k} \cdot v, M _ {4, 3} ^ {k} \cdot v\right) \tag {9}
+$$
+
+where $M_{4,1}^{j}, M_{4,2}^{j}, M_{4,3}^{j} \in R^{N_{i} \times N_{i}}$ are the matrixes projecting the input embedding into question, key, value space, respectively. The function $L_{att}(Q, K, V) = \text{softmax}(\beta \cdot Q \cdot K^{T}) \cdot V$ is the Scaled Dot-Product Attention [27], where $\beta$ is a scale value to counteract the problem of small gradients.
+
+# 3.2.2. Multi-Caps DAMSM
+
+As shown in Fig. 4, we consider the captions $\mathbf{T}$ simultaneously and employ the DAMSM [30] to guide the generator. Therefore, the Multi-Caps DAMSM loss is defined as,
+
+$$
+\hat {L} _ {D A M S M} (I, \mathbf {T}) = \sum_ {k = 0} ^ {N _ {T}} \mu_ {k} \cdot L _ {D A M S M} (I, t _ {k}) \tag {10}
+$$
+
+where $\mu_{k}$ is the weight of the sentence $t_k$ to indicate its importance. Eq. 10 forces the generated image $I$ to fit the whole descriptions $\mathbf{T}$ . $L_{DAMSM}(Q,D)$ is the loss of DAMSM as,
+
+$$
+\begin{array}{l} L _ {D A M S M} (I, t _ {k}) = L _ {1} ^ {w} \left(f _ {\text {p a r t}} ^ {\text {i m g}} (I), f _ {\text {w o r d}} ^ {\text {t x t}} (t _ {k})\right) \\ + L _ {2} ^ {w} \left(f _ {\text {p a r t}} ^ {\text {a m g}} (I), f _ {\text {w o r d}} ^ {\text {t x t}} \left(t _ {k}\right)\right) \\ + L _ {1} ^ {s} \left(f _ {\text {f u l l}} ^ {\text {i m g}} (I), f _ {\text {c a p}} ^ {\text {t x t}} \left(t _ {k}\right)\right) \tag {11} \\ + L _ {2} ^ {s} \left(f _ {f u l l} ^ {i m g} (I), f _ {c a p} ^ {t x t} \left(t _ {k}\right)\right) \\ \end{array}
+$$
+
+where $L_1^w, L_2^w$ and $L_1^s, L_2^s$ are the word and sentence loss functions [30] describing the matching probability between the images and their corresponding captions. Given a batch of image-sentence pairs, $L_1^w$ computes the cross entropy loss of the similarities between images and captions; The similarity between an image $I$ and a caption $t$ is computed by using the cosine similarity between embeddings
+
+of words and their corresponding attentional representations extracted from $I$ . $L_2^w$ , $L_1^s$ and $L_2^s$ are handled similarly. $f_{part}^{img}$ and $f_{full}^{img}$ extract the sub-region features and the global feature by using an image encoder built upon the Inception-v3 model [25], followed by a $1 \times 1$ convolutional layer and a multi-layer perceptron, respectively.
+
+# 3.2.3. Jointed Training Value Function
+
+An image synthesized by multi-captions should be conformed to those captions. Thus training with that constraint is beneficial to the generation. With the constraint of multicaptions, the total value function can be written as,
+
+$$
+\begin{array}{l} V \left(D _ {1}, \dots , D _ {K}, G _ {1}, \dots , G _ {K} | \mathbf {T}\right) = \\ \begin{array}{l} \sum_ {i = 1} ^ {K} \left\{\mathbb {E} _ {\boldsymbol {x} \sim p _ {\text {d a t a}} (\boldsymbol {T})} \left[ \log D _ {i} (\boldsymbol {x} | \boldsymbol {T}) \right] + \right. \\ \left. \mathbb {E} _ {\hat {\boldsymbol {x}} \sim p _ {G _ {i}} (\boldsymbol {T})} \left[ \log \left(1 - D _ {i} (\hat {x} | \boldsymbol {T})\right) \right] \right\} + \end{array} \tag {12} \\ \boldsymbol {\lambda} \cdot \mathbb {E} _ {\hat {\boldsymbol {x}} \sim p _ {G _ {K}} (\mathbf {T})} [ \hat {L} _ {D A M S M} (\hat {\boldsymbol {x}}, \mathbf {T}) ]. \\ \end{array}
+$$
+
+where $\hat{\pmb{x}}\sim p_{G_i}(\mathbf{T})$ is the image synthesized by the generator $G_{i}$ , given the condition $\mathbf{T}$ ; $\lambda$ is a hyper-parameter for adjusting the constraint; $K$ is the number of the stages of the generators.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+We conduct experiments on widely-used datasets, Caltech-UCSD Birds-200-2011 (CUB200) [28] and Oxford-Flower-102 (Oxford102) [17] datasets. Each image in the datasets has 10 captions to describe the fine-grained visual details. Following the works [30, 35], we use the same settings and employ the class zero-shot setting. Despite notable flaws [3] of Inception score, we adopt the fine-tuned Inception models1 to measure the results since it prefers meaningful and diversifying images. In addition to the Inception score, following Xu et al. [30], we exploit the R-precision to measure the caption-image alignment. Specifically, given one ground truth caption and 99 mismatching captions selected randomly, if the cosine similarity between the ground truth and the image is higher than that of others, the retrieving is relevant. The R-precision is the ratio of the relevant in retrieving captions. Since the text-to-image synthesize utilizes several captions explicitly or implicitly, we report the average R-precision between an image $x$ and its caption set $T$ . Besides, we analyze the R-precision between an image and its captions as supplementary.
+
+# 4.2. Quantitative Results
+
+The Inception scores for CUB200 and Oxford102 are shown in Tab. 1, where the baseline systems are taken from AttnGAN [30] and DM-GAN [37]. We evaluate the models with the whole dataset as the knowledge base to retrieve
+
+Table 1. Inception scores on CUB200 and Oxford102 datasets
+
+| Dataset | AttnGAN | DM-GAN | C4Synth | OurF | OurKB | OurSAF | OurKB |
| CUB200 | 4.36 ± 0.03 | 4.75 ± 0.07 | 4.07 ± 0.13 | 4.90 ± 0.07 | 4.79 ± 0.04 | 5.23 ± 0.09 | 4.85 ± 0.08 |
| Oxford102 | 3.91 ± 0.05 | 4.03 ± 0.05 | 3.52 ± 0.15 | 4.23 ± 0.03 | 4.09 ± 0.03 | 4.53 ± 0.05 | 4.23 ± 0.05 |
+
+
+Figure 5. Diagram of Inception score and $N_{test}$ .
+
+
+
+
+Figure 6. Diagram of R-precision and the caption index.
+
+
+
+
+Figure 7. Diagram of Inception score and R-precision influenced by repeat times.
+
+
+
+the best matching captions, denoted with the subscript "F". For the class zero-shot setting, we evaluate them with the knowledge base constructed by the training part of the corresponding dataset, denoted with the subscript "KB". Besides, in order to verify the generating ability, we exploit arbitrary $N_{test}$ captions to synthesize images, denoted with the subscript "RND".
+
+For comparison, we construct the multi-captions attentional GAN without SAEMs, $\mathrm{Our}_F$ and $\mathrm{Our}_{KB}$ , by concatenating the multi-captions into a caption and training with the multi-caps DAMSM and jointed training value function. In the setting "F", the Inception scores of our models at least increase by 0.48 on CUB200 and 0.50 on Oxford102 over the baselines. In the setting "KB", the score of $\mathrm{Our}_{KB}$ at least increases by 0.10 on CUB200 and 0.20 on Oxford102 over the baselines. Without SAEMs, the scores
+
+Table 2. Average R-precision on CUB200 and Oxford102 datasets
+
+ | CUB200 | Oxford102 |
| AttnGAN | 0.198 ± 0.014 | 0.203± 0.015 |
| DM-GAN | 0.215 ± 0.013 | 0.199± 0.014 |
| OurF | 0.182 ± 0.012 | 0.213 ± 0.015 |
| OurKB | 0.130 ± 0.012 | 0.163± 0.014 |
| OurSA | 0.238± 0.015 | 0.267± 0.016 |
| OurSA KB | 0.183± 0.013 | 0.210 ± 0.014 |
| Ground-truth | 0.225± 0.015 | 0.215± 0.014 |
+
+
+Figure 8. The images synthesized with the captions: $\mathrm{Our}_F$ and $\mathrm{Our}_F^{SA}$ synthesize more semantically consistent images with the real images than DM-GAN by using the original captions, while $\mathrm{Our}_F^{SA}$ is better than $\mathrm{Our}_F$ .
+
+will drop 0.33 on CUB200 and 0.30 on Oxford102. In Fig. 5, Inception score is in an upward trend and higher with more captions. Besides, we evaluate Our $^{SA}$ on MS-COCO, and it largely improves the score from 25.89 to 31.70 with the original captions, comparing with AttnGAN.
+
+In Fig. 6, since the images are generated by using the first caption with the caption index 0, the R-precisions between the images and the 0th captions are higher than the others except for the ground truth. Besides, R-precisions between the images and the other captions are higher than that of the irrelevant selecting, because their models are trained with the pairs of an image and a caption selected from its captions randomly and would memory the visual details of other associated captions. Moreover, the R-precisions between the real image and its captions are about 0.22, which are smaller than those of synthesized images at index 0 and indicates that photo-realistic images should contain more visual details than that included in a caption. Our methods explicitly model that associative process by using multi-captions, and their R-precisions are almost higher than those of the real images for $\mathrm{Our}_{F}^{SA}$ , which shows that the synthesized images contain more relevant visual details than the real images depicted by the captions. For $\mathrm{Our}_{KB}^{*}$ , since they exploit the 0th original caption and the recalling captions, which may be not similar to other original captions, to synthesize images. The synthesized image will be close to those captions which may be different from the
+
+
+(a) 1. this fat little bird has a blueish gray body and a faded red head with a black mask.
+2. this bird has wings that are black and has a tan belly.
+
+
+
+
+
+
+Figure 9. Examples synthesized by two captions: the black bold words indicate prominent visual details, while the red words indicate conflicting visual details in captions. Words in black boxes are prominent features in generating steps, specifically, $F_1^{attn}$ and $F_2^{attn}$ .
+
+
+(b) 1. this flower has bright pink petals with yellow highlights.
+2. this flower is yellow and has hundreds of slender yellow petals.
+
+
+
+
+
+
+(d) 1. long thin yellow petals with ridged edges form two layers around a cluster of short bright yellow stamens. 2. the flower has large rounded white clored petals with yellow inner part of petals.
+
+
+
+
+Figure 10. The synthesized images with increasing captions: the bold words in a caption indicate the prominent features, and $1 - b$ indicates the image is generated with the captions from the first one to the $b^{th}$ one.
+
+
+
+original ones because of including additional compatible details. Thus, the R-precisions of the images and the other captions will be lower than those of real images.
+
+In Fig. 7, the R-precision (Inception score) of images synthesized with two captions will be lower (higher) than that with one caption. However, R-precision can be improved by repeating the corresponding caption simply to emphasize it in SAEMs as shown in Fig. 7b). The scores are listed in Tab. 2. The average scores of $\mathrm{Our}_F^{SA}$ are higher than others, specifically, increasing by 0.023 on CUB200 and 0.064 on Oxford102 over the baselines. For $\mathrm{Our}_{KB}^{SA}$ , the score is higher than those of baselines on Oxford102. On CUB200, since classes of birds are more than that of
+
+flowers on Oxford102, the recalling captions may be less relevant to the other original captions than those of flowers, which will result in lower scores compared with that of baselines.
+
+# 4.3. Qualitative Results
+
+In Fig. 8, the results show that images generated by $\mathrm{Our}_F$ and $\mathrm{Our}_F^{SA}$ , with the original captions, are more semantically consistent than that synthesized by DM-GAN, and $\mathrm{Our}_F^{SA}$ is more stable than $\mathrm{Our}_F$ because of the difficulty of extracting the correct visual details from a very long textual sequence. In Fig. 9(a), our models can synthesize the features "black wing" and "tan belly" in the sec
+
+
+Figure 11. Synthesized examples by exploiting the recalling captions: given a caption, caption matching will retrieve the compacted items and select their captions, masked as bold, to synthesize images.
+
+ond caption while retaining the features "gray body" and "black mask" in the first caption. The Fig. 9(b)-(d) show similar results, which indicates our model can extract features from multi-captions effectively and synthesize images in an incremental manner. Besides, for the captions contained some conflicting features, our models will combine the conflicting features into an intermediate feature. For examples, in Fig. 9(c), the conflicting features "tan belly" and "white belly" will be combined into "pale tan belly", in Fig. 9(b), the inner of petals is pink-yellow; in Fig. 9(d), the weight of "yellow" is smaller than that of "white", namely white: $1.000>$ yellow:0.744, thus the feature "yellow petals" is unapparent. Therefore, our models can handle the conflicting features, and combine them into some reasonable intermediate representation.
+
+In Fig. 10, we demonstrate the generated images by adding more captions gradually, which shows that $\mathrm{Our}_F$ and $\mathrm{Our}_F^{SA}$ generate more realistic images than the baseline by utilizing more captions. Besides, it is shown that $\mathrm{Our}_F^{SA}$ can generate more relevant images than $\mathrm{Our}_F$ . For example, in the top left example, $\mathrm{Our}_F$ synthesizes an image with a blue crown when the $8^{th}$ caption is touched. However, "black crown/head" is mentioned four times before the $8^{th}$ caption, which indicates the bird should have a black crown as the images synthesized by our model $\mathrm{Our}_F^{SA}$ . Therefore, the long textual sequence constructed by concatenating captions will confuse $\mathrm{Our}_F$ that it is hard to select and retain the prominent words. Our model $\mathrm{Our}_F^{SA}$ can alleviate those issues by considering each caption individually to divide the complex problem into the easier sub-problems. In the right part of Fig. 10, we further exploit randomly selected captions to synthesize images to explore the generating ability. There are many conflicting features in the randomly selected captions, and the results show that our models can synthesize images with reasonable semantics meaning. For example, in the top right example, when the 7th caption is exploited, "duck" is the prominent feature that causes the synthesized bird similar to a duck. When using 1)-8) captions or more captions, the synthesized images retain the
+
+"mainly black" feature. However, there may be many conflicting features or unseen combination of some visual features in the randomly selecting captions. Therefore, the synthesized images will degrade and may be worse than the one synthesized by one caption since the large set of those features will not provide useful information to the generator but hinder it from extracting the correct features.
+
+In Fig. 11, we present enriching examples with the given captions. Given a caption "the bird has a small black bill and grey breast", the matching will retrieve the compact items, "retrieved item 0" and "retrieved item 1" in Fig. 11, in the knowledge base. The features of items contain both "a small black beak" and "gray breast". The images in the last row show that our model can synthesize high-quality images with more compact visual details than that of AttnGAN. For flowers, the "retrieved item 1" include the features of the given caption, while the "retrieved item 0" only contains "pink petals", thus the matching selects more captions of item 1 than that of item 0. The results demonstrate our model can synthesize high-quality images as well.
+
+# 4.4. Limitation and Discussion
+
+Our models synthesize images based on enriched multicaptions and provide more information to the generator, which alleviates the problem of limited information. The experiments show that it can improve the quality of generated images. Moreover, our model supports incrementally generating, increasing $N_{test}$ , by some interactive operations as the Neural Painter [4], and the SeqAttnGAN [6]. However, images synthesized from multi-captions is not a trivial task. It needs more sophisticated methods in natural language understanding and image synthesis to improve the performance further, such as semantic sentence embeddings [38] and BigGANs [5], which will be our future works.
+
+# 5. Conclusion
+
+In this paper, to address the problem of limited information on the text descriptions and extract high-quality features, we propose a novel text-to-image synthesis model, RiFeGAN, to enrich the given caption and exploit enriched multi-captions to synthesize images. The experiments conducted on widely-used datasets show that our models can synthesize more realistic images and improve Inception scores significantly. Moreover, the results demonstrate that the models can effectively extract visual details across multi-captions even in the conflicting captions.
+
+# Acknowledgments
+
+This work was supported in part by the National Natural Science Foundation of China (U1713213, 61772508, 61772455, U1913202, U1813205), in part by CAS Key Technology Talent Program.
+
+# References
+
+[1] Abrar H. Abdulnabi, Bing Shuai, Zhen Zuo, Lap-Pui Chau, and Gang Wang. Multimodal recurrent neural networks with information transfer layers for indoor scene labeling. IEEE Transactions on Multimedia, 20(7):1656-1671, 2018.
+[2] Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. In Proceedings of International Conference on Machine Learning, ICML, volume 1, pages 298-321, 2017.
+[3] Shane Barratt and Rishi Sharma. A note on the inception score. arXiv preprint arXiv:1801.01973, 2018.
+[4] Ryan Y Benmalek, Claire Cardie, Serge Belongie, Xiadong He, and Jianfeng Gao. The neural painter: Multi-turn image generation. arXiv preprint arXiv:1806.06183, 2018.
+[5] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. In Proceedings of International Conference on Learning Representations, ICLR, 2019.
+[6] Yu Cheng, Zhe Gan, Yitong Li, Jingjing Liu, and Jianfeng Gao. Sequential attention gan for interactive image editing via dialogue. arXiv preprint arXiv:1812.08352, 2018.
+[7] Lianli Gao, Zhao Guo, Hanwang Zhang, Xing Xu, and Heng Tao Shen. Video captioning with attention-based LSTM and semantic consistency. IEEE Transactions on Multimedia, 19(9):2045-2055, 2017.
+[8] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proceedings of Advances in Neural Information Processing Systems, NeurIPS, pages 2672-2680, 2014.
+[9] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of wasserstein gans. In Proceedings of Advances in Neural Information Processing Systems, NeurIPS, pages 5768-5778, 2017.
+[10] 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, CVPR, pages 1219–1228, 2018.
+[11] KJ Joseph, Arghya Pal, Sailaja Rajanala, and Vineeth N Balasubramanian. C4synth: Cross-caption cycle-consistent text-to-image synthesis. arXiv preprint arXiv:1809.10238, 2018.
+[12] Diederik P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. arXiv preprint arXiv:1807.03039, 2018.
+[13] Ryan Kiros, Yukun Zhu, Ruslan R Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Skip-thought vectors. In Proceedings of Advances in Neural Information Processing System, NeurIPS, pages 3294-3302, 2015.
+[14] Kuanghuei Lee, Xi Chen, Gang Hua, Houdong Hu, and Xiaodong He. Stacked cross attention for image-text matching. In Proceedings of European Conference on Computer Vision, ECCV, pages 212-228, 2018.
+[15] Linghui Li, Sheng Tang, Yongdong Zhang, Lixi Deng, and Qi Tian. Gla: Global-local attention for image description. IEEE Transactions on Multimedia, 20(3):726-737, 2018.
+
+[16] Yitong Li, Zhe Gan, Yelong Shen, Jingjing Liu, Yu Cheng, Yuexin Wu, Lawrence Carin, David Carlson, and Jianfeng Gao. Storygan: A sequential conditional gan for story visualization. arXiv preprint arXiv:1812.02784, 2018.
+[17] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In Proceedings of Computer Vision, Graphics & Image Processing, ICVGIP, pages 722-729.
+[18] Liang Pang, Yanyan Lan, Jiafeng Guo, Jun Xu, Shengxian Wan, and Xueqi Cheng. Text matching as image recognition. In AAAI Conference on Artificial Intelligence, pages 2793-2799, 2016.
+[19] Tingting Qiao, Jing Zhang, Duanqing Xu, and Dacheng Tao. Learn, imagine and create: Text-to-image generation from prior knowledge. In Advances in Neural Information Processing Systems, pages 885-895. 2019.
+[20] Tingting Qiao, Jing Zhang, Duanqing Xu, and Dacheng Tao. Mirrorgan: Learning text-to-image generation by redescription. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1505-1514, 2019.
+[21] Scott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, and Honglak Lee. Generative adversarial text to image synthesis. In Proceedings of International Conference on Machine Learning, ICML, pages 1681-1690, 2016.
+[22] Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Proceedings of Advances in Neural Information Processing Systems, NeurIPS, pages 2234-2242, 2016.
+[23] Mike Schuster and Kuldip K Paliwal. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11):2673-2681, 1997.
+[24] Shikhar Sharma, Dendi Suhubdy, Vincent Michalski, Samira Ebrahimi Kahou, and Yoshua Bengio. Chatpainter: Improving text to image generation using dialogue. In Proceedings of International Conference on Learning Representations Workshop, 2018.
+[25] 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, CVPR, pages 2818-2826, 2016.
+[26] Fuwen Tan, Song Feng, and Vicente Ordonez. Text2scene: Generating abstract scenes from textual descriptions. arXiv preprint arXiv:1809.01110, 2018.
+[27] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of Advances in Neural Information Processing Systems, NeurIPS, pages 5998-6008, 2017.
+[28] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. (CNS-TR-2011-001), 2011.
+[29] Shengxian Wan, Yanyan Lan, Jiafeng Guo, Jun Xu, Liang Pang, and Xueqi Cheng. A deep architecture for semantic matching with multiple positional sentence representations.
+
+In AAAI Conference on Artificial Intelligence, volume 16, pages 2835-2841, 2016.
+[30] Tao Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and Xiaodong He. Attngan: Fine-grained text to image generation with attentional generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR, pages 1316-1324, 2018.
+[31] Min Yang, Wei Zhao, Wei Xu, Yabing Feng, Zhou Zhao, Xiaojun Chen, and Kai Lei. Multitask learning for cross-domain image captioning. IEEE Transactions on Multimedia, 21(4):1047-1061, 2019.
+[32] Runqi Yang, Jianhai Zhang, Xing Gao, Feng Ji, and Haiqing Chen. Simple and effective text matching with richer alignment features. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4699-4709, 2019.
+[33] Mingkuan Yuan and Yuxin Peng. Text-to-image synthesis via symmetrical distillation networks. In Proceedings of ACM Multimedia Conference, ACM MM, pages 1047-1415, 2018.
+[34] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv preprint arXiv:1805.08318, 2018.
+[35] 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, 2018, doi:10.1109/TPAMI.2018.2856256.
+[36] Zizhao Zhang, Yuanpu Xie, and Lin Yang. Photographic text-to-image synthesis with a hierarchically-nested adversarial network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR, pages 6199-6208, 2018.
+[37] Minfeng Zhu, Pingbo Pan, Wei Chen, and Yi Yang. DMGAN: dynamic memory generative adversarial networks for text-to-image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR, pages 5802-5810, 2019.
+[38] Xunjie Zhu, Tingfeng Li, and Gerard de Melo. Exploring semantic properties of sentence embeddings. In Proceedings of Annual Meeting of the Association for Computational Linguistics, ACL, pages 632-637, 2018.
\ No newline at end of file
diff --git a/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/images.zip b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f4dcff6cfd90928f1338e83736a13cbe58919219
--- /dev/null
+++ b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd52aafcc3e206bdb95616fd46f9d0511a8efd122cb5edbcf5358848ec1309ba
+size 901393
diff --git a/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/layout.json b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..18d63764cb5d7b75c985ac324360757ba71f883a
--- /dev/null
+++ b/rifeganrichfeaturegenerationfortexttoimagesynthesisfrompriorknowledge/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8bba1541e68334bcfdd5155dd6f73dc242b66c30acad52bc3494326f90b5ad24
+size 476418
diff --git a/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_content_list.json b/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e2964dc03c4d6aeca2a4eeaf1bce9da53e4a5a2
--- /dev/null
+++ b/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:524c137709e29fa00c2a4ab2933c709a67599382c94c9c7ebcaccf0d2b2271fd
+size 74796
diff --git a/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_model.json b/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..56e34fd641599e58909e0b6a0237f3a3119c1ce9
--- /dev/null
+++ b/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f570c5853af00bf62a307ec9711036bfb98dad50270778e2485f631a606ef4ec
+size 98458
diff --git a/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_origin.pdf b/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..618078766ba7e54b77f9603c3e62ca1a1c497ee1
--- /dev/null
+++ b/robothoranopensimulationtorealembodiedaiplatform/38148b08-adfe-4546-8d03-02a9c5068b7b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:804ec5c56cc075a34304f0cca7e26c0ff3875b153fe535e52734efe62dcd0294
+size 2540867
diff --git a/robothoranopensimulationtorealembodiedaiplatform/full.md b/robothoranopensimulationtorealembodiedaiplatform/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..38e63b30b3af8be76c1d9e6a324ddebbda73dfcb
--- /dev/null
+++ b/robothoranopensimulationtorealembodiedaiplatform/full.md
@@ -0,0 +1,277 @@
+# RoboTHOR: An Open Simulation-to-Real Embodied AI Platform
+
+Matt Deitke $^{2*}$ , Winson Han $^{1*}$ , Alvaro Herrasti $^{1*}$ , Aniruddha Kembhavi $^{1,2*}$ , Eric Kolve $^{1*}$ , Roozbeh Mottaghi $^{1,2*}$ , Jordi Salvador $^{1*}$ , Dustin Schwenk $^{1*}$ , Eli VanderBilt $^{1*}$ , Matthew Wallingford $^{2*}$ , Luca Weihs $^{1*}$ , Mark Yatskar $^{1*}$ , Ali Farhadi $^{2}$ $^{1}$ PRIOR @ Allen Institute for AI $^{2}$ University of Washington ai2thor.allenai.org/robothor
+
+
+Figure 1: We present ROBOTHOR, a platform to develop and test embodied AI agents with corresponding environments in simulation and the physical world. The complexity of environments in ROBOTHOR along with disparities in appearance and control dynamics between simulation and reality pose new challenges and open many avenues for further research.
+
+# Abstract
+
+Visual recognition ecosystems (e.g. ImageNet, Pascal, COCO) have undeniably played a prevailing role in the evolution of modern computer vision. We argue that interactive and embodied visual AI has reached a stage of development similar to visual recognition prior to the advent of these ecosystems. Recently, various synthetic environments have been introduced to facilitate research in embodied AI. Notwithstanding this progress, the crucial question of how well models trained in simulation generalize to reality has remained largely unanswered. The creation of a comparable ecosystem for simulation-to-real embodied AI presents many challenges: (1) the inherently interactive nature of the problem, (2) the need for tight alignments between real and simulated worlds, (3) the difficulty of replicating physical conditions for repeatable experiments, (4) and the associated cost. In this paper, we introduce ROBOTHOR to democratize research in interactive and embodied visual AI. ROBOTHOR offers a framework of simulated environments
+
+paired with physical counterparts to systematically explore and overcome the challenges of simulation-to-real transfer, and a platform where researchers across the globe can remotely test their embodied models in the physical world. As a first benchmark, our experiments show there exists a significant gap between the performance of models trained in simulation when they are tested in both simulations and their carefully constructed physical analogs. We hope that ROBOTHOR will spur the next stage of evolution in embodied computer vision.
+
+# 1. Introduction
+
+For decades, the AI community has sought to create perceptive, communicative and collaborative agents that can augment human capabilities in real world tasks. While the advent of deep learning has led to remarkable breakthroughs in computer vision [33, 24, 48] and natural language processing [45, 16], creating active and intelligent embodied agents continues to be immensely challenging.
+
+The widespread availability of large and open, computer
+
+vision and natural language datasets [50, 34, 47, 66], massive amounts of compute, and standardized benchmarks have been critical to this fast progress. In stark contrast, the considerable costs involved in acquiring physical robots and experimental environments, compounded by the lack of standardized benchmarks are proving to be principal hindrances towards progress in embodied AI. In addition, current state of the art supervised and reinforcement learning algorithms are data and time inefficient; impeding the training of embodied agents in the real world.
+
+Recently, the vision community has leveraged progress in computer graphics and created a host of simulated perceptual environments such as AI2-THOR [32], Gibson [72], MINOS [53] and Habitat [54], with the promise of training models in simulation that can be deployed on robots in the physical world. These environments are free to use, continue to be improved and lower the barrier of entry to research in real world embodied AI; democratizing research in this direction. This has led to progress on a variety of tasks in simulation, including visual navigation [22, 69], instruction following [5, 68] and embodied question answering [21, 15]. But the elephant in the room remains: How well do these models trained in simulation generalize to the real world?
+
+While progress has been ongoing, the large costs involved in undertaking this research has restricted pursuits in this direction to a small group of well resourced organizations. We believe that creating a free and accessible framework that pairs agents acting in simulated environments with robotic counterparts acting in the physical world will open up this important research topic to all—bringing faster progress and potential breakthroughs. As a step towards this goal, we present ROBOTHOR.
+
+ROBOTHOR is a platform to develop artificial embodied agents in simulated environments and test them in both, simulation as well as the real world. A key promise of ROBOTHOR is to serve as an open and accessible benchmarking platform to stimulate reproducible research in embodied AI. With this in mind, it has been designed with the following properties:
+
+- Simulation and Real Counterparts - ROBOTOR consists of a training and validation corpus of 75 scenes in simulation at present. A total of 14 test-dev and test-standard scenes are present in simulation and their counterparts constructed in the physical world. Scenes are designed to have diverse wall and furniture layouts, and all are densely populated by a variety of object categories. Figure 1 shows a view of the dining room in one of the test-dev scenes, in simulation as well as real.
+- Modular - Scenes in ROBOTHOR are built in a modular fashion, drawing from an asset library containing
+
+wall structures, flooring components, ceilings, lighting elements, furniture pieces and objects; altogether totaling 731 unique assets distributed across scenes. This enables scene augmentation and easy expansion of ROBOTHOR to fit the needs of researchers.
+
+- Re-configurable - The physical environments are also built using modular and movable components, allowing us to host scenes with vastly different layouts and furniture arrangements within a single physical space. This allows us to scale our test corpora while limiting their cost and physical footprint. Reconfiguring the space to a new scene can be accomplished in roughly 30 minutes.
+- Accessible to all - The simulation environment, assets and algorithms we develop will be open source. More critically, researchers from all over the world will be able to remotely deploy their models on our hardware at no cost to them. We will be setting up a systematic means of reserving time in our environment.
+- Replicable - The physical space has been designed to be easily replicable by other researchers should they wish to construct their own physical environment. This is achieved through open sourced plans, readily available building components, IKEA furniture, and a low cost amounting to roughly $10,000 in materials and assets to create the physical space. In addition, we use LoCoBot, an inexpensive and easily obtainable robot.
+- Benchmarked - In addition to open sourcing baseline models, we will host challenges involving several embodied AI tasks with a focus on the ability to transfer these models successfully onto robots running in a physical environment.
+
+ROBOTHOR has been designed to support a variety of embodied AI tasks. In this work we benchmark models for semantic navigation, the task of navigating to an instance of the specified category in the environment. The complexity and density of scenes in ROBOTHOR renders this task quite challenging, with humans requiring 49.5 steps (median statistic) to find the target object. We train a set of competitive models using a pure reinforcement learning (RL) approach with asynchronous actor critic (A3C) on the simulated training environments, measure their performance on the simulated as well as real validation environments and arrive at the following revealing findings. (1) Similar to findings in past works such as [69], semantic navigation models struggle with generalizing to unseen environments in simulation. We show that their performance takes an even larger hit when deployed onto a physical robot in the real world. (2) We analyze simulated and real world egocentric views and find a disparity in feature space in spite of the images from the two modalities looking fairly similar to the naked
+
+eye; a key factor affecting the transfer of policies to the real world. (3) As expected and noted in previous works, control dynamics in the real world vary significantly owing to motor noise, slippage, and collisions. (4) Off the shelf image correction mechanisms such as image-to-image translation do not improve performance.
+
+These findings reveal that training embodied AI models that generalize to unseen simulated environments and further yet to the real world remains a daunting challenge; but also open up exciting research frontiers. We hope that ROBOTOR will allow more research teams from across the globe to participate in this research which will result in new model architectures and learning paradigms that can only benefit the field.
+
+# 2. Related Work
+
+Embodied AI Environments. In recent years, several synthetic frameworks have been proposed to investigate tasks including visual navigation, task completion and question answering in indoor scenes [32, 53, 70, 8, 74, 72, 46, 54]. These free virtual environments provide excellent testbeds for embodied AI research by abstracting away the noise in low-level control, manipulation and appearance and allowing models to focus on the high-level end goal. ROBOTHOR provides a framework for studying these problems as well as for addressing the next frontier: transferring models from simulation to the real world.
+
+Robotics research platforms [1, 2] have traditionally been expensive to acquire. More recent efforts have led to low cost robot solutions [58, 3, 43] opening up the space to more research entities. There has been a long history of using simulators in conjunction with physical robots. These largely address tasks such as object manipulation using robotic arms [11] and autonomous vehicles [58, 55].
+
+Visual Navigation. In this paper, we explore models for the task of visual navigation, a popular topic in the robotics and computer vision communities. The navigation problem can be divided into two broad categories, spatial navigation and semantic navigation. Spatial navigation approaches [62, 17, 64, 23, 25, 56, 79, 49, 30, 14, 10] typically address navigating towards a pre-specified coordinate or a frame of a scene and they focus on understanding the geometry of the scene and learning better exploration strategies. For example, [79] address navigation towards a given input image, [10] address navigation towards a point in a scene and [30] learn a collision-free navigation policy. Semantic navigation approaches [22, 75, 69, 71, 39, 52, 41] attempt to learn the semantics of the target in conjunction with navigation. For example, [75] use prior knowledge of object relations to learn a policy that better generalize to unseen scenes or objects. [69] use meta-learning to learn a self-supervised navigation policy toward a specified object category. [71] use prior knowledge of scene layouts to navigate to a spe
+
+cific type of room. We benchmark models on the task of semantic navigation.
+
+Navigation using language instructions has been explored by [5, 68, 18, 31, 67, 36, 37]. This line of work has primarily been tested in simulation; transferability to the real world remains an open question and addressing this via ROBOTOR is a promising future endeavour. Navigation has also been explored in other contexts such as autonomous driving (e.g., [12, 73]) or city navigation (e.g., [38, 13]). In this work, we focus on indoor navigation.
+
+Sim2Real Transfer. Domain adaptation in general as well as Sim2Real in particular, have a long history in computer vision. There are different techniques to adapt models from a source domain to a target domain. The main approaches are based on randomization of the source domain to better generalize to the target domain [63, 29, 51, 44, 61], learning the mapping between some abstraction or higher order statistics of the source and target domains [27, 59, 19, 35, 76, 42, 78], interpolating between the source and the target domain on a learned manifold [20, 9], or generating the target domain using generative adversarial training [7, 60, 57, 6, 26, 28]. ROBOTHOR enables source randomization via scene diversity and asset diversity. We also experiment with using an off the shelf target domain mapping method, the GAN-based model of [77].
+
+# 3. RoboTHOR
+
+State of the art learning algorithms for embodied AI use reinforcement learning based approaches to train models, which typically require millions of iterations to converge to a reasonable policy. Training policies in the real world with real robots would take years to complete, due to the mechanical constraints of robots. Synthetic environments, on the other hand, provide a suitable platform for such training strategies, but how well models trained in simulation transfer to the real world, remains an open question. ROBOTHOR is a platform, built upon the AI2-THOR framework [32] to build and test embodied agents with an emphasis on studying this problem of domain transfer from simulation to the real world.
+
+Scenes. ROBOTHER consists of a set of 89 apartments, 75 in train/val (we use 60 for training and 15 for validation), 4 in test-dev (which are used for validation in the real world) and 10 in test-standard (blind physical test set) drawn from a set of 15, 2 and 5 wall layouts respectively. Apartments that share the same wall layout have completely different room assignments and furniture placements (for example, a bedroom in one apartment might be an office in another). Apartment layouts were designed to encompass a wide variety of realistic living spaces. Figure 3 shows a heatmap of wall placements across the train/val subset. This set of apartments is only instantiated in simulation, while the test-dev and test-standard apartments are also substantiated in
+
+
+Figure 2: Distribution of object categories in ROBOTHOR
+
+
+
+
+
+the physical world. The layouts, furniture, objects, lighting, etc. of the simulation environments have been designed carefully so as to closely resemble the corresponding scenes in their physical counterparts, while avoiding any overlap between the wall layouts and object instances among train/val, test-dev and test-standard. This resemblance will enable researchers to study the discrepancies between the two modalities and systematically identify the challenges of the domain transfer.
+
+Assets. A guiding design principle of ROBOTHOR is modularity, which allows us to easily augment and scale scenes. A large asset library was created by digital artists from which scenes were created by selectively drawing from these assets. This is in contrast to environments that are based on 3D scans of rooms which are challenging to alter and interact with. The framework includes 11 types of furniture (e.g. TV stands and dining tables) and 32 types of small objects (e.g. mugs and laptops) across all scenes. The majority of real furniture and objects were gathered from IKEA. Among the small objects categories, 14 are designated as targets and guaranteed to be found in all scenes for use in semantic navigation tasks. In total there are 731 unique object instances in the asset library with no overlap among train/val, test-dev and test-standard scenes. Figure 2 shows the distribution of object categories amongst the asset library. We distribute object categories as uniformly as possible to avoid bias toward specific locations. Figure 3 shows the spatial distribution of target objects, background objects and furniture in the scenes. Figure 4 shows the distribution of the number of visible objects in a single frame. A large number of frames consist of the agent looking at the wall as is common in apartments, but outside these views many objects are visible to the agent at any given point as it navigates the environment.
+
+Physical space. The physical space for ROBOTHOR is $8.8m \times 3.9m$ . The space is partitioned into rooms and corridors using ProPanel walls, which are designed to be lightweight and easy to set up and tear down, allowing us to easily configure a new apartment layout in a few minutes.
+
+Agent. The physical robot used is a LoCoBot1, which
+
+
+Figure 3: Spatial distribution of objects and walls. Heatmaps illustrate the diverse spatial distribution of target objects, background objects, furniture, and walls.
+
+
+Figure 4: Object visibility statistics. The distribution of objects visible to an agent at a single time instant.
+
+is equipped with an Intel RealSense RGB-D camera. We replicate the robot in simulation with the same physical and camera properties. To mimic the noisy dynamics of the robot movements, we add noise to the controller in simulation. The noise parameters are estimated by manually measuring the error in orientation and displacement over multiple runs.
+
+API. To enable a seamless switch between the synthetic and the real environments, we provide an API that is agnostic to the underlying platform. Hence, agents trained in sim
+
+ulation can be easily deployed onto the LoCoBot for testing. The API was built upon the PyRobot [43] framework to manage control of the LoCoBot base as well as camera.
+
+Connectivity. A main goal of this framework is to provide access to researchers across the globe to deploy their models onto this physical environment. With this in mind, we developed the infrastructure for connecting to the physical robot or the simulated agent via HTTP. A scheduler prevents accessing the same physical hardware by multiple parties.
+
+Localization. We installed Super-NIA-3D localization modules across the physical environment to estimate the location of the robot and return that to the users. For our experiments, we do not use the location information for training as this type of training signal is not usually available in real world scenes. We use this location information only for evaluation and visualization.
+
+# 4. Visual Semantic Navigation
+
+In this paper, we benchmark models for the task of visual semantic navigation, i.e. navigating towards an instance of a pre-specified category. ROBOTHOR enables various embodied tasks such as question answering, task completion and instruction following. Navigation is a key component of all these tasks and is a necessary and important first step towards studying transfer in the context of embodied tasks.
+
+Visual semantic navigation evaluates the agent's capabilities not only in avoiding obstacles and making the right moves towards the target, but also understanding the semantics of the scene and targets. The agent should learn how different instances of an object category look like and should be able to reason about occlusion, scale changes and other variations in object appearance.
+
+More specifically, our goal is to navigate towards an instance of an object category specified by a noun (e.g., Apple) given ego-centric sensory inputs. The sensory input can be an RGB image, a depth image, or combination of both. At each time step the agent must issue one of the following actions: Move Ahead, Rotate Right, Rotate Left, Look Up, Look Down, Done. The action Done signifies that the agent reports that it has reached its goal and leads to an end of episode. We consider an episode successful if (a) the object is in view (b) the agent is within a threshold of distance to the target and (c) the agent reports that it observes the object. The starting location of the agent is a random location in the scene.
+
+The motion of the agent in the simulated world is stochastic in nature, mirroring its behavior in the real world. This renders the task more challenging. Previous works such as [69] consider agent motion along the axes on a grid. But given the end goal of navigating in the real world with motor noise and wheel slippage, deterministic movements in training lead to sub optimal performance during testing.
+
+The semantic navigation task is very challenging owing
+
+to the size and complexity of the scenes. Figure 5 shows the lengths of shortest paths to the target objects, in terms of the Move Ahead and Rotate actions. But shortest path statistics are a bit misleading for the task of semantic navigation because they assume that the agent already knows the location it must travel towards. In fact, the agent must explore until it observes the target, and then move swiftly towards it. We conducted a study where humans were posed with the problem of navigating in scenes in ROBOTHOR (simulation) to find targets. The median number of steps was 49.5 (compared to 22.0 for shortest paths), illustrating the exploration nature of the task. Figure 6 shows an example trajectory from a human compared to the corresponding shortest path.
+
+
+Figure 5: Histogram of actions along the shortest path. The number of actions invoked along the shortest paths to targets in the training scenes. Note that the shortest path is very difficult to obtain in practice, since it assumes a priori knowledge of the scene.
+
+
+Figure 6: Example human trajectory. The shortest path to a target vs the path taken by a human from the same starting location are visualized. The human wanders around looking for the TV and on seeing it, walks straight towards it.
+
+# 4.1. Baseline models
+
+We measure the performance of the following baseline models:
+
+Random - This model chooses an action randomly amongst the set of possible actions. This includes invoking the Done action. The purpose of this baseline is to ascertain if the scenes and starting locations are not overly simplistic.
+
+Instant Done - This model invokes the Done action at the very first time step. The purpose of this baseline is to measure the percentage of trivial starting locations.
+
+Blind - This model receives no sensory input. It only consists of an LSTM with simply a target embedding input. Its purpose is to establish a baseline that can only leverage starting and target location bias in the dataset.
+
+Image-A3C - The agent perceives the scene at time $t$ in the form of an image $o_t$ . The image is fed into a pre-trained and frozen ResNet-18 to obtain a $7 \times 7 \times 512$ tensor, followed by two $1 \times 1$ convolution layers to reduce the channel depth to 32 and finally concatenated with a 64 dimensional embedding of the target word and provided to an LSTM which generates the policy. The agent is trained using the asynchronous advantage actor-critic (A3C) [40] formulation, to act to maximize its expected discounted cumulative reward. Two kinds of rewards are provided: a positive success reward and a negative step reward to encourage efficient paths.
+
+Image+Detection-A3C - The image is fed into Faster-RCNN [48] trained on the MSCOCO dataset. Each resulting detection has a category, probability and box locations and dimensions, which are converted to an embedding using an MLP. The resulting set of embeddings are converted into a tensor $7 \times 7 \times 120$ by aligning detection boxes to spatial grid cells and only considering the top 3 boxes per location. This tensor is concatenated to the tensor obtained for the image modality and then processed as above.
+
+# 4.2. Metrics
+
+We report Success Rate and Success weighted by Path Length (SPL) [4], common metrics for evaluating navigation models. In addition, we also report path lengths in terms of the number of actions taken as well as distance travelled. This quantifies the exploration carried out by the agent.
+
+# 5. Experiments
+
+Training. We train models to navigate towards a single target, a Television with an action space of 4 including Move Ahead, Rotate Right, Rotate Left and Done. The rotation actions rotate the agent by 45 degrees. The agent must issue the Done action when it observes the object. If an agent is successful, it receives a reward of $+5$ . The step penalty at each time step is -0.01. To mimic the noisy dynamics of the real robot, we add noise to the movement of the virtual agent. For translation, we add a gaussian noise with mean $0.001\mathrm{m}$ and standard deviation $0.005\mathrm{m}$ , and for rotation we use a mean of $0^{\circ}$ and standard deviation of $0.5^{\circ}$ .
+
+Models were trained on 8 TITAN X GPUs for 100,000 episodes using A3C with 32 threads. For each episode, we sample a random training scene and random starting location in the scene for the agent. We use the Adam optimizer with a learning rate of 0.0001.
+
+We train the models on a subset of 50 train scenes and report numbers on 2 of the test-dev scenes. We report metrics on starting locations categorized into easy, medium and hard. If the length of the shortest path from the starting point to the target is among the lowest $20\%$ path lengths in that scene, it is considered easy. If it is between $20\%$ and $60\%$ , it is considered medium, and longer paths are considered as hard.
+
+Sim-to-Sim Table 1 shows the results of our benchmarked models when trained on simulation and evaluated on the test-dev scenes in simulation. The trivial baselines Random, Instant Done and Blind perform very poorly, indicating that the dataset lacks a bias that is trivial to exploit using these models. The Image only model performs reasonably well, succeeding at over $50\%$ of easy trajectories but doing very poorly at hard ones. Adding object detection does not help performance. Our analysis in Section 6 shows that object detectors trained in the real world show a drop in performance in simulation, which might be contributing to their ineffectiveness.
+
+Sim-to-Real Due to the slow motion of the robot, episodes on the robot last as long as 10 minutes. This limits the amount of testing that can be done in the real world. Table 2 shows the result of the best performing model on Sim-to-Sim, evaluated on a real scene on a subset of starting locations as those reported in Table 1. This shows that there is a sizeable drop in performance for the real robot, especially in SPL. The robot however, does learn to navigate around and explore its environment fairly safely and over $80\%$ of the trajectories have no collisions with obstacles. This leads to high values for episode lengths in all 3 cases - easy, medium and hard.
+
+Overfit Sim-to-Real The semantic navigation sim-to-real task in ROBOTHOR tests two kinds of generalization: Moving to new scenes and moving from simulation to real. To factor out the former and focus on the latter, we trained a policy on a test-dev scene, (which expectedly led to overfitting on sim) and then deployed this on the robot. Table 3 shows these results and demonstrates the upper bound of current models in the real world if they had memorized the test-dev scene perfectly in simulation. The robot does very well on the easy targets, but is affected a lot on hard targets. For all three modes, the SPL is affected tremendously. Appearance and control variations often lead the robot to spaces away from the target, which does not happen in simulation due to overfitting.
+
+ | Easy | Medium | Hard |
| Success | SPL | Episode length | Path length | Success | SPL | Episode length | Path length | Success | SPL | Episode length | Path length |
| Random | 7.58 | 5.32 | 4.36 | 0.34 | 0.00 | 0.00 | 4.27 | 0.30 | 0.00 | 0.00 | 3.06 | 0.19 |
| Instant Done | 4.55 | 3.79 | 1.00 | 0.00 | 0.00 | 0.00 | 1.00 | 0.00 | 0.00 | 0.00 | 1.00 | 0.00 |
| Blind | 4.55 | 3.79 | 1.00 | 0.00 | 0.00 | 0.00 | 1.00 | 0.00 | 0.00 | 0.00 | 1.00 | 0.00 |
| Image | 55.30 | 38.12 | 45.87 | 9.26 | 28.79 | 19.12 | 78.49 | 14.82 | 1.47 | 0.97 | 81.09 | 14.22 |
| Image+Detection | 36.36 | 19.89 | 63.41 | 11.39 | 11.36 | 5.25 | 90.37 | 16.65 | 0.74 | 0.61 | 83.01 | 14.00 |
+
+Table 1: Benchmark results for Sim-to-Sim
+
+ | Easy | Medium | Hard |
| Success | SPL | Episode length | Path length | Success | SPL | Episode length | Path length | Success | SPL | Episode length | Path length |
| Image | 33.33 | 3.53 | 53.16 | 7.18 | 16.66 | 3.70 | 43.83 | 5.33 | 0.00 | 0.00 | 67.83 | 7.00 |
+
+Table 2: Benchmark results for Sim-to-Real
+
+# 6. Analysis
+
+We now dig deeper into the appearance disparities between real and simulation images via t-sne embeddings, object detection results and the output policies for both modalities. We also provide a study showing the effect of changing camera parameters between real and simulation for the transfer problem. Finally, we evaluate using an image translation method for the purposes of domain adaptation.
+
+Appearance disparities. To the naked eye, images between the real and simulation worlds in ROBOTHOR look quite similar. However when we look at embeddings provided by networks, the disparity becomes more visible. We considered 846 images, each from simulation and real collected from the same locations in the scene, passed these images through ResNet-18 to obtain a 512 dim feature vector and then used t-SNE [65] to reduce the dimensionality to 3. Figure 7 shows these embeddings. One can clearly see the separation of points into real and simulation clusters. This indicates that embeddings of images in the two modalities are different, which goes towards explaining the drop in performance between simulation and real test-dev scenes (see Table 1 and Table 2). Figure 7 also shows the nearest neighbor (cosine similarity) simulation image to one of the real images. We found that although nearest neighbors are not far away spatially, they are still slightly different, sometimes having a different view, or a different distance to an obstacle. This might explain why the robot takes different actions in the real world. This analysis indicates that methods of representation learning might need to be revisited, especially when these representations must work across real and simulation modalities.
+
+Object detection transfer. Since we leverage an off the shelf object detector (Faster-RCNN) trained on natural images (MS-COCO), it is imperative to compare the accuracy of this model on images collected in the real and simulated
+
+
+Figure 7: Comparison of embeddings for real and synthetic images. The scatter plot shows a t-SNE visualization of ResNet-18 (pre-trained on ImageNet) features for images from real and simulated apartments. Also shown are the nearest neighbor in feature space and spatial nearest neighbor, which differ slightly in the viewpoint of the agent.
+
+apartments. We collected 761 corresponding images from both environments, ran Faster-RCNN on them and obtained ground truth annotations for 10 object classes (all of which intersected with MS-COCO classes) on Amazon Mechanical Turk. At an Intersection-over-Union (IOU) of 0.5, we obtained a mAP of 0.338 for real images and 0.255 for simulated ones; demonstrating that there is a performance hit going across modalities. Furthermore, detection probabilities tend to differ between the two modalities as demonstrated in Figure 8, rendering transfer more challenging for
+
+ | Easy | Medium | Hard |
| Success | SPL | Episode length | Path length | Success | SPL | Episode length | Path length | Success | SPL | Episode length | Path length |
| Image Sim-2-Sim | 100 | 82.17 | 8.09 | 1.05 | 100 | 86.17 | 27.52 | 4.77 | 94.12 | 83.18 | 42.26 | 7.90 |
| Image Sim-2-Real | 100 | 12.28 | 15.00 | 2.33 | 83.33 | 18.68 | 43.33 | 5.5 | 50 | 28.53 | 30.16 | 7.54 |
+
+Table 3: Benchmark results for Sim-to-Real trained on a single test-dev scene.
+
+
+Figure 8: Object detection. Results of object detection in a real and simulated image. Solid lines denote high confidence detections whereas dashed lines denote low confidence detections.
+
+models that exploit these probabilities. Note that this transfer is in the opposite direction (Real to Sim) compared to our current transfer setup, but is revealing nonetheless.
+
+Modifying camera parameters. Since the real and simulation apartments were both designed by us, we were able to model the simulation camera close to the one present on LoCoBot. However, to test the sensitivity of the learnt policy to the camera parameters, we performed an experiment where we trained with a Field Of View (FOV) of $90^{\circ}$ and tested with an FOV of $42.5^{\circ}$ . The resulting real world experiments for the Image only model show a huge drop of performance to $16\%$ for easy, and $0\%$ for medium and hard. Interestingly, the robot tends to move very little and instead rotate endlessly. We hypothesize that models trained on simulation likely overfit to the image distribution observed at training, and the images captured at a different FOV vary so significantly in feature space, that they invoke unexpected behaviors. Since popular image representation models are trained on images from the internet, they are biased towards the distribution of cameras that people use to take pictures. Cameras on robots are usually quite different. This suggests that we should fine tune representations to match robot cameras and also consider different camera parameters as a camera augmentation step during training in simulation.
+
+Domain adaptation via image translation. Since appearance statistics vary between real and simulation, we experimented with applying an image-to-image translation technique, CycleGAN [77] to translate real world images towards simulation images. This would enable us to train in simulation and apply the policy on the real robot while processing the translated images. We needed to use a trans
+
+lation model that could use unpaired image data, since we are unable to obtain paired images with 0 error in the placement of the agent. Paired images were obtained for 3 test-dev scenes to train CycleGAN. The policy (trained in simulation) was run on the robot on the remaining test-dev scene. Interestingly, the CycleGAN model does learn to flatten textures and adjust lighting and shadows as seen in Figure 9. However, the resultant robot performance is very poor and obtains $0\%$ accuracy. While image translation looks pleasing to the eye, it does introduce spurious errors which hugely affect the image embeddings and thus the resultant policy.
+
+
+Figure 9: Examples of real to simulation transfer. We use CycleGAN [77] to translate real images towards simulated ones. The model learns to flatten out the texture and adjust the shadows to look like a simulated image.
+
+# 7. Conclusion
+
+In this paper, we presented ROBOTOR, an open, modular, re-configurable and replicable embodied AI platform with counterparts in simulation and the real world, where researchers across the globe can remotely deploy their models onto physical robots and test their algorithms in the physical world. Our preliminary findings show the performance of models drops significantly when transferring from simulation to real. We hope that ROBOTOR will enable more research towards this important problem.
+
+Acknowledgements. This work is in part supported by NSF IIS 1652052, IIS 17303166, DARPA N66001-19-2-4031, 67102239 and gifts from Allen Institute for AI.
+
+# References
+
+[1] Baxter. https://en.wikipedia.org/wiki/Baxter_(robot).3
+[2] Sawyer. https://www.rethinkrobotics.com/sawyer.3
+[3] The MIT RACECAR. https://mit-racecar.github.io, 2016.3
+[4] Peter Anderson, Angel X. Chang, Devendra Singh Chaplot, Alexey Dosovitskiy, Saurabh Gupta, Vladlen Koltun, Jana Kosecka, Jitendra Malik, Roozbeh Mottaghi, Manolis Savva, and Amir Roshan Zamir. On evaluation of embodied navigation agents. arXiv, 2018. 6
+[5] 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 CVPR, 2018. 2, 3
+[6] Konstantinos Bousmalis, Alex Irpan, Paul Wohlhart, Yunfei Bai, Matthew Kelcey, Mrinal Kalakrishnan, Laura Downs, Julian Ibarz, Peter Pastor, Kurt Konolige, Sergey Levine, and Vincent Vanhoucke. Using simulation and domain adaptation to improve efficiency of deep robotic grasping. In ICRA, 2018. 3
+[7] Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In CVPR, 2017. 3
+[8] Simon Brodeur, Ethan Perez, Ankesh Anand, Florian Golemo, Luca Celotti, Florian Strub, Jean Rouat, Hugo Larochelle, and Aaron C. Courville. Home: a household multimodal environment. arXiv, 2017. 3
+[9] Rui Caseiro, Joao F. Henriques, Pedro Martins, and Jorge Batista. Beyond the shortest path: Unsupervised domain adaptation by sampling subspaces along the spline flow. In CVPR, 2015. 3
+[10] Devendra Singh Chaplot, Saurabh Gupta, Dhiraj Gandhi, Abhinav Gupta, and Ruslan Salakhutdinov. Learning to explore using active neural mapping. In CVPR Workshop on Habitat Embodied Agents, 2019. 3
+[11] Yevgen Chebotar, Ankur Handa, Viktor Makoviychuk, Miles Macklin, Jan Issac, Nathan D. Ratliff, and Dieter Fox. Closing the sim-to-real loop: Adapting simulation randomization with real world experience. In ICRA, 2019. 3
+[12] Chenyi Chen, Ari Seff, Alain Kornhauser, and Jianxiong Xiao. Deepdriving: Learning affordance for direct perception in autonomous driving. In ICCV, 2015. 3
+[13] Howard Chen, Alane Suhr, Dipendra Misra, Noah Snavely, and Yoav Artzi. Touchdown: Natural language navigation and spatial reasoning in visual street environments. In CVPR, 2019. 3
+[14] Tao Chen, Saurabh Gupta, and Abhinav Gupta. Learning exploration policies for navigation. In ICLR, 2019. 3
+[15] Abhishek Das, Samyak Datta, Georgia Gkioxari, Stefan Lee, Devi Parikh, and Dhruv Batra. Embodied question answering. In CVPR, 2018. 2
+
+[16] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019. 1
+[17] Dieter Fox, Wolfram Burgard, and Sebastian Thrun. Markov localization for reliable robot navigation and people detection. In Sensor Based Intelligent Robots, 1999. 3
+[18] Daniel Fried, Ronghang Hu, Volkan Cirik, Anna Rohrbach, Jacob Andreas, Louis-Philippe Morency, Taylor Berg-Kirkpatrick, Kate Saenko, Dan Klein, and Trevor Darrell. Speaker-follower models for vision-and-language navigation. In NeurIPS, 2018. 3
+[19] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. JMLR, 2016. 3
+[20] Boqing Gong, Yuan Shi, Fei Sha, and Kristen Grauman. Geodesic flow kernel for unsupervised domain adaptation. In CVPR, 2012. 3
+[21] Daniel Gordon, Aniruddha Kembhavi, Mohammad Rastegari, Joseph Redmon, Dieter Fox, and Ali Farhadi. IQA: Visual question answering in interactive environments. In CVPR, 2018. 2
+[22] Saurabh Gupta, James Davidson, Sergey Levine, Rahul Sukthankar, and Jitendra Malik. Cognitive mapping and planning for visual navigation. In CVPR, 2017. 2, 3
+[23] Raia Hadsell, Pierre Sermanet, Jan Ben, Ayse Erkan, Marco Scoffier, Koray Kavukcuoglu, Urs Muller, and Yann LeCun. Learning long-range vision for autonomous off-road driving. J. of Field Robotics, 2009. 3
+[24] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 1
+[25] Peter Henry, Christian Vollmer, Brian Ferris, and Dieter Fox. Learning to navigate through crowded environments. In ICRA, 2010. 3
+[26] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. CyCADA: Cycle-consistent adversarial domain adaptation. In ICML, 2018. 3
+[27] Judy Hoffman, Dequan Wang, Fisher Yu, and Trevor Darrell. Fcns in the wild: Pixel-level adversarial and constraint-based adaptation. arXiv, 2016. 3
+[28] Haoshuo Huang, Qixing Huang, and Philipp Krahenbuhl. Domain transfer through deep activation matching. In ECCV, 2018. 3
+[29] Stephen James, Andrew J. Davison, and Edward Johns. Transferring end-to-end visuomotor control from simulation to real world for a multi-stage task. In CORL, 2017. 3
+[30] Gregory Kahn, Adam Villaflor, Bosen Ding, Pieter Abbeel, and Sergey Levine. Self-supervised deep reinforcement learning with generalized computation graphs for robot navigation. In ICRA, 2018. 3
+[31] Liyiming Ke, Xiujun Li, Yonatan Bisk, Ari Holtzman, Zhe Gan, Jingjing Liu, Jianfeng Gao, Yejin Choi, and Siddhartha Srinivasa. Tactical rewind: Self-correction via backtracking in vision-and-language navigation. In CVPR, 2019. 3
+
+[32] Eric Kolve, Roozbeh Mottaghi, Winson Han, Eli VanderBilt, Luca Weihs, Alvaro Herrasti, Daniel Gordon, Yuke Zhu, Abhinav Gupta, and Ali Farhadi. AI2-THOR: An Interactive 3D Environment for Visual AI. arXiv, 2017. 2, 3
+[33] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012. 1
+[34] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, Lubomir D. Bourdev, Ross B. Girshick, James Hays, Pietro Perona, Deva Ramanan, C. Lawrence Zitnick, and Piotr Dólar. Microsoft coco: Common objects in context. In ECCV, 2014. 2
+[35] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. Learning transferable features with deep adaptation networks. In ICML, 2015. 3
+[36] Chih-Yao Ma, Jiasen Lu, Zuxuan Wu, Ghassan AlRegib, Zsolt Kira, Richard Socher, and Caiming Xiong. Self-monitoring navigation agent via auxiliary progress estimation. In ICLR, 2019. 3
+[37] Chih-Yao Ma, Zuxuan Wu, Ghassan AlRegib, Caiming Xiong, and Zsolt Kira. The regretful agent: Heuristic-aided navigation through progress estimation. In CVPR, 2019. 3
+[38] Piotr Mirowski, Matthew Koichi Grimes, Mateusz Malinowski, Karl Moritz Hermann, Keith Anderson, Denis Teplayashin, Karen Simonyan, Koray Kavukcuoglu, Andrew Zisserman, and Raia Hadsell. Learning to navigate in cities without a map. In NeurIPS, 2018. 3
+[39] Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer, Andrew J. Ballard, Andrea Banino, Misha Denil, Ross Goroshin, Laurent Sifre, Koray Kavukcuoglu, Dharshan Kumaran, and Raia Hadsell. Learning to navigate in complex environments. In ICLR, 2017. 3
+[40] Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza, Alex Graves, Timothy P. Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In ICML, 2016. 6
+[41] Arsalan Mousavian, Alexander Toshev, Marek Fiser, Jana Kosecka, and James Davidson. Visual representations for semantic target driven navigation. In ECCV Workshop on Visual Learning and Embodied Agents in Simulation Environments, 2018. 3
+[42] Matthias Mueller, Alexey Dosovitskiy, Bernard Ghanem, and Vladlen Koltun. Driving policy transfer via modularity and abstraction. In CORL, 2018. 3
+[43] Adithyavairavan Murali, Tao Chen, Kalyan Vasudev Alwala, Dhiraj Gandhi, Lerrel Pinto, Saurabh Gupta, and Abhinav Gupta. Pyrobot: An open-source robotics framework for research and benchmarking. arXiv, 2019. 3, 5
+[44] Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-real transfer of robotic control with dynamics randomization. In ICRA, 2018. 3
+[45] Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke S. Zettlemoyer. Deep contextualized word representations. In NAACL, 2018. 1
+[46] Xavier Puig, Kevin Ra, Marko Boben, Jiaman Li, Tingwu Wang, Sanja Fidler, and Antonio Torralba. Virtualhome: Simulating household activities via programs. In CVPR, 2018. 3
+
+[47] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100, $000+$ questions for machine comprehension of text. In EMNLP, 2016. 2
+[48] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS. 2015. 1, 6
+[49] Charles Richter and Nicholas Roy. Safe visual navigation via deep learning and novelty detection. In RSS, 2017. 3
+[50] 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, 2014. 2
+[51] Fereshteh Sadeghi and Sergey Levine. CAD2RL: real single-image flight without a single real image. In RSS, 2017. 3
+[52] Nikolay Savinov, Alexey Dosovitskiy, and Vladlen Koltun. Semi-parametric topological memory for navigation. In ICLR, 2018. 3
+[53] Manolis Savva, Angel X. Chang, Alexey Dosovitskiy, Thomas A. Funkhouser, and Vladlen Koltun. MINOS: multimodal indoor simulator for navigation in complex environments. arXiv, 2017. 2, 3
+[54] Manolis Savva, Abhishek Kadian, Oleksandr Maksymets, Yili Zhao, Erik Wijmans, Bhavana Jain, Julian Straub, Jia Liu, Vladlen Koltun, Jitendra Malik, Devi Parikh, and Dhruv Batra. Habitat: A platform for embodied ai research. In ICCV, 2019. 2, 3
+[55] Shital Shah, Debadeepta Dey, Chris Lovett, and Ashish Kapoor. Airsim: High-fidelity visual and physical simulation for autonomous vehicles. In Field and Service Robotics, 2017. 3
+[56] Shaojie Shen, Nathan Michael, and Vijay Kumar. Autonomous multi-floor indoor navigation with a computationally constrained mav. In ICRA, 2011. 3
+[57] Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Josh Susskind, Wenda Wang, and Russell Webb. Learning from simulated and unsupervised images through adversarial training. In CVPR, 2017. 3
+[58] Siddhartha S. Srinivasa, Patrick Lancaster, Johan Michalove, Matt Schmittle, Colin Summers, Matthew Rockett, Joshua R. Smith, Sanjiban Chouhury, Christoforos Mavrogiannis, and Fereshteh Sadeghi. MuSHR: A low-cost, open-source robotic racecar for education and research. arXiv, 2019. 3
+[59] Baochen Sun, Jiashi Feng, and Kate Saenko. Return of frustratingly easy domain adaptation. In AAAI, 2016. 3
+[60] Yaniv Taigman, Adam Polyak, and Lior Wolf. Unsupervised cross-domain image generation. In ICLR, 2017. 3
+[61] Jie Tan, Tingnan Zhang, Erwin Coumans, Atil Iscen, Yunfei Bai, Danijar Hafner, Steven Bohez, and Vincent Vanhoucke. Sim-to-real: Learning agile locomotion for quadruped robots. In RSS, 2018. 3
+[62] Charles Thorpe, Martial H. Hebert, Takeo Kanade, and Steven A. Shafer. Vision and navigation for the carnegiemellon navlab. TPAMI, 1988. 3
+[63] Joshua Tobin, Rachel H Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In IROS, 2017. 3
+
+[64] Chris Urmson, Joshua Anhalt, Drew Bagnell, Christopher Baker, Robert Bittner, M. N. Clark, John Dolan, Dave Duggins, Tugrul Galatali, Chris Geyer, Michele Gittleman, Sam Harbaugh, Martial Hebert, Thomas M. Howard, Sascha Kolski, Alonzo Kelly, Maxim Likhachev, Matt McNaughton, Nick Miller, Kevin Peterson, Brian Pilnick, Raj Rajkumar, Paul Rybski, Bryan Salesky, Young-Woo Seo, Sanjiv Singh, Jarrod Snider, Anthony Stentz, William "Red" Whittaker, Ziv Wolkowicki, Jason Ziglar, Hong Bae, Thomas Brown, Daniel Demitrish, Bakhtiar Litkouhi, Jim Nickolaou, Varsha Sadekar, Wende Zhang, Joshua Struble, Michael Taylor, Michael Darms, and Dave Ferguson. Autonomous driving in urban environments: Boss and the urban challenge. J of Field Robotics, 2008. 3
+[65] Laurens van der Maaten and Geoffrey E. Hinton. Visualizing data using t-sne. JMLR, 2008. 7
+[66] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In BlackboxNLP@EMNLP, 2018. 2
+[67] Xin Wang, Qiuyuan Huang, Asli Celikyilmaz, Jianfeng Gao, Dinghan Shen, Yuan-Fang Wang, William Yang Wang, and Lei Zhang. Reinforced cross-modal matching and self-supervised imitation learning for vision-language navigation. In CVPR, 2019. 3
+[68] Xin Wang, Wenhan Xiong, Hongmin Wang, and William Yang Wang. Look before you leap: Bridging model-free and model-based reinforcement learning for planned-ahead vision-and-language navigation. In ECCV, 2018. 2, 3
+[69] Mitchell Wortsman, Kiana Ehsani, Mohammad Rastegari, Ali Farhadi, and Roozbeh Mottaghi. Learning to learn how to learn: Self-adaptive visual navigation using meta-learning. In CVPR, 2019. 2, 3, 5
+[70] Yi Wu, Yuxin Wu, Georgia Gkioxari, and Yuandong Tian. Building generalizable agents with a realistic and rich 3d environment. arXiv, 2018. 3
+[71] Yi Wu, Yuxin Wu, Aviv Tamar, Stuart Russell, Georgia Gkioxari, and Yuandong Tian. Bayesian relational memory for semantic visual navigation. In ICCV, 2019. 3
+[72] Fei Xia, Amir R. Zamir, Zhiyang He, Alexander Sax, Jitendra Malik, and Silvio Savarese. Gibson env: Real-world perception for embodied agents. In CVPR, 2018. 2, 3
+[73] Huazhe Xu, Yang Gao, Fisher Yu, and Trevor Darrell. End-to-end learning of driving models from large-scale video datasets. In CVPR, 2017. 3
+[74] Claudia Yan, Dipendra Kumar Misra, Andrew Bennett, Aaron Walsman, Yonatan Bisk, and Yoav Artzi. CHALET: cornell house agent learning environment. arXiv, 2018. 3
+[75] Wei Yang, Xiaolong Wang, Ali Farhadi, Abhinav Gupta, and Roozbeh Mottaghi. Visual semantic navigation using scene priors. In ICLR, 2019. 3
+[76] Yang Zhang, Philip David, and Boqing Gong. Curriculum domain adaptation for semantic segmentation of urban scenes. In ICCV, 2017. 3
+[77] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017. 3, 8
+
+[78] Xinge Zhu, Hui Zhou, Ceyuan Yang, Jianping Shi, and Dahua Lin. Penalizing top performers: Conservative loss for semantic segmentation adaptation. In ECCV, 2018. 3
+[79] 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 ICRA, 2017. 3
\ No newline at end of file
diff --git a/robothoranopensimulationtorealembodiedaiplatform/images.zip b/robothoranopensimulationtorealembodiedaiplatform/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..0dc01a07372207fd776edcf6f64fb27302aaae79
--- /dev/null
+++ b/robothoranopensimulationtorealembodiedaiplatform/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:94737a874ae6383fead023239e3395d96798ee3b96092860754b41621350b529
+size 490539
diff --git a/robothoranopensimulationtorealembodiedaiplatform/layout.json b/robothoranopensimulationtorealembodiedaiplatform/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..29820f0cb6ffe7ba03777c79193aa06d45a40b93
--- /dev/null
+++ b/robothoranopensimulationtorealembodiedaiplatform/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af077cd7ddcfd80722c51e4c1ffbf12067dfe38f7526b04c4564c2b2a8cac839
+size 346300
diff --git a/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_content_list.json b/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f9d52b9020853bae22579fd0f0bf8380ab1fd714
--- /dev/null
+++ b/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c2e813e7b9574bb60816ddbaff16e6789781a5da3e8739b43f9b5b82e8b8607
+size 84377
diff --git a/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_model.json b/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8829ab026f682b72bcba2ae9ffad8f926bfe625
--- /dev/null
+++ b/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d278b0edf51546a3c0ab068172f47a7fdf0e153740853464cee3b7e4a20738a7
+size 103005
diff --git a/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_origin.pdf b/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4cf3746e100463555bbe7f59c654a2f199c0c92c
--- /dev/null
+++ b/robust3dselfportraitsinseconds/21b2ef82-3d9b-43d3-ae96-df62904e57b0_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78b365a50cbb295e8c60127ba33b343d5cf783fab031cb57da7c2fdab63e8f2a
+size 3965040
diff --git a/robust3dselfportraitsinseconds/full.md b/robust3dselfportraitsinseconds/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f1fd08c947682225a9e95bd34b07f9c6767443d6
--- /dev/null
+++ b/robust3dselfportraitsinseconds/full.md
@@ -0,0 +1,405 @@
+# Robust 3D Self-portraits in Seconds
+
+Zhe Li $^{1}$ , Tao Yu $^{1}$ , Chuanyu Pan $^{1}$ , Zerong Zheng $^{1}$ , Yebin Liu $^{1,2}$
+
+$^{1}$ Department of Automation, Tsinghua University, China
+
+$^{2}$ Institute for Brain and Cognitive Sciences, Tsinghua University, China
+
+# Abstract
+
+In this paper, we propose an efficient method for robust 3D self-portraits using a single RGBD camera. Benefiting from the proposed PIFusion and lightweight bundle adjustment algorithm, our method can generate detailed 3D self-portraits in seconds and shows the ability to handle subjects wearing extremely loose clothes. To achieve highly efficient and robust reconstruction, we propose PIFusion, which combines learning-based 3D recovery with volumetric non-rigid fusion to generate accurate sparse partial scans of the subject. Moreover, a non-rigid volumetric deformation method is proposed to continuously refine the learned shape prior. Finally, a lightweight bundle adjustment algorithm is proposed to guarantee that all the partial scans can not only "loop" with each other but also remain consistent with the selected live key observations. The results and experiments show that the proposed method achieves more robust and efficient 3D self-portraits compared with state-of-the-art methods.
+
+# 1. Introduction
+
+Human body 3D modeling, aiming at reconstructing the dense 3D surface geometry and texture of the subject, is a hot topic in both computer vision and graphics and is of great importance in the area of body measurement, digital content creation, virtual try-ons, etc. Traditional human body 3D modeling methods usually rely on experts for data capture and are therefore hard to use. Compared with traditional 3D scanning methods, 3D self-portrait methods, which allow users to capture their own portraits without any assistance, have significant potential for wide usage.
+
+Current 3D self-portrait methods can be classified into 3 categories: learning-based methods, fusion-based methods, and bundle-adjustment-based methods. Learning-based methods mainly focus on 3D human recovery from a single RGB image ([13, 25]). Thus, the results are still far from accurate due to occlusions and depth ambiguities. Fusion-based methods reconstruct scene geometries in an incremental manner, so error accumulation is inevitable, especially for non-rigid scenarios [20], which is detrimental for loop closure reconstruction (e.g., 3D self-portraits). To suppress the accumulated error in incremental fusion, an-
+
+
+
+
+
+
+Figure 1: Our system reconstructs a detailed and textured portrait after the subject self-rotates in front of an RGBD sensor.
+
+
+
+other branch of 3D self-portrait methods also utilizes bundle adjustment algorithms [17, 29, 7, 8, 30, 31]. The whole sequence is first segmented into several chunks, and then fusion methods are applied to each chunk to fuse a smooth partial scan. Finally, non-rigid bundle adjustment is used to "loop" all the partial scans simultaneously by non-rigid registration based on explicit loop closure correspondences and bundling correspondences. Although RGBD bundle adjustment methods have achieved state-of-the-art performance for 3D self-portraits, they still suffer from complicated hardware setups (e.g., relying on multiple sensors or electric turntables [29, 1, 2] or low efficiency [17, 5, 8, 7, 30, 31]).
+
+One of our observations is that a good combination of non-rigid fusion and bundle adjustment should guarantee both efficiency and accuracy. However, non-rigid fusion methods (e.g., [20] etc.) usually suffer from heavy drifts and error accumulation during tracking, which limit their ability to generate accurate large partial scans. This limitation has led to the fact that previous bundle adjustment methods have to be conducted on considerably large numbers of small partial scans, which significantly increase the optimizing variables in the bundling step. For example, in [8], 40-50 small partial scans need to be bundled together, which takes approximately 5 hours.
+
+To produce large and accurate partial scans by non-rigid fusion, a complete shape prior is necessary. To this end, we propose PIFusion, which utilizes learning-based 3D body recovery (PIFu [25]) as an inner layer in non-rigid fusion [20]. Specifically, in each frame, the inner layer generated by learning-based methods acts as a strong shape prior to improve the tracking accuracy and robustness, and the fused
+
+mesh in return improves the accuracy of the inner layer by the proposed non-rigid volumetric deformation (Sec. 5.3). We also improve the original PIFu [25] by incorporating pixel-aligned depth features for more accurate and robust inner-layer generation (Fig. 3).
+
+Another important observation is that to generate accurate portraits, all the partial scans produced by PIFusion should not only construct a looped model ([8, 17]) but also always remain consistent with the real-world observations, especially the depth point clouds and silhouettes. Instead of using the dense bundle method in [8, 30], we contribute a lightweight bundle adjustment method that involves live terms, key frame selection and joint optimization. Specifically, during each iteration, all the partial scans are not only optimized to "loop" with each other in the reference frame but are also warped to fit each key input in live frames. The key frames are selected adaptively according to the proposed live depth/silhouette energies. This method further improves the bundle accuracy without losing efficiency.
+
+In summary, by carefully designing the reconstruction pipeline, our method integrates all the advantages from learning, fusion and bundle adjustment methods while avoiding the disadvantages and finally enables efficient and robust 3D self-portraits using a single RGBD sensor.
+
+The contributions can be summarized as follows:
+
+- A new 3D self-portrait pipeline that leverages fusion, learning and bundle adjustment methods and achieves efficient and robust 3D self-portrait reconstruction using a single RGBD sensor.
+- A new non-rigid fusion method, PIFusion, which combines a learning-based shape prior and a non-rigid volumetric deformation method to generate large and accurate partial scans.
+- A lightweight bundle adjustment method that involves key frame selection and new live energy terms to jointly optimize the loop deformation in the reference frame, as well as the warp fields to live key frames, and finally improves the bundling accuracy without losing efficiency.
+
+# 2. Related Work
+
+# 2.1. Learning-based 3D Human Recovery
+
+Learning-based 3D body reconstruction has become more and more popular in recent years. By "seeing" a large amount of ground truth 3D human models, current deep neural networks can infer plausible 3D bodies from various easy-to-obtained inputs, e.g., a single RGB image[13, 23, 15, 24, 9, 6, 38, 19, 25, 36]. For example, Kanazawa et al. [13], Omran et al. [23] and Kolotouros et al. [15] proposed to directly regress the parameters of a statistical body template from a single RGB image. Zhu et al. [38] and Alldieck et al. [6] took a step forward by deforming the body template according to shading and silhouettes in order to capture more surface details. To address the challenge of varying cloth topology, recent studies have explored many 3D surface representations for deep neural networks, including voxel grids[36], multi-view
+
+silhouettes[19], depth maps[9] and implicit functions[25]. Although these methods enable surprisingly convenient 3D human capture, they fail to generate detailed and accurate results due to occlusions and inherent depth ambiguities.
+
+# 2.2. 3D Human Using Fusion-based Methods
+
+In fusion-based methods, given a noisy RGBD sequence, the scene geometry is first registered to each frame and then updated based on the observations. As a result, the noise in the depth map can be significantly filtered out and the scene can be completed in a incremental manner. The pioneer work in this direction is KinectFusion[21], which was designed for rigid scene scanning using a RGBD sensor. Thus, when scanning live targets like humans, the subjects are required to keep absolutely static in order to get accurate portraits, which is not consistent with the fact that humans are ultimately moving. To handle this problem, Zeng et al. [34] proposed a method for quasi-rigid fusion, but it still relies on rotating sensors for data capture, which is hard-to-use. DynamicFusion[20] extended KinectFusion and contributed the first non-rigid volumetric fusion method for real-time dynamic scene reconstruction. Following works [12, 26, 27, 10, 16, 32, 35] kept improving the performance of DynamicFusion by incorporating different types of motion priors or appearance information. For instance, based on the double-layer surface representation, DoubleFusion[33] achieved state-of-the-art performance for dynamic human body reconstruction (with implicit loop closure) using non-rigid fusion. However, constrained by the parametric inner layer representation, DoubleFusion has limited performance for reconstructing extremely wide clothes like long skirts and coats. Moreover, the A-posed requirement for system initialization complicates the portrait scanning process for more general poses.
+
+# 2.3. 3D Self-portrait Using Bundle Adjustment
+
+To suppress the accumulated error in incremental fusion, another branch of 3D self-portrait methods also utilizes bundle adjustment algorithms. Based on KinectFusion[21], Tong et al. [29] used 3 Kinects and a turntable for data capture and non-rigid bundle adjustment for portrait reconstruction. Cui et al. [7] achieved self-rotating portrait reconstruction via non-rigid bundle. However, the efficiency is low due to large partial scan numbers. Wang et al. [30] conducted bundle adjustment for all point sets without volumetric fusion, which leads to over-smoothed results. The method in [17] is a very related work to ours for it also fuses large partial scans for portrait reconstruction. However, it needs the subject to keep static during the partial scanning process, thus cannot handle self-rotating reconstructions.
+
+Besides above RGBD methods, using a RGB (without depth) video of a rotating human to reconstruct a plausible portrait is also a practical direction. Alldieck et al. [5, 4, 3] used silhouette-based joint optimization and Zhu et al. [37] used multi-view stereo technologies. However, current methods in this direction still rely on offsetting parametric models to represent cloth, which inherently limits
+
+
+Figure 2: System pipeline. In the first frame, we utilize RGBD-PIFu to generate a roughly correct inner model as a prior. Then we perform PIFusion to generate large and accurate partial scans while the performer is turning around in front of the RGBD sensor. Finally, we conduct lightweight bundle adjustment to merge all the partial scans and generate an accurate and detailed 3D portrait.
+
+their performance for more general clothed human reconstruction. Moreover, sparse feature points from RGB videos are not sufficient for detailed dense surface reconstruction.
+
+# 3. Overview
+
+As shown in Fig. 2, given an RGBD sequence with a naturally self-rotating motion of the subject, our system performs 3 steps sequentially:
+
+1. RGBD-PIFu: In this step, we use a neural network to infer a roughly accurate model of the subject from the first RGBD frame.
+2. PIFusion: For each frame, we first perform double-layer-based non-rigid tracking with the inferred model as the inner layer and then fuse the observations into the reference frame using the traditional non-rigid fusion method. Finally, non-rigid volumetric deformation is used to further optimize the inner model to improve both tracking and the fusion accuracy. The partial scans are then generated by splitting the whole sequence into several chunks and fusing each chunk separately.
+3. Lightweight bundle adjustment: In each iteration, we first use key frame selection to select effective key frames to construct the live depth and silhouette terms. Then, joint optimization is performed to not only assemble all the partial scans in the reference frame but also optimize the warping fields to live key frames alternately.
+
+# 4. RGBD-PIFu
+
+In this work, we extend pixel-aligned implicit functions (PIFu)[25] and propose RGBD-PIFu for 3D self-portrait inference from an RGBD image. PIFu is a spatially aligned representation for 3D surfaces. It is a level-set function $f$ that defines the surface implicitly, e.g., $f(X) = 0$ , $X \in \mathbb{R}^3$ .
+
+
+(a)
+
+
+(b)
+
+
+(c)
+
+
+Figure 3: Comparison of RGBD-PIFu and PIFu [25]. (a) Reference color image; (b) RGBD-PIFu result; (c) PIFu result.
+
+In our RGBD-PIFu method, this function is expressed as a composite function $f$ , which consists of a fully convolutional RGBD image encoder $g$ and an implicit function $h$ represented by multilayer perceptrons:
+
+$$
+f (X; I) = h \left(G (x; I), X _ {z}\right), X \in \mathbb {R} ^ {3}, \tag {1}
+$$
+
+where $I$ is the input RGBD image, $x = \pi (X)$ is the 2D projection of a 3D point $X$ , $G(x;I)$ is the feature vector of $x$ on the encoded feature map $g(I)$ , and $X_{z}$ is the depth value of $X$ . Different from [25], our image encoder also encodes depth information, which forces the inner model to be consistent with the depth input, thus resolving the depth ambiguity problem and improving the reconstruction accuracy. The training loss is defined as the mean squared error:
+
+$$
+\mathcal {L} = \frac {1}{n} \sum_ {i = 1} ^ {n} \left| f \left(X _ {i}; I\right) - f ^ {*} \left(X _ {i}\right) \right| ^ {2}, \tag {2}
+$$
+
+where $X_{i}$ is a sampled point, $f^{*}(X_{i})$ is the ground-truth value, and $n$ is the number of sampled points.
+
+In the model inference stage, to avoid dense sampling of the implicit function as in [25], we utilize the depth input to ignore empty regions and only perform uniform sampling of the implicit function in the invisible regions. The isosurface
+
+is extracted by the marching cube algorithm [18]. By incorporating depth features, our network is more robust and accurate than the original RGB-PIFu, thus producing a better mesh as the inner model for robust fusion performance, as shown in Fig. 3.
+
+# 5. PIFusion
+
+# 5.1. Initialization
+
+In the first frame, we initialize the TSDF (truncated signed distance function) volume by direct depth map projection and then fit the inner model to the initialized TSDF volume. The deformation node graph ([28]) is then uniformly sampled on the inner model using geodesic distance, which is used to parameterize the non-rigid deformation of the fused surface and the inner model.
+
+# 5.2. Double-layer Non-rigid Tracking
+
+Given the inner model and the fused mesh (i.e., the double-layer surface) in the $(t - 1)$ -th frame, we need to deform them to track the depth map in the $t$ -th frame. Different from DynamicFusion [20], an inner layer is used to assist non-rigid tracking. Hence, there are two types of correspondences: one is between the fused mesh (outer layer) and the depth observation, and the other is between the inner model (inner layer) and the depth observation. The energy function is then formulated as:
+
+$$
+E _ {\text {t r a c k i n g}} = \lambda_ {\text {o u t e r}} E _ {\text {o u t e r}} + \lambda_ {\text {i n n e r}} E _ {\text {i n n e r}} + \lambda_ {\text {s m o o t h}} E _ {\text {s m o o t h}}, \tag {3}
+$$
+
+where $E_{\text{outer}}$ and $E_{\text{inner}}$ are the energies of the two types of correspondences, $E_{\text{smooth}}$ is a smooth term to regularize local as-rigid-as-possible deformations, and $\lambda_{\text{outer}}, \lambda_{\text{inner}}, \lambda_{\text{smooth}}$ are the term weights.
+
+Outer and Inner Term The two terms measure the misalignment between the double layers and the depth map, and they have similar formulations:
+
+$$
+E _ {\text {o u t e r / i n n e r}} = \sum_ {(\mathbf {v}, \mathbf {u}) \in \mathcal {C} _ {\text {o u t e r / i n n e r}}} \left| \hat {\mathbf {n}} _ {\mathbf {v}} ^ {\top} (\hat {\mathbf {v}} - \mathbf {u}) \right| ^ {2}, \tag {4}
+$$
+
+where $\mathcal{C}_{\text{outer}}$ and $\mathcal{C}_{\text{inner}}$ are two types of correspondence sets, and $(\mathbf{v}, \mathbf{u})$ is a correspondence pair; $\mathbf{v}$ is a vertex on the outer layer (fused mesh) or the inner layer (inner model), and $\mathbf{u}$ is the closest point to $\mathbf{v}$ on the depth map. Note that $\mathbf{v}$ is the coordinate in the reference frame, while $\hat{\mathbf{v}}$ and $\hat{\mathbf{n}}_{\mathbf{v}}$ are the position and normal of $\mathbf{v}$ in the live frame warped by its KNN nodes using dual quaternion blending:
+
+$$
+\mathbf {T} (\mathbf {v}) = S E 3 \left(\sum_ {k \in \mathcal {N} (\mathbf {v})} w (k, \mathbf {v}) \mathbf {d q} _ {k}\right), \tag {5}
+$$
+
+where $\mathbf{dq}_k$ is the dual quaternion of the $k$ -th node, $SE3(\cdot)$ maps a dual quaternion to the $\mathbf{SE}(3)$ space, $\mathcal{N}(\mathbf{v})$ are the KNN nodes of $\mathbf{v}$ , $w(k,\mathbf{v}) = \exp(-\|\mathbf{v} - \mathbf{x}_k\|_2^2/(2r^2))$ is the blending weight, $\mathbf{x}_k$ is the position of the $k$ -th node, and $r$ is the active radius.
+
+Smooth Term The smooth term is defined on all edges of the node graph to guarantee local rigid deformation. This term is defined as
+
+$$
+E _ {\text {s m o o t h}} = \sum_ {i} \sum_ {j \in \mathcal {N} (i)} \| \mathbf {T} _ {i} \mathbf {x} _ {j} - \mathbf {T} _ {j} \mathbf {x} _ {j} \| _ {2} ^ {2}, \tag {6}
+$$
+
+where $\mathbf{T}_i$ and $\mathbf{T}_j$ are the transformations associated with the $i$ -th and $j$ -th nodes, and $\mathbf{x}_i$ and $\mathbf{x}_j$ are the positions of the $i$ -th and $j$ -th nodes in the reference frame, respectively.
+
+We solve Eq. 3 by the iterative closest point (ICP) algorithm and use the Gauss-Newton algorithm to solve the energy optimization problem. After tracking, we use the typical fusion method [20] to fuse the current depth observations and update the TSDF volume.
+
+# 5.3. Non-rigid Volumetric Deformation
+
+The initial inner model inferred by RGBD-PIFu is by no means accurate enough for double-layer surface tracking, and the correspondences between the inner model and the depth map may even reduce the tracking performance. To deal with this issue, inspired by [33], we conduct a non-rigid volumetric deformation algorithm to continue correcting the inner model by fitting it to the fused mesh (i.e., the 0-level set of the TSDF) in the reference volume. Moreover, the weight of the inner term, $\lambda_{\mathrm{inner}}$ in Eq. 3, is also designed to decrease along the ICP iterations to enable a more accurate outer surface fitting performance.
+
+We utilize the initialized node graph to parameterize the non-rigid deformation of the inner model. Given the updated TSDF volume of the fused mesh, the energy function of non-rigid volumetric deformation is defined as:
+
+$$
+E _ {\mathrm {v o l}} = E _ {\mathrm {t s d f}} + \lambda_ {\text {s m o o t h}} E _ {\text {s m o o t h}}, \tag {7}
+$$
+
+where $E_{\mathrm{tsdf}}$ measures the misalignment error between the inner model and the isosurface at threshold 0, and $E_{\mathrm{smooth}}$ is the same as Eq. 6. The TSDF term is defined as
+
+$$
+E _ {\mathrm {t s d f}} = \sum_ {\mathbf {v} \in \mathbf {T}} | \operatorname {T S D F} (\hat {\mathbf {v}}) | ^ {2}, \tag {8}
+$$
+
+where $\mathbf{T}$ is the initial inner model without non-rigid deformations in the reference frame, $\mathbf{v}$ is a vertex of $\mathbf{T}$ , $\hat{\mathbf{v}}$ is the position warped by the KNN nodes of $\mathbf{v}$ , TSDF( $\cdot$ ) is a trilinear sampling function that takes a point in the reference frame and returns the interpolated TSDF value. By minimizing the squared sum of the TSDF values of all the vertices of the deformed inner model, the inner model will perfectly align with the fused mesh in the reference frame.
+
+For the next frame, the corrected inner model is warped to the live frame to search for correspondences in the tracking step. This step provides more accurate correspondences and significantly improves the registration accuracy compared with directly warping the initial inner model.
+
+# 5.4. Partial Scan Fusion
+
+To guarantee that the following bundle adjustment is only conducted on a small number of partial scans, we fuse
+
+
+Figure 4: Illustration of bundle adjustment with joint optimization. The bundle deformations are optimized to "loop" these partial scans in the reference frame, while the live warp fields are optimized to deform the partial scans to fit live input.
+
+the partial scans within several large chunks of the whole sequence in the reference frame. Specifically, given a sequence of the performer turning around in front of the sensor, we calculate the orientation of the performer and then split the whole sequence into 5 chunks, which cover the front, back and two side views of the performer. Due to the accumulated error, the first and last partial scans that compose a loop may not align very well. The proposed lightweight bundle adjustment will resolve this problem and finally generate accurate 3D portraits.
+
+# 6. Lightweight Bundle Adjustment
+
+Regarding non-rigid bundle adjustment (BA), we argue that a well-looped model after typical BA is an accurate model. Our insight is that after BA, all the partial scans should not only construct a looped model in the reference frame but also be well fitted to all the live observations after non-rigid warping using the live warp fields. To this end, we propose an efficient algorithm to jointly optimize the bundle deformations (for loop closure reconstruction) and live warp fields (for live depth fitting), as shown in Fig. 4. Novel energy terms, including the live depth and silhouette energies, are incorporated to enforce the consistency between the warped partial scans and live depth inputs. However, optimizing the live warp fields corresponding to all the live frames in bundle adjustment will significantly decrease the efficiency. In practice, we found that performing live depth fitting on only several key frames is sufficient for generating accurate results. Therefore, we propose a key frame selection strategy to select effective key frames by sorting the live depth and silhouette energies.
+
+# 6.1. Joint Optimization
+
+After PIFusion, we can acquire $N$ partial scans. As illustrated in Fig. 4, we first construct a node graph for each partial scan for describing the bundle deformation, which is then optimized using loop closure correspondences to deform the partial scan to "loop" with the others in the reference frame. Moreover, all the partial scans are deformed together to fit each live frame by optimizing the corresponding live warp field, which is similar to the non-rigid tracking
+
+in PIFusion. As a result, each partial scan has its own bundle deformation, and all the partial scans share live warp fields in common.
+
+We solve the joint optimization problem by optimizing the bundle deformations and live warp fields alternately. In each iteration, both bundle deformations and live warp fields will be updated to minimize the total energy.
+
+# 6.2. Key Frame Selection
+
+To maintain the efficiency of our algorithm, we propose a key frame selection strategy for constructing efficient and effective live depth fitting terms. Specifically, we uniformly divide the whole sequence into $K$ segments, and before each iteration of joint optimization, for each frame, we calculate two types of metrics: the geometric misalignment error and the silhouette error. The first metric is the misalignment between warped partial scans and the corresponding input depth point cloud. The silhouette error is calculated by first rendering a mask map in the camera view using all the warped partial scans and then calculating the difference between the rendered mask and the input silhouette. We then select the frames with the largest geometric misalignment error and silhouette error in each segment as depth key frames $\mathcal{K}_{\mathrm{dep}}$ and silhouette key frames $\mathcal{K}_{\mathrm{sil}}$ , respectively.
+
+# 6.3. Formulation
+
+Different from other bundle adjustment algorithms ([8, 30]), we not only "loop" these partial scans but also introduce live frame observations into the optimization procedure to improve the accuracy. The total energy function is defined as
+
+$$
+\begin{array}{l} E \left(\mathbf {W} _ {b} ^ {j}, \mathbf {W} _ {l} ^ {i}\right) = \lambda_ {\text {l o o p}} E _ {\text {l o o p}} + \lambda_ {\text {d e p t h}} E _ {\text {d e p t h}} \tag {9} \\ + \lambda_ {\text {s i l l o u t e t t e}} E _ {\text {s i l l o u t e t t e}} + \lambda_ {\text {s m o o t h}} E _ {\text {s m o o t h}}, \\ \end{array}
+$$
+
+where $\mathbf{W}_b^j$ is the bundle deformation corresponding to the $j$ -th partial scan, $\mathbf{W}_l^i$ is the live warp field from the reference frame to the $i$ -th key frame, and $E_{\mathrm{loop}}$ , $E_{\mathrm{depth}}$ , $E_{\mathrm{silhouette}}$ and $E_{\mathrm{smooth}}$ are the energies of loop closure, live depth, live silhouette and smooth regularization terms, respectively.
+
+In each iteration, we optimize the bundle deformation and live warp fields alternately to minimize Eq. 9. Note that after PIFusion, although the partial scans have already been well aligned with the live depth inputs, the live warp fields are still not accurate enough to guarantee all the fused partial scans to construct a loop in the reference frame directly. Thus, the bundle deformation in the reference frame will conflict with live depth fitting in the live frames without simultaneously optimizing the live warp fields.
+
+Loop Term The loop term measures the amount of misalignment among these partial scans and is defined as
+
+$$
+E _ {\text {l o o p}} = \sum_ {\substack {i, j = 1 \\ i \neq j}} ^ {N} \sum_ {(\mathbf {v} _ {p}, \mathbf {v} _ {q}) \in \mathcal {C} _ {i, j}} \left| \mathbf {W} _ {b} ^ {i} (\mathbf {n} _ {p}) ^ {\top} \left(\mathbf {W} _ {b} ^ {i} (\mathbf {v} _ {p}) - \mathbf {W} _ {b} ^ {j} (\mathbf {v} _ {q})\right) \right| ^ {2}, \tag{10}
+$$
+
+where $N$ is the number of partial scans, $\mathcal{C}_{i,j}$ is the correspondence set between the $i$ -th and $j$ -th partial scans acquired by searching the closest points, $(\mathbf{v}_p,\mathbf{v}_q)$ is a correspondence pair, $\mathbf{v}_p$ and $\mathbf{v}_q$ are vertices on the $i$ -th and $j$ -th partial scans, respectively, $\mathbf{n}_p$ is the normal of $\mathbf{v}_p$ on the $i$ -th partial scan, and $\mathbf{W}_b^i (\mathbf{v}_p)$ and $\mathbf{W}_b^i (\mathbf{n}_p)$ represent the position and normal warped by bundle deformation. This term forces all the partial scans to register with each other in the reference frame.
+
+Live Depth Term This term measures the misalignment of all the partial scans with all the depth maps in $\kappa_{\mathrm{depth}}$ :
+
+$$
+\begin{array}{l} E _ {\text {d e p t h}} = \sum_ {i = 1} ^ {K} \sum_ {j = 1} ^ {N} \sum_ {(\mathbf {v}, \mathbf {u}) \in \mathcal {D} _ {j, i}} \tag {11} \\ \left| \mathbf {W} _ {l} ^ {i} (\mathbf {W} _ {b} ^ {j} (\mathbf {n})) ^ {\top} \left(\mathbf {W} _ {l} ^ {i} (\mathbf {W} _ {b} ^ {j} (\mathbf {v})) - \mathbf {u}\right) \right| ^ {2}, \\ \end{array}
+$$
+
+where $K = |\mathcal{K}_{\mathrm{depth}}|$ is the number of key frames, $\mathcal{D}_{j,i}$ is the correspondence set between the $j$ -th partial scan and the depth map in the $i$ -th key frame, $(\mathbf{v},\mathbf{u})$ is a correspondence pair, $\mathbf{v}$ is a vertex on the $j$ -th partial scan, $\mathbf{u}$ is a point on the depth map, and $\mathbf{W}_l^i (\cdot)$ takes a point or normal in the reference frame as input and returns the warped position or normal in the $i$ -th key frame. This term is designed to force partial scans to align with depth point clouds in $\mathcal{K}_{\mathrm{depth}}$ .
+
+Live Silhouette Term This term measures the misalignment between the rendered mask of all the warped partial scans and the input mask of the body shape in the live frames. Similar to LiveCap[11], we preprocess the input mask using the distance transform. For the $i$ -th key frame, we render a mask image of all partial scans deformed by the live warp field and then filter a boundary vertex set $\mathcal{B}_i$ . We define the live silhouette term as
+
+$$
+E _ {\text {s i l h o u e t t e}} = \sum_ {i = 1} ^ {K} \sum_ {j = 1} ^ {N} \sum_ {\mathbf {v} _ {j} \in \mathcal {B} _ {i}} d _ {j} \cdot \left| I _ {\mathrm {D T}} ^ {i} \left(\pi \left(\mathbf {W} _ {l} ^ {i} \left(\mathbf {W} _ {b} ^ {j} (\mathbf {v} _ {j})\right)\right)\right) \right| ^ {2}, \tag {12}
+$$
+
+where $K = |\mathcal{K}_{\mathrm{sil}}|$ is the number of key frames, $\mathbf{v}_j$ is a boundary vertex on the $j$ -th partial scan (note that the boundary means that the vertex is projected near the boundaries of the rendered mask image rather than the boundary of this partial scan), $d_j \in \{-1, +1\}$ is an indicated value that indicates the correct direction in the distance field[11], $I_{\mathrm{DT}}^i$ is the distance-transformed image of the input mask and $\pi(\cdot)$ is the projection function. This term will deform the shape of the partial scans to fit with the input silhouettes.
+
+The smooth term is defined similarly to Eq. 6. We solve Eq. 9 using the Gauss-Newton method. Within each iteration, we construct a large sparse system of linear equations and then utilize an efficient preconditioned conjugate gradient (PCG) solver on a GPU to obtain the updates.
+
+# 6.4. Non-rigid Multi-texturing
+
+After lightweight bundle adjustment, we fuse all the partial scans into a watertight mesh using Poisson reconstruction [14]. For each live frame, we project each visible vertex
+
+to the color image to retrieve a color value. After processing all the frames, we blend the retrieved color values according to the normal direction and obtain the final vertex color. Specifically, for vertex $\mathbf{v}_i$ , we calculate its color $C_{\mathbf{v}_i}$ as a weighted average of the color values retrieved from all the live frames. The blending weight $\omega_{i,j}$ is defined as:
+
+$$
+\omega_ {i, j} = \left\{ \begin{array}{l l} 0 & , \mathbf {v} _ {i} \text {i s i n v i s i b l e i n t h e} j \text {- t h f r a m e} \\ \frac {\left| \mathbf {n} _ {\mathbf {v} _ {i}} \cdot \hat {z} \right|}{\left| \mathbf {n} _ {\mathbf {v} _ {i}} \right|} & , \mathbf {v} _ {i} \text {i s v i s i b l e i n t h e} j \text {- t h f r a m e} \end{array} , \right. \tag {13}
+$$
+
+where $\mathbf{n}_{\mathbf{v}_i}$ is the normal of $\mathbf{v}_i$ and $\hat{z}$ is the direction the camera is looking. To avoid oversmoothing, for each vertex, only the top $15\%$ of weighted color values are blended.
+
+# 7. Results
+
+In this section, we first report the system performance and our implementation. Then, we compare our method with current state-of-the-art works. Finally, we evaluate the core parts of our system. In Fig. 5, we demonstrate several 3D portraits acquired by our system.
+
+# 7.1. Performance and Implementation
+
+Our 3D self-portrait system is very efficient. The whole pipeline is implemented on one NVIDIA Geforce RTX 2080Ti GPU. The initialization that generates the inner model by RGBD-PIFu and initializing PIFusion takes almost 10 seconds. PIFusion runs in real-time (at $30~\mathrm{ms}$ per frame). For each frame, the tracking, volumetric deformation and fusion take $20~\mathrm{ms}$ , $3~\mathrm{ms}$ and $6~\mathrm{ms}$ , respectively.
+
+Similar to [25], we adapt a stacked hourglass network [22] as the image encoder, and the implicit function is presented by a MLP with 257, 1024, 512, 256, 128, and 1 neurons in each layer. We render the Twindom dataset (https://web.twindom.com/) to acquire depth and color images and utilize 3500 images to train this network. When training, the batch size is 4, the learning rate is $1 \times 10^{-3}$ , and the number of epochs is 28. The training procedure takes one day on one RTX 2080Ti GPU.
+
+In the tracking of PIFusion, the number of ICP iterations is 5 per frame, and we set $\lambda_{\mathrm{outer}} = 1.0$ , $\lambda_{\mathrm{inner}} = 1.0$ , and $\lambda_{\mathrm{smooth}} = 5.0$ , while $\lambda_{\mathrm{inner}}$ will decrease linearly as the iteration continues. For each vertex, we use its 4 nearest neighbors for non-rigid deformation, and the number of neighbors of each node is 8. In bundle adjustment, the numbers of partial scans and key frames are both 5, we set $\lambda_{\mathrm{loop}} = 1.0$ , $\lambda_{\mathrm{depth}} = 0.5$ , $\lambda_{\mathrm{silhouette}} = 0.001$ and $\lambda_{\mathrm{smooth}} = 2.0$ , and the number of iterations is 25. This procedure takes only 15 seconds, and texturing takes 1 second.
+
+# 7.2. Comparison
+
+Comparison with Fusion Methods We compared our fusion method PIFusion with DynamicFusion [20] and DoubleFusion [33] using sequences captured by a Kinect V2 sensor. Fig. 6 demonstrates that our method improves the tracking and implicit loop-closure performance compared to the other methods, especially for subjects wearing loose
+
+
+Figure 5: Examples of 3D portraits acquired by our system.
+
+
+(a)
+
+
+
+
+(b)
+
+
+
+
+(c)
+
+
+
+
+(d)
+Figure 6: Comparison of the proposed PIFusion, DynamicFusion [20] and DoubleFusion [33] methods. (a) Reference depth input; (b), (c) and (d) are the results of PIFusion, DynamicFusion and DoubleFusion, respectively.
+
+clothes. Note that for this experiment, we use PIFusion to fuse the whole sequence without generating partial scans.
+
+Comparison with Bundle Adjustment Methods We compare our method with the state-of-the-art non-rigid bundle adjustment method Wang et al. [30]. As shown in Fig. 7, our method achieves much more detailed and accurate 3D self-portraits than [30]. Moreover, as mentioned in the related work section of [30], although the results are plausible, [17] requires the subject to remain static several times during scanning, thus complicating the scanning process.
+
+
+Figure 7: Comparison of our method (the top row) with the method proposed by Wang et al. [30] (the bottom row).
+
+
+
+# 7.3. Evaluation
+
+# Ablation Studies on Energy Terms
+
+- Inner and Outer Terms in PIFusion Without the inner term, PIFusion will degenerate into DynamicFusion [20], which suffers from heavy drifts and tracking errors (Fig. 6). Moreover, the lack of the outer term makes the final reconstruction accuracy fully depend on the accuracy of the shape prior, which is usually not accurate enough.
+
+- Live Silhouette Term in Bundle Adjustment Fig. 8 demonstrates that the live silhouette term could deform partial scans to be consistent with input silhouettes, thus further improving the accuracy of the optimized partial scans.
+
+Non-rigid Volumetric Deformation We evaluate the non-rigid volumetric deformation qualitatively, as shown in
+
+
+(a)
+
+
+Figure 8: Evaluation of the live silhouette term. (a) Optimized partial scans with (left) and without (right) the live silhouette term, (b) the mask error maps in the 1st key frame with (left) and without (right) the live silhouette term, (c) mask error maps in the 3rd key frame with (left) and without (right) the live silhouette term (nonblack pixels represent errors).
+
+
+(b)
+
+
+(c)
+
+
+(a)
+
+
+
+
+
+
+(b)
+
+
+(c)
+Figure 9: Evaluation of the non-rigid volumetric deformation step. Fused mesh without (a) and with (b) volumetric deformation; (c) the original inner model generated by RGBD-PIFu; (d) the inner model after volumetric deformation.
+
+
+(d)
+
+Fig. 9. The results demonstrate that without volumetric deformation, the fused geometry will highly depend on the original inner model generated by RGBD-PIFu. With non-rigid volumetric deformation, the outer observations are introduced to update the inner model in each frame. This step will alleviate the errors brought by the inner model and improve the accuracy of our reconstruction results.
+
+Loop Closure We compare the reconstructed result after lightweight bundle adjustment with the mesh completely fused using PIFusion in Fig. 10. This comparison demonstrates that PIFusion still suffers from loop-closure problems, especially in the cases of challenging motion (very articulated motion) and an inaccurate initial inner model. With the help of bundle adjustment, we can obtain more accurate portraits efficiently than the fusion methods.
+
+Joint Optimization We evaluate the joint optimization by the total energy of Eq. 9 in each iteration. Fig. 11 demonstrates that joint optimization of both the bundle deformation and live warp fields can achieve a lower optimum than the method without joint optimization.
+
+Body Measurement We quantitatively evaluated the accuracy of our results on body measurements. To evaluate the measurement error, we first utilized a laser scanner to obtain the ground-truth shape of a tight-clothed subject and then scanned the subject again using our system. Tab. 1 shows the measurement results of several body parts, which illustrates that our method acquires more accurate re
+
+
+(a)
+
+
+(b)
+
+
+Figure 10: Evaluation of the loop closure. (a) Fused mesh by PIFusion; (b) the reconstructed mesh after bundle adjustment.
+Figure 11: The total energy in each bundle adjustment iteration.
+
+| Method | chest | waist | right knee |
| DoubleFusion[33] | 98.7 | 92.5 | 43.1 |
| PIFusion | 97.6 | 87.2 | 40.7 |
| Bundle Adjustment | 94.6 | 84.5 | 39.6 |
| Ground Truth | 91.2 | 79.7 | 37.7 |
+
+Table 1: Evaluation of body measurements on case "lz": the circumference of some body parts (cm).
+
+sults than the state-of-the-art fusion-based body reconstruction method, DoubleFusion[33]. Moreover, the proposed lightweight bundle adjustment method is effective in further improving the accuracy of the final reconstruction.
+
+# 8. Discussion
+
+Conclusion In this paper, we have proposed a new method for robust and efficient 3D self-portrait reconstruction from a single RGBD camera. We propose PIFusion, a novel volumetric non-rigid fusion method constrained by a learned shape prior, for generating large and accurate partial scans. More importantly, the proposed lightweight bundle adjustment method not only guarantees the generation of a looped model in the reference frame but also ensures the alignment with live key observations, which further improves the accuracy of the final portrait without losing efficiency. In conclusion, with the proposed method, users can conveniently obtain detailed and accurate 3D self-portraits in seconds.
+
+Limitations Our method still relies on the completeness of the shape prior provided by RGBD-PIFu. Specifically, if the inferred shape prior loses some body parts, the final reconstruction may also lose these parts. Moreover, if some cases (e.g., object interactions) are not included in the training dataset of RGBD-PIFu, they may also not be well handled. However, growing the deformation node graph according to live observations may solve these problems.
+
+Acknowledgments This paper is supported by the NSFC No.61827805, No.61531014 and No.61861166002.
+
+# References
+
+[1] https://texel.graphics/.
+[2] https://www.shapify.me/.
+[3] T. Alldieck, M. Magnor, B. L. Bhatnagar, C. Theobalt, and G. Pons-Moll. Learning to reconstruct people in clothing from a single RGB camera. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), jun 2019.
+[4] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Detailed human avatars from monocular video. In International Conference on 3D Vision (3DV), sep 2018.
+[5] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Video based reconstruction of 3d people models. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
+[6] T. Alldieck, G. Pons-Moll, C. Theobalt, and M. Magnor. Tex2shape: Detailed full human body geometry from a single image. In IEEE International Conference on Computer Vision (ICCV). IEEE, 2019.
+[7] Y. Cui, W. Chang, T. Noll, and D. Stricker. Kinectavatar: Fully automatic body capture using a single kinect. In J.-I. Park and J. Kim, editors, Computer Vision - ACCV 2012 Workshops, pages 133-147, Berlin, Heidelberg, 2013. SPRINGER Berlin Heidelberg.
+[8] M. Dou, J. Taylor, H. Fuchs, A. Fitzgibbon, and S. Izadi. 3d scanning deformable objects with a single rgbd sensor. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 493-501, Boston, 2015. IEEE.
+[9] V. Gabeur, J. Franco, X. Martin, C. Schmid, and G. Rogez. Moulding humans: Non-parametric 3d human shape estimation from single images. CoRR, abs/1908.00439, 2019.
+[10] K. Guo, F. Xu, T. Yu, X. Liu, Q. Dai, and Y. Liu. Real-time geometry, albedo and motion reconstruction using a single rgbd camera. ACM Transactions on Graphics, 36(3):32:1-32:13, 2017.
+[11] M. Habermann, W. Xu, M. Zollhöfer, G. Pons-Moll, and C. Theobalt. Livecap: Real-time human performance capture from monocular video. ACM Transactions on Graphics, 38(2):14:1-14:17, Mar. 2019.
+[12] M. Innmann, M. Zollhöfer, M. Nießner, C. Theobalt, and M. Stamminger. Volumedeform: Real-time volumetric non-rigid reconstruction. In European Conference on Computer Vision (ECCV), volume 9912, pages 362-379, Amsterdam, 2016. SPRINGER.
+[13] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7122-7131, Salt Lake City, 2018. IEEE.
+[14] M. Kazhdan, M. Bolitho, and H. Hoppe. Poisson surface reconstruction. In Proceedings of the Fourth Eurographics Symposium on Geometry Processing, SGP '06, pages 61-70, Aire-la-Ville, Switzerland, Switzerland, 2006. Eurographics Association.
+[15] N. Kolotouros, G. Pavlakos, and K. Daniilidis. Convolutional mesh regression for single-image human shape reconstruction. In CVPR, 2019.
+[16] C. Li, Z. Zhang, and X. Guo. Articulatedfusion: Real-time reconstruction of motion, geometry and segmentation using a single depth camera. In European Conference on Computer Vision (ECCV), pages 324-40, Munich, 2018. SPRINGER.
+[17] H. Li, E. Vouga, A. Gudym, L. Luo, J. T. Barron, and G. Gusev. 3d self-portraits. ACM Transactions on Graphics, 32(6):187:1-187:9, 2013.
+
+[18] W. E. Lorensen and H. E. Cline. Marching cubes: A high resolution 3d surface construction algorithm. In ACM SIGGRAPH, pages 163-169, New York, NY, USA, 1987. ACM.
+[19] R. Natsume, S. Saito, Z. Huang, W. Chen, C. Ma, H. Li, and S. Morishima. Siccope: Silhouette-based clothed people. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
+[20] R. A. Newcombe, D. Fox, and S. M. Seitz. Dynamicfusion: Reconstruction and tracking of non-rigid scenes in real-time. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 343-352, Boston, 2015. IEEE.
+[21] R. A. Newcombe, S. Izadi, O. Hilliges, D. Molyneaux, D. Kim, A. J. Davison, P. Kohli, J. Shotton, S. Hodges, and A. Fitzgibbon. Kinectfusion: Real-time dense surface mapping and tracking. In IEEE International Symposium on Mixed and Augmented Reality (ISMAR), pages 127-136, Washington, DC, USA, 2011. IEEE Computer Society.
+[22] A. Newell, K. Yang, e. B. Deng, Jia", J. Matas, N. Sebe, and M. Welling. Stacked hourglass networks for human pose estimation. In European Conference on Computer Vision (ECCV), pages 483-499, Cham, 2016. SPRINGER.
+[23] 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 International Conference on 3D Vision (3DV), pages 484-494, Verona, sep 2018. IEEE.
+[24] G. Pavlakos, V. Choutas, N. Ghorbani, T. Bolkart, A. A. A. Osman, D. Tzionas, and M. J. Black. Expressive body capture: 3d hands, face, and body from a single image. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1-8, Long Beach, 2019. IEEE.
+[25] S. Saito, , Z. Huang, R. Natsume, S. Morishima, A. Kanazawa, and H. Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. In IEEE International Conference on Computer Vision (ICCV), 2019.
+[26] M. Slavcheva, M. Baust, D. Cremers, and S. Ilic. Killing-Fusion: Non-rigid 3D Reconstruction without Correspondences. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5474-5483, Honolulu, 2017. IEEE.
+[27] M. Slavcheva, M. Baust, and S. Ilic. Sobolevfusion: 3d reconstruction of scenes undergoing free non-rigid motion. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2646-2655, Salt Lake City, June 2018. IEEE.
+[28] R. W. Sumner, J. Schmid, and M. Pauly. Embedded deformation for shape manipulation. ACM Transactions on Graphics, 26(3), July 2007.
+[29] J. Tong, J. Zhou, L. Liu, Z. Pan, and H. Yan. Scanning 3d full human bodies using kinetics. IEEE Transactions on Visualization and Computer Graphics, 18(4):643-650, 2012.
+[30] K. Wang, G. Zhang, and S. Xia. Templateless non-rigid reconstruction and motion tracking with a single rgb-d camera. IEEE Transactions on Image Processing, 26(12):5966-5979, Dec 2017.
+[31] S. Wang, X. Zuo, C. Du, R. Wang, J. Zheng, and R. Yang. Dynamic non-rigid objects reconstruction with a single rgb-d sensor. Sensors (Basel, Switzerland), 18, 03 2018.
+[32] T. Yu, K. Guo, F. Xu, Y. Dong, Z. Su, J. Zhao, J. Li, Q. Dai, and Y. Liu. Bodyfusion: Real-time capture of human motion and surface geometry using a single depth camera. In IEEE International Conference on Computer Vision (ICCV), pages 910-919, Venice, 2017. IEEE.
+
+[33] T. Yu, Z. Zheng, K. Guo, J. Zhao, Q. Dai, H. Li, G. Pons-Moll, and Y. Liu. Doublefusion: Real-time capture of human performances with inner body shapes from a single depth sensor. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7287-7296, Salt Lake City, June 2018. IEEE.
+[34] M. Zeng, J. Zheng, X. Cheng, and X. Liu. Templateless quasi-rigid shape modeling with implicit loop-closure. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2013.
+[35] Z. Zheng, T. Yu, H. Li, K. Guo, Q. Dai, L. Fang, and Y. Liu. Hybridfusion: Real-time performance capture using a single depth sensor and sparse imus. In European Conference on Computer Vision (ECCV), pages 389-406, Munich, Sept 2018. SPRINGER.
+[36] Z. Zheng, T. Yu, Y. Wei, Q. Dai, and Y. Liu. Deephuman: 3d human reconstruction from a single image. In IEEE International Conference on Computer Vision (ICCV), October 2019.
+[37] H. Zhu, Y. Liu, J. Fan, Q. Dai, and X. Cao. Video-based outdoor human reconstruction. IEEE Transactions on Circuits and Systems for Video Technology, 27(4):760-770, Apr. 2017.
+[38] H. Zhu, X. Zuo, S. Wang, X. Cao, and R. Yang. Detailed human shape estimation from a single image by hierarchical mesh deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
\ No newline at end of file
diff --git a/robust3dselfportraitsinseconds/images.zip b/robust3dselfportraitsinseconds/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c1989f6c0385f36b926e2696ddda70155c30f991
--- /dev/null
+++ b/robust3dselfportraitsinseconds/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:01d00a6c216553f1dcdc62c19dae6721238e16d15bcdfa9c9aa78761528542ab
+size 542515
diff --git a/robust3dselfportraitsinseconds/layout.json b/robust3dselfportraitsinseconds/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f2ae0cd085c02473c61996a16e94e47f95720f02
--- /dev/null
+++ b/robust3dselfportraitsinseconds/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa0a3bf8b0d1781efd1bb72a7bf8c5f498dd01e9c77a9ad97099d8e31e58c668
+size 477136
diff --git a/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_content_list.json b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9f666a22ef4dc29c43b2ec8bd5fe83079e34e2a3
--- /dev/null
+++ b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a5e8075c9cd0e012e4b6bafda485e869008ecbb978442a4976772e553e6c4b00
+size 77611
diff --git a/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_model.json b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1425cda044520080105082b35913f12e74c20060
--- /dev/null
+++ b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:257b3414e6ba5edf11375069d10f3e437fc438660c4f7e5d2133cc6e6ec7e58b
+size 92514
diff --git a/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_origin.pdf b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..d14cade10c9efa5446c338f0450c36473f971bd2
--- /dev/null
+++ b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/72e53f13-e7c7-4b9d-a190-174e600a6f6a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f9467ae79ed42e1f604e09ab7d9da44ffdfc7d8d967008588b25a6816ed65dda
+size 236525
diff --git a/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/full.md b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d9191fa8241e7207553c7084009365f9d2c0acad
--- /dev/null
+++ b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/full.md
@@ -0,0 +1,265 @@
+# Robust Design of Deep Neural Networks against Adversarial Attacks based on Lyapunov Theory
+
+Arash Rahnama Modzy arash.rahnama@modzy.com
+
+Andre T. Nguyen Booz Allen Hamilton nguyen_andre@bah.com
+
+Edward Raff Booz Allen Hamilton raff_edward@bah.com
+
+# Abstract
+
+Deep neural networks (DNNs) are vulnerable to subtle adversarial perturbations applied to the input. These adversarial perturbations, though imperceptible, can easily mislead the DNN. In this work, we take a control theoretic approach to the problem of robustness in DNNs. We treat each individual layer of the DNN as a nonlinear system and use Lyapunov theory to prove stability and robustness locally. We then proceed to prove stability and robustness globally for the entire DNN. We develop empirically tight bounds on the response of the output layer, or any hidden layer, to adversarial perturbations added to the input, or to any preceding hidden layer. We show how the spectral norm of the weight matrix for an individual layer relates to Lyapunov properties of that layer, and consequently to the local and global stability and robustness of the DNN. Our results give new insights into how spectral norm regularization can mitigate the adversarial effects. Finally, we evaluate the power of our approach on a variety of data sets and network architectures and against some of the well-known adversarial attacks.
+
+# 1. Introduction
+
+The objective of a supervised learning task for the input $u \in \mathbb{R}^d$ , and its associated target value $y$ for a given DNN denoted by $H_{\theta}(u)$ , where $\theta$ is a set of parameters to be learned during the training, is to classify the instance $u$ correctly such that $y = H_{\theta}(u)$ . Recently, the research community has become interested in adversarial attacks, where the adversary's goal is to introduce a small amount of engineered perturbation $\Delta \in \mathbb{R}^d$ to $u$ , so that $u' = u + \Delta$ , while still maintaining its perceptual similarity to $u$ , can deceive the DNN into making a mistake, i.e., $H_{\theta}(u + \Delta) \neq y$ . The adversary is usually assumed to be constrained by an $\ell_p$ -norm
+
+so that $\| u' - u\|_{\ell_p} \leq \epsilon$ , where $\epsilon$ bounds the adversaries' freedom to alter the input. While this does not capture the full scope of potential adversaries [4], attacks of this form have proven difficult to prevent [32, 5, 2, 31]. While optimal defenses have been developed for simple linear models [3, 24], the over-parameterized nature of DNNs and the complexity of surfaces learned during training make the development of robust solutions against the adversary difficult [14].
+
+In this work, we use Lyapunov theory of stability and robustness of nonlinear systems to develop a new understanding of how DNNs respond to changes in their inputs, and thus, to adversarial attacks under the $\ell_2$ norm framework. By treating each layer $l$ in the DNN as a nonlinear system $h_l$ , we develop a new framework which sets tight bounds on the response of the individual layer to adversarial perturbations (maximum changes in $\| h_l(u) - h_l(u + \Delta)\| _2^2$ ) based on the spectral norm of the weights, $\rho (W_{l})$ , of the individual layer. We characterize Lyapunov properties of an individual layer and their relationship to local and global stability and robustness of the network.
+
+Since our analysis is based on a sequence of nonlinear transformations $h_{l = 1,\dots,n}$ , our method is the first to bound the response to input alterations by the attack parameter $\Delta_l$ for any layer $l$ in the DNN. For simple forward networks (fully connected and convolutional), our results show that an attack's success under the $\ell_2$ ball is independent of the depth of the DNN and that the spectral norm of the weight matrix for the first and last layer of a network have the largest effect on robustness. Our Lyapunov analysis of Residual Blocks shows that the skip-connections of these blocks contribute to their lack of robustness against adversarial attacks [13] and that these blocks require more restrictive Lyapunov conditions (a tighter spectral norm regularization) for maintaining the same level of robustness. This may compromise the DNN's accuracy on the clean data set [34, 10]. Previous works [11, 28, 37, 8] have used a penalty on the spec
+
+tral norm to build networks more robust to attack. However, their analysis requires using one penalty for all layers, which over-regularizes the networks (reducing accuracy in all cases [10]), and provides only loose bounds that can not be empirically evaluated. Our approach shows how and why to set different spectral penalties for each layer, improving the accuracy of the model on clean and perturbed inputs. Simultaneously, our bound is empirically tight and has no hidden constants, giving us greater insight to the impact of attacks and how perturbations propagate through the network.
+
+In summary, our contributions revolve around showing that adversarial ML research can leverage control theory to understand and build defenses against strong adversaries. This can accelerate the research progress in this area. We prove that with our proposed training approach, the perturbation to the final activation function $(\Delta_{n}\in \mathbb{R}^{d})$ is bounded by $\| \Delta_n\| _2\leq \sqrt{c}\cdot \epsilon$ , where $c$ is a constant determined by the hyper-parameters chosen and $\epsilon$ models the adversarial perturbation magnitude. Our bound is empirically tight, and applies to all possible inputs, and to attacks applied at any layer of the network (input, or hidden), with no distributional assumptions. Our analysis shows how Residual Blocks can aid adversarial attacks, and extensive empirical tests show that our approach's defensive advantages increase with the adversary's freedom $\epsilon$ .
+
+# 2. Related work
+
+To provide certifiable defenses, complex optimization schemes are usually adopted to show that all the data points inside an $\ell_p$ ball around a sample data point have the same prediction [36, 21, 7, 9]. The bounds provided by these methods are usually loose, and the computational costs associated with them increase exponentially with the size of the network. These approaches are only applicable to parts of the input space for which feasible solutions exist. Works such as [39] have empirically shown that bounding a layer's response to the input generally improves robustness. Works such as [35, 40] focus on certifying robustness for a DNN by calculating the bounds for the activation functions' responses to the inputs. The closest to our work are the results given in [11, 28, 37, 8]. [8] utilizes Lipschitz properties of the DNN to improve robustness against adversarial attacks. Unlike [8], our approach does not require a predetermined set of hyper-parameters to prove robustness. Our analysis provides a range of possible values which determine different levels of robustness and may be selected per application. Similarly, [28] empirically explores the benefits of bounding the response of the DNN by regularizing the spectral norm of layers based on the Lipschitz properties of the DNN. These Lipschitz based approaches may be seen as one subset of our Lyapunov based approach. As we will describe, our Lyapunov based analysis is built upon a more general input-output nonlinear mapping which does not necessarily
+
+depend on restricting the networks's Lipschitz property. [37] explores the benefits of training networks with spectral regularization for improving generalizability against input perturbations. However, their work bounds the spectral norm of all layers by 1. As we will show, this approach limits the performance on the clean data set and does not produce the most robust DNN. [11] uses PAC-Bayes generalization analysis to estimate the robustness of DNNs trained by spectral regularization against adversarial attacks. The analysis given in their work however, requires the same regularization condition enforced across all layers of the DNN. Our work provides per layer conditions for robustness, which may be utilized for the selection of the best regularization parameters for each layer independently, given a data set and architecture through cross-validation. Although, we have not empirically shown in the paper, our approach theoretically should provide a level of robustness against intermediate level attacks recently introduced in [18]. Our work provides a theoretical backing for the empirical findings in [28, 36] which state that Leaky ReLu, a modified version of the ReLu function, may be more robust comparatively. Finally, only one prior work has looked at control theory for adversarial defense, but their method covered only a toy adversary constrained to perturbing the input by a constant [29].
+
+
+
+
+Figure 1: A nonlinear system (top). The DNN modeled as a cascade of nonlinear systems (bottom).
+
+# 3. Preliminaries and Motivation
+
+In this work, we address the machine learning problem of adversarial attacks on DNNs from a control theoretic perspective. To aid in bridging the gap between these two fields, we will briefly review the core control theory results needed to understand our work, with further exposition in Appendix A for less familiar readers. The design of stable and robust systems that maintain their desired performance in the presence of external noise and disturbance has been studied in the control theory research literature. Our work is based on the Lyapunov theory of stability and robustness of nonlinear systems which dates back to more than a century ago [22]. We treat each layer of the DNN as a nonlinear system and model the DNN as a cascade connection of nonlinear systems. A nonlinear system is defined as a system which produces an output signal for a given input signal
+
+through a nonlinear relationship. More specifically, consider the following general definition for the nonlinear system $H$ (Fig. 1),
+
+$$
+H: \left\{ \begin{array}{l} \dot {x} = f (x, u) \\ y = h (x, u), \end{array} \right.
+$$
+
+where $x \in X \subseteq R^n$ , $u \in U \subseteq R^m$ , and $y \in Y \subseteq R^k$ are respectively the state, input and output of the system, and $X, U$ and $Y$ are the local state, input and output sub-spaces around the current operating points. The nonlinear mappings $f$ and $h$ model the relationship among the input signal $u$ , the internal states of the system $x$ and the output signal $y$ . To help connect these control theory notations and definitions to our analysis of DNN models, see Table 1.
+
+Table 1: A control theory to machine learning mapping.
+
+ | Control theoretic definition | Context for our work |
| u | Input of the nonlinear system | Inputs to the DNN (e.g., image) or the inputs to a hidden layer from the previous layer |
| y | Output of the nonlinear system | Output of the DNN or the output of any hidden layer |
| x | States of the nonlinear system | Weights and biases of a layer |
| x̂ | Transient changes of the states over discrete or continuous steps | Changes of the weights and biases during t training steps |
| f(.) | Nonlinear function modeling the transient changes of the states of the system based on the previous state and current input | Models the updates applied to the weights' and biases' of a layer over the t training steps |
| h(.) | Nonlinear function modeling the steady-state behavior of the system given the current state and input | Models the input-output relationship of a hidden layer given the current values of weights, biases and input |
| ρ,ν | Lyapunov parameters modeling the input-output behavior (robustness and stability properties) of the system (explained in Subsection 4.3) | Values determining the extent of spectral regularization enforced at a layer given the desired level of robustness and accuracy (Theorem 3, Corollary 2) |
+
+The behavior of a layer inside the DNN may be modeled as a nonlinear system defined above. More specifically, for the layer $l$ , the input signal $u$ takes the size of the layer
+
+$l - 1$ and stands for the input to the layer $l$ before it is transformed by the weights and biases. $y$ has the size of layer $l$ and may be defined as the output of the layer $l$ after the activation functions. The weights and biases of the DNN are the states of the nonlinear systems. In this vein, $h$ and $f$ are general functions which model the relationship between the states $x$ , and the nonlinear transformation applied to the input of the layer $u$ to produce the output $y$ of the layer after activation functions. The states are dynamically updated through gradient descent, given the inputs from the training data set during the training iterations $t$ . $\dot{x}_l$ is the derivative taken over training iterations indicating that the weights and biases are changing during training, and $f$ models this nonlinear behavior during the training iterations. Please see Appendix A for further details.
+
+Our analysis is based on Lyapunov theory which gives us the freedom to define stability and robustness purely based on the input-output relationship of the layers without the exact knowledge of the internal state changes $\dot{x}$ (i.e., we do not need to know the specific weight and bias values). More specifically, Lyapunov theory combined with the fact that we are showing bounded-input-bounded-output (BIBO) stability and robustness of the layer, allows us to abstract out the transient behavior of the nonlinear systems during the training iterations $t$ , i.e., $\dot{x}_l(t) = f_l(x_l(t), u_l(t))$ where $x_l(t) = \{W_l(t), B_l(t)\}$ , from the robustness analysis and focus only on the steady-state behavior of the nonlinear system, i.e., the input-output mapping of the layer, $y_l = h_l(x_l, u_l) = h_l(\{W_l, B_l\}, u_l)$ where $h_l(.)$ models the nonlinear transformation. By analyzing $h_l(.)$ , we can derive robust conditions to be enforced during training for the states of a layer $\{W_l, B_l\}$ .
+
+Next, we define an input-output stability and robustness Lyapunov criterion for a nonlinear system. A nonlinear system is said to be bounded-input-bounded-output (BIBO) stable, if it produces bounded outputs for bounded input signals. A nonlinear system is said to be stable and robust, if it produces bounded output signals that are close in the Euclidean space, when their respective input signals are also close enough in the Euclidean space [22]. Mathematically, these definitions can be represented as follows,
+
+Definition 1 [22] System $H$ is instantaneously incrementally finite-gain (IIFG) $\ell_2$ -stable and robust, if for any two inputs $u_1, u_2 \in U$ , there exists a positive gain $\gamma$ , such that the relation,
+
+$$
+\left| \left| y _ {2} - y _ {1} \right| \right| _ {\ell_ {2}} \leq \gamma \left| \left| u _ {2} - u _ {1} \right| \right| _ {\ell_ {2}}.
+$$
+
+locally holds. Here, $\| y_2 - y_1 \|_{\ell_2}$ and $\| u_2 - u_1 \|_{\ell_2}$ represent the Frobenius $\ell_2$ -norm of the input signals $u_1$ and $u_2$ and their respective output signals $y_1$ and $y_2$ .
+
+If a system is IIFG stable and robust, then the changes in the output of the entire system are bounded by the changes in the
+
+input of the entire system. As a result, if the changes in the input are minuscule, which is the assumption for the majority of $\ell_2$ adversarial attacks, then the changes in their respective outputs are also minuscule. This is the exact behavior that we would like to encourage for each layer of the DNN so that the entire network is robust against adversarial attacks.
+
+Remark 1 It is important to note that the relationship given in Definition 1 is more general than enforcing Lipschitz continuity. In particular, the above relationship should only hold locally for the input signals $u_{1}$ and $u_{2}$ for the DNN to be IIFG. Further, the above assumption does not place any constraints on the initial conditions of the DNN. Additionally, Lipschitz continuity implies uniform continuity, but the relationship given above potentially allows for discontinuous distributions and does not enforce any continuously differentiable condition on the mapping from the input to the output of the DNN [22, 12, 19]. Finally, we will show that the enforcement of the relationship given in Definition 1 locally at the layer level is not necessary. We will show that by enforcing a much looser condition at each layer, we can encourage the behavior given in Definition 1 globally for the DNN.
+
+Lyapunov theory of dissipativity provides a fundamental framework for the stability and robustness analysis of systems based on a generalized notion of the "energy" supplied and dissipated in the system [22]. This generalized notion of "energy" is defined based on a relationship that solely relies on the input and output of the system. This theory states that a passive system which dissipates energy is robust and stable. The benefit of this approach is that by only enforcing a relationship between the input and output of the DNN, we can define a measure of stability and robustness for the entire DNN against adversarial attacks and characterize robust conditions for the states of the DNN (weights and biases). This is done by first defining an input-output mapping which characterizes a specific relationship between the input and output of the layers inside the DNN and then enforcing that the relationship should hold for the DNN for all the inputs supplied to the model and the outputs produced by the model during training so that the same will hold during inference. The following definition provides the mathematical representation of the aforementioned concept,
+
+Definition 2 [38] System $H$ is considered to be instantaneously incrementally Input Feed-Forward Output Feedback Passive (IIFOFP), if it is dissipative with respect to the input-output mapping $\omega(\cdot, \cdot)$ ,
+
+$$
+\begin{array}{l} \omega \left(u _ {2} - u _ {1}, y _ {2} - y _ {1}\right) = \left(u _ {2} - u _ {1}\right) ^ {T} \left(y _ {2} - y _ {1}\right) \\ - \delta (y _ {2} - y _ {1}) ^ {T} (y _ {2} - y _ {1}) - \nu (u _ {2} - u _ {1}) ^ {T} (u _ {2} - u _ {1}), \\ \end{array}
+$$
+
+for some value $\nu \in \mathbb{R}$ and $\delta \in \mathbb{R}$ where $\nu \cdot \delta \leq 0.25$ .
+
+Remark 2 Although $\nu$ and $\delta$ may take negative or positive values, our goal is to design layers that have positive $\delta$ 's. Further, a positive set of $\delta$ and $\nu$ for a layer implies IIFG stability and robustness for that layer. Nevertheless, as we will show, for the entire network to be robust and stable, the $\nu$ and $\delta$ for an individual layer can take any value as long as certain conditions are met. $\nu$ and $\delta$ define a range of possible stability and robustness properties for a system. The lack of stability and robustness in one layer may be compensated for by an excess of robustness and stability in another layer [22]. In Subsection 4.3, we provide an interpretation of the above relations and outline the implications behind the selection of $\nu$ and $\delta$ .
+
+Theorem 1 [22] If the nonlinear system $H$ is IIFOFP with $\delta > 0$ , then it is IIFG stable and robust with the finite gain $\gamma = \frac{1}{\delta}$ .
+
+Our goal in this paper is to connect Definition 2 to Definition 1 to achieve robustness and the property given in Theorem 1. By enforcing the looser condition given in Definition 2, where $\nu$ and $\delta$ can take a range of values locally at the layer level, we encourage a robust global behavior for the entire DNN as given in Definition 1. According to Lyapunov theory for a layer to have the instantaneously IIFOFP property in Definition 2, the following condition should hold for the input-output mapping of all the inputs $u_{1}, u_{2}$ fed to the layer and their respective output signals $y_{1}, y_{2} \colon \omega(u_{2} - u_{1}, y_{2} - y_{1}) > 0$ [22]. If this holds, then the layer is dissipative with respect to the nonlinear relation given in Definition 2. Our results will show how we can reach Definition 1 and robustness globally by enforcing Definition 2 locally. Lastly, we will use the following matrix properties in our proofs,
+
+Definition 3 [20] A square matrix $A$ is a quasi-dominant matrix (diagonally dominant), if there exists a positive diagonal matrix $P = \text{diag}\{p_1, p_2, \ldots, p_n\}$ such that $a_{ii}p_i \geq \sum_{j \neq i} |a_{ij}|p_j$ , $\forall i$ , and/or $a_{jj}p_j \geq \sum_{i \neq j} |a_{ji}|p_i$ , $\forall j$ . If these inequalities are met strictly, then the matrix is said to be strictly row-sum (or column-sum) quasi-dominant. If $P$ can be chosen as the identity matrix, then the matrix is said to be row- or column- diagonally dominant.
+
+Corollary 1 [33] Every symmetric quasi-dominant matrix is positive definite.
+
+# 4. Theoretical Analysis and Main Results
+
+In our analysis, we treat each layer of the DNN as a nonlinear system as defined in Section 3 i.e., $H_{i}$ for all layers $i = 1,\dots,n$ (Fig. 1). A nonlinear system is defined as a layer in the network that accepts an input vector from the previous layer and produces an output vector with the size of the current layer after the weights, biases and activation functions are applied to the input signal. We prove the conditions under
+
+which each layer $H_{i}$ is instantaneously IIFOFP with specific hyper-parameters $\delta_{i}$ and $\nu_{i}$ . One can interpret the values of $\delta_{i}$ and $\nu_{i}$ as measures of robustness for the specific layer $i$ . Our results place specific constraints on the weight matrices at the given layer based on the values of the hyper-parameters $\delta_{i}$ and $\nu_{i}$ . We train the model and enforce these conditions during back-propagation. Consequently, we can show that the entire DNN is instantaneously IIFOFP and IIFG stable and robust. This means that the DNN maintains a level of robustness against adversarial changes added to the input for up to a specific adversarial $\ell_{2}$ norm $\epsilon$ . This is because the changes in the output of the DNN are now bounded by the changes introduced to the input by the adversary. Robustness in this sense means that the adversary now needs to add a larger amount of noise to the input of the DNN in order to cause larger changes in the output of the DNN and affect the decision making process. Our approach improves robustness against adversarial changes added to the input signal and the output of a hidden layer before it is fed into the next layer.
+
+In our approach, we consider Leaky ReLU activation functions, even though our results hold for ReLU as well. Our results and the Lyapunov theory suggest that Leaky ReLU is a more robust activation function than ReLu. We expand on this in Subsection 4.3. $\Delta$ is a measure for intervention. $\Delta$ models the extent of adversarial noise introduced to the input by the adversary. The effects of the majority of $\epsilon$ -based attacks of different norms such as the fast gradient method (FGM) and projected gradient descent (PGD) method may be modeled by $\Delta$ [23, 25, 26]. Given a DNN, we are interested in the (local) robustness of an arbitrary natural example $u$ by ensuring that all of its neighborhood has the same inference outcome. The neighborhood of $u$ may be characterized by an $\ell_2$ ball centered at $u$ . We can define an adversarial input as follows,
+
+Definition 4 Consider the input $u$ of the layer of size $n$ , i.e., $u \in R^n$ and the perturbed input signal $u + \Delta$ where $\Delta \in R^n$ is the attack vector that can take any value. The perturbed input vector $u + \Delta$ is within a $\Delta^0$ -bounded $\ell_2$ -ball centered at $u$ if $u + \Delta \in B_2(u, \Delta^0)$ , where $B_2(u, \Delta^0) := \{u + \Delta | ||u + \Delta - u||_2 = ||\Delta||_2 \leq \Delta^0\}$ .
+
+Geometrically speaking, the minimum distance of a misclassified nearby instance to $u$ is the smallest adversarial strength needed to alter the DNN's prediction, which is also the largest possible robustness measure for $u$ . We will use the conic behavior of the activation function, spectral norm of the weights and their relation to Lyapunov theory to train DNNs that are BIBO stable and robust against the adversary.
+
+# 4.1. Robustness analysis of each layer in the DNN
+
+Each layer of a DNN can be modeled as $y_{l} = h_{l}(W_{l}u_{l} + b_{l})$ for $l = 1,\dots,n$ for some $n > 2$ , where $u_{l}\in R^{n_{l - 1}^{\prime}}$ is the input of the $l$ -th layer, and $W_{l}\in R^{n_{l}^{\prime}\times n_{l - 1}^{\prime}}$ and $b_{l}\in R^{n_{l}^{\prime}}$
+
+are respectively the layer-wise weight matrix and bias vector applied to the flow of information from the layer $l - 1$ to the layer $l$ . $h_{l}: R^{n_{l-1}^{\prime}} \to R^{n_{l}^{\prime}}$ models the entire numerical transformation at the $l$ -th layer including the (nonlinear) activation functions. $n_{l-1}^{\prime}$ and $n_{l}^{\prime}$ represent the number of neurons in layers $l - 1$ and $l$ . For a set of weight and bias parameters, $\{W_{l}, b_{l}\}_{l=1}^{n}$ , we can model the behavior of the entire DNN as $H_{\{W_{l}, b_{l}\}_{l=1}^{n}}(u_{1}) = y_{n}$ where $H_{\{W_{l}, b_{l}\}_{l=1}^{n}}: R^{n_{1}^{\prime}} \to R^{n_{n}^{\prime}}$ and $u_{1}$ is the initial input to the DNN. Given the training data set of size $K$ , $(u_{i}, y_{i})_{i=1}^{K}$ , where $u_{i} \in R^{n_{1}^{\prime}}$ and $y_{i} \in R^{n_{n}^{\prime}}$ , the loss function is defined as $\frac{1}{K} L(H_{\{W_{l}, b_{l}\}_{l=1}^{n}}(u_{i}), y_{i})$ , where $L$ is usually selected to be cross-entropy or the squared $\ell_{2}$ -distance for classification and regression tasks, respectively. The model parameters to be learned is $x$ . We consider the problem of obtaining a model that is insensitive to the perturbation of the input. The goal is to obtain parameters, $\{W_{l}, b_{l}\}_{l=1}^{n}$ , such that the $\ell_{2}$ -norm of $h(u + \Delta) - h(u)$ is small, where $u \in R^{n_{1}^{\prime}}$ is an arbitrary vector and $\Delta \in R^{n_{1}^{\prime}}$ is an engineered perturbation vector with a small $\ell_{2}$ -norm added by the adversary. To be more general and further investigate the properties of the layers, we assume that each activation function, modeled by $h_{l}$ is a modified version of element-wise ReLU called the Leaky ReLU: $h_{l}(y_{l}) = \max(y_{l}, ay_{l})$ , where $0 < a < 1$ . It follows that, to bound the variations in the output of the DNN by the variations in the input, it suffices to bound these variations for each $l \in \{1, \dots, n\}$ . Here, we consider that the attack variations $\Delta$ are added by the adversary into the initial input or the input of the hidden layers. This motivates us to consider a new form of regularization scheme, which is based on an individual layer's Lyapunov property. The first question we seek to answer is the following: what are the conditions under which a layer $l$ is IIFOFP with a positive $\delta_{l}$ and a $\nu_{l}$ that may take any value? In practice, it is best to train layers so that both $\nu_{l}$ and $\delta_{l}$ are positive, as this means a tighter bound and a more robust layer (Subsection 4.3), however, this is not a necessary condition for our results. The following theorem relates the spectral norm of the weight matrix to IIFOFP and IIFG stability and robustness of a layer to answer the above question.
+
+Theorem 2 The numerical transformation at the hidden layer $l$ of the DNN as defined in Subsection 4.1 is instantaneously IIFOP and consequently IIFG stable and robust, if the spectral norm of the weight matrix for the layer satisfies the following condition,
+
+$$
+\rho (W _ {l}) \leq \frac {1}{\delta_ {l} ^ {2}} + \frac {2 | \nu_ {l} |}{\delta_ {l}}
+$$
+
+where $\rho(W_l)$ is the spectral norm of the weight matrix at the layer $l$ , and the hyper-parameters $\delta_l > 0$ and $\nu_l$ meet the condition $\delta_l \cdot \nu_l \leq 0.25$ .
+
+Proof in Appendix B
+
+Remark 3 It is important to note that the above theorem shows a relationship between the spectral norm of the weight matrix at the layer $l$ and instantaneously IIFG stability and robustness of the layer as defined in the Definition 1 and Theorem 1 through the hyper-parameters $\delta_l$ and $\nu_l$ . Namely, a larger value for $\nu_l$ leads to a larger upper-bound for the spectral norm of the weight matrix at layer $l$ . Larger values of $\delta_l$ however, have a reciprocal relation to the spectral norm of the weight matrix. The relationship between parameters $\delta_l$ , $\nu_l$ and the spectral norm of the weight matrix may be utilized during the robust training of DNNs through the spectral regularization enforced at each layer.
+
+We can implement the above condition for each layer during the training of the network. Theorem 2 provides a wide range of possible regularization designs for the DNN and commonly used hyper-parameter selection approaches may be used to select the spectral regularization parameters per layer. If the above condition is met for each layer, then we can posit that the DNN is stable and robust in Lyapunov sense. The exact measure of stability and robustness depends on the selection of $\delta_l$ and $\nu_{l}$ . The global effects of this choice are outlined in Subsection 4.2. The extension of Theorem 2 to convolutional layers follows in a similar pattern and is given in Appendix C. Appendix D includes the robustness analysis of ResNet building blocks. It is important to note that $\nu_{l}$ and $\delta_l$ are design hyper-parameters that are selected before the training starts. The only real conditions placed on the hyper-parameters are that $\delta_l$ should be positive and $\delta_l\times \nu_l\leq 0.25$ . The exact implications of choosing the hyperparameters and their effects on the robustness of the layer against adversarial noise are detailed in Subsection 4.3.
+
+# 4.2. Robustness analysis of the entire DNN
+
+Next, we connect our results from Theorem 2 to the robustness of the entire DNN, i.e., we show how the selection of individual $(\delta_i,\nu_i)$ for layers $i = 1,\dots,n$ affect the robustness of the entire DNN represented by the global set $(\delta ,\nu)$ .
+
+Theorem 3 Consider the cascade interconnection of hidden layers inside the DNN as given in Fig. 1 where $n > 2$ , and each layer $H_{l}$ for $l = 1, \ldots, n$ is instantaneously IIFOPF with their respective $\nu_{l}$ and $\delta_{l}$ as given in Theorem 2, i.e., for any two incremental inputs $u_{l1}, u_{l2}$ for the layer $l$ we have,
+
+$$
+\begin{array}{l} \omega \left(u _ {l 2} - u _ {l 1}, y _ {l 2} - y _ {l 1}\right) = \left(u _ {l 2} - u _ {l 1}\right) ^ {T} \left(y _ {l 2} - y _ {l 1}\right) \\ - \delta_ {l} \left(y _ {l 2} - y _ {l 1}\right) ^ {T} \left(y _ {l 2} - y _ {l 1}\right) - \nu_ {l} \left(u _ {l 2} - u _ {l 1}\right) ^ {T} \left(u _ {l 2} - u _ {l 1}\right), \\ \end{array}
+$$
+
+as the nonlinear input-output mapping of the layer where $\omega (u_{l2} - u_{l1},y_{l2} - y_{l1}) > 0$ . Then the entire DNN is also instantaneously IIFOPP with the hyper-parameters $\nu$ , $\delta$ and input-output mapping,
+
+$$
+\begin{array}{l} \omega \left(u _ {2} - u _ {1}, y _ {2} - y _ {1}\right) = \left(u _ {2} - u _ {1}\right) ^ {T} \left(y _ {2} - y _ {1}\right) \\ - \delta (y _ {2} - y _ {1}) ^ {T} (y _ {2} - y _ {1}) - \nu (u _ {2} - u _ {1}) ^ {T} (u _ {2} - u _ {1}), \\ \end{array}
+$$
+
+where $u_{1}$ and $u_{2}$ are the initial inputs to the DNN and $y_{1}$ and $y_{2}$ are their respective output signals, if the matrix $-A$ is quasi-dominant, where $A$ is defined as,
+
+$$
+A = \left[ \begin{array}{c c c c c} \nu - \nu_ {1} & \frac {1}{2} & 0 & \dots & - \frac {1}{2} \\ \frac {1}{2} & - \delta_ {1} - \nu_ {2} & \frac {1}{2} & \dots & 0 \\ \vdots & \ddots & \ddots & \ddots & \vdots \\ 0 & \dots & \frac {1}{2} & - \delta_ {n - 1} - \nu_ {n} & \frac {1}{2} \\ - \frac {1}{2} & 0 & \dots & \frac {1}{2} & \delta - \delta_ {n} \end{array} \right].
+$$
+
+Proof in Appendix E
+
+Remark 4 For the DNN to be IIFOFP with $\delta >0$ and $\nu >0$ and consequently stable and robust, we need to set the hyper-parameters for training such that $\delta_l > 0$ for $l = 1,\dots,n$ , $\delta_{n} > \delta >0$ , $\nu_{1} > 0$ , and $\nu_{1} > \nu >0$ . The rest of $\nu_{l}$ 's are selected such that the matrix $-A$ is quasi-dominant. Note that theoretically, the $\delta_l$ 's or $\nu_{l}$ 's for some hidden layers may take negative values, as long as the matrix $-A$ stays quasi-dominant, i.e., $\delta_l + \nu_{l + 1} > 1$ for $l = 1,\dots,n - 1$ and $\delta_{n - 1} + \nu_n > 1$ . By selecting the hyper-parameters according to Theorem 3, one is indirectly setting the spectral regularization rule for each layer. Appendix $F$ details an example on the selection of these hyper-parameters.
+
+Theorem 3 points to an interesting fact that the first and last hidden layer may have the largest effect on the robustness of the DNN. To keep the matrix $-A$ quasi-dominant, $\delta$ and $\nu$ have a direct dependence on the values of $\delta_{n}$ and $\nu_{1}$ . Next, we can characterize a relationship between the incremental changes in the input signals of a DNN, i.e., $\Delta_{1}$ , and their effects on the output of the DNN, i.e., $\Delta_{n}$ .
+
+Corollary 2 Consider the cascade interconnection of hidden layers inside the DNN as given in Fig. 1 where $n > 2$ , if each layer $H_{l}$ is instantaneously IIFOP with their respective $\nu_{i}$ and $\delta_{i}$ , and the DNN is trained to meet the conditions given in Theorem 3, then the entire DNN is also instantaneously IIFOP with its respective $\nu$ and $\delta$ and the input-output mapping $\omega (u_{2} - u_{1},y_{2} - y_{1}) = (u_{2} - u_{1})^{T}(y_{2} - y_{1}) - \delta (y_{2} - y_{1})^{T}(y_{2} - y_{1}) - \nu (u_{2} - u_{1})^{T}(u_{2} - u_{1})$ where $\delta >0$ . One can show that the variations in the final output of the entire DNN $(\Delta_{n})$ are upper-bounded (limited) by the variations in the input signal $(\Delta_{1})$ through the following relation.
+
+$$
+\| \Delta_ {n} \| _ {2} ^ {2} \leq \left(\frac {1}{\delta^ {2}} + \frac {2 \nu}{\delta}\right) \| \Delta_ {1} \| _ {2} ^ {2} = \left(\frac {1}{\delta^ {2}} + \frac {2 \nu}{\delta}\right) \epsilon^ {2}
+$$
+
+where the design parameter $\delta$ and $\nu$ are both positive.
+
+Proof in Appendix G
+
+# 4.3. Conic interpretation of the proposed approach
+
+[38] was the first work that connected Lyapunov notion of stability and robustness to the conicity (boundedness) behavior of the input-output mapping of a nonlinear
+
+system. According to [38], a nonlinear numerical transformation is stable, if it produces bounded outputs for bounded inputs. The same nonlinear transformation is also robust, if it produces outputs that are insensitive to small changes added to the input. A stable and robust nonlinear numerical transformation then exhibits a conic behavior.
+
+According to [38], a nonlinear transformation exhibits a conic behavior, if the mapping between the changes in the input and the respective changes in the output, given the nonlinear transformation, always fits inside a conic sector on the input-output plane i.e., a conic nonlinear
+
+numerical transformation in the Hilbert space is one whose input changes $\Delta u$ and output changes $\Delta y$ are restricted to some conic sector of the $\Delta U\times \Delta Y$ inner product space as given in Fig. 2. This conic behavior is usually defined by the center line of the cone $c$ and the radius $r$ :
+
+
+Figure 2: A depiction of the interior conic behavior of a nonlinear system.
+
+Definition 5 [38] A relation $H$ is interior conic, if there are real constants $r \geq 0$ and $c$ for which $||\Delta y - c\Delta u||_{\ell_2} \leq r||\Delta u||_{\ell_2}$ is satisfied.
+
+This is the exact behavior that we are encouraging for each layer of the DNN so that the outputs of each layer become insensitive to small changes in the input. In particular, we have $\Delta u = \Delta_1$ , $\Delta y = \Delta_n$ , $c = \frac{a + b}{2}$ and $r = \frac{b - a}{2}$ where $a$ and $b$ are the slopes of the lower and upper bounds of the cone, and $c$ and $r$ are the center and radius of the cone. One can show that,
+
+$$
+\begin{array}{l} \left(\Delta_ {n} - c \Delta_ {1}\right) ^ {T} \left(\Delta_ {n} - c \Delta_ {1}\right) \leq r ^ {2} \Delta_ {1} ^ {T} \Delta_ {1} \\ \rightarrow \left(\Delta_ {n} - \left(\frac {a + b}{2}\right) \Delta_ {1}\right) ^ {T} \left(\Delta_ {n} - \left(\frac {a + b}{2}\right) \Delta_ {1}\right) \\ \leq \left(\frac {b - a}{2}\right) ^ {2} \Delta_ {1} ^ {T} \Delta_ {1} \rightarrow 0 \leq \Delta_ {1} ^ {T} \Delta_ {n} \\ - \left(\frac {1}{a + b}\right) \Delta_ {n} ^ {T} \Delta_ {n} - \left(\frac {b a}{a + b}\right) \Delta_ {1} ^ {T} \Delta_ {1}. \\ \end{array}
+$$
+
+Hence by selecting $\delta = \frac{1}{a + b}$ and $\nu = \frac{ba}{b + a}$ , we are bounding the output changes by the changes in the input as depicted in Fig. 2 and by that, we make the numerical transformations occurring at each layer of the DNN insensitive to small changes in the input. Particularly, a positive $\delta$ implies $b > 0$ with a larger $\delta$ implying a smaller positive $b$ and a larger distance between the slope of the upper-bound of the cone and the $\Delta Y$ axis. This implies that $\Delta Y$ increases in a slower rate with increases in $\Delta U$ . A positive $\nu$ implies $a > 0$ with a larger $\nu$ implying a larger $a$ and a larger distance
+
+between the lower-bound of the cone and the $\Delta U$ axis [22]. We are encouraging the pair $(\Delta_1, \Delta_n)$ to be instantaneously confined to a sector of the plane as depicted. The conic interpretation described here combined with the results given in the previous sections support the findings presented in [28, 36] that the use of Leaky Relu activation in the architecture of DNNs may contribute to robustness.
+
+# 5. Experiments
+
+We validate our results by performing a diverse set of experiments on a variety of architectures (fully-connected, AlexNet, ResNet) and data sets (MNIST, CIFAR10, SVHN and ImageNet). Appendix L contains the details on hyperparameters and training process for the above architecture and data set combinations. The experiments are implemented in TensorFlow [1] and the code will be made readily available. We test the DNNs against the fast gradient method (FGM) attack [15] with Frobenius $\ell_2$ norm of $\epsilon \in [0.1, 0.4]$ , and iterative projected gradient descent (PGD) attack [25] with 100 iterations, $\alpha = 0.02\epsilon$ and the same range of epsilons. Further, we show in Appendix J that our approach provides improved robustness against the Carlini & Wagner (C&W) attack [6].
+
+Our robust Lyapunov training method regularizes the spectral norm of a layer $l$ so that, $\rho(W_l) \leq \beta_l$ where $\beta_l = \frac{1}{\delta_l^2} + \frac{2|\nu_l|}{\delta_l}$ . Given $n$ layers, one can pick $n$ different combinations of $(\delta_l, \nu_l)$ for a given data set and architecture as long as the conditions given in Theorem 2, Theorem 3 and Remark 4 are met. With these defined, we also have a global $\delta$ and $\nu$ . These values are implied by setting $\delta_{1,\dots,n}$ and $\nu_{1,\dots,n}$ , where any $\delta < \delta_n$ and $\nu < \nu_1$ is valid, so long as $\delta \cdot \nu \leq 1/4$ holds true. As such, we set $(\delta_1, \nu_1)$ , $(\delta_n, \nu_n)$ tighter to make the network robust, and choose a single set of looser $(\delta_m, \nu_m)$ for all intermediate layers, to maximize the model's expressive capability, which our theory guarantees is safe and gives the attacker no additional advantage. Appendix F outlines the process for selecting the Lyapunov hyper-parameters according to our proofs, or one could select them by simple cross validation. The different sets of Lyapunov design parameters used in our experiments are detailed in Appendix H. We represent a robust DNN with its global Lyapunov parameters $(\delta, \nu)$ . It is important to note that the greater flexibility (higher expressiveness [10]) allowed for the intermediate layers leads to a better generalization on the clean and adversarial data sets. This is not true for DNNs trained by weight-decay or spectral norm regularization against a single threshold $\beta$ . All the previous works on this subject [11, 28, 37, 8], keep $\beta$ constant across layers. These harder constraints over-regularize and thus impair the DNN's ability against attacks. Our results outlined in Appendix K show that our Lyapunov DNNs are more robust and perform better in comparison to the aforementioned works.
+
+Table 2: The incremental output variations $(\Delta_{n})$ for the 3 layer forward-net given an attack strength and the bounds calculated according to Corollary 2 (MNIST, PGD attack)
+
+| Lyapunov Parameters | Mean output change ||Δn||2 ≤ Lyapunov Bound |
| ε = 0.1 | ε = 0.2 | ε = 0.3 |
| δ = 0.89,ν = 0.28 | 0.244 ≤ 0.435 | 0.490 ≤ 0.615 | 0.736 ≤ 0.753 |
| δ = 0.95,ν = 0.26 | 0.202 ≤ 0.407 | 0.406 ≤ 0.576 | 0.610 ≤ 0.706 |
| δ = 1.1,ν = 0.22 | 0.170 ≤ 0.352 | 0.340 ≤ 0.497 | 0.511 ≤ 0.609 |
| Baseline | 1.233 | 2.446 | 3.641 |
+
+Table 2 details the effectiveness of our approach in bounding the incremental changes in the output of the DNN caused by the attack. Given an adversarial perturbation of size $\| \Delta_1\| _2^2$ , our Corollary 1 states the change to the final logits $(\| \Delta_n\| _2^2)$ should be bounded by $\| \Delta_n\| _2^2\leq \sqrt{\left(\frac{1}{\delta^2} + \frac{2\nu}{\delta}\right)}\| \Delta_1\| _2^2$ . Baseline represents a DNN with no regularization enforced during training. The results show that our bounds are never violated, however as $\epsilon$ gets larger, the output changes get closer to our proposed bounds. Given the empirical tightness of the bounds, one may be able to a-priori determine the worst case vulnerabilities against an attack for a network, i.e., connect the adversarial output changes to decision boundaries between classes.
+
+When we consider the accuracy under attack, our Lyapunov approach dominates prior works. [11] for instance, obtained an accuracy of $62\%$ at $\epsilon = 0.1$ with adversarial training on CIFAR10 under the $\ell_2$ PGD adversary with a lower number of iterations. Our approach obtains an accuracy of $\geq 73\%$ at $\epsilon = 0.1$ and still dominates with an accuracy of $\geq 63\%$ at $\epsilon = 0.4$ (Table 11 in Appendix I). Fig. 3 reports the CIFAR10 test accuracy under the iterative PGD and FGM attacks for different values of $\epsilon$ . As noted in Section 4, DNNs trained with larger global $(\delta, \nu)$ maintain their robustness in a more consistent way for larger $\epsilon$ 's. This is because enforcing a larger global $(\delta, \nu)$ leads to DNNs with a more restricted conic behavior able to more effectively bound the negative effects of the adversarial noise. $\ell_2$ weight-decay training seems ineffective against the attacks and our testing shows that adversarial training does not improve the performance of models trained with weight-decay regularization (Fig. 4 in Appendix I).
+
+Lastly, to show that our approach scales to larger architectures and data sets, Table 3 represents our results for Lyapunov-based robust ResNet50 architectures trained on the ImageNet data set. A comprehensive set of results for a larger set of experiments is given in Appendix I. This appendix also includes our mathematical proofs on how Lyapunov based spectral regularization of the weights can improve the robustness of residual blocks. The bottom five rows of Table 3 show the effectiveness of our Lyapunov based regularization in improving the robustness of the ResNet model
+
+
+
+
+Figure 3: Accuracy of the DNN under PGD attack ( $k = 100$ iterations) (top) and FGM attack (bottom) using AlexNet on CIFAR10. Plots share the same legend and axis.
+
+trained on ImageNet against FGM based attacks across a spectrum of $\epsilon$ values. The first two rows further show that our approach remains compatible with adversarial training, gaining further improvements in accuracy while under attack.
+
+Table 3: Experiment results for ResNet50 trained on the ImageNet dataset under the FGM attack.
+
+| Network Type | Top 1 Accuracy on the Adversarial Test Dataset (Attack Strength ε) |
| ε = 0.1 | ε = 0.2 | ε = 0.3 | ε = 0.4 |
| δ = 1.0, ν = 0.24 with ℓ2 FGM Adv. Training | 0.69 | 0.68 | 0.68 | 0.68 |
| δ = 0.89, ν = 0.26 with ℓ2 FGM Adv. Training | 0.67 | 0.65 | 0.63 | 0.61 |
| δ = 0.95, ν = 0.26 | 0.61 | 0.51 | 0.44 | 0.38 |
| δ = 0.86, ν = 0.29 | 0.60 | 0.51 | 0.43 | 0.37 |
| δ = 0.74, ν = 0.33 | 0.60 | 0.50 | 0.42 | 0.36 |
| Baseline Training | 0.57 | 0.45 | 0.40 | 0.34 |
| Baseline Training with Freb. ℓ2 reg., λ = 0.01 | 0.58 | 0.46 | 0.39 | 0.32 |
+
+# 6. Conclusion
+
+In this paper, we analyzed the robustness of forward, convolutional, and residual layers against adversarial attacks based on Lyapunov theory of stability and robustness. We proposed a new robust way of training which improves robustness and allows for independent selection of the regularization parameters per layer. Our work bounds the layers' response to the adversary and gives insights into how different architectures, activation functions, and network designs behave against attacks.
+
+# References
+
+[1] Martin Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghe-mawat, 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] Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples. In International Conference on Machine Learning (ICML), 2018.
+[3] Battista Biggio, Giorgio Fumera, and Fabio Roli. Multiple classifier systems for robust classifier design in adversarial environments. International Journal of Machine Learning and Cybernetics, 1(1):27-41, 12 2010.
+[4] Tom B. Brown, Nicholas Carlini, Chiyuan Zhang, Catherine Olsson, Paul Christiano, and Ian J. Goodfellow. Unrestricted Adversarial Examples. arXiv preprint, 2018.
+[5] Nicholas Carlini and David Wagner. Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, AISec '17, pages 3-14, New York, NY, USA, 2017. ACM.
+[6] 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.
+[7] Chih-Hong Cheng, Georg Nuhrenberg, and Harald Ruess. Maximum resilience of artificial neural networks. In International Symposium on Automated Technology for Verification and Analysis, pages 251-268. Springer, 2017.
+[8] Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 854–863. JMLR.org, 2017.
+[9] Jeremy M Cohen, Elan Rosenfeld, and J Zico Kolter. Certified adversarial robustness via randomized smoothing. arXiv preprint arXiv:1902.02918, 2019.
+[10] Nicolas Couellan. The coupling effect of lipschitz regularization in deep neural networks. arXiv preprint arXiv:1904.06253, 2019.
+[11] Farzan Farnia, Jesse M Zhang, and David Tse. Generalizable adversarial training via spectral normalization. arXiv preprint arXiv:1811.07457, 2018.
+[12] Alhussein Fawzi, Hamza Fawzi, and Omar Fawzi. Adversarial vulnerability for any classifier. arXiv preprint arXiv:1802.08686, 2018.
+[13] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In ICLR, 2019.
+[14] Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial Spheres. In ICLR Workshop, 2018.
+
+[15] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
+[16] Henry Gouk, Eibe Frank, Bernhard Pfahringer, and Michael Cree. Regularisation of neural networks by enforcing lipschitz continuity. arXiv preprint arXiv:1804.04368, 2018.
+[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
+[18] Qian Huang, Zeqi Gu, Isay Katsman, Horace He, Pian Pawakapan, Zhiqiu Lin, Serge Belongie, and Ser-Nam Lim. Intermediate level adversarial attack for enhanced transferability. arXiv preprint arXiv:1811.08458, 2018.
+[19] Ming Jin and Javad Lavaei. Stability-certified reinforcement learning: A control-theoretic perspective. arXiv preprint arXiv:1810.11505, 2018.
+[20] Eugenius Kaszkurewicz and Amit Bhaya. Matrix diagonal stability in systems and computation. Springer Science & Business Media, 2012.
+[21] Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In International Conference on Computer Aided Verification, pages 97-117. Springer, 2017.
+[22] Hassan K. Khalil. Nonlinear Systems, volume 2. Prentice Hall New Jersey, 1996.
+[23] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
+[24] Chang Liu, Bo Li, Yevgeniy Vorobeychik, and Alina Oprea. Robust Linear Regression Against Training Data Poisoning. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, AISec '17, pages 91-102, New York, NY, USA, 2017. ACM.
+[25] 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.
+[26] Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional smoothing with virtual adversarial training. arXiv preprint arXiv:1507.00677, 2015.
+[27] Nicolas Papernot, Fartash Faghri, Nicholas Carlini, Ian Goodfellow, Reuben Feinman, Alexey Kurakin, Cihang Xie, Yash Sharma, Tom Brown, Aurko Roy, Alexander Matyasko, Vahid Behzadan, Karen Hambardzumyan, Zhishuai Zhang, Yi-Lin Juang, Zhi Li, Ryan Sheatsley, Abhibhav Garg, Jonathan Uesato, Willi Gierke, Yinpeng Dong, David Berthelot, Paul Hendricks, Jonas Rauber, and Rujun Long. Technical report on the cleverhans v2.1.0 adversarial examples library. arXiv preprint arXiv:1610.00768, 2018.
+[28] Haifeng Qian and Mark N Wegman. L2-nonexpansive neural networks. arXiv preprint arXiv:1802.07896, 2018.
+[29] Arash Rahnama, Andre T. Nguyen, and Edward Raff. Connecting Lyapunov Control Theory to Adversarial Attacks. In Proceedings of AdvML'19: Workshop on Adversarial Learning Methods for Machine Learning and Data Mining at KDD, 2019.
+
+[30] Hanie Sedghi, Vineet Gupta, and Philip M Long. The singular values of convolutional layers. arXiv preprint arXiv:1805.10408, 2018.
+[31] Jiawei Su, Danilo Vasconcellos Vargas, and Sakurai Kouichi. One pixel attack for fooling deep neural networks. arXiv, 2017.
+[32] 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.
+[33] Olga Taussky. A recurring theorem on determinants. The American Mathematical Monthly, 56(10P1):672-676, 1949.
+[34] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. stat, 1050:11, 2018.
+[35] Tsui-Wei Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Duane Boning, Inderjit S Dhillon, and Luca Daniel. Towards fast computation of certified robustness for relu networks. arXiv preprint arXiv:1804.09699, 2018.
+[36] Eric Wong and Zico Kolter. Provable defenses against adversarial examples via the convex outer adversarial polytope. In International Conference on Machine Learning, pages 5283-5292, 2018.
+[37] Yuichi Yoshida and Takeru Miyato. Spectral norm regularization for improving the generalizability of deep learning. arXiv preprint arXiv:1705.10941, 2017.
+[38] George Zames. On the input-output stability of time-varying nonlinear feedback systems part one: Conditions derived using concepts of loop gain, conicity, and positivity. IEEE transactions on automatic control, 11(2):228-238, 1966.
+[39] Valentina Zantedeschi, Maria-Irina Nicolae, and Ambrish Rawat. Efficient defenses against adversarial attacks. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pages 39-49. ACM, 2017.
+[40] Huan Zhang, Tsui-Wei Weng, Pin-Yu Chen, Cho-Jui Hsieh, and Luca Daniel. Efficient neural network robustness certification with general activation functions. In Advances in Neural Information Processing Systems, pages 4939–4948, 2018.
\ No newline at end of file
diff --git a/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/images.zip b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..76b4f329e848c90b13d9396c4f09820294ef9acd
--- /dev/null
+++ b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c445fac96829848702b235839d122e832e4676edd150a025a10ba3369b7815d0
+size 324913
diff --git a/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/layout.json b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..208e58bd218bab4df7f1bd60e4bd050a74e7b862
--- /dev/null
+++ b/robustdesignofdeepneuralnetworksagainstadversarialattacksbasedonlyapunovtheory/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:70121e74d85a889e894a6f40a39bc369c12fdaeb4c3b661fb4066b59a1ad24e2
+size 542060
diff --git a/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_content_list.json b/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..cf09d0262130422e5ff2c50d10e2d4640ce1fa08
--- /dev/null
+++ b/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:94320815b16aa68e1987c634b05944e690f96687f72e61ce3c919da7d13e2f20
+size 86982
diff --git a/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_model.json b/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..dbf23d61c35c66c7da5a435e450859fad1943a5a
--- /dev/null
+++ b/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3ed347815fbb95290a9c8dd46b807d91d22efe18188f2e19ca64697457eafb0e
+size 108541
diff --git a/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_origin.pdf b/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9bb29e16f4beb5e4a4b652abfc81f887ad3eed05
--- /dev/null
+++ b/robusthomographyestimationviadualprincipalcomponentpursuit/b98edf92-f79b-496a-85fd-4803146fd5eb_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c9e1cc38a34538a53deeaca04e005474f1e224a7ad03967c8077b215a2170d4b
+size 1245748
diff --git a/robusthomographyestimationviadualprincipalcomponentpursuit/full.md b/robusthomographyestimationviadualprincipalcomponentpursuit/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..305c0e5f54010ed9a4a9da5ef27488d3e3366f38
--- /dev/null
+++ b/robusthomographyestimationviadualprincipalcomponentpursuit/full.md
@@ -0,0 +1,289 @@
+# Robust Homography Estimation via Dual Principal Component Pursuit
+
+Tianjiao Ding1 Yunchen Yang1 Zhihui Zhu2 Daniel P. Robinson3 René Vidal4 Laurent Kneip1 Manolis C. Tsakiris1
+
+# Abstract
+
+We revisit robust estimation of homographies over point correspondences between two or three views, a fundamental problem in geometric vision. The analysis serves as a platform to support a rigorous investigation of Dual Principal Component Pursuit (DPCP) as a valid and powerful alternative to RANSAC for robust model fitting in multiple-view geometry. Homography fitting is cast as a robust nullspace estimation problem over either homographic or epipolar/trifocal embeddings. We prove that the nullspace of epipolar or trifocal embeddings in the homographic scenario, of dimension 3 and 6 for two and three views respectively, is defined by unique, computable homographies. Experiments show that DPCP performs on par with USAC with local optimization, while requiring an order of magnitude less computing time, and it also outperforms a recent deep learning implementation for homography estimation.
+
+# 1. Introduction
+
+A linear image-to-image map in homogeneous space—commonly known as a homography or a projective transformation in the plane—is a fundamental model in many contexts in photogrammetry and computer vision. Assuming the imaging device follows the pinhole or perspective camera model, the notion of homography provides a simple model of the image warping that occurs if the camera rotates and translates in front of a planar scene or undergoes a pure rotation. Thus, it has played an important role in camera calibration [1, 2], metric rectification [3, 4], panorama imaging [5], augmented reality [6, 7], optical flow based on piece-wise planar scene modelling [8] and video stabilization [9, 10]. The present paper focuses on robust homography estimation from image correspondences across two or three views, with points in each view extracted from a local
+
+invariant key point detector [11], and the correspondences established by appearance descriptor matching techniques.
+
+The quality of the correspondences depends on a number of factors such as the invariance properties of the employed feature detector, motion blur, the texture of the environment, and the efficiency versus accuracy trade-off of the matching algorithm. It is therefore common that only a fraction of the identified cross-view correspondences are of high enough quality to yield an accurate homography estimate. As a result, the model fitting algorithm needs to be robust with respect to outliers in the set of correspondences, and the predominant scheme in computer vision to address this issue is RANSAC [12] and its more sophisticated derivatives developed over the last couple of decades, e.g., see [13, 14, 15, 16, 17] and references therein. Typically, these schemes may exhibit a high computational complexity due to a large ratio of outliers, high dimension of the inlier model, adaptive threshold determination, or local model refinement also known as local optimization.
+
+On the other hand, over the past decade a variety of robust subspace learning methods have appeared, admitting efficient implementations and strong theoretical guarantees [18, 19]. Among these, Dual Principal Component Pursuit (DPCP) [20, 21, 22, 23, 24] stands as one of the few methods able to handle subspaces of high relative dimension or equivalently low relative codimension. This is precisely the case in homography estimation, since, under homographic embeddings, it can be cast as a robust hyperplane learning problem in $\mathbb{R}^9$ and $\mathbb{R}^{27}$ for two and three views respectively. DPCP formulates the hyperplane learning problem as an $\ell_1$ non-convex optimization problem on the sphere, which can then be solved by a variety of methods such as recursive linear programming [20, 22], alternating minimization [25, 22], Iteratively-Reweighed-Least-Squares (DPCP-IRLS) [21, 22, 26], projected sub-gradient (DPCP-PSGM) [23, 24] and Riemannian sub-gradient (DPCP-RSGM) [27, 28] methods, or geodesic-gradient-descent [29]. In particular, DPCP-PSGM has been shown to tolerate $M < \mathcal{O}(N^2)$ outliers (here $N$ , $M$ is the number of inliers and outliers respectively), a notable result that contrasts sharply the typical guarantee $M < \mathcal{O}(N)$ of alternative methods [19]. More
+
+over, DPCP-PSGM and DPCP-IRLS have been shown to be able to outperform RANSAC with the same running time budget and optimal threshold in surface normal [23, 24] and trifocal tensor [21] estimation.
+
+In this paper we apply a group version of DPCP to the problem of robust homography estimation by casting the latter as a robust nullspace estimation problem. Here the groupings refer to the fact that each correspondence gives a group of embeddings. The nullspace of the matrix of embeddings is 1-dimensional under the traditional choice of homographic embeddings. On the other hand, it is also well understood that—for example in the case of a planar 3D point distribution—the epipolar or trifocal embeddings contribute a 3-dimensional or 6-dimensional nullspace, sitting inside 9-dimensional and 27-dimensional ambient space respectively. A fundamental property that we contribute here is that the structure of this nullspace is uniquely defined by the underlying homographies $^{2}$ ( $\S 2$ ). The computation of these higher dimensional nullspaces can still be done by using extensions of the aforementioned methods from the unit sphere to the Stiefel manifold, the working choice here being DPCP-IRLS, and a global optimality theorem is given for the group DPCP problem ( $\S 3$ ). Rigorous experiments suggest that DPCP performs competitively with the full-blown implementation of USAC [14], while running an order of magnitude faster ( $\S 4$ ). When local optimization in USAC is disabled, DPCP not only remains faster, but is also significantly more accurate. Finally, DPCP outperforms the deep learning approach of [32] by a large margin.
+
+# 2. Geometry: homographies and new insights
+
+We start by giving a brief review of epipolar and homographic constraints for two views (§2.1). We discuss the traditional way of extracting homographies from 1-dimensional nullspaces of matrices of homographic embeddings. Then we show that homographies are also uniquely encoded in 3-dimensional nullspaces associated with epipolar embeddings. We then discuss the analogue in three views, namely homographic and trifocal constraints, and prove the unique recovery of homographies from 6-dimensional nullspaces of matrices of trifocal embeddings (§2.2). The importance of estimating homographies from higher-dimensional nullspaces is discussed in §3.
+
+# 2.1. Two-view geometry
+
+Epipolar embeddings. Let $P = [I \, 0]$ , $P' = [A \, a]$ be the camera matrices for two perspective views $\mathcal{V}, \mathcal{V}'$ . It is well known that if $x_i \leftrightarrow x_i'$ are the projections of points $\xi_i$ in 3-space onto $\mathcal{V}$ and $\mathcal{V}'$ , then $x_i'^\top F x_i = 0$ , where $F := [a] A$
+
+is the so-called fundamental matrix. This is the well-known epipolar constraint which we rewrite as
+
+$$
+\phi \left(x _ {i}, x _ {i} ^ {\prime}\right) ^ {\top} \operatorname {v e c} (F) = 0, \tag {1}
+$$
+
+with the $\phi (x_i,x_i^{\prime})\in \mathbb{R}^{9}$ bilinear functions of the correspondence pair $x_{i},x_{i}^{\prime}$ , referred to as epipolar embeddings. If the displacement between the two views $\nu ,\nu^{\prime}$ is nondegenerate and the 3D points $\xi_{i}$ are in general position, then eight correspondences uniquely determine $F$ up to scale. That is, the following $9\times 8$ matrix has a 1-dimensional left nullspace spanned by $\operatorname {vec}(F)$ :
+
+$$
+[ \phi (x _ {1}, x _ {1} ^ {\prime}) \dots \phi (x _ {8}, x _ {8} ^ {\prime}) ]
+$$
+
+Homographic embeddings. Consider a plane $\pi$ in 3-space whose normal vector is $(h^{\top},1)^{\top} \in \mathbb{R}^{4}$ . Let $\xi_{i}$ now be points on $\pi$ and $x_{i} \leftrightarrow x_{i}^{\prime}$ their projections onto $\nu$ and $\nu^{\prime}$ . Then $x_{i}^{\prime} \sim Hx_{i}$ , where $H := A - ah^{\top}$ is the homography matrix. Here $x^{\prime} \sim Hx$ means that $x^{\prime}$ and $Hx$ are colinear, which implies that $[x_{i}^{\prime}]_{\times}Hx_{i} = 0$ . Since the matrix $[x_{i}^{\prime}]_{\times}$ is of rank 2, out of these three linear equations in $H$ , at most two are linearly independent. It is enough to consider the first two which we write as
+
+$$
+\psi_ {j} \left(x _ {i}, x _ {i} ^ {\prime}\right) ^ {\top} \operatorname {v e c} (H) = 0, j = 1, 2.
+$$
+
+The $\psi_j(x_i, x_i') \in \mathbb{R}^9$ are homographic embeddings, which are bilinear functions of the correspondence pair $x_i, x_i'$ . Assuming a non-degenerate configuration of the 3D points $\xi_i$ on the plane $\pi$ , 4 correspondences are sufficient to uniquely determine $H$ up to scale, i.e., the left nullspace of the $9 \times 8$ matrix of homographic embeddings has dimension 1.
+
+Homography estimation via epipolar embeddings. Now we discuss how to extract a homography from a nullspace of dimension higher than 1 arising from epipolar embeddings. We have not been able to find these arguments in the literature, especially those on the uniqueness of the homography.
+
+Let $H$ be a homography between $\mathcal{V}$ and $\mathcal{V}'$ induced by a plane $\pi$ . It is well-known that the fundamental matrix $F$ of $\mathcal{V}, \mathcal{V}'$ admits a factorization $F = [a]_{\times} H$ . It is equally well-known that if one constructs the usual epipolar embeddings in $\mathbb{R}^9$ for 8 correspondences $x_i \leftrightarrow x_i' = Hx_i$ , as in the 8-point algorithm, one will find a 3-dimensional nullspace. What is perhaps less well known is that the homography $H$ uniquely defines the structure of this nullspace.
+
+Proposition 1. A homography represented by $H$ induces a 3-dimensional vector space $\mathcal{F}_H = \{[v]_{\times}H : v \in \mathbb{R}^3\}$ of compatible fundamental matrices. Moreover, if $\mathcal{F}_{H'} \subseteq \mathcal{F}_H$ for some $H' \neq 0$ then $\mathcal{F}_{H'} = \mathcal{F}_H$ and $H' \sim H$ .
+
+Proof. $\mathcal{F}_H$ is a vector space since $[v_1]_{\times} + [v_2]_{\times} = [v_1 + v_2]_{\times}$ for any $v_1, v_2$ . Now $\mathcal{F}_H$ is spanned by $[e_1]_{\times} H, [e_2]_{\times} H, [e_3]_{\times} H$ where the $e_i$ 's are canonical vectors. Since $H$ is invertible these are linearly independent, thus $\dim \mathcal{F}_H = 3$ . Let $F \in \mathcal{F}_H$ . Then $F = [v]_{\times} H \in \mathcal{F}_H$ for some $v \neq 0$ . Since $H$ is invertible $[v]_{\times} H$ is a fundamental matrix. Moreover, it is compatible with the homography represented by $H$ because $H^{\top}[v]_{\times} H$ is skew-symmetric.
+
+For the last statement, we proceed in two steps. First we consider the case where $H'$ is invertible. Let $x \in \mathcal{V}$ and let $x' \in \mathcal{V}'$ with $x' \sim Hx$ . Let $F' = [v]_{\times} H' \in \mathcal{F}_{H'}$ . If $\mathcal{F}_{H'} \subseteq \mathcal{F}_H$ then $F'$ is a fundamental matrix compatible with the homography $H$ . That is $x'^{\top}[v]_{\times} H'x = 0$ . This is to say that $H'x \in \operatorname{Span}(x', v)$ for any $v \neq 0$ so that $H'x \in \operatorname{Span}(x')$ . Since $H'$ is invertible, $H'x \sim x'$ and therefore $H'x \sim Hx$ . This is true for any $x$ , thus $H' \sim H$ .
+
+Now we consider the general statement for any $H^{\prime}$ . The set of $H^{\prime}$ 's such that $\mathcal{F}_{H^{\prime}}\subseteq \mathcal{F}_H$ is a linear subspace $\mathcal{W}$ of $\mathbb{R}^{3\times 3}$ . The set $\mathcal{U}$ of invertible $3\times 3$ matrices is an open set in the Zariski topology of $\mathbb{R}^{3\times 3}$ [33, 34]. Then $\mathcal{W}_{\mathcal{U}}\coloneqq \mathcal{W}\cap \mathcal{U}$ is an open set in the subspace topology of $\mathcal{W}$ . We know that $\mathcal{W}_{\mathcal{U}}$ is non-empty because $H\in \mathcal{W}_{\mathcal{U}}$ . Since nonempty Zariski open subsets of linear subspaces are dense, the Zariski closure of $\mathcal{W}_{\mathcal{U}}$ is $\mathcal{W}$ itself. But we proved above that $\mathcal{W}_{\mathcal{U}}$ is exactly the line spanned by $H$ excluding the zero matrix. Adding back the zero matrix we get a 1-dimensional linear subspace of $\mathcal{W}$ , which is a closed set. That is $\mathcal{W} = \mathcal{W}_{\mathcal{U}}\cup \{0_{3\times 3}\} = \{\lambda H:\lambda \in \mathbb{R}\}$ .
+
+The vector space $\mathcal{F}_H$ of Proposition 1 is the 3-dimensional left nullspace $\mathcal{N}$ of the $9\times 6$ matrix $\Phi$ of epipolar embeddings of 6 point correspondences $x_{i}\leftrightarrow Hx_{i}$ . Proposition 1 asserts that $H$ is uniquely encoded in any basis $F_{1},F_{2},F_{3}$ of $\mathcal{F}_H$ in the following strong form. Consider the homogeneous linear system in the $c_{ij}$ 's and $H^{\prime}$
+
+$$
+\sum_ {j = 1} ^ {3} c _ {i j} F _ {j} = \left[ e _ {i} \right] _ {\times} H ^ {\prime}, i = 1, 2, 3. \tag {2}
+$$
+
+To say that $H'$ is a solution is to say that $\mathcal{F}_{H'} \subseteq \mathcal{F}_H$ . Then Proposition 1 gives $H' \sim H$ . In other words, (2) admits a unique up to scale solution in $H'$ , the homography $H$ .
+
+Even when the correspondences are slightly noisy, $\mathcal{N}$ need not have the structure of $\mathcal{F}_H$ . One then computes an $\hat{H}$ such that $\mathcal{F}_{\hat{H}}$ is closest to $\mathcal{N}$ in a Euclidean sense as follows. Let $B_{j} \in \mathbb{R}^{3 \times 3}$ , $j = 1, \ldots, 6$ be the matrices that
+
+correspond to the top 6 left singular vectors of $\Phi$ . Following [35, A5.6],[36] $\hat{H}$ is obtained in closed form in terms of a singular value decomposition by solving
+
+$$
+\min _ {H ^ {\prime}} \sum_ {i, j} \| B _ {j} ^ {\top} [ e _ {j} ] H ^ {\prime} \| _ {F} ^ {2} \mathrm {s . t .} \| ([ e _ {1} ] _ {\times} [ e _ {2} ] _ {\times} [ e _ {3} ] _ {\times}) H ^ {\prime} \| _ {F} = 1 (3)
+$$
+
+# 2.2. Three-view geometry
+
+Trifocal embeddings. The analogue of the fundamental matrix in three views is the (uncalibrated) trifocal tensor [35, 37, 38]. Consider three views $\mathcal{V},\mathcal{V}^{\prime},\mathcal{V}^{\prime \prime}$ with projection matrices $[I0],[Aa],[Bb]$ . Let $x\leftrightarrow x^{\prime}\leftrightarrow x^{\prime \prime}$ be the projections on the three views of a point $\xi$ in 3-space. In analogy with the epipolar constraint that captures the geometry of two views the triplet of correspondences satisfies
+
+$$
+[ x ^ {\prime} ] \left(\sum_ {i = 1} ^ {3} x _ {i} T _ {i}\right) [ x ^ {\prime \prime} ] = 0, \quad T _ {i} := a _ {i} b ^ {\top} - a b _ {i} ^ {\top}, \tag {4}
+$$
+
+where $a_i, b_i$ are the $i$ th columns of $A, B$ and $x_i$ is the $i$ th coordinate of $x$ . The matrices $T_i \in \mathbb{R}^{3 \times 3}$ are the slices of the trifocal tensor $\mathcal{T}$ . Conversely, any tensor $(T_1', T_2', T_3')$ is a trifocal tensor if it admits a decomposition as in (4). Viewed as elements of $\mathbb{P}^{26}$ the trifocal tensors form a dense set in an irreducible projective variety of dimension 18.
+
+The system (4) consists of 9 equations trilinear in $x, x', x''$ and linear in $\mathcal{T}$ . Viewed as equations in $\mathcal{T}$ , their coefficients are the trifocal embeddings of the correspondence $x \leftrightarrow x' \leftrightarrow x''$ . Among these 9 trifocal embeddings only 4 are in general linearly independent. Then 7 general correspondences suffice to uniquely solve for $\mathcal{T}$ up to scale. This is done by computing the 1-dimensional left nullspace of a $27 \times 28$ matrix of trifocal embeddings.
+
+Homographic embeddings. Suppose now that points $\xi_{i}$ from a plane $\pi$ are projected onto three views $\mathcal{V},\mathcal{V}^{\prime},\mathcal{V}^{\prime \prime}$ to yield correspondences $x_{i}\leftrightarrow x_{i}^{\prime}\leftrightarrow x_{i}^{\prime \prime}$ . Then there exist homographies $H,G$ such that $Hx_i^\prime \sim x_i$ , $Gx_{i}^{\prime \prime}\sim x_{i}$ . As a consequence $\mathrm{rank}([x_iHx_i'Gx_i'']) = 1$ . Thus,
+
+$$
+[ x _ {i} ] _ {\times} H x _ {i} ^ {\prime} = [ x _ {i} ] _ {\times} G x _ {i} ^ {\prime \prime} = [ H x _ {i} ^ {\prime} ] _ {\times} G x _ {i} ^ {\prime \prime} = 0. \tag {5}
+$$
+
+With $\mathcal{H}_{ijk} := (h_j \times g_k)_i$ the $i$ th coordinate of the cross product of the $j$ th column of $H$ and the $k$ th column of $G$ , (5) can be written as [39]
+
+$$
+\sum_ {i, j = 1} ^ {3} x _ {i} x _ {j} ^ {\prime} \mathcal {H} _ {i j k} = \sum_ {i, j = 1} ^ {3} x _ {i} x _ {j} ^ {\prime \prime} \mathcal {H} _ {i k j} = \sum_ {i, j = 1} ^ {3} x _ {i} ^ {\prime \prime} x _ {j} ^ {\prime} \mathcal {H} _ {k j i} = 0,
+$$
+
+for $k = 1,2,3$ . These are 9 equations linear in the homography tensor $\mathcal{H} \in \mathbb{R}^{3 \times 3 \times 3}$ , which is a bilinear function of $H, G$ and takes values in a codimension 10 irreducible algebraic variety of $\mathbb{P}^{26}$ [40, 41]. The coefficients are bilinear functions in pairs of correspondences and as in the
+
+case of two views can be thought of as homographic embeddings into $\mathbb{R}^{27}$ . Among the 9 homographic embeddings produced by each corresponding triplet, 7 of them are in general linearly independent. Therefore, assuming a nondegenerate point configuration, 4 such triplets are sufficient to uniquely determine the 1-dimensional left nullspace of the $27\times 28$ matrix of homographic embeddings, from which the homography tensor $\mathcal{H}$ is computed up to scale. $H,G$ are subsequently obtained following the work [39].
+
+Homography estimation via trifocal embeddings. Notably, two homographies can also be uniquely computed from a nullspace of dimension 6 arising from trifocal embeddings. Let $\pi$ be a plane in 3-space. We have:
+
+Proposition 2. The homographies $\mathcal{V} \xrightarrow{H} \mathcal{V}', \mathcal{V} \xrightarrow{G} \mathcal{V}''$ induced by the plane $\pi$ induce a 6-dimensional vector space $\mathcal{T}_{H,G}$ of trifocal tensors. Each $T \in \mathcal{T}_{H,G}$ is compatible with point correspondences $x \leftrightarrow x' \leftrightarrow x''$ obtained by projecting points from $\pi$ . Moreover, $\mathcal{T}_{H,G}$ is uniquely determined by $H, G$ and uniquely determines $H, G$ up to scale.
+
+Proof. As per Proposition 1 $H$ induces a 3-dimensional vector space $\mathcal{F}_H$ of fundamental matrices. These matrices have the form $[v]_{\times}H$ with $v$ varying in $\mathbb{R}^3$ . They induce a 3-parameter family of projection matrices $[H v]$ for $\mathcal{V}'$ , all compatible with correspondences $x \leftrightarrow x'$ obtained by projecting points from $\pi$ . A similar argument shows the existence of a 3-parameter family of projection matrices $[G d]$ for $\mathcal{V}''$ compatible with correspondences $x \leftrightarrow x''$ obtained by projecting points from $\pi$ . As $H, G$ are induced by the same plane, we have a 6-parameter family $[I0], [H v], [G w]$ of camera projections all compatible with correspondences $x \leftrightarrow x' \leftrightarrow x''$ obtained by projecting points from $\pi$ . Each element of the family gives a trifocal tensor $T$ with $T_i = h_i w^\top - v g_i^\top$ , $i = 1, 2, 3$ where $h_i, g_i$ are the $i$ th columns of $H, G$ . These form a 6-dimensional vector space $\mathcal{T}_{H,G}$ . The last statement follows again from Proposition 1 since $H$ uniquely determines $\mathcal{F}_H$ and is uniquely determined by it up to scale and similarly for $G, \mathcal{F}_G$ .
+
+Let $x_{i} \leftrightarrow x_{i}' \leftrightarrow x_{i}''$ be correspondences obtained by projecting 6 general points from $\pi$ . A consequence of Proposition 2 is that the $27 \times 24$ matrix of trifocal embeddings (4 embeddings for each correspondence) will have a 6-dimensional left nullspace. The homographies $H, G$ can be uniquely recovered from that nullspace by means analogous to those for epipolar embeddings and similarly for the case of slightly imperfect correspondences.
+
+# 3. Optimization: group-DPCP
+
+Suppose we are given a set of $N$ inlier groups $X = [X_1, \ldots, X_N] \in \mathbb{R}^{D \times NK}$ , where each group $X_i \in \mathbb{R}^{D \times K}$ contains $K$ inlier points in its columns lying in a linear
+
+Table 1: Two-view and three-view motion models, number $K$ of embeddings per correspondence, embedding type, subspace type for homography estimation, and codimension parameter $c$ to be used in (7).
+
+| Motion model | K | Embedding | Estimation of | c |
| 2-view rigid body | 1 | epipolar | a hyperplane in R9 | 1 |
| 3-view rigid body | 4 | trifocal | a hyperplane in R27 | 1 |
| 2-view homography | 1 | epipolar | a 6-dim. subspace in R9 | 3 |
| 2 | homographic | a hyperplane in R9 | 1 |
| 3-view homography | 4 | trifocal | a 21-dim. subspace in R27 | 6 |
| 7 | homographic | a hyperplane in R27 | 1 |
+
+subspace $S \subset \mathbb{R}^D$ of low relative codimension $c / D, c = D - \dim S$ , contaminated by a set of $M$ arbitrary outlier groups $O = [O_1, \ldots, O_M] \in \mathbb{R}^{D \times MK}, O_j \in \mathbb{R}^{D \times K}$ , and we wish to find $S$ . Let $\tilde{X} = [X, O] \Pi \in \mathbb{R}^{D \times LK}$ with $\Pi$ an unknown group permutation indicating that the segmentation of $\tilde{X}$ into inlier and outlier groups is not available a priori. With $\tilde{X}_i$ the $i$ -th group of points of $\tilde{X}$ (could be inliers or outliers) and $1(y) = 1$ if $y \neq 0$ and $1(y) = 0$ otherwise, under mild general position assumptions on $\tilde{X}$ , $S$ is the orthogonal complement of the range-space of the unique global minimum of the optimization problem
+
+$$
+\min _ {B \in \mathbb {R} ^ {D \times c}} \sum_ {i = 1} ^ {L} 1 \left(\| \tilde {X} _ {i} ^ {\top} B \| _ {F}\right) \quad \text {s . t .} \quad \operatorname {r a n k} (B) = c. \tag {6}
+$$
+
+As (6) is computationally intractable and in practice the inlier groups do not lie exactly in $S$ , we replace it with the following robust $\ell_1$ optimization problem on the Stiefel manifold (the set of orthonormal matrices)
+
+$$
+\min _ {B \in \mathbb {R} ^ {D \times c}} \sum_ {i = 1} ^ {L} \| \tilde {X} _ {i} ^ {\top} B \| _ {F} \text {s . t .} B ^ {\top} B = I _ {c}. \tag {7}
+$$
+
+The range-space of an optimal solution $B^{*}$ of (7) contains $c$ orthogonal directions of minimal $\ell_{1}$ norm for the projected dataset and for this reason we refer to them as dual principal components in analogy with the classical principal components. In this work, we adopt the group-DPCP formulation (7) to address the robust homography estimation in the presence of a large number of mismatches7. For example, suppose we have a 2-view homography estimation problem with $L$ given correspondences $\tilde{x}_i \leftrightarrow \tilde{x}_i'$ , where $N$ of them are high-quality $x \leftrightarrow x'$ and $M$ of them are mismatches $o \leftrightarrow o'$ . Recall from §2.1 that each correspondence $\tilde{x}_i \leftrightarrow \tilde{x}_i'$ contributes two homographic embeddings $\tilde{X}_i \in \mathbb{R}^{9 \times 2}$ , i.e., $K = 2$ . The embeddings $X \in \mathbb{R}^{9 \times 2N}$ of the high quality correspondences lie close to a hyperplane
+
+of $\mathbb{R}^9$ whose normal vector directly encodes the homography. On the other hand no linear structure is expected in the embeddings $O\in \mathbb{R}^{9\times 2M}$ of the mismatches. Then we may robustly estimate the homography by solving (7) with $c = 1$ . Alternatively, we may work with epipolar embeddings where the task is to extract the homography from a 3-dimensional nullspace (§2.1). In that case we solve (7) for $c = 3$ (now $\tilde{X}_i$ are the epipolar embeddings) to get an orthonormal basis for that nullspace and subsequently extract the homography by solving (3). Similarly, a choice of $c = 1$ is needed for homographic embeddings of 3-view correspondences or $c = 6$ for trifocal ones (Table 1).
+
+The importance of working with epipolar or trifocal embeddings in this context is computational: Note that the matrix of epipolar/trifocal embeddings has a smaller size than that of homographic embeddings. For example, each correspondence gives 1 epipolar embedding as opposed to 2 homographic ones in $\mathbb{R}^9$ or 4 versus 7 in $\mathbb{R}^{27}$ for the 3-view case. This results in faster computation and lighter memory usage, which is also evidenced in §4. Another potential advantage comes from the theory of robust subspace learning [18]: it is well-known that detecting outliers is a much simpler task when the intrinsic dimension $d$ of the inlier data is small compared to the ambient dimension $D$ . In such a regime a state-of-the-art toolbox of low-rank and sparse representation based methods with efficient implementations is available [43, 44, 45, 46, 47, 48, 49]. In contrast, the task is significantly more challenging when $d / D$ is large [22, 50].
+
+# 3.1. Global optimality of (7)
+
+We present a novel condition for the global optimality of (7) in the noiseless case and otherwise under great generality. This condition is derived by extending the analysis of [23] for constraints of the form $B^T B = I_c$ as well as groupings of points. Suppose that for any $\{i_1, \ldots, i_s\} \subset \{1, \ldots, M\}$ we have $\mathrm{rank}([O_{i_1} \cdots O_{i_s}]) = \min \{D, Ks\}$ . Any random $O_i$ satisfies this with probability 1 and so do the homographic embeddings of random mismatches. We define three quantities that depend on either inliers $X$ or outliers $O$ :
+
+$$
+\begin{array}{l} \pi_ {X} := \frac {1}{N} \min _ {b \in \mathcal {S} \cap \mathbb {S} ^ {D - 1}} \sum_ {i = 1} ^ {N} \| X _ {i} ^ {\top} b \| _ {2} \\ \rho_ {O} := \frac {1}{M} \max _ {B ^ {T} B = I _ {c}} \left\| (I _ {D} - B B ^ {\top}) \sum_ {i = 1} ^ {M} O _ {i} \operatorname {S i g n} (O _ {i} ^ {\top} B) \right\| _ {F} \\ \delta_ {O} := \frac {1}{M} (\max _ {B ^ {T} B = I _ {c}} \sum_ {i = 1} ^ {M} \| O _ {i} ^ {\top} B \| _ {F} - \min _ {B ^ {T} B = I _ {c}} \sum_ {i = 1} ^ {M} \| O _ {i} ^ {\top} B \| _ {F}). \\ \end{array}
+$$
+
+Here $\mathbb{S}^{D - 1}$ denotes the unit sphere while for a matrix $A$ we define $\operatorname {Sign}(A)$ as $A / \| A\| _F$ if $A\neq 0$ and 0 otherwise. These quantities are measures of uniformity of $X,O$ . For example, the more uniformly the $X_{i}$ are distributed in $\mathcal{S}$ the larger $\pi_X$ is. Similarly, more uniformly distributed outliers
+
+$O_{i}$ in $\mathbb{R}^D$ lead to smaller values for $\rho_O$ and $\delta_O$ . Letting $\nu_{O} = \max_{i = 1,\dots,M}\| O_{i}\|_{F}$ , our result reads:
+
+Proposition 3. Any global solution $B^{*}\in \mathbb{R}^{D\times c}$ to (7) with $c = D - d$ is an orthonormal basis for $\mathcal{S}^{\perp}$ whenever
+
+$$
+\frac {M}{N} \frac {\sqrt {\left(\rho_ {O} \sqrt {c} + \frac {\nu_ {O} \sqrt {c}}{M} \min \left\{M , \frac {d}{K} \right\}\right) ^ {2} + \delta_ {O} ^ {2}}}{\pi_ {X}} < 1. \tag {8}
+$$
+
+To interpret (8) let us fix the ratio $M / N$ to a constant value. Then the rest of the left-hand-side of (8) is a fraction whose denominator depends only on the inliers and its numerator only on the outliers. The more uniformly distributed $X, O$ are the larger the denominator and the smaller the numerator become, i.e., (8) is more likely to be satisfied. A study of how (8) behaves when $X, O$ are homographic embeddings is left to a longer version of this manuscript.
+
+# 4. Experimental evaluation
+
+We perform an experimental study of homography estimation using DPCP $^8$ . The algorithm used to solve (7) is DPCP-IRLS, to be henceforth referred to as DPCP(c) where $c$ is the dimension of the target nullspace. For example, for 2-view homographic embeddings $c = 1$ , while for epipolar embeddings $c = 3$ . Similarly, for 3-view homographic or trifocal embeddings we have $c = 1, 6$ respectively. We employ a $\mathrm{C}++$ implementation of DPCP for 2-view problems as well as a MATLAB implementation for 3-views.
+
+We use three RANSAC variations as alternatives. The first one, USAC [14], is a fair representative of the state-of-the-art. USAC generates a model hypothesis using homographic embeddings from 4 sampled correspondences, and determines the proximity of a correspondence to the homography model via reprojection error. The threshold is set to 2 pixels across all experiments. Additional options are available such as local optimization, progressive sampling and model verification. We always use the latter, while (L) or (P) indicate whether the first two have been activated. An off-the-shelf integrated $\mathrm{C + + }$ implementation of USAC is used, but is available only for 2-view problems. Thus we will compare this USAC implementation to the $\mathrm{C + + }$ implementation of DPCP for 2-views only.
+
+For 3-view experiments we use our own optimized MATLAB implementation of two vanilla RANSAC algorithms termed RP-RANSAC and SD-RANSAC. These use reprojection and subspace distance errors respectively. The threshold for RP-RANSAC is consistently set to 2 pixels. This is used to optimally set a threshold for SD-RANSAC. The running time of both is set to be equal to the running time of the MATLAB implementation of DPCP.
+
+Table 2: Homography estimation on 339 synthetically warped images from the MS-COCO dataset. Corner errors are in pixels and running times are in milliseconds.
+
+ | method | AUC | Corner Error | Time |
| mean | DPCP(1) | 0.89 | 2.53 | 1.13 |
| DPCP(3) | 0.88 | 5.08 | 0.88 |
| USAC | 0.84 | 3.34 | 5.38 |
| USAC(L) | 0.92 | 1.18 | 16.6 |
| USAC(P) | 0.71 | 12.6 | 21.4 |
| USAC(PL) | 0.84 | 6.75 | 22.7 |
| median | DPCP(1) | 0.94 | 0.81 | 0.98 |
| DPCP(3) | 0.93 | 0.96 | 0.74 |
| USAC | 0.88 | 2.37 | 3.28 |
| USAC(L) | 0.95 | 0.48 | 13.0 |
| USAC(P) | 0.76 | 8.58 | 1.43 |
| USAC(PL) | 0.93 | 0.83 | 11.3 |
+
+
+Figure 1: A random patch on the original image is taken as reference (red) and its corners are perturbed to get the second patch (blue). This defines a homography warp (right).
+
+# 4.1. Homography warping
+
+We follow the protocol of [51, 32] to generate warped images from the MS-COCO dataset [52] as shown in Fig. 1. We resize each image to $640 \times 480$ pixels in gray-scale and extract a $256 \times 256$ reference patch (red) at a random location. A perturbed patch (blue) is then generated by taking the corners of the reference patch and adding uniform noise up to 64 pixels. A ground-truth homography is computed by establishing correspondences between the corners of the two patches (§2.1). By warping the perturbed patch with the ground-truth homography, the second patch is brought back to the same size and format as the reference patch. The task is to estimate the homography given the two square patches. Correspondences are obtained by extracting and matching ORB features [53] between the two patches using a matching threshold of 0.3 and a ratio test threshold of 0.7.
+
+Table 2 reports mean/median area under the precision-recall curve (AUC), corner error in pixels as defined in [51] and running time over 339 randomly sampled images from the MS-COCO dataset. To begin with, USAC(PL) achieves a mean and median corner error of 6.75 and 0.83 pixels re
+
+spectively, which is in agreement with what was reported in [32, Figure 2]. Remarkably, DPCP outperforms both USAC(PL) and the deep learning approach reported in [32, Figure 2]: the latter has mean and median corner error of about 5 and 1.2 pixels while DPCP(1) has 2.53 and 0.81 respectively. On the other hand DPCP(3) appears to be less robust than DPCP(1) having twice the mean corner error of the latter. We conjecture that this is due to the homography estimation pipeline of DPCP(3), which involves two consecutive optimization problems, i.e. (7) followed by (3). It is the subject of current research to merge these into a single optimization problem, which is expected to improve the robustness. Note furthermore that the progressive sampling strategy of USAC seems to yield higher mean corner error, e.g., USAC(PL) has a mean error of 6.75 which drops to 1.18 for USAC(L), for which progressive sampling is switched off. Based on our investigations, the reason appears to be that the affinity score between matched ORB features—used for prioritizing the sampling [14, 54]—does not discriminate well between true and false matches.[10] Overall, USAC(L) gives the smallest mean corner error of about 1 pixel and the highest mean AUC value of 0.92. This is not a surprise since local optimization is known to lead to high accuracy [13, 14, 42]. However, note that DPCP(1) runs on average about 15 times faster than USAC(L) and has performance only slightly less accurate than USAC(L).
+
+# 4.2. Structure from motion
+
+We solve the structure from motion problem via homographies on sequences from the KITTI odometry [55] and the TUM RGB-D [56] datasets. The sequences cover outdoor driving scenes, as well as indoor man-made environments, which turn out to be well modeled by homographies. We match putative 2-view or 3-view correspondences over each pair/triplet of images.[11] We discard frames that have fewer than 30 correspondences among three views. For each method, homographies for view pairs $(\mathcal{V},\mathcal{V}^{\prime})$ and $(\mathcal{V},\mathcal{V}^{\prime \prime})$ are estimated. For the purpose of evaluation, we further convert the estimated homographies to calibrated homographies using the provided camera calibration information, and then perform homography decomposition [57, 58] to obtain rotation and translation matrices. For a homography, there are at most four pairs of possible rotations and translations, and the one with smallest error with regard to ground-truth is used for evaluation.[12] Finally, the 20 correspondences with the smallest reprojection error for each estimated homography model are used for refining the poses via bundle adjustment [59].
+
+
+(a) Homography inliers (red) lie close to a wall plane.
+
+
+(b) Homography inliers (red) are non-planar but have large depth and are close to the direction of motion.
+Figure 2: A homography is fit to frames 101 and 105 from sequence 0 (see Figure 2a) and frames 3301 and 3305 from sequence 8 (see Figure 2b) of the KITTI dataset. Points compatible with the epipolar geometry (blue and red) and the homography model (red) are shown in the first view.
+
+KITTI odometry. This is an autonomous driving dataset that includes images taken from a camera looking forward fixed on top of a car. As shown in Fig. 2 a homography can be successfully used due to the presence of correctly matched points that either 1) lie in a planar part of the scene (Fig. 2a) or 2) have large depth and are close to the direction of motion (Fig. 2b). For each sequence13, frames $\{1, 101, 201\ldots\}$ are sampled to be the first views, and then a gap of 4 is chosen to generate triplets of views, e.g., frames $(100, 105, 109)$ will be a triplet for evaluation14. We compare the use of 2-view and 3-view embeddings by working with view triplets: in the former case we treat view triplets as pairs of two views.
+
+Table 3 (top) reports mean rotation error and translation error in angles, and reprojection error for the ground-truth inliers before and after bundle adjustment (BA) for sequence 8 of KITTI. The lowest rotation error among the 2-view methods is $0.42^{\circ}$ achieved by USAC(L), which takes $13.1\mathrm{ms}$ to complete. Remarkably DPCP(1) converges in $0.64\mathrm{ms}$ with a rotation error of only $0.1^{\circ}$ higher than that of USAC(L). Moreover, DPCP(1) has the lowest translation error and the lowest reprojection error before and after BA: 1.46 pixels as opposed to 2.26 pixels for USAC(L).
+
+Interestingly, lower errors are achieved by 3-view methods before BA. In particular, DPCP(1) gives the lowest rotation, translation and reprojection errors before BA among
+
+all methods. Moreover, DPCP(6) seems to be much more robust than DPCP(3) giving the second lowest errors. Notably, DPCP(6) converges in 2.8ms and has smaller errors than the USAC(L) for two views. This is interesting because—even though it is known that for the same number of correspondences optimizing over three views jointly gives more accurate poses than over pairs of two views independently [37, 60]—in practice there are fewer correspondences over 3-views. This experiment shows that working with 3-view embeddings can be advantageous.
+
+Finally, even though for the purpose of homography estimation penalizing the reprojection error is more suitable than penalizing the subspace distance, SD-RANSAC appears to be more accurate than RP-RANSAC given the same time budget. This is because RP-RANSAC contains additional matrix multiplications and a matrix inversion in order to compute the symmetric transfer error. For example, in 4.76ms SD-RANSAC(1) completes 17 iterations as opposed to 8 iterations in 4.92ms for RP-RANSAC(1).
+
+TUM RGB-D. This dataset includes sequences of different indoor environments taken from a hand-held RGB-D camera. We test the methods on two interesting sequences: 'fr3/nostructure Texture_near_withloop' where the scene is a planar wall with posters on it so that rich features can be detected and matched, and 'fr2/360_hemisphere' where the motion is almost translation free. For convenience we will refer to them as 'near' and 'hemisphere' respectively. We choose a frame gap of 20 for 'near' and 10 for 'hemisphere'.
+
+As seen in the middle part of Table 3 the best performance for the sequence 'near' across all 2-view and 3-view methods is uniformly achieved by USAC(L). Rotation, translation and reprojection errors are $0.42^{\circ}, 3.16^{\circ}$ and 0.66 pixels respectively. Notice that USAC(L) takes 30.6ms to terminate. Remarkably, DPCP(1) for two views converges in only 0.84ms and has almost the same performance of $0.46^{\circ}, 3.3^{\circ}$ and 0.67 pixels. If we switch off local optimization, USAC may terminate slightly faster than DPCP(1), however at the cost of a significant degradation in terms of accuracy: it has more than $1^{\circ}$ and $9^{\circ}$ higher rotation and translation errors than DPCP(1). Note also that DPCP(3) performs almost as good as DPCP(1). Finally, the 3-view counterparts of these methods, that is DPCP(1) and DPCP(6), outperform their RANSAC analogues by a nonnegligible margin. In particular, the angular translation error for DPCP(1) is $3.9^{\circ}$ while RANSAC methods give at least $3^{\circ}$ higher error.
+
+The bottom of Table 3 indicates the results for the sequence 'hemisphere'. Note that all methods give very large translation errors owing to the fact that the motion in this sequence is almost purely rotational, which results in a low signal-to-noise ratio in the translation direction [61, 62]. Note that over three views, trifocal embeddings clearly produce better results than homographic ones.
+
+Table 3: Homography estimation from three views using 2-view or 3-view embeddings. Dataset/sequence in boldface. Rotation and translation errors are in degrees, reprojection error is in pixels and running time is in milliseconds. BA stands for bundle adjustment.
+
+| KITTI-8 | before BA | after BA |
| 2view-methods | Time | Rot. | Tran. | Repr. | Repr. |
| DPCP(1) | 0.64 | 0.52 | 4.02 | 2.02 | 1.46 |
| DPCP(3) | 0.55 | 1.12 | 4.85 | 8.21 | 2.30 |
| USAC | 5.80 | 0.69 | 10.5 | 3.43 | 2.86 |
| USAC(L) | 13.1 | 0.42 | 6.04 | 2.39 | 2.26 |
| before BA | after BA |
| 3view-methods | Time | Rot. | Tran. | Repr. | Repr. |
| DPCP(1) | 4.63 | 0.35 | 3.96 | 1.68 | 1.73 |
| DPCP(6) | 2.80 | 0.42 | 4.11 | 1.81 | 1.71 |
| SD-RANSAC(1) | 4.76 | 0.50 | 5.77 | 2.33 | 2.19 |
| SD-RANSAC(6) | 2.89 | 0.55 | 7.32 | 2.35 | 2.15 |
| RP-RANSAC(1) | 4.92 | 0.80 | 7.82 | 5.64 | 11.3 |
| RP-RANSAC(6) | 3.41 | 1.69 | 10.7 | 36.5 | 9.75 |
| TUM-near | before BA | after BA |
| 2view-methods | Time | Rot. | Tran. | Repr. | Repr. |
| DPCP(1) | 0.84 | 0.46 | 3.30 | 0.67 | 0.67 |
| DPCP(3) | 0.65 | 0.46 | 3.36 | 0.68 | 0.68 |
| USAC | 0.66 | 1.63 | 12.9 | 1.45 | 0.99 |
| USAC(L) | 30.6 | 0.42 | 3.16 | 0.66 | 0.66 |
| before BA | after BA |
| 3view-methods | Time | Rot. | Tran. | Repr. | Repr. |
| DPCP(1) | 7.64 | 0.50 | 3.90 | 0.69 | 0.69 |
| DPCP(6) | 4.77 | 0.51 | 3.96 | 0.69 | 0.69 |
| SD-RANSAC(1) | 7.97 | 0.94 | 6.93 | 0.97 | 0.82 |
| SD-RANSAC(6) | 5.07 | 0.88 | 7.57 | 1.20 | 0.86 |
| RP-RANSAC(1) | 8.33 | 4.45 | 23.0 | 36.4 | 7.91 |
| RP-RANSAC(6) | 6.86 | 6.01 | 29.5 | 48.0 | 37.1 |
| TUM-hemisphere | before BA | after BA |
| 2view-methods | Time | Rot. | Tran. | Repr. | Repr. |
| DPCP(1) | 0.89 | 0.95 | 35.9 | 1.00 | 0.84 |
| DPCP(3) | 0.60 | 1.13 | 34.7 | 1.04 | 0.81 |
| USAC | 0.90 | 1.38 | 49.9 | 1.30 | 0.95 |
| USAC(L) | 27.8 | 0.72 | 37.6 | 0.99 | 0.79 |
| before BA | after BA |
| 3view-methods | Time | Rot. | Tran. | Repr. | Repr. |
| DPCP(1) | 4.12 | 2.46 | 36.5 | 2.69 | 1.01 |
| DPCP(6) | 2.70 | 1.32 | 35.7 | 1.06 | 0.86 |
| SD-RANSAC(1) | 4.28 | 1.85 | 47.1 | 1.67 | 1.82 |
| SD-RANSAC(6) | 2.82 | 1.47 | 47.6 | 1.17 | 0.97 |
| RP-RANSAC(1) | 4.44 | 5.09 | 53.5 | 36.9 | 37.4 |
| RP-RANSAC(6) | 3.41 | 5.31 | 54.5 | 12.9 | 4.63 |
+
+Indeed, DPCP(6) gives the best performance among all 3-view methods with rotation and reprojection errors more than $1^{\circ}$ and 1 pixel lower than those for DPCP(1). Moreover, DPCP(6) converges in about half the time required DPCP(1). In fact, across all experiments DPCP consistently converges faster with epipolar or trifocal embeddings as opposed to homographic embeddings. This is because, as already mentioned in §2 and §3, the former are more economic than the latter: for three views the data matrix of trifocal embeddings has 4/7 times the size of the matrix of homographic embeddings, while this size ratio is 1/2 for two-views. An additional potential factor is the effect of the lower intrinsic dimension of epipolar/trifocal embeddings; indeed as per Theorem 6 $^{15}$ in [22] DPCP is known to converge faster for higher codimensions.
+
+# 5. Discussion
+
+We have shown that modern robust subspace fitting techniques are amenable to the solution of geometric vision problems. DPCP produces results that are competitive to state-of-the-art methods in terms of the achievable accuracy, and does so using substantially reduced computational effort. We have furthermore demonstrated that working over epipolar or trifocal embeddings can lead to another advantage in terms of computational efficiency, especially for the three-view scenario, at the cost of only slightly reduced accuracy. We believe the reduced accuracy is not inherent to our approach but rather an artifact of our computational pipeline that solves two consecutive optimization problems (efforts are being made to reduce this to a single problem). From a theoretical point of view, our contribution relies on a new global optimality condition for the DPCP algorithm. Moreover, in the context of homography fitting, we prove that the nullspace over epipolar or trifocal embeddings is uniquely defined by the underlying homographies, thus enabling a reduction in the intrinsic dimension and therefore another boost in computational efficiency.
+
+We placed significant emphasis on comparing our proposed approach to the highly successful RANSAC algorithm through rigorous and exhaustive experimental evaluation. We applied all algorithms to multiple scenarios for both two and three view configurations while carefully considering practical implications such as a reduction in the number of correspondences over three views. Comparisons to state-of-the-art implementations of variants of RANSAC for regular CPU architectures were performed. From a practical point of view, we believe the available time budget is the most important concern in robust estimation, and in this regard we demonstrated that DPCP is superior to RANSAC.
+
+# References
+
+[1] Z. Zhang, “A Flexible New Technique for Camera Calibration,” IEEE transactions on pattern analysis and machine intelligence, vol. 22, no. 11, pp. 1330-1334, 2000. 1
+[2] Z. Chuan, T. D. Long, Z. Feng, and D. Z. Li, “A planar homography estimation method for camera calibration,” in IEEE International Symposium on Computational Intelligence in Robotics and Automation, vol. 1, pp. 424–429, 2003. 1
+[3] R. T. Collins and J. R. Beveridge, “Matching perspective views of coplanar structures using projective unwarping and similarity matching,” in IEEE Conference on Computer Vision and Pattern Recognition, pp. 240–245, 1993. 1
+[4] D. Liebowitz and A. Zisserman, "Metric rectification for perspective images of planes," in IEEE Conference on Computer Vision and Pattern Recognition, pp. 482-488, 1998. 1
+[5] M. Brown and D. G. Lowe, “Recognising poranoras,” IEEE International Conference on Computer Vision, vol. 2, pp. 1218–1225, 2003. 1
+[6] G. Simon, A. W. Fitzgibbon, and A. Zisserman, “Markerless tracking using planar structures in the scene,” in IEEE and ACM International Symposium on Augmented Reality, pp. 120–128, 2000. 1
+[7] Z. Zhou, H. Jin, and Y. Ma, “Robust plane-based structure from motion,” IEEE Conference on Computer Vision and Pattern Recognition, pp. 1482–1489, 2012. 1
+[8] J. Yang and H. Li, “Dense, accurate optical flow estimation with piecewise parametric model,” in IEEE Conference on Computer Vision and Pattern Recognition, pp. 1019–1027, 2015. 1
+[9] M. Grundmann, V. Kwatra, D. Castro, and I. Essa, “Calibration-free rolling shutter removal,” IEEE International Conference on Computational Photography, 2012. 1
+[10] Z. Zhou, H. Jin, and Y. Ma, "Plane-based content preserving warps for video stabilization," IEEE Conference on Computer Vision and Pattern Recognition, no. 1, pp. 2299-2306, 2013. 1
+[11] T. Tuytelaars and K. Mikolajczyk, “Local Invariant Feature Detectors: A Survey,” Foundations and Trends in Computer Graphics and Vision, vol. 3, no. 3, pp. 177–280, 2007. 1
+[12] M. A. Fischler and R. C. Bolles, “Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography,” Communications of the ACM, vol. 24, no. 6, pp. 381–395, 1981. 1
+[13] O. Chum, J. Matas, and J. Kittler, "Locally optimized ransac," in Joint Pattern Recognition Symposium, pp. 236-243, Springer, 2003. 1, 6
+[14] R. Raguram, O. Chum, M. Pollefeys, J. Matas, and J. M. Frahm, "USAC: A universal framework for random sample consensus," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 35, no. 8, pp. 2022-2038, 2013. 1, 2, 5, 6
+
+[15] L. Moisan, P. Moulon, and P. Monasse, “Fundamental Matrix of a Stereo Pair, with A Contrario Elimination of Outliers,” Image Processing On Line, vol. 5, pp. 89–113, 2016. 1
+[16] D. Barath and J. Matas, “Graph-Cut RANSAC,” IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 6733–6741, 2018. 1
+[17] D. Barath, J. Matas, and J. Noskova, “MAGSAC: Marginalizing sample consensus,” IEEE Conference on Computer Vision and Pattern Recognition, pp. 10189–10197, 2019. 1
+[18] R. Vidal, Y. Ma, and S. S. Sastry, Generalized Principal Component Analysis, vol. 40. Springer Verlag, 2016. 1, 5
+[19] G. Lerman and T. Maunu, “An Overview of Robust Subspace Recovery,” Proceedings of the IEEE, vol. 106, pp. 1380–1410, 2018. 1
+[20] M. C. Tsakiris and R. Vidal, “Dual principal component pursuit,” in ICCV Workshop on Robust Subspace Learning and Computer Vision, pp. 10–18, 2015. 1
+[21] M. C. Tsakiris and R. Vidal, “Hyperplane clustering via dual principal component pursuit,” in International Conference on Machine Learning, 2017. 1, 2
+[22] M. C. Tsakiris and R. Vidal, "Dual principal component pursuit," Journal of Machine Learning Research, vol. 19, no. 18, pp. 1-50, 2018. 1, 2, 5, 8
+[23] Z. Zhu, Y. Wang, D. Robinson, D. Naiman, R. Vidal, and M. C. Tsakiris, "Dual principal component pursuit: Improved analysis and efficient algorithms," Neural Information Processing Systems, 2018. 1, 2, 5
+[24] T. Ding, Z. Zhu, T. Ding, Y. Yang, D. Robinson, M. C. Tsakiris, and R. Vidal, "Noisy dual principal component pursuit," in International Conference on Machine Learning, pp. 1617-1625, 2019. 1, 2
+[25] Q. Qu, J. Sun, and J. Wright, "Finding a sparse vector in a subspace: Linear sparsity using alternating directions," in Advances in Neural Information Processing Systems 27, pp. 3401-3409, 2014. 1
+[26] G. Lerman and T. Maunu, "Fast, robust and non-convex subspace recovery," Information and Inference: A Journal of the IMA, vol. 7, no. 2, pp. 277-336, 2017. 1
+[27] Z. Zhu, T. Ding, D. Robinson, M. C. Tsakiris, and R. Vidal, “A Linearly Convergent Method for Non-Smooth Non-Convex Optimization on the Grassmannian with Applications to Robust Subspace and Dictionary Learning,” in Advances in Neural Information Processing Systems 32, pp. 9442–9452, 2019. 1
+[28] X. Li, S. Chen, Z. Deng, Q. Qu, Z. Zhu, and A. M. C. So, "Weakly Convex Optimization over Stiefel Manifold Using Riemannian Subgradient-Type Methods," pp. 1-27, 2019. 1
+[29] T. Maunu, T. Zhang, and G. Lerman, “A well-tempered landscape for non-convex robust subspace recovery,” Journal of Machine Learning Research, vol. 20, pp. 1–59, 2019. 1
+[30] G. Lerman and T. Zhang, "Robust recovery of multiple subspaces by geometric $\ell_p$ minimization," Annals of Statistics, vol. 39, no. 5, pp. 2686-2715, 2011. 2
+
+[31] G. Lerman and T. Zhang, “ $\ell_p$ -recovery of the most significant subspace among multiple subspaces with outliers,” Constructive Approximation, vol. 40, no. 3, pp. 329-385, 2014. 2
+[32] R. Ranftl and V. Koltun, “Deep Fundamental Matrix Estimation,” in European Conference on Computer Vision, pp. 284–299, Springer Verlag, 2018. 2, 6
+[33] J. Harris, Algebraic geometry: a first course, vol. 133. Springer Science & Business Media, 2013. 3
+[34] D. Cox, J. Little, and D. OShea, Ideals, varieties, and algorithms: an introduction to computational algebraic geometry and commutative algebra. Springer Science & Business Media, 2015. 3
+[35] R. Hartley and A. Zisserman, Multiple view geometry in computer vision. Cambridge university press, 2003. 3
+[36] S. B. Heinrich and W. E. Snyder, "Robust Estimation of the Trifocal Tensor: A Comparative Performance Evaluation," Preprint, https://shorturl.at/abhqu, 2011.3
+[37] R. Vidal and R. Hartley, “Three-view multibody structure from motion,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 30, no. 2, pp. 214–227, 2008. 3, 7
+[38] A. Shashua and M. Werman, "Trilinearity of three perspective views and its associated tensor," in IEEE International Conference on Computer Vision, pp. 920-925, 1995. 3
+[39] A. Shashua and L. Wolf, “Homography tensors: On algebraic entities that represent three views of static or moving planar points,” in European Conference on Computer Vision, pp. 507–521, Springer, 2000. 3, 4
+[40] C. Aholt and L. Oeding, “The ideal of the trifocal variety,” Arxiv preprint arXiv:1205.3776, pp. 1–27, 2012. 3
+[41] L. Oeding, “The quadrifocal variety,” Linear Algebra and Its Applications, 2017. 3
+[42] J. Šerych, J. Matas, and O. Drbohlav, “Fast 11-based ransac for homography estimation,” in 21st Computer Vision Winter Workshop Luka Cehovin, 2016. 4, 6
+[43] H. Xu, C. Caramanis, and S. Sanghavi, “Robust pca via outlier pursuit,” IEEE transactions on information theory, vol. 58, no. 5, pp. 3047–3064, 2012. 5
+[44] M. Soltanolkotabi, E. J. Candes, et al., “A geometric analysis of subspace clustering with outliers,” The Annals of Statistics, vol. 40, no. 4, pp. 2195–2238, 2012. 5
+[45] M. Rahmani and G. K. Atia, “Coherence pursuit: Fast, simple, and robust principal component analysis,” IEEE Transactions on Signal Processing, vol. 65, no. 23, pp. 6260–6275, 2017. 5
+[46] C. Peng, C. Chen, Z. Kang, J. Li, and Q. Cheng, “RES-PCA: A scalable approach to recovering low-rank matrices,” IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 7309–7317, 2019. 5
+[47] Y. Zhang, D. Shi, J. Gao, and D. Cheng, “Low-rank-sparse subspace representation for robust regression,” IEEE Conference on Computer Vision and Pattern Recognition, pp. 2972–2981, 2017. 5
+
+[48] H. Q. Cai, J. F. Cai, and K. Wei, "Accelerated alternating projections for robust principal component analysis," Journal of Machine Learning Research, vol. 20, pp. 1-33, 2019. 5
+[49] M. Rahmani and P. Li, "Outlier Detection and Robust PCA Using a Convex Measure of Innovation," Neural Information Processing Systems, pp. 1-11, 2019. 5
+[50] Y. Wang, C. Dicle, M. Sznaier, and O. Camps, "Self Scaled Regularized Robust Regression," IEEE Conference on Computer Vision and Pattern Recognition, pp. 3261-3269, 2015. 5
+[51] D. DeTone, T. Malisiewicz, and A. Rabinovich, "Deep Image Homography Estimation," Arxiv preprint arXiv:1606.03798, 2016. 6
+[52] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollar, and C. L. Zitnick, "Microsoft coco: Common objects in context," in European conference on computer vision, pp. 740-755, Springer, 2014. 6
+[53] E. Rublee, V. Rabaud, K. Konolige, and G. Bradski, “ORB: An efficient alternative to SIFT or SURF,” IEEE International Conference on Computer Vision, pp. 2564–2571, 2011. 6
+[54] O. Chum and J. Matas, “Matching with PROSAC - Progressive sample consensus,” IEEE Computer Society Conference on Computer Vision and Pattern Recognition, vol. I, no. I, pp. 220–226, 2005. 6
+[55] A. Geiger, P. Lenz, and R. Urtasun, "Are we ready for autonomous driving? the kitti vision benchmark suite," in IEEE Conference on Computer Vision and Pattern Recognition, 2012. 6
+[56] J. Sturm, N. Engelhard, F. Endres, W. Burgard, and D. Cremers, “A benchmark for the evaluation of rgb-d slam systems,” in International Conference on Intelligent Robot Systems, Oct. 2012. 6
+[57] O. FAUGERAS and F. LUSTMAN, “Motion and Structure From Motion in a Piecewise Planar Environment,” International Journal of Pattern Recognition and Artificial Intelligence, vol. 02, no. 03, pp. 485–508, 1988. 6
+[58] Z. Zhang and a. R. Hanson, “3D Reconstruction Based on Homography Mapping,” ARPA Image Understanding Workshop, pp. 249–6399, 1996. 6
+[59] M. I. Lourakis and A. A. Argyros, “SBA: A software package for generic sparse bundle adjustment,” ACM Transactions on Mathematical Software, vol. 36, no. 1, 2009. 6
+[60] P. Moulon, P. Monasse, and R. Marlet, “Global fusion of relative motions for robust, accurate and scalable structure from motion,” IEEE International Conference on Computer Vision, pp. 3248–3255, 2013. 7
+[61] R. Vidal and J. Oliensis, “Structure from planar motions with small baselines,” in European conference on computer vision, pp. 383–398, 2002. 7
+[62] O. Enqvist, F. Kahl, and C. Olsson, “Non-sequential structure from motion,” in IEEE International Conference on Computer Vision Workshops, pp. 264–271, 2011. 7
\ No newline at end of file
diff --git a/robusthomographyestimationviadualprincipalcomponentpursuit/images.zip b/robusthomographyestimationviadualprincipalcomponentpursuit/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e90178d09e0985837c6177a73a8afbb70131b148
--- /dev/null
+++ b/robusthomographyestimationviadualprincipalcomponentpursuit/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:979c589d345942db5faf375952b3994b3341f89b263bb96a0887ee5115d9a2e5
+size 401002
diff --git a/robusthomographyestimationviadualprincipalcomponentpursuit/layout.json b/robusthomographyestimationviadualprincipalcomponentpursuit/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..283e1922e5687ec16dda70d435f27b0de2085310
--- /dev/null
+++ b/robusthomographyestimationviadualprincipalcomponentpursuit/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7f8494fee66beb4b6bd0cb8cff8e4d11dd3747467a1603d31cfabc6074e75a7
+size 605627
diff --git a/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_content_list.json b/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a85cc22d5371300b673d0dd448908b11ae35e181
--- /dev/null
+++ b/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:49f1159959b46b1a0d6ed97c1e438e3368f8be14c3a06ec7df12dc520c93da24
+size 94852
diff --git a/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_model.json b/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e9ea9709790511da464dd60f2d0271d1a0010b1d
--- /dev/null
+++ b/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a82e547f22c609c3cb2b31147e53d25c4a0ac0dc195e3cecccbdc7e27fbc84c
+size 115998
diff --git a/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_origin.pdf b/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..efbb0ca51206e28adb9be95cfb8f4e51f77df286
--- /dev/null
+++ b/robustlearningthroughcrosstaskconsistency/7566c55c-9292-4128-aef0-82dfaf9fc31f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:057d52e91972f9388dc24d75f7cade79dae183cd158ae248ce7452bee0ebd099
+size 3716417
diff --git a/robustlearningthroughcrosstaskconsistency/full.md b/robustlearningthroughcrosstaskconsistency/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5b4e746d76b1578b4467c4e1d1e7056f9437d4e3
--- /dev/null
+++ b/robustlearningthroughcrosstaskconsistency/full.md
@@ -0,0 +1,373 @@
+# Robust Learning Through Cross-Task Consistency
+
+Amir R. Zamir\* Alexander Sax\* Nikhil Cheerla\* Rohan Suri\* Zhangjie Cao\* Jitendra Malik\* Leonidas Guibas
+
+† Swiss Federal Institute of Technology (EPFL) ‡ Stanford University ‡ UC Berkeley http://consistency.epfl.ch/
+
+# Abstract
+
+Visual perception entails solving a wide set of tasks, e.g., object detection, depth estimation, etc. The predictions made for multiple tasks from the same image are not independent, and therefore, are expected to be 'consistent'. We propose a broadly applicable and fully computational method for augmenting learning with Cross-Task Consistency. The proposed formulation is based on inference-path invariance over a graph of arbitrary tasks. We observe that learning with cross-task consistency leads to more accurate predictions and better generalization to out-of-distribution inputs. This framework also leads to an informative unsupervised quantity, called Consistency Energy, based on measuring the intrinsic consistency of the system. Consistency Energy correlates well with the supervised error $(r = 0.67)$ , thus it can be employed as an unsupervised confidence metric as well as for detection of out-of-distribution inputs (ROC-AUC=0.95). The evaluations are performed on multiple datasets, including Taskonomy, Replica, CocoDoom, and ApolloScape, and they benchmark cross-task consistency versus various baselines including conventional multi-task learning, cycle consistency, and analytical consistency.
+
+# 1. Introduction
+
+What is consistency: suppose an object detector detects a ball in a particular region of an image, while a depth estimator returns a flat surface for the same region. This presents an issue – at least one of them has to be wrong, because they are inconsistent. More concretely, the first prediction domain (objects) and the second prediction domain (depth) are not independent and consequently enforce some constraints on each other, often referred to as consistency constraints.
+
+Why is it important to incorporate consistency in learning: first, desired learning tasks are usually predictions of different aspects of one underlying reality (the scene that underlies an image). Hence inconsistency among predictions
+
+
+Figure 1: Cross-Task Consistent Learning. The predictions made for different tasks out of one image are expected to be consistent, as the underlying scene is the same. This is exemplified by a challenging query and four sample predictions out of it. We propose a general method for learning utilizing data-driven cross-task consistency constraints. The lower and upper rows show the results of the baseline (independent learning) and learning with consistency, which yields higher quality and more consistent predictions. Red boxes provide magnifications. [Best seen on screen]
+
+implies contradiction and is inherently undesirable. Second, consistency constraints are informative and can be used to better fit the data or lower the sample complexity. Also, they may reduce the tendency of neural networks to learn "surface statistics" (superficial cues) [18], by enforcing constraints rooted in different physical or geometric rules. This is empirically supported by the improved generalization of models when trained with consistency constraints (Sec. 5).
+
+How can we design a learning system that makes consistent predictions: this paper proposes a method which, given an arbitrary dictionary of tasks, augments the learning objective with explicit constraints for cross-task consistency. The constraints are learned from data rather than apriori given relationships. This makes the method applicable to any pairs of tasks as long as they are not statistically independent; even if their analytical relationship is unknown, hard to program, or non-differentiable. The primary concept behind the method is 'inference-path invariance'. That
+
+is, the result of inferring an output domain from an input domain should be the same, regardless of the intermediate domains mediating the inference (e.g., RGB $\rightarrow$ normals and RGB $\rightarrow$ depth $\rightarrow$ normals and RGB $\rightarrow$ shading $\rightarrow$ normals are expected to yield the same normal results). When inference paths with the same endpoints, but different intermediate domains, yield similar results, this implies the intermediate domain predictions did not conflict as far as the output was concerned. We apply this concept over paths in a graph of tasks, where the nodes and edges are prediction domains and neural network mappings between them, respectively (Fig. 2(d)). Satisfying this invariance constraint over all paths in the graph ensures the predictions for all domains are in global cross-task agreement. $^3$
+
+To make the associated large optimization job manageable, we reduce the problem to a 'separable' one, devise a tractable training schedule, and use a 'perceptual loss' based formulation. The last enables mitigating residual errors in networks and potential ill-posed/one-to-many mappings between domains (Sec. 3).
+
+Interactive visualizations, trained models, code, and a live demo are available at http://consistency.epfl.ch/.
+
+# 2. Related Work
+
+The concept of consistency and methods for enforcing it are related to various topics, including structured prediction, graphical models [22], functional maps [30], and certain topics in vector calculus and differential topology [10]. We review the most relevant ones in context of computer vision.
+
+Utilizing consistency: Various consistency constraints have been commonly found beneficial across different fields, e.g., in language as 'back-translation' [2, 1, 25, 7] or in vision over the temporal domain [41, 6], 3D geometry [9, 32, 8, 13, 49, 46, 15, 44, 51, 48, 23, 5], and in recognition and (conditional/unconditional) image translation [12, 28, 17, 50, 14, 4]. In computer vision, consistency has been extensively utilized in the cycle form and often between two or few domains [50, 14]. In contrast, we consider consistency in the more general form of arbitrary paths with varied-lengths over a large task set, rather than the special cases of short cyclic paths. Also, the proposed approach needs no prior explicit knowledge about task relationships [32, 23, 44, 51].
+
+Multi-task learning: In the most conventional form, multi-task learning predicts multiple output domains out of a shared encoder/representation for an input. It has been speculated that the predictions of a multi-task network may be automatically cross-task consistent as the representation from which the predictions are made are shared. This has been observed to not be necessarily true in several
+
+
+Figure 2: Enforcing Cross-Task Consistency: (a) shows the typical multitask setup where predictions $x \rightarrow y_1$ and $x \rightarrow y_2$ are trained without a notation of consistency. (b) depicts the elementary triangle consistency constraint where the prediction $x \rightarrow y_1$ is enforced to be consistent with $x \rightarrow y_2$ using a function that relates $y_1$ to $y_2$ (i.e. $y_1 \rightarrow y_2$ ). (c) shows how the triangle unit from (b) can be an element of a larger system of domains. Finally, (d) illustrates the generalized case where in the larger system of domains, consistency can be enforced using invariance along arbitrary paths, as long as their endpoints are the same (here the blue and green paths). This is the general concept behind inference-path invariance. The triangle in (b) is the smallest unit of such paths.
+
+works [21, 47, 43, 38], as consistency is not directly enforced during training. We also make the same observation (see visuals here) and quantify it (see Fig. 9(a)), which signifies the need for explicit augmentation of consistency in learning.
+
+Transfer learning predicts the output of a target task given another task's solution as a source. The predictions made using transfer learning are sometimes assumed to be cross-task consistent, which is often found to not be the case [45, 36], as transfer learning does not have a specific mechanism to impose consistency by default. Unlike basic multi-task learning and transfer learning, the proposed method includes explicit mechanisms for learning with general data-driven consistency constraints.
+
+Uncertainty metrics: Among the existing approaches to measuring prediction uncertainty, the proposed Consistency Energy (Sec. 4) is most related to Ensemble Averaging [24], with the key difference that the estimations in our ensemble are from different cues/paths, rather than retraining/reevaluating the same network with different random initializations or parameters. Using multiple cues is expected to make the ensemble more effective at capturing uncertainty.
+
+# 3. Method
+
+We define the problem as follows: suppose $x$ denotes the query domain (e.g., RGB images) and $y = \{y_1, \dots, y_n\}$ is the set of $n$ desired prediction domains (e.g. normals, depth, objects, etc). An individual datapoint from domains $(x, y_1, \dots, y_n)$ is denoted by $(x, y_1, \dots, y_n)$ . The goal is to learn functions that map the query domain onto the prediction domains, i.e. $\mathcal{F}_x = \{f_{xy_j} | y_j \in y\}$ where $f_{xy_j}(x)$ outputs $y_j$ given $x$ . We also define $\mathcal{F}_y = \{f_{y_i y_j} | y_i, y_j \in y, i \neq j\}$ , which is the set of 'cross-task' functions that map the prediction domains onto each other; we use them in the consistency constraints. For now assume $\mathcal{F}_y$ is given apriori and frozen; in Sec. 3.3 we discuss all functions $f_s$ are neural networks in this paper, and we learn $\mathcal{F}_y$ just like $\mathcal{F}_x$ .
+
+# 3.1. Triangle: The Elementary Consistency Unit
+
+A common way of training neural networks in $\mathcal{F}_x$ , e.g. $f_{xy_1}(x)$ , is to find parameters of $f_{xy_1}$ that minimize a loss of the form $|f_{xy_1}(x) - y_1|$ using a common distance function
+
+
+Figure 3: Impact of disregarding cross-task consistency in learning, illustrated using surface normals domain. Each subfigure shows the results of predicting surface normals out of the prediction of an intermediate domain; using the notation $x \rightarrow y_1 \rightarrow y_2$ , here $x$ is RGB image, $y_2$ is surface normals, and each column represents a different $y_1$ . The upper row demonstrates the normals are noisy and dissimilar when cross-task consistency is not incorporated in learning of $x \rightarrow y_1$ networks. Whereas enforcing consistency when learning $x \rightarrow y_1$ results in more consistent and better normals (the lower row). We will show this causes the predictions for the intermediate domains themselves to be more accurate and consistent. More examples available in supplementary material. The Consistency Energy (Sec. 4) captures the variance among predictions in each row.
+
+as $|\cdot|$ , e.g. $\ell_1$ norm. This standard independent learning of $f_{xy_i}$ satisfies various desirable properties, including crosstalk consistency, if given infinite amount of data, but not under the practical finite data regime. This is shown in Fig. 3 (upper). Thus we introduce additional constraints to guide the training toward cross-task consistency. We define the loss for predicting domain $y_1$ from $x$ while enforcing consistency with domain $y_2$ as a directed triangle depicted in Fig. 2(b):
+
+$$
+\mathcal {L} _ {\mathcal {X Y} _ {1} \mathcal {Y} _ {2}} ^ {\text {t r i a n g l e}} \triangleq | f _ {\mathcal {X Y} _ {1}} (x) - y _ {1} | + | f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X Y} _ {1}} (x) - f _ {\mathcal {X Y} _ {2}} (x) | + | f _ {\mathcal {X Y} _ {2}} (x) - y _ {2} |. \tag {1}
+$$
+
+The first and last terms are the standard direct losses for training $f_{xy_1}$ and $f_{xy_2}$ . The middle term is the consistency term which enforces predicting $y_2$ out of the predicted $y_1$ yields the same result as directly predicting $y_2$ out of $x^4$ . Thus learning to predict $y_1$ and $y_2$ are not independent anymore.
+
+The triangle loss 1 is the smallest unit of enforcing cross-task consistency. Below we make two improving modifications on it via function 'separability' and 'perceptual losses'.
+
+# 3.1.1 Separability of Optimization Parameters
+
+The loss $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{triangle}}$ involves simultaneous training of two networks $f_{\mathcal{X}\mathcal{Y}_1}$ and $f_{\mathcal{X}\mathcal{Y}_2}$ , thus it is resource demanding. We show $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{triangle}}$ can be reduced to a 'separable' function [39] resulting in two terms that can be optimized independently.
+
+From triangle inequality we can derive:
+
+$$
+\left| f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - f _ {\mathcal {X} \mathcal {Y} _ {2}} (x) \right| \leq \left| f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - y _ {2} \right| + \left| f _ {\mathcal {X} \mathcal {Y} _ {2}} (x) - y _ {2} \right|,
+$$
+
+which after substitution in Eq. 1 yields:
+
+$$
+\mathcal {L} _ {\mathcal {X Y} _ {1} \mathcal {Y} _ {2}} ^ {\text {t r i a n g l e}} \leq \left| f _ {\mathcal {X Y} _ {1}} (x) - y _ {1} \right| + \left| f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X Y} _ {1}} (x) - y _ {2} \right| + 2 \left| f _ {\mathcal {X Y} _ {2}} (x) - y _ {2} \right|. \tag {2}
+$$
+
+The upper bound for $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{triangle}}$ in inequality 2 can be optimized in lieu of $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{triangle}}$ itself, as they both have the same minimizer. The terms of this bound include either $f_{\mathcal{X}\mathcal{Y}_1}$
+
+or $f_{xy_2}$ , but not both, hence we now have a loss separable into functions of $f_{xy_1}$ or $f_{xy_2}$ , and they can be optimized independently. The part pertinent to the network $f_{xy_1}$ is:
+
+$$
+\mathcal {L} _ {\mathcal {X y} _ {1} \mathcal {Y} _ {2}} ^ {\text {s e p a r a t e}} \triangleq \left| f _ {\mathcal {X y} _ {1}} (x) - y _ {1} \right| + \left| f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X y} _ {1}} (x) - y _ {2} \right|, \tag {3}
+$$
+
+named separate, as we reduced the closed triangle objective $\mathcal{X}^{\mathcal{Y}_1} \triangle \mathcal{Y}_2$ in Eq. 1 to two equivalent separate path objectives $\mathcal{X} \to \mathcal{Y}_1 \to \mathcal{Y}_2$ and $\mathcal{X} \to \mathcal{Y}_2$ . The first term of Eq. 3 enforces the general correctness of predicting $y_1$ , and the second term enforces its consistency with $y_2$ domain.
+
+# 3.1.2 Reconfiguration into a "Perceptual Loss"
+
+Training $f_{xy_1}$ using the loss $\mathcal{L}_{xy_1y_2}^{separate}$ requires a training dataset with multi domain annotations for one input: $(x, y_1, y_2)$ . It also relies on availability of a perfect function $f_{y_1y_2}$ for mapping $y_1$ onto $y_2$ ; i.e. it demands $y_2 = f_{y_1y_2}(y_1)$ . We show how these two requirements can be reduced.
+
+Again, from triangle inequality we can derive:
+
+$$
+\begin{array}{l} \left| f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - y _ {2} \right| \leq \left| f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} (y _ {1}) \right| + \\ \left| f _ {y _ {1} y _ {2}} \left(y _ {1}\right) - y _ {2} \right|, \tag {4} \\ \end{array}
+$$
+
+which after substitution in Eq. 3 yields:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathcal {X} \mathcal {Y} _ {1} \mathcal {Y} _ {2}} ^ {\text {s e p a r a t e}} \leq | f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - y _ {1} | + | f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} (y _ {1}) | + \\ \left| f _ {y _ {1} y _ {2}} \left(y _ {1}\right) - y _ {2} \right|. \tag {5} \\ \end{array}
+$$
+
+Similar to the discussion for inequality 2, the upper bound in inequality 5 can be optimized in lieu of $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{separate}}$ as both have the same minimizer. As the last term is a constant w.r.t. $f_{\mathcal{X}\mathcal{Y}_1}$ , the final loss for training $f_{\mathcal{X}\mathcal{Y}_1}$ is:
+
+$$
+\mathcal {L} _ {\mathcal {X} \mathcal {Y} _ {1}, \mathcal {Y} _ {2}} ^ {\text {p e r c e p u r a l}} \triangleq | f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - y _ {1} | + | f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} (y _ {1}) |. \tag {6}
+$$
+
+Figure 4: Learning with and without cross-task consistency shown for a sample query. Using the notation $x \rightarrow y_1 \rightarrow Y$ , here $x$ is RGB image, $y_1$ is surface normals, and five domains in $Y$ are reshading, 3D curvature, texture edges (Sobel filter), depth, and occlusion edges.
+
+Top row shows the results of standard training of $x \to y_1$ . After convergence of training, the predicted normals $(y_1)$ are projected onto other domains $(Y)$ which reveals various inaccuracies. This demonstrates such cross-task projections $y_1 \to Y$ can provide additional cues to training $x \to y_1$ .
+
+This term $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{perceptual}}$ no longer includes $y_{2}$ , hence it admits pair training data $(x,y_1)$ rather than triplets $(x,y_{1},y_{2})$ . Comparing $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{perceptual}}$ and $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{separate}}$ shows the modification boiled down to replacing $y_{2}$ with $f_{\mathcal{Y}_1\mathcal{Y}_2}(y_1)$ . This makes intuitive sense too, as $y_{2}$ is the match of $y_{1}$ in the $y_{2}$ domain.
+
+Ill-posed tasks and imperfect networks: If $f_{\mathcal{Y}_1\mathcal{Y}_2}$ is a noisy estimator, then $f_{\mathcal{Y}_1\mathcal{Y}_2}(y_1) = y_2 + noise$ rather than $f_{\mathcal{Y}_1\mathcal{Y}_2}(y_1) = y_2$ . Using a noisy $f_{\mathcal{Y}_1\mathcal{Y}_2}$ in $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{separate}}$ corrupts the training of $f_{\mathcal{X}\mathcal{Y}_1}$ since the second loss term does not reach 0 if $f_{\mathcal{X}\mathcal{Y}_1}(x)$ correctly outputs $y_1$ . That is in contrast to $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{percepalual}}$ where both terms have the same global minimum and are always 0 if $f_{\mathcal{X}\mathcal{Y}_1}(x)$ outputs $y_1 -$ even when $f_{\mathcal{Y}_1\mathcal{Y}_2}(y_1) = y_2 + noise$ . This is crucial since neural networks are almost never perfect estimators, e.g. due to lacking an optimal training process for them or potential ill-posedness of the task $y_1 \rightarrow y_2$ . Further discussion and experiments are available in supplementary material.
+
+Perceptual Loss: The process that led to Eq. 6 can be generally seen as using the loss $|g \circ f(x) - g(y)|$ instead of $|f(x) - y|$ . The latter compares $f(x)$ and $y$ in their explicit space, while the former compares them via the lens of function $g$ . This is often referred to as "perceptual loss" in superresolution and style transfer literature [19]–where two images are compared in the representation space of a network pretrained on ImageNet, rather than in pixel space. Similarly, the consistency constraint between the domains $y_1$ and $y_2$ in Eq. 6 (second term) can be viewed as judging the prediction $f_{xy_1}(x)$ against $y_1$ via the lens of the network $f_{xy_1y_2}$ ; here $f_{xy_1y_2}$ is a "perceptual loss" for training $f_{xy_1}$ . However, unlike the ImageNet-based perceptual loss [19], this function has the specific and interpretable job of enforcing consistency with another task. We also use multiple $f_{xy_1y_i}$ s
+
+Figure 5: Schematic summary of derived losses for $f_{\mathcal{X}\mathcal{Y}_1}(\mathbf{a})$ : $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{triangle}}$ (Eq.1). (b): $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{separate}}$ (Eq.3). (c): $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{perceptual}}$ (Eq.6). (d): $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1Y}^{\text{perceptual}}$ (Eq.7).
+
+Middle row shows the results of consistent training of $x \to y_1$ by leveraging $y_1 \to Y$ in the loss. The predicted normals are notably improved, especially in hard to predict fine-grained details (zoom into the yellow markers. Best seen on screen).
+Bottom row provides the ground truth. See video examples at visualizations webpage.
+
+simultaneously which enforces consistency of predicting $y_{1}$ against multiple other domains (Sections 3.2 and 3.3).
+
+# 3.2. Consistency of $f_{\chi \mathcal{V}_1}$ with 'Multiple' Domains
+
+The derived $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{perceptual}}$ loss augments learning of $f_{\mathcal{X}\mathcal{Y}_1}$ with a consistency constraint against one domain $\mathcal{Y}_2$ . Straightforward extension of the same derivation to enforcing consistency of $f_{\mathcal{X}\mathcal{Y}_1}$ against multiple other domains (i.e. when $f_{\mathcal{X}\mathcal{Y}_1}$ is part of multiple simultaneous triangles) yields:
+
+$$
+\mathcal {L} _ {\mathcal {X Y} ^ {1}} ^ {\text {p e r c e p t u a l}} \triangleq | Y | \times | f _ {\mathcal {X Y} _ {1}} (x) - y _ {1} | + \sum_ {\mathcal {Y} _ {i} \in Y} | f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {i}} \circ f _ {\mathcal {X Y} _ {1}} (x) - f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {i}} (y _ {1}) |, \tag {7}
+$$
+
+where $Y$ is the set of domains with which $f_{\mathcal{X}\mathcal{Y}_1}$ must be consistent, and $|Y|$ is the cardinality of $Y$ . Notice that $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1\mathcal{Y}_2}^{\text{perceptual}}$ is a special case of $\mathcal{L}_{\mathcal{X}\mathcal{Y}_1Y}^{\text{perceptual}}$ where $Y = \{y_2\}$ . Fig. 5 summarizes the derivation of losses for $f_{\mathcal{X}\mathcal{Y}_1}$ .
+
+Fig. 4 shows qualitative results of learning $f_{xy_1}$ with and without cross-task consistency for a sample query.
+
+# 3.3. Beyond Triangles: Globally Consistent Graphs
+
+The discussion so far has provided losses for the cross-task consistent training of one function $f_{xy_1}$ with elementary triangle based units. We also assumed the functions $\mathcal{F}_y$ were given apriori. The more general multi-task setup is: given a large set of domains, we are interested in learning functions that map the domains onto each other in a globally cross-task
+
+consistent manner. This objective can be formulated using a graph $\mathcal{G} = (\mathcal{D},\mathcal{F})$ with nodes representing all of the domains $\mathcal{D} = (x\cup y)$ and edges being neural networks between them $\mathcal{F} = (\mathcal{F}_{\mathcal{X}}\cup \mathcal{F}_{\mathcal{Y}})$ ; see Fig.2(c).
+
+Extension to Arbitrary Paths: The transition from three domains to a large graph $\mathcal{G}$ enables forming more general consistency constraints using arbitrary-paths. That is, two paths with same endpoint should yield the same results - an example is shown in Fig.2(d). The triangle constraint in Fig.2(b,c) is a special and elementary case of the more general constraint in Fig.2(d), if paths with lengths 1 and 2 are picked for the green and blue paths. Extending the derivations done for a triangle in Sec. 3.1 to paths yields:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathcal {X} \mathcal {Y} _ {1} \mathcal {Y} _ {2} \dots \mathcal {Y} _ {k}} ^ {\text {p e r c e p t u a l}} = \left| f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - y _ {1} \right| + \\ \left| f _ {\mathcal {Y} _ {k - 1} \mathcal {Y} _ {k}} \circ \dots \circ f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} \circ f _ {\mathcal {X} \mathcal {Y} _ {1}} (x) - f _ {\mathcal {Y} _ {k - 1} \mathcal {Y} _ {k}} \circ \dots \circ f _ {\mathcal {Y} _ {1} \mathcal {Y} _ {2}} (y _ {1}) \right|, \tag {8} \\ \end{array}
+$$
+
+which is the loss for training $f_{\mathcal{X}\mathcal{Y}_1}$ using the arbitrary consistency path $\mathcal{X} \to \mathcal{Y}_1 \to \mathcal{Y}_2 \dots \to \mathcal{Y}_k$ with length $k$ (full derivation provided in supplementary material). Notice that Eq. 6 is a special case of Eq. 8 if $k = 2$ . Equation 8 is particularly useful for incomplete graphs; if the function $y_1 \to y_k$ is missing, consistency between domains $y_1$ and $y_k$ can still be enforced via transitivity through other domains using Eq. 8.
+
+Also, extending Eq. 8 to multiple simultaneous paths (as in Eq. 7) by summing the path constraints is straightforward.
+
+Global Consistency Objective: We define reaching global cross-task consistency for graph $\mathcal{G}$ as satisfying the consistency constraint for all feasible paths in $\mathcal{G}$ . We can write the global consistency objective for $\mathcal{G}$ as $\mathcal{L}_{\mathcal{G}} = \sum_{p \in \mathcal{P}} \mathcal{L}_p^{\text{perceptual}}$ , where $p$ represents a path and $\mathcal{P}$ is the set of all feasible paths in $\mathcal{G}$ .
+
+Optimizing the objective $\mathcal{L}_{\mathcal{G}}$ directly is intractable as it would require simultaneous training of all networks in $\mathcal{F}$ with a massive number of consistency paths. In Alg.1 we devise a straightforward training schedule for an approximate optimization of $\mathcal{L}_{\mathcal{G}}$ . This problem is similar to inference in graphical models, where one is interested in marginal distribution of unobserved nodes given some observed nodes by passing "messages" between them through the graph until convergence. As exact inference is usually intractable for unconstrained graphs, often an approximate message passing algorithm with various heuristics is used.
+
+Algorithm 1 selects one network $f_{ij} \in \mathcal{F}$ to be trained, selects consistency path(s) $p \in \mathcal{P}$ for it, and trains $f_{ij}$ with $p$ for a fixed number of steps using loss 8 (or its multi path version if multiple paths selected). This is repeated until all networks in $\mathcal{F}$ satisfy a convergence criterion.
+
+A number of choices for the selection criterion in SelectNetwork and SelectPath is possible, including round-robin and random selection. While we did not observe a significant difference in the final results, we achieved the best results
+
+Algorithm 1: Globally Cross-Task Consistent Learning of Networks $\mathcal{F}$
+Result: Trained edges $\mathcal{F}$ of graph $\mathcal{G}$
+1 Train each $f\in \mathcal{F}$ independently. $\triangleright$ initialization by standard direct training.
+2 for $k\gets 2$ to L do
+3 while LossConvergence(F) not met do
+4 $\begin{array}{r}f_{ij}\leftarrow SelectNetwork(\mathcal{F})\triangleright$ selects target network to be trained.
+5 $p\gets SelectPath(f_{ij},k,\mathcal{P})\triangleright$ selects a feasible consistency path for $f_{ij}$ with maximum length $k$ from $\mathcal{P}$ .
+6 optimize $\mathcal{L}_{ijp}^{\mathrm{perceptual}}\triangleright$ trains $f_{ij}$ using path constraint $p$ in loss 8.
+7 end
+8 end
+
+using maximal violation criterion: at each step select the network and path with the largest loss8. Also, Alg.1 starts from shorter paths and progressively opens up to longer ones (up to length $L$ ) only after shorter paths have converged. This is based on the observation that the value of short and long paths in terms of enforcing cross-task consistency overlap, while shorter paths are computationally cheaper8. For the same reason, all of the networks are initialized by training using the standard direct loss (Op.1 in Alg.1) before progressively adding consistency terms.
+
+Finally, Alg.1 does not distinguish between $\mathcal{F}_x$ and $\mathcal{F}_x$ and can be used to train them all in the same pool. This means the selected path $p$ may include networks not fully converged yet. This is not an issue in practice, because, first, all networks are pre-trained with their direct loss (Op.1 in Alg.1) thus they are not wildly far from their convergence point. Second, the perceptual loss formulation makes training $f_{ij}$ robust to imperfections in functions in $p$ (Sec. 3.1.2). However, as practical applications primarily care about $\mathcal{F}_x$ , rather than $\mathcal{F}_y$ , one can first train $\mathcal{F}_y$ to convergence using Alg.1, then start the training of $\mathcal{F}_x$ with well trained and converged networks $\mathcal{F}_y$ . We do the latter in our experiments.
+
+Please see supplementary material for how to normalize and balance the direct and consistency loss terms, as they belong to different domains with distinct numerical properties.
+
+# 4. Consistency Energy
+
+We quantify the amount of cross-task consistency in the system using an energy-based quantity [26] called Consistency Energy. For a single query $x$ and domain $y_{k}$ , the consistency energy is defined to be the standardized average of pairwise inconsistencies:
+
+$$
+\operatorname {E n e r g y} _ {\mathcal {Y} _ {k}} (x) \triangleq \frac {1}{| \mathcal {Y} | - 1} \sum_ {\mathcal {Y} _ {i} \in \mathcal {Y}, i \neq k} \frac {| f \mathcal {Y} _ {i} \mathcal {Y} _ {k} \circ f \mathcal {X} \mathcal {Y} _ {i} (x) - f \mathcal {X} \mathcal {Y} _ {k} (x) | - \mu_ {i}}{\sigma_ {i}}, \tag {9}
+$$
+
+where $\mu_{i}$ and $\sigma_{i}$ are the average and standard deviation of $|f_{y_i y_k} \circ f_{x y_i}(x) - f_{x y_k}(x)|$ over the dataset. Eq. 9 can be computed per-pixel or per-image by average over its pixels. Intuitively, the energy can be thought of as the amount of variance in predictions in the lower row of Fig. 3 – the higher the variance, the higher the inconsistency, and the higher the energy. The consistency energy is an intrinsic quantity of the system and needs no ground truth or supervision.
+
+
+Figure 6: Qualitative results of predicting multiple domains along with the pixel-wise Consistency Energy. The top queries are from the Taskonomy dataset's test set. The results of networks trained with consistency are more accurate, especially in fine-grained regions (zoom into the yellow markers), and more correlated across different tasks. The bottom images are external queries (no ground truth available) demonstrating the generalization and robustness of consistency networks to external data. Comparing the energy against a prediction domain (e.g. normals) shows that energy often correlates with error. More examples are provided in the project page, and a live demo for user uploaded images is available at the demo page. External Queries: Bedroom in Arles, Van Gogh (1888); Cotton Mill Girl, Lewis Hine (1908); Chernobyl Pripyat Abandoned School (c. 2009). [best seen on screen]
+
+
+
+In Sec. 5.3, we show this quantity turns out to be quite informative as it can indicate the reliability of predictions (useful as a confidence/uncertainty metric) or a shift in the input domain (useful for domain adaptation). This is based on the fact that if the query is from the same data distribution as the training and is unchallenging, all inference paths of a system trained with consistency path constraints work well and yield similar results (as they were trained to); whereas under a distribution shift or for a challenging query, different paths break in different ways resulting in dissimilar predictions. In other words, usually correct predictions are consistent while mistakes are inconsistent. (Plots 9(b), 9(c), 9(d).)
+
+# 5. Experiments
+
+The evaluations are organized to demonstrate the proposed approach yields predictions that are I. more consistent (Sec.5.1), II. more accurate (Sec.5.2), and III. more generalizable to out-of-training-distribution data (Sec.5.4). We also IV. quantitatively analyze the Consistency Energy and report its utilities (Sec.5.3).
+
+Datasets: We used the following datasets in the evaluations:
+
+Taskonomy [45]: We adopted Taskonomy as our main training dataset. It includes 4 million real images of indoor scenes with multi-task annotations for each image. The experiments were performed using the following 10 domains from the dataset: RGB images, surface normals, principal curvature, depth (zbuffer), reshading, 3D (occlusion) edges, 2D (Sobel) texture edges, 3D keypoints, 2D keypoints, semantic segmentation. The tasks were selected to cover 2D, 3D, and semantic domains and have sensor-based/semantic ground truth. We report results on the test set.
+
+Replica[40] has high resolution 3D ground truth and enables more reliable evaluations of fine-grained details. We test on 1227 images from Replica (no training), besides Taskonomy test data.
+
+CocoDoom [27] contains synthetic images from the Doom video game. We use it as one of the out-of-training-distribution datasets.
+
+ApolloScape [16] contains real images of outdoor driving scenes. We use it as another out-of-training-distribution dataset.
+
+NYU [37]: We also evaluated on NYUv2. The findings are similar to those on Taskonomy and Replica (in supplementary material).
+
+Architecture & Training Details: We used a UNet [34] backbone architecture. All networks in $\mathcal{F}_{\chi}$ and $\mathcal{F}_{\mathcal{V}}$ have a similar architecture. The networks have 6 down and 6 up sampling blocks and were trained using AMSGrad [33] and Group Norm [42] with learning rate $3 \times 10^{-5}$ , weight decay $2 \times 10^{-6}$ , and batch size 32. Input and output images were linearly scaled to the range $[0,1]$ and resized down to $256 \times 256$ . We used $\ell_{1}$ as the norm in all losses and set the max path length $L = 3$ .
+
+Baselines: The main baseline categories are described below. To prevent confounding factors, our method and all baselines were implemented using the same UNet network when feasible and were re-trained on Taskonomy dataset.
+
+Baseline UNet (standard independent learning) is the main baseline. It is identical to consistency models in all senses, except being trained with only the direct loss and no consistency terms.
+
+Multi-task learning: A network with one shared encoder and multiple decoders each dedicated to a task, similar to [21].
+
+Cycle-based consistency, e.g.[50], is a way of enforcing consistency requiring a bijection between domains. This baseline is the special case of the triangle in Fig.2(b) by setting $f_{xy_2} = identity$ .
+
+Baseline perceptual loss network uses frozen random (Gaussian weight) networks as $\mathcal{F}_{\mathcal{V}}$ , rather than training them to be cross-task functions. This baseline would show if the improvements were owed to the priors in the architecture of constraint networks, rather than them executing cross-task consistency constraints.
+
+GAN-based image translation: We used Pix2Pix [17].
+
+Blind guess: A query-agnostic statistically informed guess computed from data for each domain (visuls in supplementary). It shows what can be learned from general dataset regularities. [45]
+
+
+Figure 7: Learning with cross-task consistency vs various baselines compared over surface normals. Queries are from Taskonomy dataset (top) or external data (bottom). More examples are provided in project page, and a live demo for user uploaded images is available at demo page. [best seen on screen]
+
+| SetupMethod | Replica Dataset | Taskonomy Dataset | | | | | | | |
| Normals | Depth | reShading | Normals | Depth | reShading | Semantic Segm. | | | | | | | |
| Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | Perceptual Err. | Direct | X-Entropy (↓) | | | | | | | |
| Depth reShade | ε1Err. | Norm. reShade | ε1Err. | Norm. | Norm. | Depth | ε1Err. | Depth reShade | Cuv. | Edge(2D) | ε1Err. | Norm. | edge | Edge(2D) | ε1Err. | Norm. | edge | X-Entropy (↓) | | | | | | | |
| Blind Guess | 4.75 | 33.31 | 16.02 | 22.23 | 19.94 | 4.81 | 15.74 | 5.14 | 16.45 | 7.39 | 38.11 | 3.91 | 12.05 | 17.77 | 22.37 | 27.27 | 7.96 | 12.77 | 7.07 | 19.96 | 7.14 | 3.53 | 12.62 | 24.85 | | |
| Taskonomy Networks | 3.73 | 11.07 | 6.55 | 18.06 | 15.39 | 3.72 | 8.70 | 3.85 | 11.43 | 7.19 | 22.68 | 3.68 | 10.70 | 7.54 | 18.82 | 20.83 | 6.65 | 14.10 | 4.55 | 11.72 | 4.69 | 3.54 | 11.19 | 16.58 | | |
| Multi-Task | 5.58 | 22.11 | 6.03 | 15.30 | 16.14 | 2.44 | 7.24 | 3.36 | 10.32 | 8.78 | 27.32 | 3.65 | 10.16 | 7.07 | 17.18 | 19.55 | 7.54 | 13.67 | 2.81 | 9.19 | 3.54 | 3.56 | 10.75 | 11.61 | | |
| GeoNet (original) | 6.23 | 19.34 | 7.48 | 13.88 | 14.03 | 4.01 | × | × | × | 7.71 | 27.35 | 3.32 | 9.09 | 9.58 | 15.44 | 18.73 | 4.03 | 10.78 | 4.07 | × | × | × | × | × | × | × |
| Cycle Consistency | 5.65 | 22.39 | 7.13 | | | | | | | 8.81 | 30.33 | 3.84 | 10.26 | 8.68 | | | | | | | | | | | | |
| Baseline Perceptual Loss | 4.88 | 15.34 | 4.99 | | | | | | | 8.59 | 23.98 | 3.41 | 10.01 | 6.17 | | | | | | | | | | | | |
| Pix2Pix | 4.52 | 19.03 | 7.70 | | | | | | | 8.12 | 26.23 | 3.83 | 10.33 | 9.40 | | | | | | | | | | | | |
| Baseline UNet (ε1) | 4.69 | 13.15 | 4.96 | 10.47 | 12.99 | 1.99 | 6.90 | 2.74 | 9.55 | 8.17 | 20.94 | 3.41 | 9.98 | 5.95 | 13.62 | 15.68 | 7.31 | 12.61 | 2.27 | 9.58 | 3.38 | 3.78 | 10.85 | 10.45 | 0.246 | |
| GeoNet (updated) | 4.62 | 12.79 | 4.70 | 10.47 | 12.75 | 1.83 | × | × | × | 8.18 | 20.84 | 3.40 | 9.99 | 5.91 | 13.77 | 15.76 | 7.52 | 12.67 | 2.26 | × | × | × | × | × | × | |
| X-Task Consistency | 2.07 | 9.99 | 4.80 | 7.01 | 11.21 | 1.63 | 5.50 | 1.96 | 9.22 | 4.32 | 12.15 | 3.29 | 9.50 | 6.08 | 9.46 | 12.66 | 3.61 | 9.82 | 2.29 | 7.13 | 2.51 | 3.28 | 9.38 | 10.52 | 0.237 | |
| 0.25% Data: Baseline | 5.65 | 21.76 | 7.61 | | | | | | | 8.86 | 26.91 | 3.78 | 10.31 | 8.17 | | | | | | | | | | | | |
| 0.25% Data: Consistency | 2.41 | 12.26 | 7.28 | | | | | | | 5.07 | 15.96 | 3.74 | 9.93 | 9.19 | | | | | | | | | | | | |
+
+Table 1: Quantitative Evaluation of Cross-Task Consistent Learning vs Baselines. Results are reported on Replica and Taskonomy Datasets for four prediction tasks (normals, depth, reshading, pixel-wise semantic labeling) using 'Direct' and 'Perceptual' error metrics. The Perceptual metrics evaluate the target prediction in another domain (e.g., the leftmost column evaluates the depth inferred out of the predicted normals). Bold marks the best-performing method. If more than one value is bold, their performances were statistically indistinguishable from the best, according to 2-sample paired t-test $\alpha = 0.01$ . Learning with consistency led to improvements with large margins in most columns. (In all tables, $\ell$ norm values are multiplied by 100 for readability. Methods that cannot be run for a given target are denoted by $\times$ .)
+
+GeoNet [32] is a task-specific consistency method analytically curated for depth and normals. This baseline shows how closely the task-specific consistency methods based on known analytical relationships perform vs the proposed generic data-driven method. The "original" and "updated" variants represent original authors' released networks and our re-implemented and re-trained version.
+
+# 5.1. Consistency of Predictions
+
+Fig.9(a) (blue) shows the amount of inconsistency in test set predictions (Consistency Energy) successfully decreases over the course of training. The convergence point of the network trained with consistency is well below baseline independent learning (orange) and multi-task learning (green)—which shows consistency among predictions does not naturally emerge in either case without explicit constraining.
+
+# 5.2. Accuracy of Predictions
+
+Figures 6 and 7 compare the prediction results of networks trained with cross-task consistency against the baselines in different domains. The improvements are considerable particularly around the difficult fine-grained details.
+
+Quantitative evaluations are provided in Tab. 1 for Replica dataset and Taskonomy datasets on depth, normal, reshading, and pixel-wise semantic prediction tasks. Learning with consistency led to large improvements in most of the setups. As most of the pixels in an image belong to easy to predict regions governed by the room layout (e.g. ceiling, walls), the
+
+standard pixel-wise error metrics (e.g. $\ell_1$ ) are dominated by them and consequently insensitive to fine-grained changes. Thus, besides standard Direct metrics, we report Perceptual error metric (e.g. normal $\rightarrow$ curvature) that evaluate the same prediction, but with a non-uniform attention to pixel properties. $^9$ Each perceptual error provides a different angle, and the optimal results would have a low error for all metrics.
+
+Tab. 1 also includes evaluation of the networks when trained with little data (0.25% subset of Taskonomy dataset), which shows the consistency constraints are useful under low-data regime as well.
+
+We adopted normals as the canonical task for more extensive evaluations, due to its practical value and abundance of baselines. The conclusions remained the same regardless.
+
+# 5.3. Utilities of Consistency Energy
+
+Below we quantitatively analyze the Consistency Energy. The energy is shown (per-pixel) for sample queries in Fig. 6.
+
+Consistency Energy as a Confidence Metric: The plot 9(b) shows the energy of predictions has a strong positive correlation with the error computed using ground truth (Pearson corr. 0.67). This suggests the energy can be adopted for confidence quantification and handling uncertainty. This experiment was done on Taskonomy test set.
+
+
+Figure 8: Error with Increasing (Smooth) Domain Shift. The network trained with consistency is more robust to the shift.
+
+| Novel Domain | Error (Post-Adaption) | Error (Pre-Adaptation) |
| # images | Consistency | Baseline | Consistency | Baseline |
| Gaussian blur (Taskonomy) | 128 | 17.4 (+14.7%) | 20.4 | 46.2 (+12.8%) | 53.0 |
| 16 | 22.3 (+8.6%) | 24.4 |
| CocoDoom | 128 | 18.5 (+19.2%) | 22.9 | 54.3 (+15.8%) | 64.5 |
| 16 | 27.1 (+24.5%) | 35.9 |
| ApolloScape | 8 | 40.5 (+11.9%) | 46.0 | 55.8 (+5.5%) | 59.1 |
+
+Table 2: Domain generalization and adaptation on CocoDoom, ApolloScape, and Taskonomy blur data. Networks trained with consistency show better generalization to new domains and a faster adaptation with little data. (relative improvement in parentheses)
+
+
+(a) Energy During Training
+
+
+(b) Energy vs Error
+
+
+(c)Energy vs Discrete Domain Shift (d) Energy vs Continuous Domain Shift
+Figure 9: Analyses of Consistency Energy.
+
+
+
+Consistency Energy as a Domain Shift Detector: Plot 9(c) shows the energy distribution of in-distribution (Taskonomy) and out-of-distribution datasets (ApolloScape, CocoDoom). Out-of-distribution datapoints have notably higher energy values, which suggests that energy can be used to detect anomalous samples or domain shifts. Using the per-image energy value to detect out-of-distribution images achieved ROC-AUC=0.95; the out-of-distribution detection method OC-NN [3] scored 0.51.
+
+Plot 9(d) shows the same concept as 9(c) (energy vs domain shift), but when the shift away from the training data is smooth. The shift was done by applying a progressively stronger Gaussian blur with kernel size 6 on Taskonomy test images. The plot also shows the error computed using ground truth which has a pattern similar to the energy.
+
+We find the reported utilities noteworthy as handling uncertainty, domains shifts, and measuring prediction confidence in neutral networks are open topics of research [29, 11] with critical values in, e.g. active learning [35], real-world decision making [20], and robotics [31].
+
+# 5.4. Generalization & Adaptation to New Domains
+
+To study: I. how well the networks generalize to new domains without any adaptation and quantify their resilience, and II. how efficiently they can adapt to a new domain given a few training examples by fine-tuning, we test the networks trained on Taskonomy dataset on various new domains.
+
+In interest of space, we defer the details to the supplementary and provide the results in Fig. 8 and Tab. 2. Networks trained with consistency generally show higher resilience
+
+w.r.t. domain shifts and better adaptation with little data.
+
+Supplementary Material: We defer additional discussions and experiments, particularly analyzing different aspects of the optimization, stability analysis of the experimental trends, and proving qualitative results at scale to the supplementary material and the project page.
+
+# 6. Conclusion and Limitations
+
+We presented a general and data-driven framework for augmenting standard learning with cross-task consistency. The evaluations showed learning with cross-task consistency fits the data better yielding more accurate predictions and leads to models with improved generalization. The Consistency Energy was found to be an informative intrinsic quantity with utilities toward confidence estimation and domain shift detection. We briefly discuss some of the limitations:
+
+Path Ensembles: we used the various inference paths only as a way of enforcing consistency. Aggregation of multiple (comparably weak) inference paths into a single strong estimator (e.g. in a manner similar to boosting) is a promising direction that this paper did not address.
+
+Categorical/Low-Dimensional Tasks: We primarily experimented with pixel-wise tasks. Classification tasks, and generally tasks with low-dimensional outputs, will be interested to experiment with, especially given the more severely ill-posed cross-task relationships they induce.
+
+Unlabeled/Unpaired Data: The current framework requires labeled training data. Extending the concept to unlabeled/unpaired data, e.g. as in [50], remains open.
+
+**Optimization Limits:** The improvements gained by incorporating consistency are bounded by the success of the available optimization techniques, as addition of consistency constrains at times makes the optimization job harder. Also, implementing cross-task functions using neural networks makes them subject to certain output artifacts similar to those seen in image synthesis with neural networks.
+
+Adversarial Robustness: Lastly, if learning with cross-task consistency indeed reduces the tendency of neural networks to learn surface statistics [18] (Sec. 1), studying its implications in defenses against adversarial attacks will be valuable.
+
+Acknowledgement: We thank Teresa Yeo and Oğuzhan Kar. This work was supported by ONR MURI (N00014-14-1-0671), an Amazon AWS Machine Learning Award, Google Cloud, and TRI. 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] Mikel Artetxe and Holger Schwenk. Massively multilingual sentence embeddings for zero-shot cross-lingual transfer and beyond. CoRR, abs/1812.10464, 2018. 2
+[2] Richard W. Brislin. Back-translation for cross-cultural research. Journal of Cross-Cultural Psychology, 1(3):185-216, 1970. 2
+[3] Raghavendra Chalopathy, Aditya Krishna Menon, and Sanjay Chawla. Anomaly detection using one-class neural networks. arXiv preprint arXiv:1802.06360, 2018. 8
+[4] Yunjey Choi, Minje Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8789-8797, 2018. 2
+[5] Luca Cosmo, Emanuele Rodola, Andrea Albarelli, Facundo Memoli, and Daniel Cremers. Consistent partial matching of shape collections via sparse modeling. In Computer Graphics Forum, volume 36, pages 209-221. Wiley Online Library, 2017. 2
+[6] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. Temporal cycle-consistency learning. CoRR, abs/1904.07846, 2019. 2
+[7] Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. CoRR, abs/1808.09381, 2018. 2
+[8] 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
+[9] Clément Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estimation with left-right consistency. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 270-279, 2017. 2
+[10] V. Guillemin and A. Pollack. Differential Topology. Mathematics Series. Prentice-Hall, 1974. 2
+[11] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks, 2017. 8
+[12] Aaron Hertzmann, Charles E Jacobs, Nuria Oliver, Brian Curless, and David H Salesin. Image analogies. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pages 327-340. ACM, 2001. 2
+[13] Steven Hickson, Karthik Raveendran, Alireza Fathi, Kevin Murphy, and Irfan Essa. Floors are flat: Leveraging semantics for real-time surface normal prediction. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0–0, 2019. 2
+[14] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A. Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. CoRR, abs/1711.03213, 2017. 2
+[15] Qi-Xing Huang and Leonidas Guibas. Consistent shape maps via semidefinite programming. In Proceedings of the Eleventh Eurographics/ACMSIGGRAPH Symposium on Geometry Processing, SGP '13, pages 177-186, Aire-la-Ville, Switzerland, Switzerland, 2013. Eurographics Association. 2
+[16] Xinyu Huang, Xinjing Cheng, Qichuan Geng, Binbin Cao, Dingfu Zhou, Peng Wang, Yuanqing Lin, and Ruigang Yang.
+
+The apolloscape dataset for autonomous driving. CoRR, abs/1803.06184, 2018. 6
+[17] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks. CoRR, abs/1611.07004, 2016. 2, 6
+[18] Jason Jo and Yoshua Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017. 1, 8
+[19] Justin Johnson, Alexandre Alahi, and Fei-Fei Li. Perceptual losses for real-time style transfer and super-resolution. CoRR, abs/1603.08155, 2016. 4
+[20] Mykel J. Kochenderfer, Christopher Amato, Girish Chowdhary, Jonathan P. How, Hayley J. Davison Reynolds, Jason R. Thornton, Pedro A. Torres-Carrasquillo, N. Kemal Üre, and John Vian. Decision Making Under Uncertainty: Theory and Application. The MIT Press, 1st edition, 2015. 8
+[21] Iasonas Kokkinos. Ethernet: Training a 'universal' convolutional neural network for low-, mid-, and high-level vision using diverse datasets and limited memory. CoRR, abs/1609.02132, 2016. 2, 6
+[22] Daphne Koller and Nir Friedman. Probabilistic Graphical Models: Principles and Techniques - Adaptive Computation and Machine Learning. The MIT Press, 2009. 2
+[23] Uday Kusupati, Shuo Cheng, Rui Chen, and Hao Su. Normal assisted stereo depth estimation. arXiv preprint arXiv:1911.10444, 2019. 2
+[24] 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. 2
+[25] Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. CoRR, abs/1901.07291, 2019. 2
+[26] Yann LeCun, Sumit Chopra, and Raia Hadsell. A tutorial on energy-based learning. 2006. 5
+[27] Aravindh Mahendran, Hakan Bilen, João F. Henriques, and Andrea Vedaldi. Researchdoom and cocodoom: Learning computer vision with games. CoRR, abs/1610.02431, 2016. 6
+[28] Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014. 2
+[29] Yaniv Ovadia, Emily Fertig, Jie Ren, Zachary Nado, D Sculley, Sebastian Nowozin, Joshua V. Dillon, Balaji Lakshminarayanan, and Jasper Snoek. Can you trust your model's uncertainty? evaluating predictive uncertainty under dataset shift, 2019. 8
+[30] Maks Ovsjanikov, Mirela Ben-Chen, Justin Solomon, Adrian Butscher, and Leonidas Guibas. Functional maps: A flexible representation of maps between shapes. ACM Trans. Graph., 31(4):30:1-30:11, July 2012. 2
+[31] F Proctor, Marek Franaszek, and J Michaloski. Tolerances and uncertainty in robotic systems. In ASME 2017 International Mechanical Engineering Congress and Exposition. American Society of Mechanical Engineers Digital Collection, 2017. 8
+[32] 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, 7
+
+[33] Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. arXiv preprint arXiv:1904.09237, 2019. 6
+[34] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. CoRR, abs/1505.04597, 2015. 6
+[35] Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. arXiv preprint arXiv:1708.00489, 2017. 8
+[36] Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. Cnn features off-the-shelf: an astounding baseline for recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 806-813, 2014. 2
+[37] Nathan Silberman, Derek Hoiem, Pushmeet Kohli, and Rob Fergus. Indoor Segmentation and Support Inference from RGBD Images, pages 746-760. Springer Berlin Heidelberg, Berlin, Heidelberg, 2012. 6
+[38] Trevor Standley, Amir R. Zamir, Dawn Chen, Leonidas Guibas, Jitendra Malik, and Silvio Savarese. Which Tasks Should Be Learned Together in Multi-task Learning? arXiv e-prints, page arXiv:1905.07553, May 2019. 2
+[39] James Stewart. Essential calculus: Early transcendents. Cengage Learning, 2012. 3
+[40] Julian Straub, Thomas Whelan, Lingni Ma, Yufan Chen, Erik Wijmans, Simon Green, Jakob J Engel, Raul Mur-Artal, Carl Ren, Shobhit Verma, et al. The replica dataset: A digital replica of indoor spaces. arXiv preprint arXiv:1906.05797, 2019. 6
+[41] Xiaolong Wang, Allan Jabri, and Alexei A. Efros. Learning correspondence from the cycle-consistency of time. CoRR, abs/1903.07593, 2019. 2
+[42] Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the European Conference on Computer Vision (ECCV), pages 3-19, 2018. 6
+[43] Dan Xu, Wanli Ouyang, Xiaogang Wang, and Nicu Sebe. Padnet: Multi-tasks guided prediction-and-distillation network for simultaneous depth estimation and scene parsing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 675-684, 2018. 2
+[44] 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
+[45] Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3712-3722, 2018. 2, 6
+[46] 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. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5287–5295, 2017. 2
+[47] Yu Zhang and Qiang Yang. A survey on multi-task learning. CoRR, abs/1707.08114, 2017. 2
+
+[48] Zaiwei Zhang, Zhenxiao Liang, Lemeng Wu, Xiaowei Zhou, and Qixing Huang. Path-invariant map networks. CoRR, abs/1812.11647, 2018. 2
+[49] Tinghui Zhou, Philipp Kähenbuhl, Mathieu Aubry, Qixing Huang, and Alexei A. Efros. Learning dense correspondence via 3d-guided cycle consistency. CoRR, abs/1604.05383, 2016. 2
+[50] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. CoRR, abs/1703.10593, 2017. 2, 6, 8
+[51] Yuliang Zou, Zelun Luo, and Jia-Bin Huang. Df-net: Unsupervised joint learning of depth and flow using cross-task consistency. In Proceedings of the European Conference on Computer Vision (ECCV), pages 36-53, 2018. 2
\ No newline at end of file
diff --git a/robustlearningthroughcrosstaskconsistency/images.zip b/robustlearningthroughcrosstaskconsistency/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..763094db24075b20e6225b3253d4a22e5d72d01e
--- /dev/null
+++ b/robustlearningthroughcrosstaskconsistency/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:403c89c72790b73d63e0abed92b16d71fc5534f318b2e19313c1cfd520de9758
+size 737257
diff --git a/robustlearningthroughcrosstaskconsistency/layout.json b/robustlearningthroughcrosstaskconsistency/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..66ada7de048c9928122065109cd268c6f3f9e516
--- /dev/null
+++ b/robustlearningthroughcrosstaskconsistency/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9b17fb04d9a61dbea331ab14f6ce46443aebeee1fe42bcc2155d0317668ade2d
+size 567130
diff --git a/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_content_list.json b/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ec8db1216275adc8710707eb68a3d8f19834e0d8
--- /dev/null
+++ b/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:161f6ac82070ffd938186318f7721e16e4b68280c9bba248576ca77b3d99fc4f
+size 84208
diff --git a/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_model.json b/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..bf69cb6412220c28a6d28804ceac527ad8a94ea8
--- /dev/null
+++ b/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13ddff91bef501ad04168c9a7f5bb1e8875d864e570143b8c3f46e1f0d9e90cb
+size 100329
diff --git a/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_origin.pdf b/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c42efd60ae0b04cd76b76e54bc0ce8e121c5e13e
--- /dev/null
+++ b/robustnessguaranteesfordeepneuralnetworksonvideos/2d5d4e66-1bff-4da4-bd9d-7cc135247b09_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:daac53133dd079fe4004049af6bfa747388cd19f5a62e82471d71d3c5b8140b0
+size 1606293
diff --git a/robustnessguaranteesfordeepneuralnetworksonvideos/full.md b/robustnessguaranteesfordeepneuralnetworksonvideos/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0e6dc7e59ad2ac0eec1a55f04fc2839072eadd07
--- /dev/null
+++ b/robustnessguaranteesfordeepneuralnetworksonvideos/full.md
@@ -0,0 +1,354 @@
+# Robustness Guarantees for Deep Neural Networks on Videos
+
+Min Wu and Marta Kwiatkowska
+Department of Computer Science, University of Oxford, UK
+{min.wu, marta.kwiatkowska@cs.ox.ac.uk}
+
+# Abstract
+
+The widespread adoption of deep learning models places demands on their robustness. In this paper, we consider the robustness of deep neural networks on videos, which comprise both the spatial features of individual frames extracted by a convolutional neural network and the temporal dynamics between adjacent frames captured by a recurrent neural network. To measure robustness, we study the maximum safe radius problem, which computes the minimum distance from the optical flow sequence obtained from a given input to that of an adversarial example in the neighbourhood of the input. We demonstrate that, under the assumption of Lipschitz continuity, the problem can be approximated using finite optimisation via discretising the optical flow space, and the approximation has provable guarantees. We then show that the finite optimisation problem can be solved by utilising a two-player turn-based game in a cooperative setting, where the first player selects the optical flows and the second player determines the dimensions to be manipulated in the chosen flow. We employ an anytime approach to solve the game, in the sense of approximating the value of the game by monotonically improving its upper and lower bounds. We exploit a gradient-based search algorithm to compute the upper bounds, and the admissible $A^*$ algorithm to update the lower bounds. Finally, we evaluate our framework on the UCF101 video dataset.
+
+# 1. Introduction
+
+Deep neural networks (DNNs) have been developed for a variety of tasks, including self-driving cars, malicious software classification, and abnormal network activity detection. While the accuracy of neural networks has significantly improved, matching human cognitive perception, they are susceptible to adversarial examples. An adversarial example is an input which, whilst initially classified correctly, is misclassified with a slight, often imperceptible, perturbation. Robustness of neural networks has been an active topic of investigation, and a number of approaches have been proposed (see Related Work below.) However, most
+
+existing works focus on robustness of neural networks on image classification problems, where convolutional neural networks (CNNs) are sufficient. One assumption that CNNs rely on is that inputs are independent of each other, and they are unable to accept a sequence of input data when the final output is dependent on intermediate outputs. In reality, though, tasks often contain sequential data as inputs, for instance, in machine translation [23], speech/handwriting recognition [9, 10, 6], and protein homology detection [12]. To this end, recurrent neural networks (RNNs) come into play. For RNNs, the connections between neurons form a directed graph along a temporal sequence, which captures temporal dynamic behaviours. Unlike CNNs, RNNs can use the internal state (memory) to process sequential inputs.
+
+In this work, we study robustness guarantees for neural networks, including CNNs and RNNs, on videos. Video classification is challenging because it comprises both the spatial features on each individual frames, which can be extracted by CNNs, as well as the temporal dynamics between neighbouring frames, which can be captured by RNNs. Specifically, we develop a methodology for evaluating robustness of videos based on the notion of maximum safe radius (or dually, minimum adversarial distortion [28]), which captures the maximum allowed magnitude of a perturbation. Our method is based on a game-based approach of [31] and provides guarantees against perturbations up to a given magnitude. We compute upper and lower bounds of the maximum safe radius, and demonstrate their convergence trend on the UCF101 video dataset.
+
+Related work Robustness of neural networks has been mainly studied in the context of image classification, and, to the best of our knowledge, very few works address robustness guarantees for videos. We review only approaches most relevant to our approach. Early methods evaluate the robustness of networks by checking whether they are vulnerable to adversarial attacks, which attempt to craft a perturbation imposed on the input so that it is misclassified by a well-trained network. In the computer vision and security communities, various attack techniques have been developed, such as the limited-memory Broyden-Fletcher-Goldfarb-Shanno algorithm [24], the fast gradient
+
+sign method [8] and its extended Jacobian saliency map based attack [19], as well as the optimisation-based C&W attack [2]. Nevertheless, adversarial attacks cannot provide guarantees. To this end, various verification approaches for neural networks emerged in the formal methods community. These include constraint solving tools Reluplex [16] and Planet [4]; mixed integer linear programming method Sherlock [3]; the $\mathrm{Al}^2$ approach [7] involving abstract interpretation; algorithms utilising linear approximation such as FastLin/FastLip [29] and Crown [32]; and also search-based DLV [14] and game-based tool DeepGame [31].
+
+The above approaches evaluate the robustness of feedforward networks, but we are interested in providing guarantees for both convolutional and recurrent layers with time-series inputs. Although there are some adversarial attacks against RNNs [20] and videos [15, 27], verification approaches are rare. For example, POPQORN [17] employs the linear approximation method, bounding the network output by two linear functions in terms of input; and Wang et al. [25] extract deterministic finite automata from RNNs as the oracle and use them to evaluate adversarial accuracy. Our approach instead draws on DeepGame [31], where a game-based verification framework is proposed for computing the maximum safe radius for feedforward networks through discretising the input space via Lipschitz continuity [11], but in this work we are able to handle CNN + RNN architectures and video inputs.
+
+# 2. Preliminaries
+
+# 2.1. Deep neural networks
+
+Let $\mathcal{N}$ be a neural network with a set of classes $C$ . Given an input $\pmb{v}$ and a class $c \in C$ , we use $\mathcal{N}(\pmb{v}, c)$ to denote the confidence of $\mathcal{N}$ believing that $\pmb{v}$ is in class $c$ . We work with the Softmax logit value of the last layer, but the methods can be adapted to the probability value after normalisation. Thus, $\mathcal{N}(\pmb{v}) = \arg \max_{c \in C} \mathcal{N}(\pmb{v}, c)$ is the class into which $\mathcal{N}$ classifies $\pmb{v}$ . Moreover, as $\mathcal{N}$ in this work can have convolutional and recurrent layers, we let $\mathcal{N}_C$ denote the convolutional part and $\mathcal{N}_R$ the recurrent part. Specifically, since the inputs we consider are videos, we let the input domain D be $\mathbb{R}^{l \times w \times h \times ch}$ , where $l$ is the length of $\pmb{v}$ , i.e., the number of frames, and $w, h, ch$ are the width, height, and channels of each frame, respectively.
+
+# 2.2. Optical flow
+
+In order to capture the dynamic characteristics of the moving objects in a video, we utilise optical flow [1, 26], which is a pattern of the apparent motion of the image objects between two consecutive frames caused by the movement of the objects or the camera. Several methods exist in the computer vision community to compute flows, e.g., the Lucas-Kanade [18] and Gunnar Farnebäck [5] algorithms.
+
+Definition 1 (Optical Flow). Consider a pixel $\mathcal{P}(x,y,t)$ in a frame, where $x,y$ denote the horizontal and vertical positions respectively, and $t$ denotes time dimension. If after dt time, the pixel moves by distance $(\mathrm{dx},\mathrm{dy})$ in the next frame, then $\mathcal{P}(x,y,t) = \mathcal{P}(x + \mathrm{dx},y + \mathrm{dy},t + \mathrm{dt})$ holds. After taking Taylor series approximation, removing common terms, and dividing by dt, the Optical Flow Equation is $f_{x}u + f_{y}v + f_{t} = 0$ , such that $f_{x} = \frac{\partial f}{\partial x}$ , $f_{y} = \frac{\partial f}{\partial y}$ , $u = \frac{\partial x}{\partial t}$ , $v = \frac{\partial y}{\partial t}$ , where $f_{x},f_{y}$ are the image gradients, $f_{t}$ is the gradient along time, and the motion $(u,v)$ is unknown.
+
+# 2.3. Distance metrics and Lipschitz continuity
+
+In robustness evaluation, $L^p$ distance metrics are often used to measure the discrepancy between inputs, denoted as $\| \alpha -\alpha '\| _p$ , where $p\in \{1,2,\infty \}$ indicates Manhattan $(L^{1})$ , Euclidean $(L^2)$ , and Chebyshev $(L^{\infty})$ distances. Because our inputs are videos, i.e., sequences of frames, we will need a suitable metric. In this work, we work directly with $L^p$ metrics on optical flows, as described in the next section. Moreover, we consider neural networks that satisfy Lipschitz continuity, and note that all networks with bounded inputs are Lipschitz continuous, such as the common fully-connected, convolutional, ReLU, and softmax layers. We denote by $\mathrm{Lip}_c$ the Lipschitz constant for class $c$ .
+
+# 3. Robustness: formulation and approximation
+
+In this section, we formulate the robustness problem and provide an approximation with provable guarantees.
+
+# 3.1. Robustness and maximum safe radius
+
+In this work, we focus on pointwise robustness, which is defined as the invariance of a network's classification over a small neighbourhood of a given input. Following this, the robustness of a classification decision for a specific input can be understood as the non-existence of adversarial examples in the neighbourhood of the input. Here, we work with the norm ball as a neighbourhood of an input, that is, given an input $\pmb{v}$ , a distance metric $L^p$ , and a distance $d$ , $\mathsf{B}(\pmb{v}, L^p, d) = \{\pmb{v}' \mid \| \pmb{v} - \pmb{v}' \|_p \leq d\}$ is the set of inputs whose distance to $\pmb{v}$ is no greater than $d$ based on the $L^p$ norm. Intuitively, the norm ball $\mathsf{B}$ with centre $\pmb{v}$ and radius $d$ limits perturbations to at most $d$ with respect to $L^p$ . Then (pointwise) robustness is defined as follows.
+
+Definition 2 (Robustness). Given a network $\mathcal{N}$ , an input $\pmb{v}$ , a distance metric $L^p$ , and a distance $d$ , an adversarial example $\pmb{v}'$ is such that $\pmb{v}' \in \mathsf{B}(\pmb{v}, L^p, d)$ and $\mathcal{N}(\pmb{v}') \neq \mathcal{N}(\pmb{v})$ . Define the robustness of $\pmb{v}$ by $\mathsf{ROBUST}(\mathcal{N}, \pmb{v}, L^p, d) \models \not\exists \pmb{v}' \in \mathsf{B}(\pmb{v}, L^p, d)$ s.t. $\mathcal{N}(\pmb{v}') \neq \mathcal{N}(\pmb{v})$ . If this holds, we say $\mathcal{N}$ is safe w.r.t. $\pmb{v}$ within $d$ based on the $L^p$ norm.
+
+While the above definition returns only True or False, we take a step further to quantify the measurement of robustness. That is, we compute the distance to the original
+
+
+Figure 1. Maximum safe radius.
+
+
+Figure 2. Error bounds.
+
+
+Figure 3. Robustness verification workflow.
+
+input in the sense that, if exceeding the distance, there definitely exists an adversarial example, whereas, within the distance, all the points are safe, see Figure 1. We formally define this distance as the maximum safe radius as follows.
+
+Definition 3 (Maximum Safe Radius). Given a network $\mathcal{N}$ , an input $\pmb{v}$ , a distance metric $L^p$ , and a distance $d$ , the maximum safe radius (MSR) problem is to compute the minimum distance from input $\pmb{v}$ to an adversarial example $\pmb{v}'$ , i.e.,
+
+$$
+\operatorname {M S R} (\mathcal {N}, \boldsymbol {v}, L ^ {p}, d) = \min _ {\boldsymbol {v} ^ {\prime} \in \mathrm {D}} \left\{\| \boldsymbol {v} - \boldsymbol {v} ^ {\prime} \| _ {p} \mid \boldsymbol {v} ^ {\prime} \in \mathrm {B} (\boldsymbol {v}, L ^ {p}, d) \right.
+$$
+
+$$
+\left. \text {s u c h} \mathcal {N} \left(\boldsymbol {v} ^ {\prime}\right) \neq \mathcal {N} (\boldsymbol {v}) \right\}. \tag {1}
+$$
+
+If $\pmb{v}'$ does not exist in $\mathsf{B}$ , we let $\mathsf{MSR} = d + \epsilon$ , i.e., $d$ plus a small value $\epsilon$ .
+
+# 3.2. Maximum safe radius w.r.t. optical flow
+
+In existing works that evaluate a network's robustness over images, it is common to manipulate each image at pixel- or channel-level, and then compute the distance between the perturbed and original inputs. However, as we deal with time-series inputs, i.e., videos, instead of manipulating directly on each individual frame, we impose perturbation on each optical flow that is extracted from every pair of adjacent frames, so that both spatial features on frames and temporal dynamics between frames can be captured.
+
+Definition 4 (Optical Flow). Given an input video $\mathbf{v}$ with number $l$ of frames, i.e., $\mathbf{v} = \{\mathcal{F}_1,\dots ,\mathcal{F}_t,\dots ,\mathcal{F}_l\} ,t\in [1,l],t\in \mathbb{N}^+$ , the optical flow extraction function $f:\mathcal{F}_t,\mathcal{F}_{t + 1}\mapsto \mathfrak{p}_t$ maps every two adjacent frames $\mathcal{F}_t,\mathcal{F}_{t + 1}$ into an optical flow $\mathfrak{p}_t$ . Then, for the sequential video $\mathbf{v}$ , a sequence of optical flows can be extracted, i.e., $\mathsf{P}(\mathbf{v}) = \{\mathsf{p}_1,\ldots ,\mathsf{p}_t,\ldots ,\mathsf{p}_{l - 1}\} ,t\in [1,l - 1],t\in \mathbb{N}^{+}$ .
+
+We remark that the distance between the flow sequences of two videos, denoted as $\| \mathsf{P}(\pmb {v}) - \mathsf{P}(\pmb {v}^{\prime})\|_{p}$ , can be measured similarly to that of two videos $\| \pmb {v} - \pmb{v}^{\prime}\|_{p}$ by the $L^p$ norms in the standard way, as they are essentially tensors.
+
+Then, to study the crafting of adversarial examples, we construct manipulations on the optical flow to obtain perturbed inputs. Note that if the input values are bounded,
+
+e.g., [0, 255] or [0, 1], then the perturbed inputs need to be restricted to be within the bounds.
+
+Definition 5 (Optical Flow Manipulation). Given an input $\mathbf{v}$ with optical flow sequence $\mathsf{P}(\mathbf{v})$ , an instruction function $\Theta : \mathbb{N}^{+} \to \mathbb{Z}$ , and a manipulation magnitude $\tau \in \mathbb{R}$ , we define the optical flow manipulation $\mathcal{M}_{\Theta, \tau}(\mathfrak{p}_t)(i) =$
+
+$$
+\left\{ \begin{array}{l l} \mathrm {p} _ {t} [ i ] + \Theta (i) \cdot \tau , & \text {i f} i \in [ 1, w \times h ], i \in \mathbb {N} ^ {+} \\ \mathrm {p} _ {t} [ i ], & \text {o t h e r w i s e} \end{array} \right. \tag {2}
+$$
+
+where $w, h$ denote the width and height, i.e., $\Theta$ acts on flow dimensions. In particular, when $\theta : \mathbb{N}^{+} \to \{+1, -1\}$ , we say the manipulation is atomic, denoted as $\mathcal{M}_{\theta, \tau}$ .
+
+Instead of manipulating input $\pmb{v}$ directly, we manipulate the optical flow using $\mathcal{M}_{\Theta,\tau}(\mathsf{P}(\pmb{v}))$ , and then impose the manipulated flow on the original frames to obtain the corresponding perturbed input $\pmb{v}'$ such that $\mathsf{P}(\pmb{v}') = \mathcal{M}_{\Theta,\tau}(\mathsf{P}(\pmb{v}))$ . To this end, we compute the distance from $\mathcal{M}_{\Theta,\tau}(\mathsf{P}(\pmb{v}))$ to $\mathsf{P}(\pmb{v})$ instead of that from $\pmb{v}'$ to $\pmb{v}$ because the former reflects both spatial and temporal manipulations. That is, we compute the maximum safe radius w.r.t. optical flow $\mathsf{MSR}(\mathcal{N}, \mathsf{P}(\pmb{v}), L^p, d)$ rather than $\mathsf{MSR}(\mathcal{N}, \pmb{v}, L^p, d)$ .
+
+# 3.3. Approximation based on Lipschitz continuity
+
+Here, we utilise the fact that the networks studied in this work are Lipschitz continuous, which allows us to discretise the neighbourhood space of an optical flow sequence and consider a finite number of points on a grid instead of infinitely many. First, based on the definitions of optical flow and input manipulation, we transform the MSR problem into the following finite maximum safe radius problem.
+
+Definition 6 (Finite Maximum Safe Radius). Given an input $\mathbf{v}$ with the optical flow sequence $\mathsf{P}(\mathbf{v})$ and a manipulation operation $\mathcal{M}_{\Theta,\tau}$ , then the finite maximum safe radius (FMSR) w.r.t. optical flow is
+
+$$
+\operatorname {F M S R} (\mathcal {N}, \mathrm {P} (\boldsymbol {v}), L ^ {p}, d, \tau) = \min _ {\mathrm {P} _ {t} \in \mathrm {P} (\boldsymbol {v})} \min _ {\theta \in \Theta} \{
+$$
+
+$$
+\left\| \mathsf {P} (\boldsymbol {v}) - \mathcal {M} _ {\theta , \tau} (\mathsf {P} (\boldsymbol {v})) \right\| _ {p} \mid \mathcal {M} _ {\theta , \tau} (\mathsf {P} (\boldsymbol {v})) \in \mathsf {B} (\mathsf {P} (\boldsymbol {v}), L ^ {p}, d)
+$$
+
+$$
+s. t. \mathcal {N} (\boldsymbol {v} ^ {\prime}) \neq \mathcal {N} (\boldsymbol {v}) a n d \mathrm {P} (\boldsymbol {v} ^ {\prime}) = \mathcal {M} _ {\theta , \tau} (\mathrm {P} (\boldsymbol {v})) \}. \tag {3}
+$$
+
+If $\pmb{v}'$ does not exist in $\mathsf{B}$ , we let FMSR = d + ε.
+
+Intuitively, we aim to find a set of atomic manipulations $\theta \in \Theta$ to impose on a sequence of optical flows $\mathfrak{p}_t \in \mathsf{P}(\mathbf{v})$ , such that the distance between the flow sequences is minimal, and the corresponding perturbed input $\mathbf{v}'$ is an adversarial example. Considering that, within a norm ball $\mathsf{B}(\mathsf{P}(\mathbf{v}), L^p, d)$ , the set of manipulations is finite for a fixed magnitude $\tau$ , the FMSR problem only needs to explore a finite number of the 'grid' points. To achieve this, we let $\overline{g}$ be a $\tau$ -grid point such that $|\overline{g} - \mathsf{P}(\mathbf{v})| = n \times \tau$ , and $\Gamma(\mathsf{P}(\mathbf{v}), L^p, d)$ be the set of $\tau$ -grid points whose corresponding optical flow sequences are in $\mathsf{B}$ . Note that all the $\tau$ -grid points are reachable from each other via manipulation. By selecting an appropriate $\tau$ , we ensure that the optical flow space can be covered by small sub-spaces. That is, $\mathsf{B}(\mathsf{P}(\mathbf{v}), L^p, d) \subseteq \bigcup_{\overline{g} \in \Gamma} \mathsf{B}(\overline{g}, L^p, \frac{1}{2} \tilde{d}(L^p, \tau))$ , where the grid width $\tilde{d}(L^p, \tau)$ is $|\mathsf{D}| \tau$ for $L^1$ , $\sqrt{|\mathsf{D}| \tau^2}$ for $L^2$ , and $\tau$ for $L^\infty$ . Now, we can use FMSR to estimate MSR within the error bounds, as shown in Figure 2. We remark that approximation is only involved in the estimation of MSR from FMSR, which does not compromise the guarantees provided by FMSR.
+
+Theorem 1 (Error Bounds). Given a manipulation magnitude $\tau$ , the optical flow space can be discretised into a set of $\tau$ -grid points, and MSR can be approximated as
+
+$$
+\begin{array}{l} \operatorname {F M S R} (\mathcal {N}, \mathrm {P} (\boldsymbol {v}), L ^ {p}, d, \tau) - \frac {1}{2} \tilde {d} (L ^ {p}, \tau) \\ \leq \operatorname {M S R} (\mathcal {N}, \mathrm {P} (\boldsymbol {v}), L ^ {p}, d) \leq \operatorname {F M S R} (\mathcal {N}, \mathrm {P} (\boldsymbol {v}), L ^ {p}, d, \tau). \tag {4} \\ \end{array}
+$$
+
+We next show how to determine $\tau$ . Note that, in order to make sure each $\tau$ -grid point $\overline{g}$ covers all the possible manipulation points in its neighbourhood, we compute the largest $\tau$ , which can be obtained via Lipschitz continuity. For a network $\mathcal{N}$ that is Lipschitz continuous at input $\pmb{v}$ , given Lipschitz constant $\mathrm{Lip}_c, c \in C$ , we have
+
+$$
+\tilde {d} ^ {\prime} \left(L ^ {p}, \tau\right) \leq \frac {\underset {c \in C , c \neq \mathcal {N} (\boldsymbol {v})} {\min } \left\{\mathcal {N} (\boldsymbol {v} , \mathcal {N} (\boldsymbol {v})) - \mathcal {N} (\boldsymbol {v} , c) \right\}}{\underset {c \in C , c \neq \mathcal {N} (\boldsymbol {v})} {\max } \left(\operatorname {L i p} _ {\mathcal {N} (\boldsymbol {v})} + \operatorname {L i p} _ {c}\right)}. \tag {5}
+$$
+
+The proof is given in Appendix A.1 of an extended version of the paper [30]. Here we remark that, while $\tilde{d}^{\prime}(L^{p},\tau)$ is with respect to input $\mathbf{v}$ and $\tilde{d} (L^p,\tau)$ is with respect to the flow sequence $\mathsf{P}(\boldsymbol {v})$ , the relation between them is dependent on the flow extraction method used. As this is not the main focus of this work, we do not expand on this topic.
+
+# 4. A game-based verification approach
+
+In this section, we show that the finite optimisation problem FMSR of Definition 6 can be reduced to the computation of a player's reward when taking an optimal strategy in a game-based setting. The verification workflow is in Figure 3. To this end, we adapt the game-based approach proposed in [31] for robustness evaluation of CNNs on images.
+
+# 4.1. Problem solving as a two-player game
+
+We define a two-player turn-based game, where Player I chooses which optical flow to perturb, and Player II then imposes atomic manipulations within the selected flow.
+
+Definition 7 (Game). Given a network $\mathcal{N}$ , an input $\pmb{v}$ and its extracted optical flow sequence $\mathsf{P}(\pmb{v})$ , we let $\mathcal{G}(\mathcal{N}, \pmb{v}, L^p, d) = (S \cup (S \times \mathsf{P}(\pmb{v})), s_0, \{T_{\mathbb{I}}, T_{\mathbb{II}}\}, L)$ be a game model, where
+
+- $S \cup (S \times \mathsf{P}(\pmb{v}))$ denotes the set of game states, in which $S$ is the set of Player I's states whereas $S \times \mathsf{P}(\pmb{v})$ is the set of Player II's states. Each $s \in S$ corresponds to an optical flow sequence $\mathsf{P}(s)$ in the norm ball $\mathsf{B}(\mathsf{P}(\pmb{v}), L^p, d)$ .
+- $s_0 \in S$ is the initial state such that $\mathsf{P}(s_0)$ corresponds to the original optical flow sequence $\mathsf{P}(\pmb{v})$ .
+- $T_{\mathrm{I}}: S \times \mathsf{P}(\mathbf{v}) \to S \times \mathsf{P}(\mathbf{v})$ is Player I's transition relation defined as $T_{\mathrm{I}}(s, \mathfrak{p}_t) = (s, \mathfrak{p}_t)$ , and $T_{\mathrm{II}}: (S \times \mathsf{P}(\mathbf{v})) \times \Theta \to S$ is Player II's transition relation defined as $T_{\mathrm{II}}((s, \mathfrak{p}_t), \theta) = \mathcal{M}_{\theta, \tau}(\mathfrak{p}_t)$ , where $\mathcal{M}_{\theta, \tau}$ is the atomic manipulation of Definition 5. Intuitively, in a game state $s$ , Player I selects a flow $\mathfrak{p}_t$ of $\mathsf{P}(s)$ and enters into a Player II's state $(s, \mathfrak{p}_t)$ , where Player II then chooses an atomic manipulation $\mathcal{M}_{\theta, \tau}$ on $\mathfrak{p}_t$ .
+- $L: S \cup (S \times \mathsf{P}(\mathbf{v})) \to C$ is the labelling function that assigns to each game state the corresponding class.
+
+To compute FMSR of Definition 6, we let the game $\mathcal{G}$ be cooperative. When it proceeds, two players take turns - Player I employs a strategy $\sigma_{\mathrm{I}}$ to select optical flow, then Player II employs a strategy $\sigma_{\mathrm{II}}$ to determine atomic manipulations - thus forming a path $\rho$ , which is a sequence of states and actions $s_0p_0s_1\theta_1s_2p_2s_3\dots$ . Formally, we define the strategy of the game as follows. Let $Path_{\mathrm{I}}^{F}$ be a set of finite paths ending in Player I's state, and $Path_{\mathrm{II}}^{F}$ be a set of finite paths ending in Player II's state, then we define a strategy profile $\sigma = (\sigma_{\mathrm{I}},\sigma_{\mathrm{II}})$ , such that $\sigma_{\mathrm{I}}: Path_{\mathrm{I}}^{F} \to \mathcal{D}(\mathsf{P}(\boldsymbol{v}))$ of Player I maps a finite path to a distribution over next actions, and similarly $\sigma_{\mathrm{II}}: Path_{\mathrm{II}}^{F} \to \mathcal{D}(\Theta)$ for Player II.
+
+Intuitively, by imposing atomic manipulations in each round, the game searches for potential adversarial examples with increasing distance to the original optical flow. Given $\rho$ , let $v_{\rho}^{\prime}$ denote the input corresponding to the last state of $\rho$ , and $\mathsf{P}(v_{\rho}^{\prime})$ denote its optical flow sequence, we write the termination condition $tc(\rho) \equiv (\mathcal{N}(v_{\rho}^{\prime}) \neq \mathcal{N}(\pmb{v})) \vee (\| \mathsf{P}(v_{\rho}^{\prime}) - \mathsf{P}(\pmb{v}) \|_p > d)$ , which means that the game is in a state whose corresponding input is either classified differently, or the associated optical flow sequence is outside the norm ball. To quantify the distance accumulated along a path, we define a reward function as follows. Intuitively, the reward is the distance to the original optical flow if an adversarial example is found, and otherwise it is the weighted summation of the rewards of its children on the game tree.
+
+Definition 8 (Reward). Give a finite path $\rho$ and a strategy profile $\sigma = (\sigma_{\mathrm{I}},\sigma_{\mathrm{II}})$ , we define a reward function $R(\sigma ,\rho)$
+
+$$
+= \left\{ \begin{array}{l} \left\| \mathrm {P} \left(\boldsymbol {v} _ {\rho} ^ {\prime}\right) - \mathrm {P} (\boldsymbol {v}) \right\| _ {p}, \\ \text {i f} t c (\rho) \text {a n d} \rho \in \operatorname {P a t h} _ {\mathrm {I}} ^ {F} \\ \sum_ {\mathfrak {p} _ {t} \in \mathrm {P} (\boldsymbol {v})} \sigma_ {\mathrm {I}} (\rho) \left(\mathfrak {p} _ {t}\right) \cdot R \left(\sigma , \rho T _ {\mathrm {I}} (\operatorname {l a s t} (\rho), \mathfrak {p} _ {t})\right), \\ \text {i f} \neg t c (\rho) \text {a n d} \rho \in \operatorname {P a t h} _ {\mathrm {I}} ^ {F} \\ \sum_ {\theta \in \Theta} \sigma_ {\mathrm {I I}} (\rho) (\theta) \cdot R \left(\sigma , \rho T _ {\mathrm {I I}} (\operatorname {l a s t} (\rho), \theta)\right), \\ \text {i f} \rho \in \operatorname {P a t h} _ {\mathrm {I I}} ^ {F} \end{array} \right. \tag {6}
+$$
+
+where $\sigma_{\mathrm{I}}(\rho)(\mathfrak{p}_t)$ is the probability of Player I choosing flow $\mathfrak{p}_t$ along $\rho$ , and $\sigma_{\mathrm{II}}(\rho)(\theta)$ is that of Player II determining atomic manipulation $\mathcal{M}_{\theta,\tau}$ along $\rho$ . Also, $\rho T_{\mathrm{I}}(last(\rho), \mathfrak{p}_t)$ and $\rho T_{\mathrm{II}}(last(\rho), \theta)$ are the resulting paths of Player I, Player II applying $\sigma_{\mathrm{I}}$ , $\sigma_{\mathrm{II}}$ , respectively, i.e., extending $\rho$ by adding a new state after transition.
+
+# 4.2. Robustness guarantees
+
+We now confirm that the game can return the optical value of the reward function as the solution to the FMSR problem. Proof of Theorem 2 is in Appendix A.2 of [30].
+
+Theorem 2 (Guarantees). Given an input $\pmb{v}$ , a game model $\mathcal{G}(\mathcal{N},\pmb{v},L^p,d)$ , and an optimal strategy profile $\sigma = (\sigma_{\mathrm{I}},\sigma_{\mathrm{II}})$ , the finite maximum safe radius problem is to minimise the reward of initial state $s_0$ based on $\sigma$ , i.e.,
+
+$$
+\operatorname {F M S R} (\mathcal {N}, \mathrm {P} (\boldsymbol {v}), L ^ {p}, d, \tau) = \min R (\sigma , s _ {0}). \tag {7}
+$$
+
+# 5. Computation of the converging upper and lower bounds
+
+Since computing FMSR directly is difficult, we instead exploit algorithms to compute its upper and lower bounds. We emphasise that there is no approximation in the guarantees provided by the bounds, e.g., any adversarial perturbation of magnitude less than the lower bound will definitely not cause a misclassification. This includes all the possible inputs within the lower bound, not just a discrete subset.
+
+# 5.1. Upper bound: gradient-based search
+
+We propose a gradient-based search algorithm to compute an upper bound of FMSR. Here, we utilise the spatial features extracted from individual frames.
+
+Definition 9 (Spatial Features). Given a network $\mathcal{N}$ , let $\mathcal{N}_{\mathbb{C}}$ denote the convolutional part, then $\mathcal{N}_{\mathbb{C}}: \boldsymbol{v} \mapsto \eta \in \mathbb{R}^{l \times m}$ maps from input $\boldsymbol{v}$ to its extracted spatial features $\eta$ , which has consistent length $l$ of $\boldsymbol{v}$ and feature dimension $m$ of a frame. Then, we pass $\eta$ into the recurrent part $\mathcal{N}_{\mathbb{R}}$ and obtain the classification, i.e., $\mathcal{N}_{\mathbb{R}}: \eta \mapsto \mathcal{N}(\boldsymbol{v}, c)$ , $c \in C$ .
+
+The objective is to manipulate optical flow as imperceptibly as possible while altering the final classification. We
+
+write the objective function as follows:
+
+$$
+\begin{array}{l} \forall t \in [ 1, l - 1 ], t \in \mathbb {N} ^ {+}, \min _ {\mathbf {p} _ {t}} + \epsilon \cdot \nabla_ {\mathbf {p} _ {t}} (\mathcal {N}, \boldsymbol {v}) \\ s. t. \quad \nabla_ {\mathbf {p} _ {t}} (\mathcal {N}, \boldsymbol {v}) = \frac {\partial 1 _ {\boldsymbol {v}} ^ {\mathcal {N}}}{\partial \eta} \odot \frac {\partial \eta}{\partial \mathbf {p} _ {t}} \tag {8} \\ \end{array}
+$$
+
+where $\epsilon$ is a constant, and $\nabla_{\mathbb{P}_t}(\mathcal{N},\boldsymbol {v})$ is the perturbation imposed on $\mathfrak{p}_t$ . The key point is to minimise $\nabla_{\mathfrak{p}_t}(\mathcal{N},\boldsymbol {v})$ so that the perturbation is not noticeable while simultaneously changing $\mathcal{N}(\boldsymbol {v})$ . Here, we utilise the loss of $\mathcal{N}$ on $\boldsymbol{v}$ , denoted as $1_{\boldsymbol{v}}^{\mathcal{N}}$ , to quantify the classification change. Intuitively, if $1_{\boldsymbol{v}}^{\mathcal{N}}$ increases, $\mathcal{N}(\boldsymbol {v})$ is more likely to change. By utilising the concept of spatial features $\eta$ , we rewrite $\nabla_{\mathfrak{p}_t}(\mathcal{N},\boldsymbol {v})$ as $\partial 1_{\boldsymbol{v}}^{\mathcal{N}} / \partial \eta \odot \partial \eta /\partial \mathfrak{p}_t$ , where $\partial 1_{\boldsymbol{v}}^{\mathcal{N}} / \partial \eta$ denotes the gradient of the network's loss w.r.t. the spatial features, $\partial \eta /\partial \mathfrak{p}_t$ denotes the gradient of the spatial features w.r.t. the optical flow, and $\odot$ denotes the Hadamard product.
+
+We introduce the computation of the two parts below. On one hand, $\partial \eta / \partial \mathfrak{p}_t$ essentially exhibits the relation between spatial features and optical flow. Here we reuse input manipulation (Definition 5) to compute $\partial \eta / \partial \mathfrak{p}_t$ , though instead of manipulating the flow we impose perturbation directly on the frame. Intuitively, we manipulate the pixels of each frame to see how the subtle optical flow between the original and the manipulated frames will influence the spatial features. Each time we manipulate a single pixel of a frame, we get a new frame which is slightly different. If we perform $\mathcal{M}_{\Theta,\tau}$ on pixel $\mathcal{F}[m,n]$ , and denote the manipulated frame as $\mathcal{F}_{m,n}$ , its spatial features as $\eta_{m,n}$ , the subtle optical flow between $\mathcal{F}_{m,n}$ and $\mathcal{F}$ as $\delta \mathfrak{p}_{m,n}$ , then $\partial \eta / \partial \mathfrak{p}_t$ can be computed as in Equation (9) below.
+
+$$
+\frac {\partial \eta}{\partial \mathbf {p} _ {t}} = \left( \begin{array}{c c c} \frac {\| \eta_ {1 , 1} - \eta \| _ {p}}{\| \delta \mathbf {p} _ {1 , 1} \| _ {p}} & \dots & \frac {\| \eta_ {1 , w} - \eta \| _ {p}}{\| \delta \mathbf {p} _ {1 , w} \| _ {p}} \\ \vdots & \ddots & \vdots \\ \frac {\| \eta_ {h , 1} - \eta \| _ {p}}{\| \delta \mathbf {p} _ {h , 1} \| _ {p}} & \dots & \frac {\| \eta_ {w , h} - \eta \| _ {p}}{\| \delta \mathbf {p} _ {w , h} \| _ {p}} \end{array} \right) \tag {9}
+$$
+
+On the other hand, $\partial \mathbb{1}_{\boldsymbol{v}}^{\mathcal{N}} / \partial \eta$ shows how the spatial features will influence the classification, which can be reflected by the loss of the network. After getting $\eta$ from $\mathcal{N}_{\mathbb{C}}$ , we can obtain $\mathbb{1}_{\boldsymbol{v}}^{\mathcal{N}}$ from $\mathcal{N}_{\mathbb{R}}$ . If we perform pixel manipulation $\mathcal{M}_{\Theta,\tau}(\mathcal{F}[m,n])$ on frame $\mathcal{F}$ , and obtain a new input, denoted as $\boldsymbol{v}_{\mathcal{F}[m,n]}$ , then for this frame we have the gradient in Equation (10) below.
+
+$$
+\frac {\partial \mathbf {l} _ {\boldsymbol {v}} ^ {\mathcal {N}}}{\partial \eta} = \left( \begin{array}{c c c} \frac {\mathbf {l} _ {\boldsymbol {v} , \mathcal {F} [ 1 , 1 ]} ^ {\mathcal {N}} - \mathbf {l} _ {\boldsymbol {v}} ^ {\mathcal {N}}}{\| \eta_ {1 , 1} - \eta \| _ {p}} & \dots & \frac {\mathbf {l} _ {\boldsymbol {v} , \mathcal {F} [ 1 , w ]} ^ {\mathcal {N}} - \mathbf {l} _ {\boldsymbol {v}} ^ {\mathcal {N}}}{\| \eta_ {1 , w} - \eta \| _ {p}} \\ \vdots & \ddots & \vdots \\ \frac {\mathbf {l} _ {\boldsymbol {v} , \mathcal {F} [ h , 1 ]} ^ {\mathcal {N}} - \mathbf {l} _ {\boldsymbol {v}} ^ {\mathcal {N}}}{\| \eta_ {h , 1} - \eta \| _ {p}} & \dots & \frac {\mathbf {l} _ {\boldsymbol {v} , \mathcal {F} [ w , h ]} ^ {\mathcal {N}} - \mathbf {l} _ {\boldsymbol {v}} ^ {\mathcal {N}}}{\| \eta_ {w , h} - \eta \| _ {p}} \end{array} \right) \tag {10}
+$$
+
+Remark. From Definition 9, we know that the spatial features $\eta = \mathcal{N}_{\mathsf{C}}(\pmb{v})$ only depend on each individual frame $\mathcal{F}$ of $\pmb{v}$ and do not capture the temporal information be
+
+Algorithm 1: Admissible A* for DNN Verification
+Input: Game $\mathcal{G}(\mathcal{N},\boldsymbol {v},L^p,d)$ , terminating condition tc Output: Lower bound of FMSR
+1 procedure ADMISSIBLEA\* $(\mathcal{G}(\mathcal{N},\boldsymbol {v},L^{p},d),tc)$ .
+2 root $\leftarrow s_0$ .
+3 while $(\neg tc)$ do
+4 P(root) $\leftarrow$ Player I(root, Farneback);
+5 for pt in P(root) do
+6 $\mathrm{pt}_i[i]\gets \mathrm{Player~II}(\mathrm{pt}_i)$ .
+7 newnodes $\leftarrow \mathcal{M}_{\theta ,\tau}(\mathrm{pt}_i)(i)$ .
+8 for node in newnodes do
+9 dist $\leftarrow$ DistanceEstimation(node);
+10 root $\leftarrow$ MaximumSafeRadius(distance);
+11 return $\| \mathsf{P}(\mathsf{root}) - \mathsf{P}(\mathsf{s}_0)\| _p$
+
+tween frames. That is, when $\mathcal{N}_{\mathbb{C}}$ remains unchanged, $\eta$ and $\mathcal{F}$ have a direct relation, which indicates that the gradient of the latter can reflect that of the former. Therefore, during implementation, instead of the distance between $\eta_{m,n}$ and $\eta$ , we calculate that between $\mathcal{F}_{m,n}$ and $\mathcal{F}$ , i.e., $\| \mathcal{F}_{m,n} - \mathcal{F}\|_p$ .
+
+# 5.2. Lower bound: admissible A*
+
+We exploit admissible $\mathbf{A}^*$ to compute a lower bound of Player I's reward, i.e., FMSR. An $\mathbf{A}^*$ algorithm gradually unfolds the game model into a tree, in the sense that it maintains a set of children nodes of the expanded partial tree, and computes an estimate for each node. The key point is that in each iteration it selects the node with the least estimated value to expand. The estimation comprises two components: (1) the exact reward up to the current node, and (2) the estimated reward to reach the goal node. To guarantee the lower bound, we need to make sure that the estimated reward is minimal. For this part, we let the $\mathbf{A}^*$ algorithm be admissible, which means that, given a current node, it never overestimates the reward to the terminal goal state. For each state $s$ in the game model $\mathcal{G}$ , we assign an estimated distance value DistanceEstimation $(s) = \| \mathsf{P}(s) - \mathsf{P}(s_0)\| _p +$ heuristic $(\mathsf{P}(s))$ , where $\| \mathsf{P}(s) - \mathsf{P}(s_0)\| _p$ is the distance from the original state $s_0$ to the current state $s$ based on the $L^p$ norm, and heuristic $(\mathsf{P}(s))$ is the admissible heuristic function that estimates the distance from the current state $s$ to the terminal state. Here, we use $\tilde{d} (L^p,\tau)$ in Equation (4). We present the admissible $\mathbf{A}^*$ algorithm in Algorithm 1.
+
+# 6. Experimental results
+
+This section presents the evaluation results of our framework to approximate the maximum safe radius w.r.t. optical flow on a video dataset. We perform the experiments on a Linux server with NVIDIA GeForce GTX Titan Black GPUs, and the operating system is Ubuntu 14.04.3 LTS. The results are obtained from a VGG16 [21] + LSTM [13] network on the UCF101 [22] video dataset. Details about
+
+
+(a) SoccerJuggling at 0 s and 1 s.
+
+
+(b) Optical flow and its magnitude (left) and direction (right).
+
+
+
+
+
+
+Figure 4. Illustration of how optical flow is able to capture the dynamics of the moving objects. (a) Two sampled frames from SoccerJuggling with original size $320 \times 240 \times 3$ . (b) The optical flow (red arrows) extracted between the frames, and its two characteristics: magnitude and direction.
+
+
+(b) magnitude: original, difference, and perturbed.
+
+
+
+
+
+
+(a) Frame at 1 s.
+(c) Frame at 2s.
+Figure 5. Imperceptible perturbations on optical flow, in terms of magnitude and direction, leading to misclassification from LongJump (100.00%) to FloorGymnastics (86.10%). (a)(c) Sampled frames at 1 s and 2 s with size $224 \times 224 \times 3$ . (b) Original and perturbed magnitude. (d) Original and perturbed direction.
+
+
+(d) direction: original, difference, and perturbed.
+
+
+
+
+
+the dataset, the network structure, and training/testing parameters can be found in Appendix A.3 of [30].
+
+# 6.1. Adversarial examples via manipulating flows
+
+We illustrate how optical flow can capture the temporal dynamics of the moving objects in neighbouring frames. In this case, we exploit the Gunnar Farnebäck algorithm [5] as it computes the optical flow for all the pixels in a frame, i.e., dense optical flow, instead of a sparse feature set. Figure 4 presents an optical flow generated from two adjacent frames of a video labelled as SoccerJuggling: (a) shows two frames sampled at $0\mathrm{s}$ and $1\mathrm{s}$ ; and (b) exhibits the characteristics of the flow: magnitude and direction. We observe that, when the indoor background essentially remains unchanged, the motion of playing football is clearly captured by the flow. More examples are included in Appendix A.4 of [30].
+
+We now demonstrate how a very slight perturbation on the flow, almost imperceptible to human eyes, can lead to a
+
+
+Figure 6. Examples of unsafe and safe perturbations on the optical flows of a HammerThrow video. Top row: sampled frames from 0 s to 3 s. 2nd row: optical flows of the frames from 0 s to 4 s. 3rd row: unsafe perturbations on the flows corresponding to the upper bound. Bottom row: safe perturbations reflecting the lower bound.
+
+misclassification of the whole video. Figure 5 exhibits that a video originally classified as LongJump with confidence $100.00\%$ is manipulated into FloorGymnastics with confidence $86.10\%$ . Two sampled frames at 1 s and 2 s are shown in the 1st column. If we compare the original optical flow of magnitude and direction (2nd column) generated from the frames with the perturbed ones (4th column), we can hardly notice the difference (3rd column). However, the classification of the video has changed.
+
+# 6.2. Converging upper and lower bounds
+
+We illustrate the convergence of the bound computation for the maximum safe radius with respect to manipulations on the optical flows extracted from the consecutive frames of a video. Take a HammerThrow video as an example. Figure 6 exhibits four sampled frames (top row) and the optical flows extracted between them (2nd row). By utilising our framework, we present an approximation of MSR in Figure 7, where the red line indicates the descending trend of the upper bound, whereas the blue line denotes the ascending trend of the lower bound. Intuitively, after 20 iterations of the gradient-based algorithm, the upper bound, i.e., minimum distance to an adversarial example, is 5670.31 based on the $L^2$ distance metric. That is, manipulations imposed on the flows exceeding this upper bound may be unsafe. Figure 6 (3rd row) shows some of such unsafe perturbations on each optical flow, which result in the misclassification of the video into FrontCrawl with confidence $99.86\%$ . As
+
+
+Figure 7. Converging bounds of the maximum safe radius of the HammerThrow video with respect to manipulations on extracted flows. Decreasing upper bound from the gradient-based algorithm shown in red, and increasing lower bound from admissible $\mathrm{A}^*$ in blue. Note that these two vertical axes have different scales.
+
+
+(a) Brightness increase and the corresponding unaffected optical flow.
+
+
+(b) Lower bounds of the maximum safe radius.
+Figure 8. Safe brightness changes to the HammerThrow video and the corresponding lower bounds of the maximum safe radius. (a) The frame at $2\mathrm{s}$ of HammerThrow with increasing brightness, and the optical flow extracted from the same frame taking into account the brightness change. (c) The ascending lower bounds of the maximum safe radius reflecting the brightness change.
+
+for the lower bound, we observe that, after 1000 iterations of the admissible $\mathrm{A}^*$ algorithm, the lower bound reaches 52.95. That is, manipulations within this $L^2$ norm ball are absolutely safe. Some of such safe perturbations can be found in the bottom row of Figure 6. Due to space limit, we include another example in Appendix A.5 of [30].
+
+# 6.3. Extension to naturally plausible distortions
+
+Our framework can be extended to practical applications where distortions are more natural and physically plausible to the modality of the data itself, because all the perturbations preserving the semantic content of a video are essentially compositions of various atomic manipulations, and thus can be easily incorporated.
+
+Take the "brightness change" perturbation as an example. As illustrated in Figure 8, we increase the brightness of
+
+
+Figure 9. Some possible extensions of the adversarial perturbations to more naturally plausible distortions. Top: "camera occlusion" to the SoccerJuggling video with the Horn-Schunck optical flow method. Middle: "horizontal flip" to the FloorGymnastics video. Bottom: "angular rotation" to the FrontCrawl video.
+
+the HammerThrow video on the frame level. That is, each pixel in the same frame is simultaneously brightened by the atomic manipulation $\tau$ , thus resulting in the overall distance to the original video increasing by $d'(L^p, \tau \cdot w \cdot h)$ , where $w$ denotes the width of the frame and $h$ height. The corresponding lower bounds of MSR are computed in Figure 8(b). Intuitively, this means that any degree of brightness alteration is definitely safe as long as the distance to the original video is less than the computed lower bound. For instance, after 10 iterations, the lower bound is 548.68 based on the $L^2$ norm, then any frame-level brightness increase less than 548.68 in the Euclidean distance will not change the classification of this video. One interesting phenomenon observed is that, as exhibited in Figure 8(a), when the brightness of a frame increases, the extracted optical flow on the same frame is not significantly affected, due to the fact that the motion is relatively unchanged. In other words, optical flow can naturally discard some perturbations that do not alter the underlying temporal dynamics.
+
+Apart from the "brightness change", we include some other possible natural distortions of the adversarial perturbations in Figure 9. We observe that the "camera occlusion" here is very similar to the safe perturbations of the HammerThrow video in Figure 6 (bottom row), and thus can be handled using similar methods. The "horizontal flip" and the "angular rotation" involve manipulations that form a group, and to deal with those our approach would need to be extended, for example by incorporating network invariances. Finally, regarding these various adversarial perturbations, we remark that whether the perturbations are visible for a human largely depends on the manipulation type - with the same distance to the original input, manipulations such as these physically plausible distortions are cer-
+
+
+Figure 10. Different lower bounds of the maximum safe radius of a HammerThrow video with varying number of manipulated flows.
+
+tainly more visible than unsafe perturbations produced by the gradient-based search algorithm and the safe perturbations created from the admissible $\mathrm{A}^*$ algorithm.
+
+# 6.4. Efficiency and scalability
+
+As for the computation time, the upper bound requires the gradient of optical flow with respect to the frame, and because we extract dense optical flow, the algorithm needs to traverse each pixel of a frame to impose atomic manipulations; thus it takes around 30 minutes to retrieve the gradient of each frame. Once the gradient of the whole video is obtained, and the framework enters into the cooperative game, i.e., the expansion of the tree, each iteration takes minutes. Meanwhile, for the lower bound, the admissible $\mathrm{A}^*$ algorithm expands the game tree in each iteration which takes minutes, and updates the lower bound wherever applicable. Note that initially the lower bound may be updated in each iteration, but when the size of the game tree increases, it can take hours to update. Moreover, we analyse the scalability of our framework via an example of a HammerThrow video in Figure 10, which shows the lower bounds obtained with respect to varying dimensions of the manipulated flows. We observe that, within the same number of iterations, manipulating fewer flows leads to faster convergence, especially when the flows contain more spatial and temporal features.
+
+# 7. Conclusion
+
+In this work, we study the maximum safe radius problem for neural networks, including CNNs and RNNs, with respect to the optical flow extracted from sequential videos. Possible future work includes extending our framework to provide robustness guarantees for application domains where time-series input data and recurrent units are also involved, for example natural language processing.
+
+Acknowledgements: This project has received funding from the European Research 20 Council (ERC) under the European Unions Horizon 2020 research and innovation programme (grant agreement No. 834115) and the EPSRC Programme Grant on Mobile Autonomy (EP/M019918/1).
+
+# References
+
+[1] Andrew Burton and John Radford. Thinking in perspective: critical essays in the study of thought processes, volume 646. Routledge, 1978.
+[2] 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.
+[3] Souradeep Dutta, Susmit Jha, Sriram Sankaranarayanan, and Ashish Tiwari. Output range analysis for deep feedforward neural networks. In NASA Formal Methods, pages 121-138, 2018.
+[4] Rüdiger Ehlers. Formal verification of piece-wise linear feed-forward neural networks. In Automated Technology for Verification and Analysis, pages 269-286, 2017.
+[5] Gunnar Farnebäck. Two-frame motion estimation based on polynomial expansion. In Scandinavian conference on Image analysis, pages 363-370. Springer, 2003.
+[6] Santiago Fernández, Alex Graves, and Jürgen Schmidhuber. An application of recurrent neural networks to discriminative keyword spotting. In International Conference on Artificial Neural Networks, pages 220-229. Springer, 2007.
+[7] Timon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov, Swarat Chaudhuri, and Martin Vechev. AI2: Safety and robustness certification of neural networks with abstract interpretation. In 2018 IEEE Symposium on Security and Privacy (SP), pages 3-18, May 2018.
+[8] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015.
+[9] Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In 2013 IEEE international conference on acoustics, speech and signal processing, pages 6645–6649. IEEE, 2013.
+[10] Alex Graves and Jürgen Schmidhuber. Frameworkwise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Networks, 18(5-6):602-610, 2005.
+[11] Matthias Hein and Maksym Andriushchenko. Formal guarantees on the robustness of a classifier against adversarial manipulation. In Advances in Neural Information Processing Systems 30, pages 2266-2276. 2017.
+[12] Sepp Hochreiter, Martin Heusel, and Klaus Obermayer. Fast model-based protein homology detection without alignment. Bioinformatics, 23(14):1728-1736, 2007.
+[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997.
+[14] Xiaowei Huang, Marta Kwiatkowska, Sen Wang, and Min Wu. Safety verification of deep neural networks. In International Conference on Computer Aided Verification, pages 3-29. Springer, 2017.
+[15] Nathan Inkawich, Matthew Inkawich, Yiran Chen, and Hai Li. Adversarial attacks for optical flow-based action recognition classifiers. arXiv preprint arXiv:1811.11875, 2018.
+[16] Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient SMT solver
+
+for verifying deep neural networks. In International Conference on Computer Aided Verification, pages 97-117. Springer, 2017.
+[17] Ching-Yun Ko, Zhaoyang Lyu, Lily Weng, Luca Daniel, Ngai Wong, and Dahua Lin. POPQORN: Quantifying robustness of recurrent neural networks. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 3468-3477, 2019.
+[18] Bruce D. Lucas and Takeo Kanade. An iterative image registration technique with an application to stereo vision. In Proceedings of the 7th International Joint Conference on Artificial Intelligence - Volume 2, IJCAI'81, pages 674-679, 1981.
+[19] Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In 2016 IEEE European Symposium on Security and Privacy (EuroS&P), pages 372-387. IEEE, 2016.
+[20] Nicolas Papernot, Patrick McDaniel, Ananthram Swami, and Richard Harang. Crafting adversarial input sequences for recurrent neural networks. In MILCOM 2016-2016 IEEE Military Communications Conference, pages 49-54, 2016.
+[21] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, 2015.
+[22] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. In CRCV-TR-12-01, 2012.
+[23] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104-3112, 2014.
+[24] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014.
+[25] Qinglong Wang, Kaixuan Zhang, Xue Liu, and C Lee Giles. Verification of recurrent neural networks through rule extraction. arXiv preprint arXiv:1811.06029, 2018.
+[26] David H Warren and Edward R Strelow. Electronic spatial sensing for the blind: contributions from perception, rehabilitation, and computer vision, volume 99. Springer Science & Business Media, 2013.
+[27] Xingxing Wei, Jun Zhu, Sha Yuan, and Hang Su. Sparse adversarial perturbations for videos. In Proceedings of the Thirty-Third AAAI Conference on Artificial Intelligence, pages 8973–8980, 2019.
+[28] Tsui-Wei Weng, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, Dong Su, Yupeng Gao, Cho-Jui Hsieh, and Luca Daniel. Evaluating the robustness of neural networks: An extreme value theory approach. In 6th International Conference on Learning Representations, 2018.
+[29] Tsui-Wei Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Luca Daniel, Duane Boning, and Inderjit Dhillon. Towards fast computation of certified robustness for ReLU networks. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 5276-5285, 2018.
+
+[30] Min Wu and Marta Kwiatkowska. Robustness guarantees for deep neural networks on videos. arXiv preprint arXiv:1907.00098, 2019.
+[31] Min Wu, Matthew Wicker, Wenjie Ruan, Xiaowei Huang, and Marta Kwiatkowska. A game-based approximate verification of deep neural networks with provable guarantees. Theoretical Computer Science, 807:298 - 329, 2020.
+[32] Huan Zhang, Tsui-Wei Weng, Pin-Yu Chen, Cho-Jui Hsieh, and Luca Daniel. Efficient neural network robustness certification with general activation functions. In Advances in Neural Information Processing Systems 31, pages 4939–4948. 2018.
\ No newline at end of file
diff --git a/robustnessguaranteesfordeepneuralnetworksonvideos/images.zip b/robustnessguaranteesfordeepneuralnetworksonvideos/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6c6b097a7b69ef6dd7251052d9a995f26923a93a
--- /dev/null
+++ b/robustnessguaranteesfordeepneuralnetworksonvideos/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:19626f28621984fc24474bb4482c4401aac70625a38fdf32b0c25bc2d1b43b9f
+size 413544
diff --git a/robustnessguaranteesfordeepneuralnetworksonvideos/layout.json b/robustnessguaranteesfordeepneuralnetworksonvideos/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2861472a0057d20df1077b0ef940b572f589a63c
--- /dev/null
+++ b/robustnessguaranteesfordeepneuralnetworksonvideos/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c0fa55f104798a622b9a87f248864998c85567f6a5665f73a3f9d17ecc300f38
+size 584468
diff --git a/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_content_list.json b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ed036967caf65d622018cf4e8e8294bcc612f3e2
--- /dev/null
+++ b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0dadcbd79a36582c1d052b307477adce96af01bece0e1aca4ed89f0827866a66
+size 80292
diff --git a/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_model.json b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6341cdbda26c813601d2d48ecf5f57d7507976aa
--- /dev/null
+++ b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:323f4b3bec2193199f07878beb10710e11479426507ae5ae8d60dddf3346d45e
+size 95841
diff --git a/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_origin.pdf b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0d06bf1f615dc5087988ba6c2baa9469546b5e6c
--- /dev/null
+++ b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/8bf8cc8d-ee94-49a9-8113-be6935eba97f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2baff2ad1afd2a75055127341b180f5bd748d2c6ffe221932ccd86c26c6fcea4
+size 3711796
diff --git a/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/full.md b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..25655c704a1ea0d9ac8bd2ea7691f199fd4d4f36
--- /dev/null
+++ b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/full.md
@@ -0,0 +1,344 @@
+# Robust Object Detection under Occlusion with Context-Aware CompositionalNets
+
+Angtian Wang* Yihong Sun* Adam Kortylewski† Alan Yuille† Johns Hopkins University
+
+# Abstract
+
+Detecting partially occluded objects is a difficult task. Our experimental results show that deep learning approaches, such as Faster R-CNN, are not robust at object detection under occlusion. Compositional convolutional neural networks (CompositionalNets) have been shown to be robust at classifying occluded objects by explicitly representing the object as a composition of parts. In this work, we propose to overcome two limitations of CompositionalNets which will enable them to detect partially occluded objects: 1) CompositionalNets, as well as other DCNN architectures, do not explicitly separate the representation of the context from the object itself. Under strong object occlusion, the influence of the context is amplified which can have severe negative effects for detection at test time. In order to overcome this, we propose to segment the context during training via bounding box annotations. We then use the segmentation to learn a context-aware CompositionalNet that disentangles the representation of the context and the object. 2) We extend the part-based voting scheme in CompositionalNets to vote for the corners of the object's bounding box, which enables the model to reliably estimate bounding boxes for partially occluded objects. Our extensive experiments show that our proposed model can detect objects robustly, increasing the detection performance of strongly occluded vehicles from PASCAL3D+ and MS-COCO by $41\%$ and $35\%$ respectively in absolute performance relative to Faster R-CNN.
+
+# 1. Introduction
+
+In natural images, objects are surrounded and partially occluded by other objects. Recognizing partially occluded objects is a difficult task since the appearances and shapes of occluders are highly variable. Recent work [42, 21] has shown that deep learning approaches are significantly less robust than humans at classifying partially occluded ob
+
+
+Figure 1: Bicycle detection result for an image of the MS-COCO dataset. Blue box: ground truth; red box: detection result by Faster R-CNN; green box: detection result by context-aware CompositionalNet. Probability maps of three-point detection are to the right. The proposed context-aware CompositionalNet are able to detect the partially occluded object robustly.
+
+
+#
+
+
+C
+
+
+Rrrnne
+
+jects. Our experimental results show that this limitation of deep learning approaches is even amplified in object detection. In particular, we find that Faster R-CNN is not robust under partial occlusion, even when it is trained with strong data augmentation with partial occlusion. Our experiments show that this is caused by two factors: 1) The proposal network does not localize objects accurately under strong occlusion. 2) The classification network does not classify partially occluded objects robustly. Thus, our work highlights key limitations of deep learning approaches to object detection under partial occlusion that need to be addressed.
+
+In contrast to deep convolutional neural networks (DCNNs), compositional models can robustly classify partially occluded objects from a fixed viewpoint [11, 19] and detect semantic parts of partially occluded object [34, 40]. These models are inspired by the compositionality of human cognition [2, 33, 10, 3] and share similar characteristics with biological vision systems, such as bottom-up sparse compositional encoding and top-down attentional modulations found in the ventral stream [30, 29, 5]. Recent work [20] proposed the Compositional Convolutional Neural Network
+
+(CompositionalNet), a generative compositional model of neural feature activations that can robustly classify images of partially occluded objects. This model explicitly represents objects as compositions of parts, which are combined with a voting scheme that enables a robust classification based on the spatial configuration of a few visible parts. However, we find that CompositionalNets as proposed in [20] are not suitable for object detection because of two major limitations: 1) CompositionalNets, as well as other DCNN architectures, do not explicitly disentangle the representation of the context from that of the object. Our experiments show that this has negative effects on the detection performance since context is often biased in the training data (e.g. airplanes are often found in blue background). If objects are strongly occluded, the detection thresholds must be lowered. This in turn increases the influence of the objects' context and leads to false-positive detections in regions with no object (e.g. if a strongly occluded car must be detected, a false airplane might be detected in the sky, seen in Figure 4). 2) CompositionalNets lack mechanisms for robustly estimating the bounding box of the object. Furthermore, our experiments show that region proposal networks do not estimate the bounding boxes robustly when objects are partially occluded.
+
+In this work, we propose to build on and significantly extend CompositionalNets in order to enable them to detect partially occluded objects robustly. In particular, we introduce a detection layer and propose to decompose the image representation as a mixture of context and object representation. We obtain such decomposition by generalizing contextual features in the training data via bounding box annotations. This context-aware image representation enables us to control the influence of the context on the detection result. Furthermore, we introduce a robust voting mechanism to estimate the bounding box of the object. In particular, we extend the part-based voting scheme in CompositionalNets to also vote for two opposite corners of the bounding box in addition to the object center.
+
+Our extensive experiments show that the proposed context-aware CompositionalNets with robust bounding box estimation detect objects robustly even under severe occlusion (Figure 1), increasing the detection performance on strongly occluded vehicles from PASCAL3D+ [38] and MS-COCO [26] by $41\%$ and $35\%$ respectively in absolute performance relative to Faster R-CNN. In summary, we make several important contributions in this work:
+
+1. We propose to decompose the image representation in CompositionalNets as a mixture model of context and object representation. We demonstrate that such context-aware CompositionalNets allow for precise control of the influence of the object's context on the detection result, hence, increasing the robustness when classifying strongly occluded objects.
+
+2. We propose a robust part-based voting mechanism for bounding box estimation that enables the accurate estimation of an object's bounding box even under severe occlusion.
+
+3. Our experiments demonstrate that context-aware Com-positionalNets combined with a part-based bounding box estimation outperform Faster R-CNN networks at object detection under partial occlusion by a significant margin.
+
+# 2. Related Work
+
+Region selection under occlusion. The detection of an object involves the estimation of its location, class and bounding box. While a search over the image can be implemented efficiently, e.g. using a scanning window [24], the number of potential bounding boxes is combinatorial with the number of pixels. The most widely applied approach for solving this problem is to use Region Proposal Networks (RPNs) [13] which enable the learning of fast approaches to object detection [12, 28, 4]. However, our experiments demonstrate that RPNs do not estimate the bounding box of an object correctly under occlusion.
+
+Image classification under occlusion. The classification network in deep object detection approaches is typically chosen to be a DCNN, such as ResNet [14] or VGG [32]. However, recent work [42, 21] has shown that standard DCNNs are significantly less robust to partial occlusion compared to humans. A potential approach to overcome this limitation of DCNNs is to use data augmentation with partial occlusion [8, 39] or top-down cues [36]. However, our experiments demonstrate that data augmentation approaches have only a limited impact on the generalization of DCNNs under occlusion. In contrast to deep learning approaches, generative compositional models [17, 43, 9, 6, 23] have proven to be robust to partial occlusion in the context of detecting object parts [34, 19, 40] and recognizing objects from a fixed viewpoint [11, 22]. Additionally, CompositionalNets [20], which integrate compositional models with DCNN architecture, were shown to be significantly more robust for image classification under occlusion.
+
+Object Detection under occlusion. Sheng [37] et al. propose a boosted cascade framework for detecting partially visible objects. However, their approach uses handcrafted features and can only be applied to images where objects are artificially occluded by cutting out image patches. Additionally, a number of deep learning approaches have been proposed for detecting occluded objects [31, 27]; however, these methods require detailed part-level annotations to reconstruct the occluded objects. Xiang and Savarese [35] propose to use 3D models and to treat occlusion as a multi-label classification task. However, in a real-world scenario, the classes of occluders can be difficult to model in 3D and
+
+are often not known a priori (e.g. the particular type of fence in Figure 1). Also, other approaches are based on videos or stereo images [25, 16], however, we focus on object detection in still images. Most related to our work is part-based voting approaches [41, 15] that have proven to work reliably for semantic part detection under occlusion. However, these methods assume a fixed size bounding box which limits their applicability in the context of object detection.
+
+In this work, we extend CompositionalNets to context-aware object detectors with a part-based voting mechanism that can robustly estimate the object's bounding box even under very strong partial occlusion.
+
+# 3. Object Detection with CompositionalNets
+
+In Section 3.1 we discuss prior work on Compositional-Nets. We propose a generalization of CompositionalNets to detection in Section 3.2, introducing a detection layer and a robust bounding box estimation mechanism. Finally, we introduce context-aware CompositionalNets in Section 3.3, enabling the model to separate the context from the object representation, making it robust to contextual biases in the training data, while still being able to leverage contextual information under strong occlusion.
+
+Notation. The output of a layer $l$ in a DCNN is referenced as feature map $F^l = \psi (I,\Omega)\in \mathbb{R}^{H\times W\times D}$ , where $I$ is the input image and $\Omega$ are the parameters of the feature extractor. Feature vectors are vectors in the feature map $f_{p}^{l}\in \mathbb{R}^{D}$ at position $p$ , where $p$ is defined on the 2D lattice of $F^l$ with $D$ being the number of channels in the layer. We omit subscript $l$ in the following for convenience because this layer is fixed a priori in our experiments.
+
+# 3.1. Prior work: CompositionalNets
+
+CompositionalNets [20] are DCNNs with an inherent robustness to partial occlusion. Their architecture resembles that of a VGG-16 network [32], where the fully connected head is replaced with a differentiable generative compositional model of the feature activations $p(F|y)$ and $y$ is the category of the object. The compositional model is defined as a mixture of von-Mises-Fisher (vMF) distributions:
+
+$$
+p (F | \Theta_ {y}) = \sum_ {m} \nu_ {m} p (F | \theta_ {y} ^ {m}), \tag {1}
+$$
+
+$$
+p \left(F \mid \theta_ {y} ^ {m}\right) = \prod_ {p} p \left(f _ {p} \mid \mathcal {A} _ {p, y}, \Lambda\right), \tag {2}
+$$
+
+$$
+p \left(f _ {p} \mid \mathcal {A} _ {p, y}, \Lambda\right) = \sum_ {k} \alpha_ {p, k, y} p \left(f _ {p} \mid \lambda_ {k}\right), \tag {3}
+$$
+
+with $\{\nu_{m}\in \{0,1\} ,\sum_{m = 1}^{M}\nu_{m} = 1\}$ . Here $M$ is the number of mixtures of compositional models and $\nu_{m}$ is a binary assignment variable that indicates which mixture component is active. $\Theta_y = \{\theta_y^m = \{\mathcal{A}_y^m,\Lambda \} |m = 1,\dots ,M\}$ are the
+
+
+Figure 2: Object detection under occlusion with RPNs and proposed robust bounding box voting. Blue box: ground truth; red box: Faster R-CNN (RPN+VGG); yellow box: RPN+CompositionalNet; green box: context-aware CompositionalNet with robust bounding box voting. Note how the RPN-based approaches fail to localize the object, while our proposed approach can accurately localize the object.
+
+overall compositional model parameters and $\mathcal{A}_y^m = \{\mathcal{A}_{p,y}^m\}$ are the parameters of the mixture components at every position $p\in \mathcal{P}$ on the 2D lattice of the feature map $F$ .In particular, $\mathcal{A}_{p,y}^{m} = \{\alpha_{p,0,y}^{m},\dots ,\alpha_{p,K,y}^{m}|\sum_{k = 0}^{K}\alpha_{p,k,y}^{m} = 1\}$ are the vMF mixture coefficients, $K$ is the number of mixture components and $\Lambda = \{\lambda_k = \{\sigma_k,\mu_k\} |k = 1,\ldots ,K\}$ are the parameters of the vMF mixture distributions:
+
+$$
+p \left(f _ {p} \mid \lambda_ {k}\right) = \frac {e ^ {\sigma_ {k} \mu_ {k} ^ {T} f _ {p}}}{Z \left(\sigma_ {k}\right)}, \| f _ {p} \| = 1, \| \mu_ {k} \| = 1, \tag {4}
+$$
+
+where $Z(\sigma_k)$ is the normalization constant. The model parameters $\{\Omega, \{\Theta_y\}\}$ can be trained end-to-end as described in [20].
+
+Occlusion modeling. Following the approach presented in [19], CompositionalNets can be augmented with an occlusion model. Intuitively, an occlusion model defines a robust likelihood, where at each position $p$ in the image either the object model $p(f_{p}|\mathcal{A}_{p,y}^{m},\Lambda)$ or an occluder model $p(f_{p}|\beta ,\Lambda)$ is active:
+
+$$
+\begin{array}{l} p \left(F \mid \Theta_ {y} ^ {m}, \beta\right) = \prod_ {p} p \left(f _ {p}, z _ {p} ^ {m} = 0\right) ^ {1 - z _ {p} ^ {m}} p \left(f _ {p}, z _ {p} ^ {m} = 1\right) ^ {z _ {p} ^ {m}}, (5) \\ p \left(f _ {p}, z _ {p} ^ {m} = 1\right) = p \left(f _ {p} \mid \beta , \Lambda\right) p \left(z _ {p} ^ {m} = 1\right), (6) \\ p \left(f _ {p}, z _ {p} ^ {m} = 0\right) = p \left(f _ {p} \mid \mathcal {A} _ {p, y} ^ {m}, \Lambda\right) (1 - p \left(z _ {p} ^ {m} = 1\right)). (7) \\ \end{array}
+$$
+
+The binary variables $\mathcal{Z}^m = \{z_p^m\in \{0,1\} |p\in \mathcal{P}\}$ indicate if the object is occluded at position $p$ for mixture component
+
+
+Figure 3: Example of robust bounding box voting results. Blue box: ground truth; red box: bounding box by Faster R-CNN; green box: bounding box generated by robustly combining voting results. Our proposed part-based voting mechanism generates probability maps (right) for the object center (cyan point), the top left corner (purple point) and the bottom right corner (yellow point) of the bounding box.
+
+$m$ . The occluder model is defined as a mixture model:
+
+$$
+\begin{array}{l} p \left(f _ {p} | \beta , \Lambda\right) = \prod_ {n} p \left(f _ {p} | \beta_ {n}, \Lambda\right) ^ {\tau_ {n}} (8) \\ = \prod_ {n} \left(\sum_ {k} \beta_ {n, k} p \left(f _ {p} \mid \sigma_ {k}, \mu_ {k}\right)\right) ^ {\tau_ {n}}, (9) \\ \end{array}
+$$
+
+where $\{\tau_n\in \{0,1\} ,\sum_n\tau_n = 1\}$ indicates which component of the occluder model best explains the data. The parameters of the occluder model $\beta_{n}$ can be learned in an unsupervised manner from clustered features of random natural images that do not contain any object of interest.
+
+# 3.2. Detection with Robust Bounding Box Voting
+
+A natural way of generalizing CompositionalNets to object detection is to combine them with RPNs. However, our experiments in Section 4.1 show that RPNs cannot reliably localize strongly occluded objects. Figure 2 illustrates this limitation by depicting the detection results of Faster R-CNN trained with CutOut [8] (red box) and a combination of $\mathrm{RPN + }$ CompositionalNet (yellow box). We propose to address this limitation by introducing a robust part-based voting mechanism to predict the bounding box of an object based on the visible object parts (green box).
+
+CompositionalNets with detection layer. CompositionalNets as introduced in [20] are part-based object representations. In particular, the object model $p(F|\Theta_y)$ is decomposed into a mixture of compositional models $p(F|\theta_y^m)$ , where each mixture component represents the object class $y$ from a different pose [20]. During inference, each mixture component accumulates votes from part models $p(f_p|A_{p,y})$ across different spatial positions $p$ of the feature map $F$ . Note that CompositionalNets are learned from images that are cropped based on the bounding box of the object [20]. By making the object centered in the image (see Figure 5), each mixture component $p(F|\theta_y^m)$ can be thought
+
+
+Figure 4: Influence of context in aeroplane detection under occlusion. Blue box: ground truth; orange box: bounding box by CompositionalNets ( $\omega = 0.5$ ); green box: bounding box by Context-Aware CompositionalNets ( $\omega = 0.2$ ). Probability maps of the object center are on the right. Note how reducing the influence of the context improves the localization response.
+
+of as accumulating votes from the part models for the object being in the center of the feature map.
+
+Based on this intuition, we generalize Compositional-Nets to object detection by introducing a detection layer that accumulates votes for the object center over all positions $p$ in the feature map $F$ . In order to achieve this, we propose to compute the object likelihood by scanning. Thus, we shift the feature map w.r.t. the object model along all points $p$ from the 2D lattice of the feature map. This process will generate a spatial likelihood map:
+
+$$
+R = \left\{p \left(F _ {p} \mid \Theta_ {y}\right) \mid p \in \mathcal {P} \right\}, \tag {10}
+$$
+
+where $F_{p}$ denotes the feature map centered at the position $p$ . Using this generalization we can perform object localization by selecting all maxima in $R$ above a threshold $t$ after non-maximum suppression. Our proposed detection layer can be implemented efficiently with modern hardware using convolution-like operations.
+
+Robust bounding box voting. While Compositional-Nets can be generalized to localize partially occluded objects using our proposed detection layer, estimating the bounding box of an object under occlusion is more difficult because a significant amount of the object might not be visible (Figure 3). We propose to solve this problem by generalizing the part-based voting mechanism in CompositionalNets to vote for the bounding box corners in addition to the object center. In particular, we learn additional mixture components that model the expected feature activations $F$ around bounding box corners $p(F_{p}|\Theta_{y}^{c})$ , where $c = \{ct,bl,tr\}$ are the object center $ct$ and two opposite bounding box corners $\{bl,tr\}$ . Figure 3 illustrates the spatial likelihood maps $R^c$ of all three models. We generate a bounding box using the two points that have maximal likelihood. Note how the bounding boxes can be localized accurately despite large parts of the object being occluded.
+
+
+
+
+Figure 5: Context segmentation results. A standard CompositionalNet learns a joint representation of the image including the context. Our context-aware CompositionalNet will disentangle the representation of the context from that of the object based on the illustrated segmentation masks.
+
+
+
+
+
+
+
+
+
+We discuss how the parameters of all models can be learned jointly in an end-to-end manner in Section 3.4.
+
+# 3.3. Context-aware CompositionalNets
+
+CompositionalNets, as well as standard DCNNs, do not separate the representation of the context from the object. The context can be useful for recognizing objects due to biases, e.g. aeroplanes are often surrounded by blue sky. Relying too strongly on context can be misleading when objects are strongly occluded (Figure 4), since the detection thresholds must be lowered under strong occlusion. This in turn increases the influence of the objects' context and leads to false-positive detection in regions with no object. Hence, it is important to have control over the influence of contextual cues on the detection result.
+
+In order to gain control over the influence of context, we propose a Context-aware CompositionalNets (CA-CompositionalNets), which separates the representation of the context from the object in the original CompositionalNets by representing the feature map $F$ as a mixture of two models:
+
+$$
+p \left(f _ {p} \mid \mathcal {A} _ {p, y} ^ {m}, \chi_ {p, y} ^ {m}, \Lambda\right) = \omega p \left(f _ {p} \mid \chi_ {p, y} ^ {m}, \Lambda\right) + \tag {11}
+$$
+
+$$
+(1 - \omega) p \left(f _ {p} \mid \mathcal {A} _ {p, y} ^ {m}, \Lambda\right). \tag {12}
+$$
+
+Here, $\chi_{p,y}^{m}$ are the parameters of the context model that is defined to be a mixture of vMF likelihoods (Equation 3). The parameter $\omega$ is a prior that controls the trade-off between context and object, which is fixed a priori at test time. Note that setting $\omega = 0.5$ retains the original CompositionaNet as proposed in [20]. Figure 4 illustrates the benefits of reducing the influence of the context on the detection result under partial occlusion. The context parameters $\chi_{p,y}^{m}$ and object parameters $\mathcal{A}_{p,y}^{m}$ can be learned from the training data using maximum likelihood estimation. However, this presumes an assignment of the feature vectors $f_{p}$ in the training data to either the context or the object.
+
+Context segmentation. Therefore, we propose to segment the training images into context and object based on the available bounding box annotation. Here, our assumption is that any feature that has a receptive field outside of the scope of the bounding boxes would be considered as a part of the context. We first randomly extract features that are considered to be context into a population during training. Then, we cluster the population using K-means++ algorithm[1] and receive a dictionary of context feature centers $E = \{e_q \in \mathbb{R}^D | q = 1, \dots, Q\}$ . We apply a threshold on the cosine similarity $s(E, f_p) = \max_q[(e_q^T f_p) / (\| e_q \| \| f_p \|)]$ to segment the context and the object in any given training image (Figure 5).
+
+# 3.4. Training Context-Aware CompositionalNets
+
+We train our proposed CA-CompositionalNet including the robust bounding box voting mechanism jointly end-to-end using backpropagation. Overall, the trainable parameters of our models are $T^{c} = \{\Omega, \Lambda, \{\Theta_{y}^{c}\}, \{\chi_{y}^{c}\}\}$ where $c \in \{ct, bl, tr\}$ . The loss function has three main objectives: optimizing the parameters of the generative compositional model such that it can explain the data with maximal likelihood $(\mathcal{L}_{g})$ , while also localizing $(\mathcal{L}_{detect})$ and classifying $(\mathcal{L}_{cls})$ the object accurately in the training images. While $\mathcal{L}_{g}$ is learned from images $\hat{I}^{c}$ with feature maps $F^{c}$ that are centered at $c \in \{c, bl, tr\}$ , the other losses are learned from unaligned training images $I$ with feature maps $F$ .
+
+Training Classification with Regularization. We optimize the parameters jointly using SGD:
+
+$$
+\mathcal {L} _ {\text {c l s}} \left(y, y ^ {\prime}\right) = \mathcal {L} _ {\text {c l a s s}} \left(y, y ^ {\prime}\right) + \mathcal {L} _ {\text {w e i g h t}} (\Omega) \tag {13}
+$$
+
+where $\mathcal{L}_{\text{class}}(y, y')$ is the cross-entropy loss between the network output $y' = \psi(I, \Omega)$ and the true class label $y$ . We use a temperature $\mathcal{T}$ in the softmax classifier: $f(y)_i = \frac{e^{y_i \cdot \mathcal{T}}}{\sum_i e^{y_i \cdot \mathcal{T}}}$ . $\mathcal{L}_{\text{weight}} = \| \Omega \|_2^2$ is a weight regularization on the DCNN parameters.
+
+Training the generative context-aware CompositionalNet. The overall loss function for training the parameters of the generative context-aware model is composed of two terms:
+
+$$
+\mathcal {L} _ {g} \left(F ^ {c}, T\right) = \mathcal {L} _ {v m f} \left(F ^ {c}, \Lambda\right) \tag {14}
+$$
+
+$$
++ \sum_ {c} \sum_ {p} \mathcal {L} _ {\text {c o n}} \left(f _ {p} ^ {c}, \mathcal {A} _ {y} ^ {c}, \chi_ {y} ^ {c}\right) \tag {15}
+$$
+
+In order to avoid the computation of the normalization constants $\{Z[\sigma_k]\}$ , we assume that the vMF variances $\{\sigma_k\}$ are constant. Under this assumption, the vMF parameters $\{\mu_k\}$ can be optimized with the loss $\mathcal{L}_{vmf}(F,\Lambda) = \mathcal{C}\sum_{p}\min_{k}\mu_{k}^{T}f_{p}$ , where $\mathcal{C}$ is a constant factor [20]. The parameters of the context-aware model $\mathcal{A}_y^c$ and $\chi_y^c$ are learned by optimizing the context loss:
+
+$$
+\mathcal {L} _ {\text {c o n}} \left(f _ {p}, \mathcal {A} _ {y} ^ {c}, \chi_ {y} ^ {c}\right) = \pi_ {p} \mathcal {L} _ {\text {m i x}} \left(f _ {p}, \mathcal {A} _ {p, y} ^ {c}\right) \tag {16}
+$$
+
+where $\pi_p\in \{0,1\}$ is a context assignment variable that indicates if a feature vector $f_{p}$ belongs to the context or to the object model. We estimate the context assignments a priori using segmentation as described in Section 3.3. Given the assignments we can optimize the model parameters $\mathcal{A}_{p,y}^{c}$ by minimizing [21]:
+
+$$
+\mathcal {L} _ {m i x} \left(F, \mathcal {A} _ {y} ^ {c}\right) = - \sum_ {p} \left(1 - z _ {p} ^ {\uparrow}\right) \log \left[ \sum_ {k} \alpha_ {p, k, y} ^ {m \uparrow , c} p \left(f _ {p} \mid \lambda_ {k}\right) \right] \tag {17}
+$$
+
+The context parameters $\chi_{p,y}^{c}$ can be learned accordingly. Here, $z_{p}^{\uparrow}$ and $m^{\uparrow}$ denote the variables that were inferred in the forward process. Note that the parameters of the occluder model are learned a priori and then fixed.
+
+Training for localization and bounding box localization. We denote the normalized response map of the ground truth class as $X^{c} \in \mathbb{R}^{H \times W}$ and the ground truth annotation as $\bar{X}^{c} \in \mathbb{R}^{H \times W}$ . The elements of the response map are computed as:
+
+$$
+x _ {p} ^ {c} = \frac {x _ {p , \hat {m}}}{\sum_ {p} x _ {p , \hat {m}}}, \hat {m} = \underset {m} {\operatorname {a r g m a x}} \underset {p} {\max } p \left(f _ {p} \mid \mathcal {A} _ {p, y} ^ {m}, \chi_ {p, y} ^ {m}, \Lambda\right). \tag {18}
+$$
+
+The ground truth map $\bar{X}^c$ is a binary map where the ground truth position is set to $X^c(c) = 1$ and all other entries are set to zero. The detection loss is then defined as:
+
+$$
+\mathcal {L} _ {\text {d e t e c t}} \left(X ^ {c}, \bar {X} ^ {c}, F, T ^ {c}\right) = 1 - \frac {2 \cdot \sum_ {p} \left(x _ {p} ^ {c} \cdot \bar {x} _ {p} ^ {c}\right)}{\sum_ {p} x _ {p} ^ {c} + \sum_ {p} \bar {x} _ {p} ^ {c}} \tag {19}
+$$
+
+End-to-end training. We train all parameters of our model end-to-end with backpropagation. The overall loss function is:
+
+$$
+\begin{array}{l} \mathcal {L} = \mathcal {L} _ {c l s} \left(y, y ^ {\prime}\right) + \sum_ {c} \left(\epsilon_ {1} \mathcal {L} _ {g} \left(F ^ {c}, T ^ {c}\right) \right. (20) \\ + \epsilon_ {2} \mathcal {L} _ {\text {d e t e c t}} \left(X ^ {c}, \bar {X} ^ {c}, F, T ^ {c}\right)) (21) \\ \end{array}
+$$
+
+$\epsilon_{1}, \epsilon_{2}$ control the trade-off between the loss terms. The optimization process is discussed in more detail in Section 4.
+
+# 4. Experiments
+
+We perform experiments on object detection under artificially-generated and real-world occlusion.
+
+Datasets. While it is important to evaluate algorithms on real images of partially occluded objects, simulating occlusion enables us to quantify the effects of partial occlusion more accurately. Inspired by the success of datasets with artificially-generated occlusion in image classification [15], we propose to generate an analogous dataset for object detection. In particular, we build on the PASCAL3D+ dataset, which contains 12 classes of unoccluded objects. We synthesize an OccludedVehiclesDetection dataset similar to the
+
+
+Figure 6: Example of images in OccludedVehiclesDetection dataset. Each row shows increasing amounts of context occlusion, whereas each column shows increasing amounts of object occlusion.
+
+dataset proposed in [15] for classification, which contains 6 classes of vehicles at a fixed scale (224 pixels) and various levels of occlusion. The occluders, which include humans, animals and plants, are cropped from the MS-COCO dataset [26]. In an effort to accurately depict real-world occlusions, we superimpose the occluders onto the object, such that the occluders are placed not only inside the bounding box of the objects, but also on the background. We generate the dataset in a total of 9 occlusion levels along two dimensions. We define three levels of object occlusion: FG-L1: $20 - 40\%$ , FG-L2: $40 - 60\%$ and FG-L3: $60 - 80\%$ of the object area occluded. Furthermore, we define three levels of context occlusion around the object: BG-L1: $0 - 20\%$ , BG-L2: $20 - 40\%$ and BG-L3: $40 - 60\%$ of the context area occluded. An example of occlusion levels are showed in Figure 6.
+
+In order to evaluate the tested models on real-world occlusions, we test them on a subset of the MS-COCO dataset. In particular, we extract the same classes of objects and scale as in the OccludedVehiclesDetection dataset from the MS-COCO dataset. We select occluded images and manually separate them into two groups: light occlusion (2 sub-levels) and heavy occlusions (3 sub-levels), with increasing occlusion levels. This dataset is built from images in both Training2017 and Val2017 set of MS-COCO due to a limited amount of heavily occluded objects in MS-COCO Dataset. The light occlusion set contains 2890 images, and the heavy occlusion set contains 788 images. We term this dataset OccludedCOCO.
+
+Evaluation. In order to exclusively observe the effects of foreground and background occlusions on various models, we only consider the occluded object in the image for evaluation. Evidently, for the majority of the dataset, there is often only one object of a particular class that is present in the image. This enables us to quantify the effects of levels of occlusions in the foreground and background on the
+
+| method | FG L0 | FG L1 | FG L2 | FG L3 | Mean - |
| BG L0 | BG L1 | BG L2 | BG L3 | BG L1 | BG L2 | BG L3 | BG L1 | BG L2 | BG L3 |
| Faster R-CNN | 98.0 | 88.8 | 85.8 | 83.6 | 72.9 | 66.0 | 60.7 | 46.3 | 36.1 | 27.0 | 66.5 |
| Faster R-CNN with reg. | 97.4 | 89.5 | 86.3 | 89.2 | 76.7 | 70.6 | 67.8 | 54.2 | 45.0 | 37.5 | 71.1 |
| CA-CompNet via RPN ω=0.5 | 74.2 | 68.2 | 67.6 | 67.2 | 61.4 | 60.3 | 59.6 | 46.2 | 48.0 | 46.9 | 60.0 |
| CA-CompNet via RPN ω=0 | 73.1 | 67.0 | 66.3 | 66.1 | 59.4 | 60.6 | 58.6 | 47.9 | 49.9 | 46.5 | 59.6 |
| CA-CompNet via BBV ω=0.5 | 91.7 | 85.8 | 86.5 | 86.5 | 78.0 | 77.2 | 77.9 | 61.8 | 61.2 | 59.8 | 76.6 |
| CA-CompNet via BBV ω=0.2 | 92.6 | 87.9 | 88.5 | 88.6 | 82.2 | 82.2 | 81.1 | 71.5 | 69.9 | 68.2 | 81.3 |
| CA-CompNet via BBV ω=0 | 94.0 | 89.2 | 89.0 | 88.4 | 82.5 | 81.6 | 80.7 | 72.0 | 69.8 | 66.8 | 81.4 |
+
+Table 1: Detection results on the Occluded VehiclesDetection dataset under different levels of occlusions (BBV as in Bounding Box Voting). All models trained on PASCAL3D+ unoccluded dataset except Faster R-CNN with reg. was trained with CutOut. The results are measured by correct AP(\%) @IoU0.5, which means only corrected classified images with IoU > 0.5 of first predicted bounding box are treated as true-positive. Notice with $\omega = 0.5$ , context-aware model reduces to a CompositionalNet as proposed in [20].
+
+| method | light occ. | heavy occ. |
| L0 | L1 | L2 | L3 | L4 |
| Faster R-CNN | 81.7 | 66.1 | 59.0 | 40.8 | 24.6 |
| Faster R-CNN with reg. | 84.3 | 71.8 | 63.3 | 45.0 | 33.3 |
| Faster R-CNN with occ. | 85.1 | 76.1 | 66.0 | 50.7 | 45.6 |
| CA-CompNet via RPN ω=0 | 62.0 | 55.0 | 49.7 | 45.4 | 38.6 |
| CA-CompNet via BBV ω=0.5 | 83.5 | 77.1 | 70.8 | 51.7 | 40.4 |
| CA-CompNet via BBV ω=0.2 | 88.7 | 82.2 | 77.8 | 65.4 | 59.6 |
| CA-CompNet via BBV ω=0 | 91.8 | 83.6 | 76.2 | 61.1 | 54.4 |
+
+Table 2: Detection results on OccludedCOCO Dataset, measured by $\mathrm{AP}(\%)$ @IoU0.5. All models are trained on PASCAL3D+ dataset, Faster R-CNN with reg. is trained with CutOut and Faster R-CNN with occ. is trained with images in the same dataset but occluded by all levels of occlusion with the same set of occluders.
+
+accuracy of the model predictions. Thus, the means of object detection evaluation must be altered for our proposed occlusion dataset. Given any model, we only evaluate the bounding box proposal with the highest confidence given by the classifier via IoU at $50\%$ .
+
+Runtime. The convolution-like detection layer has an inference time of 0.3s per image.
+
+Training setup. We implement the end-to-end training of our CA-CompositionalNet with the following parameter settings: training minimizes loss described in Equation 20, with $\epsilon_{1} = 0.2$ and $\epsilon_{2} = 0.4$ . We applied the Adam Optimizer [18] with various learning rates of $lr_{vgg} = 2 \cdot 10^{-6}$ , $lr_{vc} = 2 \cdot 10^{-5}$ , $lr_{mixture\_model} = 5 \cdot 10^{-5}$ and $lr_{corner\_model} = 5 \cdot 10^{-5}$ on different parts of CompositionalNets. The model is trained for a total of 2 epochs with 10600 iteration per epoch. The training costs in total of 3 hours on a machine with 4 NVIDIA TITAN Xp GPUs.
+
+Faster R-CNN is trained for 30000 iterations, with a learning rate, $lr = 1 \cdot 10^{-3}$ , and a learning rate decay,
+
+$lr_{decay} = 0.1$ . Specifically, the pretrained VGG-16 [32] on the ImageNet dataset [7] was modified in its fully-connected layer to accommodate the experimental settings. In the experiment on OccludedCOCO, we set the threshold of Faster R-CNN to 0, preventing the occluded targets to be ignored due to low confidence and guarantees at least one proposal in the required class.
+
+# 4.1. Object Detection under Simulated Occlusion
+
+Table 1 shows the results of the tested models on the OccludedVehiclesDetection dataset (see Figure 7 for qualitative results). The models are trained on the images from the original PASCAL3D+ dataset with unoccluded objects.
+
+Faster R-CNN. As we evaluate the performance of the Faster R-CNN, we observe that under low levels of occlusion, the neural network performs well. In mid to high levels of occlusions, however, the neural network fails to detect the objects robustly. When trained with strong data augmentation in terms of partial occlusion using CutOut [8], the detection performance increases under strong occlusion. However, the model still suffers from a $59.9\%$ drop in performance on strong occlusion, compared to the non-occlusion setup. We suspect that the inaccurate prediction is due to two major factors: 1) The Region Proposal Network (RPN) in the Faster R-CNN is not able to predict accurate proposals of objects that are heavily occluded. 2) The VGG-16 classifier cannot successfully classify valid object regions under heavy occlusion.
+
+We proceed to investigate the performance of the region proposals on occluded images. In particular, we replace the VGG-16 classifier in the Faster R-CNN with a standard CompositionalNet classifier [20], which is expected to be more robust to occlusion. From the results in Table 1, we observe two phenomena: 1) In high levels of occlusion, the performance is better than Faster R-CNN. Thus, the CompositionalNet generalizes to heavy occlusions better than the VGG-16 classifier. 2) In low levels of occlu
+
+
+
+
+Figure 7: Selected examples of detection results on the OccludedVehiclesDetection dataset. All of these 6 images are the heaviest occluded images (foreground level 3, background level 3). Blue box: ground truth; green box: proposals of CA-CompositionalNet via BB Voting; yellow box: proposals of CA-CompositionalNet via RPN; red box: proposals of Faster R-CNN.
+
+sion, the performance is worse than Faster R-CNN. The proposals generated by the RPN seem to be not accurate enough to be correctly classified, as CompositionalNets are high-precision models and require a precise alignment of the bounding box to the object center.
+
+Effect of robust bounding box voting. Our approach of estimating corners of the bounding box substantially improves the performance of the CompositionalNets, in comparison to the RPN. This further validates our conclusion that the CompositionalNet classifier requires precise proposals to classify objects correctly with partial occlusions.
+
+Effect of context-aware representation. With $\omega = 0.5$ , we observe that the precision of the detection decreases. Furthermore, the performance between $\omega = 0.5$ and $\omega = 0$ follows a similar trend over all three levels of foreground occlusions: the performance decreases as the level of background occlusion increases from BG-L1 to BG-L3. This further confirms our understanding of the effects of the context as a valuable source of information in object detection.
+
+# 4.2. Object Detection under Realistic Occlusion
+
+In the following, we evaluate our model on the OccludedCOCO dataset. As shown in Table 2 and Figure 8, our CA-CompositionalNet with robust bounding box voting outperforms Faster R-CNN and CompNet+RPN significantly. In particular, fully deactivating the context $(\omega = 0)$ increases the performance compared to the original model $(\omega = 0.5)$ , indicating that too much weight is put on the contextual information in the standard CompNets. Furthermore, controlling the prior of the context model to $\omega = 0.2$ reaches an optimal performance under strong occlusion where the context is helpful, but does slightly decrease the performance under low occlusion.
+
+
+
+
+Figure 8: Selected examples of detection results on OccludedCOCO Dataset. Blue box: ground truth; green box: proposals of CA-CompositionalNet via BB Voting; yellow box: proposals of CA-CompositionalNet via RPN; red box: proposals of Faster R-CNN.
+
+
+
+
+
+
+
+
+
+# 5. Conclusion
+
+In this work, we studied the problem of detecting partially occluded objects under occlusion. We found that standard deep learning approaches that combine proposal networks with classification networks do not detect partially occluded objects robustly. Our experimental results demonstrate that this problem has two causes: 1) Proposal networks are more strongly misguided the more context is occupied by the occluders. 2) Classification networks do not classify partially occluded objects robustly. We made the following contributions to resolve these problems:
+
+CompositionalNets for object detection. CompositionalNets have proven to classify partially occluded objects robustly. We generalize CompositionalNets to object detection by extending their architecture with a detection layer.
+
+Robust bounding box voting. We proposed a robust part-based voting mechanism for bounding box estimation by leveraging the unoccluded parts of the object, which enabled the accurate estimation of an object's bounding box even under severe occlusion.
+
+Context-aware CompositionalNets. Compositional-Nets, and other DCNN-based classifiers, do not separate the representation of the context from that of the object. We proposed to segment the object from its context using bounding box annotations and showed how the segmentation can be used to learn a representation in an end-to-end manner that disentangles the context from the object.
+
+Acknowledgement. This work was partially supported by the Swiss National Science Foundation (P2BSP2.181713) and the Office of Naval Research (N00014-18-1-2119).
+
+# References
+
+[1] D. Arthur and S. Vassilvitskii. k-means++: The advantages of careful seeding. In Proceedings of the eighteenth annual ACM-SIAM symposium on Discrete algorithms, 2007. 5
+[2] Elie Bienenstock and Stuart Geman. Compositionality in neural systems. In The Handbook of Brain Theory and Neural Networks, pages 223-226. 1998. 1
+[3] Elie Bienenstock, Stuart Geman, and Daniel Potter. Compositionality, mdI priors, and object recognition. In Advances in Neural Information Processing Systems, pages 838-844, 1997. 1
+[4] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[5] Rasquinha R.J. Zhang K. Connor C.E. Carlson, E.T. A sparse object coding scheme in area v4. Current Biology, 2011. 1
+[6] Jifeng Dai, Yi Hong, Wenze Hu, Song-Chun Zhu, and Ying Nian Wu. Unsupervised learning of dictionaries of hierarchical compositional models. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2505-2512, 2014. 2
+[7] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009. 7
+[8] Terrance DeVries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 2, 4, 7
+[9] Sanja Fidler, Marko Boben, and Ales Leonardis. Learning a hierarchical compositional shape vocabulary for multiclass object representation. arXiv preprint arXiv:1408.5516, 2014. 2
+[10] Jerry A Fodor, Zenon W Pylyshyn, et al. Connectionism and cognitive architecture: A critical analysis. Cognition, 28(1-2):3-71, 1988. 1
+[11] Dileep George, Wolfgang Lehrach, Ken Kansky, Miguel Lázaro-Gredilla, Christopher Laan, Bhaskara Marthi, Xinghua Lou, Zhaoshi Meng, Yi Liu, Huayan Wang, et al. A generative vision model that trains with high data efficiency and breaks text-based captions. Science, 358(6368):eaag2612, 2017. 1, 2
+[12] Ross Girshick. Fast r-cnn. IEEE International Conference on Computer Vision, 2015. 2
+[13] 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
+[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. 2
+[15] Z. Zhang J. Zhu L. Xie J. Wang, C. Xie and A. Yuille. Detecting semantic parts on partially occluded objects. British Machine Vision Conference, 2017. 3, 6
+
+[16] Yin Li, Jian Sun and Sing Bing Kang. Symmetric stereo matching for occlusion handling. IEEE Conference on Computer Vision and Pattern Recognition, 2018. 3
+[17] Ya Jin and Stuart Geman. Context and hierarchy in a probabilistic image model. In IEEE Computer Society Conference on Computer Vision and Pattern Recognition, volume 2, pages 2145-2152. IEEE, 2006. 2
+[18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 7
+[19] Adam Kortylewski. Model-based image analysis for forensic shoe print recognition. PhD thesis, University_of_Basel, 2017. 1, 2, 3
+[20] Adam Kortylewski, Ju He, Qing Liu, and Alan Yuille. Compositional convolutional neural networks: A deep architecture with innate robustness to partial occlusion. IEEE Conference on Computer Vision and Pattern Recognition, 2020. 1, 2, 3, 4, 5, 7
+[21] Adam Kortylewski, Qing Liu, Huiyu Wang, Zhishuai Zhang, and Alan Yuille. Combining compositional models and deep networks for robust object classification under occlusion. arXiv preprint arXiv:1905.11826, 2019. 1, 2, 6
+[22] Adam Kortylewski and Thomas Vetter. Probabilistic compositional active basis models for robust pattern recognition. In British Machine Vision Conference, 2016. 2
+[23] Adam Kortylewski, Aleksander Wieczorek, Mario Wieser, Clemens Blumer, Sonali Parbhoo, Andreas Morel-Forster, Volker Roth, and Thomas Vetter. Greedy structure learning of hierarchical compositional models. arXiv preprint arXiv:1701.06171, 2017. 2
+[24] C. H. Lampert, M. B. Blaschko, and T. Hofmann. Beyond sliding windows: Object localization by efficient subwindow search. IEEE Conference on Computer Vision and Pattern Recognition, 2008. 2
+[25] Ang Li and Zejian Yuan. Symmnet: A symmetric convolutional neural network for occlusion detection. British Machine Vision Conference, 2018. 3
+[26] 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. 2, 6
+[27] N. Dinesh Reddy Minh Vo Srinivasa G. Narasimhan. Occlusion-net: 2d/3d occluded keypoint localization using graph networks. IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2
+[28] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. Advances in Neural Information Processing Systems 28, 2015. 2
+[29] Chelazzi L. Connor C.E. Conway B.R. Fujita I. Gallant J.L. Lu H. Vanduffel W. Roe, A.W. Toward a unified theory of visual area v4. Neuron, 2012. 1
+[30] Emeric E. Stuphorn V. Connor C.E. Sasikumar, D. First-pass processing of value cues in the ventral visual pathway. Current Biology, 2018. 1
+
+[31] Xiao Bian Zhen Lei Shifeng Zhang, Longyin Wen and Stan Z. Li. Occlusion-aware r-cnn: Detecting pedestrians in a crowd. arXiv preprint arXiv:1807.08407, 205. 2
+[32] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 2, 3, 7
+[33] Ch von der Malsburg. Synaptic plasticity as basis of brain organization. The Neural and Molecular Bases of Learning, 411:432, 1987. 1
+[34] Jianyu Wang, Cihang Xie, Zhishuai Zhang, Jun Zhu, Lingxi Xie, and Alan Yuille. Detecting semantic parts on partially occluded objects. British Machine Vision Conference, 2017. 1, 2
+[35] Yu Xiang and Silvio Savarese. Object detection by 3d aspectlets and occlusion reasoning. IEEE International Conference on Computer Vision, 2013. 2
+[36] Mingqing Xiao, Adam Kortylewski, Ruihai Wu, Siyuan Qiao, Wei Shen, and Alan Yuille. Tdapnet: Prototype network with recurrent top-down attention for robust object classification under partial occlusion. arXiv preprint arXiv:1909.03879, 2019. 2
+[37] Shengye Yan and Qingshan Liu. Inferring occluded features for fast object detection. Signal Processing, Volume 110, 2015. 2
+[38] Roozbeh Mottaghi Yu Xiang and Silvio Savarese. Beyond Pascal: A benchmark for 3d object detection in the wild. IEEE Winter Conference on Applications of Computer Vision, 2014. 2
+[39] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. arXiv preprint arXiv:1905.04899, 2019. 2
+[40] Zhishuai Zhang, Cihang Xie, Jianyu Wang, Lingxi Xie, and Alan L Yuille. Deepvoting: A robust and explainable deep network for semantic part detection under partial occlusion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1372-1380, 2018. 1, 2
+[41] Jianyu Wang Lingxi Xie Alan L. Yuille Zhishuai Zhang, Cihang Xie. Deepvoting: A robust and explainable deep network for semantic part detection under partial occlusion. IEEE Conference on Computer Vision and Pattern Recognition, 2018. 3
+[42] Hongru Zhu, Peng Tang, Jeongho Park, Soojin Park, and Alan Yuille. Robustness of object recognition under extreme occlusion in humans and computational models. CogSci Conference, 2019. 1, 2
+[43] Long Leo Zhu, Chenxi Lin, Haoda Huang, Yuanhao Chen, and Alan Yuille. Unsupervised structure learning: Hierarchical recursive composition, suspicious coincidence and competitive exclusion. In European Conference on Computer Vision, pages 759-773. Springer, 2008. 2
\ No newline at end of file
diff --git a/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/images.zip b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8345442d27db33bbdee072d14239d70b0fa31a00
--- /dev/null
+++ b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2778edae425a7f3bd3ae6daec66c9e72bea2bba29cd7004e96a1fdeedc8f1b73
+size 629071
diff --git a/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/layout.json b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2d55749034c7a537a36d45c569694375261bca15
--- /dev/null
+++ b/robustobjectdetectionunderocclusionwithcontextawarecompositionalnets/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bd861c2a577cb8f8a2759f6dbac09bc4f4f606622adb56dd74c2be55d8945b1f
+size 417004
diff --git a/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_content_list.json b/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..10e4f9e26b6a1b05df053c1b06065c5343643f7a
--- /dev/null
+++ b/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f72cf090ab947c5ff42c38c789032b8da17fa6345b0966e520426b1cc0cae2b1
+size 79821
diff --git a/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_model.json b/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0f14c521c38a3178e6fa9209be15182e26f3038
--- /dev/null
+++ b/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52fdfc38a5abf4ee1927811f3ec9fa47c435465c4d40655b50a928dea6d49dfe
+size 94963
diff --git a/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_origin.pdf b/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..fd56dcf0df01441077c9a55c20f2034561a8362e
--- /dev/null
+++ b/robustpartialmatchingforpersonsearchinthewild/67cc041f-8fc5-4c59-9921-b0232b280589_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:69ded34990a652ea01cddf2beee7f1d030523322d624e64948edb4e6724623a7
+size 783710
diff --git a/robustpartialmatchingforpersonsearchinthewild/full.md b/robustpartialmatchingforpersonsearchinthewild/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5cd71dacbb1d37ca73dea0901c6e16061cc689d2
--- /dev/null
+++ b/robustpartialmatchingforpersonsearchinthewild/full.md
@@ -0,0 +1,359 @@
+# Robust Partial Matching for Person Search in the Wild
+
+Yingji Zhong $^{1}$ , Xiaoyu Wang $^{2,3}$ , Shiliang Zhang $^{1}$ $^{1}$ Peking University, $^{2}$ Intellifusion, $^{3}$ The Chinese University of Hong Kong, Shenzhen
+ $^{1}\{zhongyj, slzhang.jdl\} @pku.edu.cn, ^{2,3}$ fanghuaxue@gmail.com
+
+# Abstract
+
+Various factors like occlusions, backgrounds, etc., would lead to misaligned detected bounding boxes, e.g., ones covering only portions of human body. This issue is common but overlooked by previous person search works. To alleviate this issue, this paper proposes an Align-to-Part Network (APNet) for person detection and re-Identification (reID). APNet refines detected bounding boxes to cover the estimated holistic body regions, from which discriminative part features can be extracted and aligned. Aligned part features naturally formulate reID as a partial feature matching procedure, where valid part features are selected for similarity computation, while part features on occluded or noisy regions are discarded. This design enhances the robustness of person search to real-world challenges with marginal computation overhead. This paper also contributes a Large-Scale dataset for Person Search in the wild (LSPS), which is by far the largest and the most challenging dataset for person search. Experiments show that APNet brings considerable performance improvement on LSPS. Meanwhile, it achieves competitive performance on existing person search benchmarks like CUHK-SYSU and PRW.
+
+# 1. Introduction
+
+Thanks to recent research efforts [27, 17, 10, 8, 25, 22, 30, 34, 31], the performance of person re-Identification (reID) has been significantly improved. However, one potential issue with current reID setting is that, it treats person detection and reID as two isolated steps. This issue can be compensated by person search [24, 33, 1, 28, 3, 15] to jointly accomplish person detection and reID. Being able to jointly optimize person detection and reID, person search is attracting more and more attention, and is potential to present advantages in flexibility, efficiency, and accuracy.
+
+Compared with reID, person search needs to design pedestrian detectors robust to variances of scales, illuminations, backgrounds, occlusions, etc. Some person search works refine detectors by jointly training detectors and reID models [24, 15, 4, 3]. Although strong detectors are gen
+
+
+Figure 1. Illustration of misaligned person bounding boxes and issues of person matching with global feature. Misalignments commonly occur in person search and can not be eliminated by training stronger detectors. This paper addresses this issue with bounding box alignment and partial matching.
+
+erally helpful for reID, they may still produce misaligned person bounding boxes. As shown in Fig. 1, occlusions and limited camera viewing field lead to many accurate but misaligned bounding boxes covering portions of pedestrians. Most of existing person search methods extracts global feature from the detected bounding boxes, no matter the joint models [24, 15] or the separate models [1, 28, 3]. As shown in Fig. 1, misalignment degrades the performance of global features, because it is not reasonable to match partial features against global features. More detailed reviews to person search works can be found in Sec. 2.
+
+This paper targets to design a unified person search framework robust to the misaligned bounding boxes. As shown in Fig. 1, the basic idea is to refine detected bounding boxes to cover the estimated holistic body regions to eliminate misalignment errors. Then, aligned part features could be extracted from refined bounding boxes with simple region division. Part features hence allow for robust partial matching across bounding boxes, where features on the mutual visible regions are matched for similarity computation, and features on noisy regions are not considered for matching. In other words, our strategy improves both the feature resolution and robustness to misalignment errors.
+
+The above idea leads to the Align-to-Part Network (AP-Net) for person search. Built on OIM [24], APNet consists of the additional Bounding Box Aligner (BBA) and Region
+
+Sensitive Feature Extractor (RSFE). The BBA module is implemented by predicting 4 bounding box offset values. It can be trained by automatic data augmentation without requiring manual annotations. Because of enlarged receptive fields of neurons in feature extraction CNN layer, noisy or occluded parts would affect features of their adjacent parts in the same bounding box. We further design the RSFE module to extract part features. RSFE reinforces local cues in each part feature, hence effectively alleviates the negative effects of adjacent noises in part feature learning.
+
+We test our approach on current person search benchmarks, i.e., PRW [33] and CUHK-SYSU [24]. Experiment results show that, our APNet achieves competitive performance compared with recent works. To test our approach in more challenging scenarios, we contribute a new person search dataset named as Large-Scale dataset for Person Search in the wild (LSPS). Compared with PRW and CUHK-SYSU, LSPS presents several new features that would encourage the research towards more realistic person search: 1) large scale: it contains a large number of pedestrians and bounding boxes; 2) automatically detected bounding boxes, which differ with the manually annotated ones in PRW and CUHK-SYSU; 3) collected in scenarios with occlusions and crowdings. On this challenging LSPS, our method exhibits substantial advantages.
+
+Compared with reID, person search is still relatively under-explored. It is critical to deal with the challenge occurring in both person detection and reID. To the best of our knowledge, the proposed APNet is an early attempt in boosting the robustness to misalignment issue in person search. As shown in our experiments, the APNet brings considerable performance gains. The proposed LSPS dataset simulates realistic scenarios and presents a more challenging person search task than existing datasets. We believe that, the proposed methods and the contributed LSPS can inspire more research efforts in person search.
+
+# 2. Related Work
+
+This paper is closely related to person reID and person search. The following parts review those two lines of works.
+
+Person reID extracts robust and discriminative features from given person bounding boxes. Current fully supervised reID methods can be briefly summarized into the following categories. 1) Learn local features of regions utilizing offline detector to split body into several regions [27, 17, 10, 11], or uniformly split the body into several stripes [31, 22, 26]; 2) Learn the robust feature utilizing additional attribute annotation [19, 18, 20, 23]; 3) Enhance the discriminativeness of feature by attention mechanism [12, 9, 25]; 4) Impose constraints on feature space with loss functions, like verification loss [36] and triplet loss [8]. Among the above methods, PCB [22] and its variants [31, 26] dominate the state-of-the-art performance.
+
+PCB uniformly splits the feature map into stripes and supervises them to ensure their discriminative power. However, PCB requires a strict alignment of the input images since misalignment breaks the correspondence of stripes on the same spatial position. The performance of PCB thus degrades substantially when misalignments exist [21].
+
+There are some reID works focusing on partial reID. Zheng et al. [35] propose $\mathrm{AMC + SWM}$ to solve the partial reID. AMC collects patches from all gallery images and set up a dictionary for patch level matching. He et al. [7] propose DSR to reconstruct the partial image by holistic image and utilize the reconstruction error as the similarity. Both AMC [35] and DSR [7] are optimisation-based thus it is expensive to get the similarity of each query-gallery pair. PGFA [14] applies partial matching scheme with the aligned input images, whose occluded parts are indicated by the expensive offline keypoint detector. Sun et al. [21] propose a VPM to extract local features while simultaneously being aware of the visibility of each body part. However, VPM does not consider the deformation mentioned in DSR. Our method addresses the deformation by an explicit alignment step and gets rid of the time-consuming comparison of each query-gallery pair during the inference stage.
+
+Person search considers the detection stage in raw video frames before reID. Current methods of person search can be divided into two categories. One integrates detection and reID into a unified framework [24, 15, 4, 29]. Based on Faster-RCNN [16], OIM proposed by Xiao et al. [24] inserts an additional feature extraction branch on top of the detector head, which is the first end-to-end learning framework for person search. Similar to NPSM of Liu et al. [4], Munjal et al. [15] apply a query-guided method for person search while it is end-to-end optimized compared to NPSM. The other category solves detection and re-identification with two separate models, i.e., performing person search in a sequential manner [1, 28, 3]. Chen et al. [1] propose a mask-guided feature learning method to make the reID network focus more on foregrounds. Lan et al. [28] propose CLSA which utilizes multi-level features from reID network to solve the multi-scale matching problem. Han et al. [3] claim that bounding box from detector might not be optimal for re-identification, they thus refine the detector results driven by re-identification loss.
+
+Our work belongs to the first category of person search, integrating detection and reID into a unified framework. Different from existing person search works, this work further addresses the misalignment issue of detected bounding boxes and optimizes aligned part feature learning to achieve robust partial matching in person search.
+
+# 3. Problem Formulation
+
+Given a query person image $q$ and a gallery set $\mathcal{G} = \{g_i\}_{i=1:N}$ containing $N$ frames, person search aims at
+
+
+Figure 2. Architecture of the proposed Align-to-Part Network (APNet), which consists of person detector, Bounding Box Aligner (BBA), and Region Sensitive Feature Extractor (RSFE). The detection branch returns bounding boxes $\mathcal{B}$ and global feature $F$ . BBA refines detected boxes $\mathcal{B}$ to aligned ones, i.e., $\hat{\mathcal{B}}$ . Red and green bounding boxes denotes detected boxes $\mathcal{B}$ and refined boxes $\hat{\mathcal{B}}$ , respectively. RSFE extracts part features $\{f^{(k)}\}_{k=1:K}$ from refined boxes and alleviates negative effects of adjacent noises. RAP and GAP denote Regional Average Pooling and Global Average Pooling, respectively. $F_{\mathrm{RSM}}$ is the global feature from Region Sensitive Map, which is only used for training RSFE.
+
+detecting a collection of person bounding boxes $\mathcal{B} = \{b_i\}_{i=1:M}$ from $\mathcal{G}$ , then matching $q$ against the bounding boxes in $\mathcal{B}$ . Suppose a person can be divided into $K$ body parts, we could represent the bounding box $b_i$ containing a complete person as a collection of $K$ parts, i.e., $\mathcal{P}_i = \{p_i^{(k)}\}_{k=1:K}$ , where $p_i^{(k)}$ denotes the $k$ -th part.
+
+With the above formulation, person detection is expected to return bounding boxes containing complete persons with $K$ parts. Person reID targets to extract a discriminative feature to identify the same identity of $q$ in $\mathcal{B}$ . Most of existing works extract a global feature $F$ and performs reID by L2-distance. Due to the occlusions or background clutters, certain bounding boxes only contain portions of body parts, making the global feature degrades to a partial feature, i.e., the global feature is extracted from $l, l < K$ visible parts. Such partial features lead to inaccurate person matching when compared with global features.
+
+Our solution is to introduce a part identifier $\operatorname{E}(\cdot)$ to identify visible parts in each detected bounding box, i.e., $\mathcal{P}_i = \operatorname{E}(b_i)$ . With identified parts, the person image matching could be treated as a part feature matching task, where features on mutual visible parts of two bounding boxes are matched. The distance between $q$ and $b_{i}$ can be denoted as, i.e.,
+
+$$
+\operatorname {d i s t} _ {P} (q, b _ {i}) = \frac {\sum_ {k \in \mathcal {P} _ {q} \cap \mathcal {P} _ {i}} \mathrm {D} \left(f _ {q} ^ {(k)} , f _ {i} ^ {(k)}\right)}{| \mathcal {P} _ {q} \cap \mathcal {P} _ {i} |}, \tag {1}
+$$
+
+where $f_{q}^{(k)}$ and $f_{i}^{(k)}$ are features extracted from $k$ -th part from $q$ and $b_{i}$ , and $\mathrm{D}(\cdot)$ refers the L2-distance.
+
+The training of our person search model should guarantee an accurate person detector, the reliable part identifier, and discriminative part features. We formulate our training
+
+objective as,
+
+$$
+\mathcal {L} = \mathcal {L} _ {D} + \mathcal {L} _ {P} + \sum_ {k = 1} ^ {K} \mathcal {L} _ {f ^ {(k)}}, \tag {2}
+$$
+
+where $\mathcal{L}_D$ denotes loss of the detector, which is optimized with both bounding box locations and person reID. $\mathcal{L}_P$ denotes the loss of part identification. $\mathcal{L}_f^{(k)}$ evaluates the discriminative power of the $k$ -th part feature, which can be implemented with reID loss. The following section presents details of our implementation to person detector, part identifier, part feature extraction, as well as the network optimization.
+
+# 4. Proposed Methods
+
+We propose the Align-to-Part Network (APNet) to implement the formulation in Sec. 3. The architecture of APNet is shown in Fig. 2. APNet consists of a person detector, Bounding Box Aligner (BBA), and the Region Sensitive Feature Extractor (RSFE), respectively. The following parts present details of those components.
+
+The detector is built upon OIM [24], which is an end-to-end person detector returning bounding boxes $\mathcal{B}$ as well as their corresponding global feature $F$ . As shown in Fig. 2, the detector is trained with RPN loss $(\mathcal{L}_{\mathrm{rpncls}}, \mathcal{L}_{\mathrm{rpnreg}})$ [16], ROI Head loss $(\mathcal{L}_{\mathrm{cls}}, \mathcal{L}_{\mathrm{reg}})$ , as well as reID loss. We denote the detector training loss as
+
+$$
+\mathcal {L} _ {D} = \mathcal {L} _ {\mathrm {c l s}} + \mathcal {L} _ {\mathrm {r e g}} + \mathcal {L} _ {\mathrm {r p n c l s}} + \mathcal {L} _ {\mathrm {r p n r e g}} + \mathcal {L} _ {\mathrm {I D}}, \tag {3}
+$$
+
+where $\mathcal{L}_{\mathrm{cls}}$ and $\mathcal{L}_{\mathrm{reg}}$ denotes the person classification loss and bounding box regression loss in ROI Head. $\mathcal{L}_{\mathrm{rpncls}}$ and $\mathcal{L}_{\mathrm{rpnreg}}$ denote the objectiveness loss and proposal regression loss in RPN. $\mathcal{L}_{\mathrm{ID}}$ is the reID loss computed on the
+
+
+Figure 3. Illustration of BBA for bounding box refinement. Red and green boxes refer to detected boxes and refined boxes, respectively. BBA predicts four bounding box offset values $o_t$ , $o_b$ , $o_l$ , and $o_r$ , which shift the detected bounding boxes to cover the estimated holistic body region. 0, 1 indicate the validity of each part.
+
+global feature. We refer readers to OIM [24] for more details of the loss computation.
+
+As shown in Fig. 1, a well trained detector may produce misaligned person bounding boxes. We hence design a part estimator with BBA to estimate visible body parts of each detected box.
+
+# 4.1. Bounding Box Aligner
+
+BBA implements part identifier $\mathrm{E}(\cdot)$ in Sec. 3 to identify visible parts in each bounding box. This could be achieved with various methods, e.g., through segmenting person foregrounds [13] or estimating body keypoints [2]. However, those methods require extra annotations and considerable computations. We implement BBA with a more efficient solution.
+
+Because most pedestrians show upright posture in surveillance videos, aligned body parts can be extracted by dividing a holistic body region into horizontal and vertical stripes. This operation generates aligned part regions, e.g., top and bottom horizontal stripes correspond to head and foot, respectively. With this intuition, BBA first refines detected bounding boxes, then extracts horizontal and vertical stripes as body parts. We illustrate this procedure in Fig. 3.
+
+BBA estimates an offset vector $O = \{o_t, o_b, o_l, o_r\}$ to refine each detected bounding box to cover the holistic body region, where each offset value is in the range of $[-1, 1]$ . The four offset values move the top, bottom, left, and right boundaries of each bounding box. Fig. 3 shows examples of moving the boundaries by $o_t$ and $o_b$ . Suppose the coordinate of a bounding box $b$ is $\{x_{min}, y_{min}, x_{max}, y_{max}\}$ , its coordinate after refinement with $O$ can be denoted as $\{\hat{x}_{min}, \hat{y}_{min}, \hat{x}_{max}, \hat{y}_{max}\}$ , e.g.,
+
+$$
+\hat {y} _ {\text {m i n}} = y _ {\text {m i n}} - \frac {h \cdot o _ {t}}{1 - o _ {t} - o _ {b}} \tag {4}
+$$
+
+$$
+\hat {y} _ {m a x} = y _ {m a x} + \frac {h \cdot o _ {b}}{1 - o _ {t} - o _ {b}},
+$$
+
+where $h$ is the height of detected bounding box, computed
+
+as $y_{max} - y_{min}$ . Similar computation can be applied to compute the $\hat{x}_{min}$ and $\hat{x}_{max}$ with $o_l$ and $o_r$ .
+
+We denote the refined bounding box as $\hat{b}$ , which is used to extracted horizontal and vertical stripes as parts. As shown in Fig. 3, refinements may introduce occluded parts and noises into $\hat{b}$ . To extract $K$ horizontal stripes, we introduce a $K$ -dim validity vector $v$ to record the visibility of each stripe. The $k$ -th stripe is considered as valid, i.e., $v[k] = 1$ , if
+
+$$
+\left. \left[ K \cdot \max \left(0, o _ {t}\right) \right] \leq k \leq K - \left\lfloor K \cdot \max \left(0, o _ {b}\right) \right\rfloor . \right. \tag {5}
+$$
+
+Similar computation is applied to extract valid vertical stripes. The final valid part collection $\mathcal{P}$ of each bounding box collects valid stripes.
+
+As shown in Fig. 2, BBA predicts $O$ based on the bounding box feature extracted with ROAlign. BBA can be trained by automatically generating training data. We first crop bounding boxes from frames by their groundtruth coordinates, which we denote as $\mathcal{B}_{gt}$ . AlphaPose [2] is utilized to estimate the keypoints of each bounding box, which provide cues about missing body parts. We then transform $\mathcal{B}_{gt}$ to $\hat{\mathcal{B}}_{gt}$ to cover the holistic body region. Comparing $\mathcal{B}_{gt}$ and $\hat{\mathcal{B}}_{gt}$ generates the groundtruth offset labels $O_{gt} = \{o_{gt - t}, o_{gt - b}, o_{gt - l}, o_{gt - r}\}$ . The training of BBA can thus be supervised by following loss
+
+$$
+\mathcal {L} _ {P} = \sum_ {i \in \{t, b, l, r \}} \operatorname {s m o o t h} _ {l 1} \left(o _ {i}, o _ {g t - i}\right), \tag {6}
+$$
+
+where $\mathrm{smooth}_{l1}$ computes differences between predicted offset values and the groundtruth values. More details of $\mathrm{smooth}_{l1}$ can be found in [16].
+
+# 4.2. Region Sensitive Feature Extractor
+
+The part collection $\mathcal{P}$ makes it possible to extract part features for partial matching. The following section shows our method to extract horizontal stripe features. Vertical stripe features can be extracted with similar way.
+
+Vanilla Part Feature Extractor: Part features can be extracted by applying Region Average Pooling (RAP) on the feature map of video frame. As shown in Fig. 2, for a refined bounding box $\hat{b}_i$ , we first extract its feature map from the frame feature map $\mathcal{M}$ with ROIAAlign, which is then input into a convolutional block to generate a feature map $T \in \mathbb{R}^{H \times W \times D}$ . We denote part features of $\hat{b}_i$ extracted by RAP as,
+
+$$
+\left\{\bar {f} _ {i} ^ {(k)} \right\} _ {k = 1: l} = \operatorname {R A P} (T, \mathcal {P} _ {i}), l = | \mathcal {P} _ {i} |, \tag {7}
+$$
+
+where $l$ denotes the number of valid horizontal stripes of bounding box $\hat{b}_i$ .
+
+Part feature learning can be achieved by computing the reID loss on each valid part feature, i.e.,
+
+$$
+\mathcal {L} _ {f} ^ {(k)} = \mathcal {L} _ {\mathrm {I D}} (\bar {f} ^ {(k)}, y), \tag {8}
+$$
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a)
+
+
+(b)
+
+
+(c)
+
+
+(a)
+
+
+(b)
+Figure 4. Illustration of detected boxes (red) and refined boxes (green), as well as their feature maps. (b) and (c) show feature maps of refined boxes trained with vanilla part feature extractor and our RSFE. It is clear that, RSFE depresses noises on noisy and invalid regions.
+
+
+(c)
+
+where $\mathcal{L}_{\mathrm{ID}}$ refers to reID loss which is implemented with OIM loss [24]. $y$ is the ground truth person ID label.
+
+Fig. 4 (b) shows feature maps of aligned bounding boxes trained by the above feature extractor. It is clear that, noisy or invisible regions still have strong responses. This could be because the training procedure in Eq. (8) focuses on visible body parts, and can not tune the features on noisy parts. Because of enlarged receptive fields of neurons in feature extraction CNN layer, the strong CNN activations on noisy or occluded parts would affect features of their adjacent valid parts. This may degrades the validity of the above feature extractors. Therefore, part feature extractors robust to occlusions and noises are required.
+
+Feature Extraction with Region Sensitive Map: Our RSFE introduces a Region Sensitive Map (RSM) to suppress responses of invalid regions. To tune the responses of each feature stripe, we generate the RSM $M \in \mathbb{R}^{H \times W \times d}$ by applying $1 \times 1$ convolution on each horizontal feature stripe $T[i] \in \mathbb{R}^{W \times D}, i = 1 : H$ . The computation of $M[i] \in \mathbb{R}^{W \times d}$ can be denoted as,
+
+$$
+M [ i ] = \operatorname {c o n v} _ {1 \times 1} ^ {\left(\mathrm {i}\right)} (T [ i ]), i = 1: H, \tag {9}
+$$
+
+where $\mathrm{conv}_{1\times 1}^{(\mathrm{i})}$ refers to the $i$ -th convolution kernel. Different from a global $1\times 1$ convolution, $H$ convolutional kernels in Eq. (9) do not share parameters to deal with complicated occlusions on different spatial locations.
+
+To suppress noisy regions, we supervise $M$ with a global feature. The loss can be computed by applying Average Pooling on $M$ and supervise the resulted feature $F_{\mathrm{RSM}}$ , i.e.,
+
+$$
+\mathcal {L} _ {\mathrm {R S M}} = \mathcal {L} _ {\mathrm {I D}} \left(F _ {\mathrm {R S M}}, y\right). \tag {10}
+$$
+
+This loss enforces the network to depress activations on noisy regions to generate a better $F_{\mathrm{RSM}}$ , which is then used for stripe feature extraction. Fig. 4 (c) shows feature maps
+
+after training with Eq. (10), where invalid regions are effectively suppressed.
+
+From $M$ , the stripe features can be extracted by RAP as,
+
+$$
+\left\{f _ {i} ^ {(k)} \right\} _ {k = 1: l} = \operatorname {R A P} (M, \mathcal {P} _ {i}), l = | \mathcal {P} _ {i} |, \tag {11}
+$$
+
+where each part feature can be trained with part feature loss in Eq. (7).
+
+Eq. (9) applies different $1 \times 1$ convolution kernels on spatial locations of $T$ . This enables more specific refinements for each part feature. Besides that, different spatial locations show varied probabilities of occlusion, e.g., the foot area is more likely to be occluded. This property makes Eq. (9) more effective in depressing occlusions and noises than learning a global $1 \times 1$ convolution kernel.
+
+The methods above extracts features from horizontal stripes. Similar procedure can be applied to extract features from vertical stripes. Given a query person image $q$ and a detected gallery bounding boxes $b_{i}$ to be compared, we utilize both global and part features for person reID. The part feature distance can be computed with Eq. (1). We also utilize the global feature $F$ from detector branch for distance computation. The overall distance between $q$ and $b_{i}$ can be computed as:
+
+$$
+\operatorname {d i s t} \left(q, b _ {i}\right) = \operatorname {d i s t} _ {P} \left(q, b _ {i}\right) + \lambda \cdot \mathrm {D} \left(F _ {q}, F _ {i}\right), \tag {12}
+$$
+
+where $F_{q}$ and $F_{i}$ correspond to the global features of $q$ and $b_{i}$ respectively. We set $\lambda$ to 1 in the following experiments.
+
+# 5. LSPS Dataset
+
+# 5.1. Previous Datasets
+
+CUHK-SYSU [24] consists of 5,694 frames captured from movie snapshots, and 12,490 frames from street snap. Both bounding boxes and identities are labeled manually. The dataset provides 8,432 labeled identities, and 23,430 labeled bounding boxes. 96,143 bounding boxes are provided in total. 11,206 frames with 5,532 identities make up the training set. CUHK-SYSU does not annotate bounding boxes with partial bodies.
+
+PRW [33] is captured with six cameras deployed at a campus, containing 11,816 frames with 932 identities in total. 5,134 frames are selected as training set with 432 identities, while the rest 6,112 frames make up the test set. A total of 34,304 bounding boxes are annotated with identity. Similar to CUHK-SYSU, bounding box locations in PRW are also manually labeled. PRW includes some misaligned bounding boxes in both queries and galleries.
+
+# 5.2. Description to LSPS
+
+This paper contributes a new Large-Scale dataset for Person Search in the wild (LSPS), which shows the following characteristics:
+
+| Dataset | LSPS | PRW [33] | CUHK [24] |
| frames | 51,836 | 11,816 | 18,184 |
| identities | 4,067 | 932 | 8,432 |
| anno. boxes | 60,433 | 34,304 | 23,430 |
| cameras | 17 | 6 | - |
| detector | Faster-RCNN | Hand | Hand |
| inc/query | ~60% | ~6% | ~0% |
+
+Complex scene and appearance variations: The video frames are collected from 17 cameras, deployed at both indoor and outdoor scenes. Different cameras exhibit different backgrounds, viewpoints, view fields, illuminations, pedestrian densities, etc. Those factors lead to substantial appearance variances for the same person. Meanwhile, due to limited view fields of each camera and high person density, lots of pedestrians are occluded, leading to bounding boxed covering partial body region. LSPS includes partial bounding boxes into both query and gallery sets. Fig. 5 (a) compares the body completeness in queries between LSPS and PRW. It is clear that, LSPS has a substantially larger number of incomplete query bounding boxes. Compared with existing person search datasets, LSPS presents more complex scenes and appearance variations.
+
+Larger scale: Different with previous benchmarks, where bounding boxes are manually labeled. LSPS utilizes bounding boxes detected by Faster-RCNN [16], based on which we manage to collect a dataset with larger number of bounding boxes. We show the comparison between LSPS and the other two datasets in Table 1. In LSPS, a total number of 51,836 frames are collected, from which 60,433 bounding boxes and 4,067 identities are annotated. Table 1 shows that, LSPS presents the larger number of frames, annotated person bounding boxes, cameras, respectively. Moreover, about $60\%$ queries in LSPS cover partial body. Larger scale and incomplete query bounding boxes make LSPS a more challenging and realistic dataset than the others in Table 1.
+
+# 5.3. Evaluation Protocol
+
+LSPS is split into a training set with 18,154 frames and a test set with 33,673 frames. The training and test set contain 1,041 and 3,026 identities, respectively. Statistics of the training and test set are summarized in Table 2. We utilize mean Average Precision (mAP) and rank-1 accuracy as evaluation metrics, which are widely adopted in person reID [24, 15, 1, 28, 3]. In person search, a retrieved bounding box is considered as true positive if it shares the same ID label with query and it has the overlap rate larger than 0.5 with the ground truth bounding box. Therefore, both
+
+
+Figure 5. (a) compares the body completeness in queries between LSPS and PRW. (b) illustrates several query and gallery bounding boxes. It can be observed that, misalignment occurs in both query and gallery bounding boxes.
+
+Table 1. Comparison between LSPS and the other two person search datasets. "detector" refers to the way to obtain the ground truth of bounding box location. "inc/query" means the percentage of query bounding boxes with partial body.
+
+| Split | frames | identities | boxes | anno. boxes |
| Training | 18,163 | 1,041 | 71,563 | 18,928 |
| Test | 33,673 | 3,026 | 116,170 | 41,505 |
+
+Table 2. Statistics of training/test sets on LSPS. "anno. boxes" refers bounding boxes annotated with person ID. "boxes" denotes the number of provided bounding boxes.
+
+mAP and rank-1 accuracy in person search are affected by the detector performance.
+
+# 6. Experiment
+
+The following parts conduct experiments on CUHK-SYSU [24], PRW [33] and the new LSPS.
+
+# 6.1. Implementation Details
+
+Our APNet is implemented based on OIM [24]. We use the ResNet50 [6] initialized with ImageNet pretrained model as the backbone. The backbone adopts similar setting with the one in [15] and it uses RoIAlign [5] rather than RoIPooling [16]. For all experiments, we train the APNet with SGD optimizer. We divide the training into two stages, i.e., the first stage trains the detector branch with $\mathcal{L}_D$ . The second stage fixes parameters of the detector and trains BBA and RSFE with $\mathcal{L}_P$ and $\mathcal{L}_f$ , respectively. We set $K$ to 7 for horizontal stripes. For PRW and CUHK-SYSU, we do not use features from vertical stripes since the misalignment in these two datasets mainly occurs in vertical direction.
+
+On CUHK-SYSU, the first stage lasts 40k iterations. We set the initial learning rate to 1e-3 and decay it by 0.1 at 30k. RSFE is trained for 40k with learning rate as 1e-3, decayed at 30k. On PRW, the first stage lasts 80k. We set learning rate to 1e-4, decayed at 60k. RSFE is trained for 40k with learning rate as 1e-3, decayed at 30k. On LSPS, the first
+
+| Methods | mAP | rank-1 |
| feature |
| upper bound | global | 53.5 | 74.6 |
| global matching | global | 13.6 | 30.4 |
| stripe | 23.1 | 52.5 |
| partial matching | valid region | 23.9 | 46.7 |
| mutual region | 21.4 | 48.6 |
| mutual stripe | 30.9 | 70.0 |
+
+
+Figure 6. Performance on LSPS with different stripe number $K$ .
+
+stage lasts $120\mathrm{k}$ , with learning rate as 1e-4 and is decayed by 0.1 at $80\mathrm{k}$ and $100\mathrm{k}$ , respectively. RSFE is trained for $60\mathrm{k}$ with learning rate as 1e-3, decayed at $30\mathrm{k}$ and $50\mathrm{k}$ , respectively. BBA on three datasets are trained for $30\mathrm{k}$ with learning rate as 1e-3, and is decayed at $20\mathrm{k}$ .
+
+# 6.2. Ablation Study
+
+Validity of Partial Matching. APNet addresses misalignment issue with partial matching based on stripe features. This part demonstrates the validity of this strategy. We first modify the Market-1501 [32] by adding random occlusions to query and gallery images. Based on this modified dataset, we compare different feature matching strategies and summarize the results in Table 3, where "global matching" does not differentiate occlusions in feature extraction and "partial matching" extracts features from valid regions.
+
+Table 3 shows that, occlusion is harmful for reID, e.g., degrades the mAP of global feature from $53.5\%$ to $13.6\%$ . Extracting stripe features from the entire bounding box boosts the reID performance. This shows the validity of part feature. Because partial matching extracts features from visible regions, it achieves better performance than global matching. Among three features used in partial matching, features extracted from mutual stripes achieve the best performance. It outperforms the feature from mutual region by large margins, e.g., $30.9\%$ vs. $21.4\%$ in mAP. It also significantly outperforms the global feature in global matching. The above experiments hence shows the validity of the idea illustrated in Fig. 1, where features on the mutual visible regions are matched for similarity computation.
+
+Table 3. Validity of partial matching on Market1501 modified by adding artificial occlusions. "upper bound" refers to performance of global feature on original Market-1501. Other methods are tested on modified Market-1501. Valid region refers to common visible region of tow matched bounding boxes.
+
+| Features | PRW | LSPS |
| mAP | rank-1 | mAP | rank-1 |
| global | 34.2 | 75.8 | 14.4 | 47.7 |
| stripe | 39.1 | 79.1 | 13.0 | 41.6 |
| VPM [21] | 40.0 | 80.2 | 16.0 | 49.5 |
| stripe (BBA) | 40.8 | 81.0 | 16.4 | 50.2 |
| RSFE (BBA) | 41.9 | 81.4 | 17.1 | 51.6 |
+
+Table 4. Validity of BBA and RSFE in stripe feature extraction. Global refers to global feature extracted from detected bounding box. "stripe (BBA)" denotes extracting stripe features with vanilla part feature extractor based on BBA output. "RSFE (BBA)" denotes stripe feature extracted by RSFE.
+
+Validity of BBA: BBA performs bounding box refinement and valid part estimation. We proceed to verify the validity of BBA in person search. Table 4 shows the performance of global feature and stripe feature before applying BBA. It is clear that, extracting valid stripe features from BBA refined bounding boxes, substantially boosts the reID performance. For instance, "stripe (BBA)" achieves mAP of $40.8\%$ on PRW, better than the $34.2\%$ and $39.1\%$ of original global feature and stripe feature, respectively. We also show performance of the reproduced VPM [21], which is a recent method for partial matching. As shown in Table 4, stripe feature extracted with BBA performs better than VPM on both PRW and LSPS. This experiment hence shows the validity of BBA in bounding box refinement and valid part extraction.
+
+Validity of RSFE: RSFE is designed to alleviate the negative effects of noisy regions illustrated in Fig. 4 (b). It is also designed to refine each part feature. Table 4 compares the stripe feature extracted by RSFE, i.e., "RSFE (BBA)" against the one extracted by vanilla part feature extractor, i.e., "stripe (BBA)". It can be observed that, RSFE is important in boosting the stripe feature performance. For example, RSFE boosts the mAP by $1.1\%$ and $0.7\%$ on PRW and LSPS, respectively. The combination of BBA and RSFE achieves the best performance and outperforms the VPM by large margins. More comparisons with person search works will be presented in the next section.
+
+Effects of part number $K$ : We proceed to study the influence of part number $K$ , and summarize the results in Fig. 6. $K = 1$ degrades the partial feature to global feature. The maximum horizontal stripe number $K$ equals to the height of $T$ , i.e., 7 in our experiment. The figure shows that, stripes with finer scale help to boost the performance. This might due to the fact that larger $K$ improves the feature resolution and robustness to occlusions and noises.
+
+Discussions: To show the effects of BBA in bounding boxes refinement, we visualize bounding boxes before and after refinement in Fig. 7. The results show that, BBA effectively shifts the original bounding boxes to cover holistic body regions. This procedure eliminates misalignment errors and guarantees aligned stripe feature extraction.
+
+
+Figure 7. Visualization of refined bounding boxes by BBA. Red and green boxes denote bounding boxes before and after refinement. BBA effectively estimates the holistic body region to eliminate misalignment errors.
+
+| Methods | # params (M) | speed (sec.) | TFLOPs |
| OIM | 36 | 0.254 | 0.383 |
| APNet | 67 | 0.256 | 0.397 |
+
+Table 5. Comparison of parameter and computational complexity between APNet and baseline OIM [24]. Speed and TFLOPS are measured on the NVIDIA 2080Ti GPU.
+
+| Methods | Reference | CUHK-SYSU | PRW |
| mAP | rank-1 | mAP | rank-1 |
| OIM [24] | CVPR2017 | 75.5 | 78.7 | 21.3 | 49.9 |
| NPSM [4] | ICCV2017 | 77.9 | 81.2 | 24.2 | 53.1 |
| CLSA [28] | ECCV2018 | 87.2 | 88.5 | 38.7 | 65.0 |
| MGTS [1] | ECCV2018 | 83.0 | 83.7 | 32.6 | 72.1 |
| CGPS [29] | CVPR2019 | 84.1 | 86.5 | 33.4 | 73.6 |
| QEEPS [15] | CVPR2019 | 88.9 | 89.1 | 37.1 | 76.7 |
| RDLR [3] | ICCV2019 | 93.0 | 94.2 | 42.9 | 72.1 |
| APNet | | 88.9 | 89.3 | 41.9 | 81.4 |
+
+Besides the detector branch based on baseline OIM, APNet introduces additional BBA and RSFE modules. We compare the parameter and computational complexity between OIM and APNet in Table 5. The comparison shows that APNet achieves promising performance with comparable speed with baseline OIM, e.g., 0.397 TFLOPs of APNet vs. 0.383 TFOLPs of OIM. Although the BBA and RSFE modules bring more parameters to APNet, they do not degrade its computational speed substantially. APNet is likely to be faster than person search works that treat detection and reID in separated steps, and is faster than some works like QEEPS [15], which compares each query-gallery pair for person search.
+
+# 6.3. Comparison with recent works
+
+CUHK-SYSU. We experiment on CUHK-SYSU with gallery size 100. APNet achieves the rank-1 accuracy of $89.3\%$ and mAP of $88.9\%$ , outperforming most of recent works. Note that RDLR [3] uses a stronger backbone ResNet50-FPN as well as ranking-based loss. Methods like CLSA [28], MGTS [1], and RDLR solve detection and reID with two separate models, which are expensive in both computation and storage. Compared with those works, our AP
+
+Table 6. Comparison with recent works on CUHK-SYSU and PRW, respectively.
+
+| LSPS | OIM [24] | VPM [21] | APNet | APNet+v |
| mAP | 14.4 | 16.0 | 17.1 | 18.8 |
| rank-1 | 47.7 | 49.5 | 51.6 | 55.7 |
+
+Table 7. Comparisons with recent works on LSPS. APNet denotes our method. APNet+v considers extra vertical stripe features.
+
+Net is a unified model and is likely to present better computational and memory efficiencies.
+
+PRW. On PRW, APNet achieves competitive performance, e.g., $81.4\%$ in rank-1 accuracy and $41.9\%$ in mAP, outperforming most of recent works. APNet also significantly outperforms the RDLR [3] in rank-1 accuracy with a weaker backbone, i.e., by $9.3\%$ in rank-1 accuracy. Since certain query images in PRW cover partial body parts, APNet exhibits more substantial advantages with partial matching. It also outperforms CGPS [29] and QEEPS [15] by $7.8\%$ and $4.7\%$ in rank-1, respectively. Note that, CGPS [29] and QEEPS [15] input each query-gallery pair into CNN for similarity computation, hence also present inferior retrieval efficiency compared with APNet.
+
+LSPS. We finally present experimental results on LSPS. OIM [24] is compared as the baseline. APNet brings $3.9\%$ rank-1 improvement over the baseline, achieving $51.6\%$ and $17.1\%$ in rank-1 and mAP, respectively. APNet also outperforms the recent VPM [21], which solves the partial reID problem. To consider the misalignment in horizontal direction, we further apply additional vertical stripe features. The corresponding method, i.e., $\mathrm{APNet + v}$ achieves the best performance, achieving $55.7\%$ and $18.8\%$ in rank-1 and mAP, respectively. It is also clear that, the performance of APNet on LSPS is substantially lower than the ones on PRW and CUHK-SYSU, indicating the challenges of LSPS.
+
+# 7. Conclusion
+
+This paper proposes an APNet to solve the bounding box misalignment issues in person search. APNet refines detected boxes to cover the estimated holistic body regions, meanwhile extracting part features from visible body parts. This formulates reID as a partial feature matching procedure, where valid part features are selected for similarity computation, while part features on occluded or noisy regions are discarded. This paper also contributes a LSPS dataset, which is by far the largest and the most challenging dataset for person search. Experiments show that APNet brings considerable performance improvement on LSPS. Moreover, it achieves competitive performance on existing person search benchmarks like CUHK-SYSU and PRW.
+
+Acknowledgments This work is supported in part by The National Key Research and Development Program of China under Grant No. 2018YFE0118400, in part by Beijing Natural Science Foundation under Grant No. JQ18012, in part by Natural Science Foundation of China under Grant No. 61936011, 61425025, 61620106009, 61572050, 91538111.
+
+# References
+
+[1] Di Chen, Shanshan Zhang, Wanli Ouyang, Jian Yang, and Ying Tai. Person search via a mask-guided two-stream cnn model. In ECCV, 2018.
+[2] Hao-Shu Fang, Shuqin Xie, Yu-Wing Tai, and Cewu Lu. RMPE: Regional multi-person pose estimation. In ICCV, 2017.
+[3] 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.
+[4] Liu Hao, Jiashi Feng, Zequn Jie, Karlekar Jayashree, Zhao Bo, Meibin Qi, Jianguo Jiang, and Shuicheng Yan. Neural person search machines. In ICCV, 2017.
+[5] Kaiming He, Georgia Gkioxari, Piotr Dolkar, and Ross Girshick. Mask r-cnn. In ICCV, 2017.
+[6] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
+[7] Lingxiao He, Liang Jian, Haiqing Li, and Zhenan Sun. Deep spatial feature reconstruction for partial person re-identification: Alignment-free approach. In CVPR, 2018.
+[8] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv preprint arXiv:1703.07737, 2017.
+[9] Ruibing Hou, Bingpeng Ma, Hong Chang, Xinqian Gu, Shiguang Shan, and Xilin Chen. Interaction-and-aggregation network for person re-identification. In CVPR, 2019.
+[10] Mahdi M Kalayeh, Emrah Basaran, Muhittin Gokmen, Mustafa E Kamasak, and Mubarak Shah. Human semantic parsing for person re-identification. In CVPR, 2018.
+[11] Jianing Li, Shiliang Zhang, Qi Tian, Meng Wang, and Wen Gao. Pose-guided representation learning for person re-identification. IEEE transactions on pattern analysis and machine intelligence, 2019.
+[12] Wei Li, Xiatian Zhu, and Shaogang Gong. Harmonious attention network for person re-identification. In CVPR, 2018.
+[13] Yi Li, Haozhi Qi, Jifeng Dai, Xiangyang Ji, and Yichen Wei. Fully convolutional instance-aware semantic segmentation. In ECCV, 2016.
+[14] Jiaxu Miao, Yu Wu, Ping Liu, Yuhang Ding, and Yi Yang. Pose-guided feature alignment for occluded person re-identification. In ICCV, 2019.
+[15] Bharti Munjal, Sikandar Amin, Federico Tombari, and Fabio Galasso. Query-guided end-to-end person search. In CVPR, 2019.
+[16] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015.
+[17] Chi Su, Jianing Li, Shiliang Zhang, Junliang Xing, Wen Gao, and Qi Tian. Pose-driven deep convolutional model for person re-identification. In ICCV, 2017.
+[18] Chi Su, Fan Yang, Shiliang Zhang, Qi Tian, Larry S Davis, and Wen Gao. Multi-task learning with low rank attribute embedding for person re-identification. In CVPR, 2015.
+[19] Chi Su, Shiliang Zhang, Junliang Xing, Wen Gao, and Qi Tian. Deep attributes driven multi-camera person re-identification. In ECCV, 2016.
+
+[20] Chi Su, Shiliang Zhang, Fan Yang, Guangxiao Zhang, Qi Tian, Wen Gao, and Larry S Davis. Attributes driven tracklet-to-tracklet person re-identification using latent prototypes space mapping. Pattern Recognition, 66:4–15, 2017.
+[21] Yifan Sun, Qin Xu, Yali Li, Chi Zhang, Yikang Li, Shengjin Wang, and Jian Sun. Perceive where to focus: Learning visibility-aware part-level features for partial person re-identification. In CVPR, 2019.
+[22] 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.
+[23] Chiat-Pin Tay, Sharmili Roy, and Kim-Hui Yap. Aanet: Attribute attention network for person re-identifications. In CVPR, 2019.
+[24] Xiao Tong, Li Shuang, Bochao Wang, Lin Liang, and Xiaogang Wang. Joint detection and identification feature learning for person search. In CVPR, 2017.
+[25] Cheng Wang, Qian Zhang, Chang Huang, Wenyu Liu, and Xinggang Wang. Mancs: A multi-task attentional network with curriculum sampling for person re-identification. In ECCV, 2018.
+[26] Guanshuo Wang, Yufeng Yuan, Chen Xiong, Jiwei Li, and Zhou Xi. Learning discriminative features with multiple granularities for person re-identification. In ACM MM, 2018.
+[27] Longhui Wei, Shiliang Zhang, Hantao Yao, Wen Gao, and Qi Tian. Glad: Global-local-alignment descriptor for pedestrian retrieval. In ACM MM, 2017.
+[28] Lan Xu, Xiatian Zhu, and Shaogang Gong. Person search by multi-scale matching. In ECCV, 2018.
+[29] Yichao Yan, Qiang Zhang, Bingbing Ni, Wendong Zhang, and Xiaokang Yang. Learning context graph for person search. In CVPR, 2019.
+[30] Wenjie Yang, Houjing Huang, Zhang Zhang, Xiaotang Chen, Kaiqi Huang, and Shu Zhang. Towards rich feature discovery with class activation maps augmentation for person re-identification. In CVPR, 2019.
+[31] Feng Zheng, Cheng Deng, Xing Sun, Xinyang Jiang, Xiaowei Guo, Zongqiao Yu, Feiyue Huang, and Rongrong Ji. Pyramidal person re-identification via multi-loss dynamic training. In CVPR, 2019.
+[32] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015.
+[33] Liang Zheng, Hengheng Zhang, Shaoyan Sun, Manmohan Chandraker, and Qi Tian. Person re-identification in the wild. In CVPR, 2017.
+[34] Meng Zheng, Srikrishna Karanam, Ziyan Wu, and Richard J Radke. Re-identification with consistent attentive siamese networks. In CVPR, 2019.
+[35] WeiShi Zheng, Li Xiang, Xiang Tao, Shengcai Liao, Jianhuang Lai, and Shaogang Gong. Partial person re-identification. In CVPR, 2016.
+[36] Zhedong Zheng, Liang Zheng, and Yi Yang. A discriminatively learned cnn embedding for person reidentification. ACM Transactions on Multimedia Computing, Communications, and Applications (TOMM), 14(1):13, 2018.
\ No newline at end of file
diff --git a/robustpartialmatchingforpersonsearchinthewild/images.zip b/robustpartialmatchingforpersonsearchinthewild/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..82f5e57929bef0e62e4e8575d0daaed4ca5a4164
--- /dev/null
+++ b/robustpartialmatchingforpersonsearchinthewild/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:70cab39f8f3eca25902c5ac9864dc0c49b509e836c44ec87a388df5978008a8f
+size 425675
diff --git a/robustpartialmatchingforpersonsearchinthewild/layout.json b/robustpartialmatchingforpersonsearchinthewild/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..344b5c610a4e9558366b36ea64ad723e7d324758
--- /dev/null
+++ b/robustpartialmatchingforpersonsearchinthewild/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:85a424955b4e606cffe46cddf4d967961c18ada873c8151f1eb04ad7d46b61b4
+size 461280
diff --git a/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_content_list.json b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..df28638e58f06a74bcb5206a7890528765d63a26
--- /dev/null
+++ b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4018966b8fd2241f74bbb101ab665151ed2d2dc71949ff0de9a638d102ab2914
+size 69874
diff --git a/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_model.json b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d8d6cf87a343380873b1c4728cc8bedda0ca5b0
--- /dev/null
+++ b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3876c1679a2e1b361dd4b788ec5ec234f2028e9b218a13f431cb7e867750bb98
+size 86106
diff --git a/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_origin.pdf b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b31444af081a3b303edfc902e93e378051b341c4
--- /dev/null
+++ b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/dbb88380-b267-4519-a801-915fceceb87d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18db13733ad69c76ee584ab403e7dbafb2ff7e67f49260e24bc18fe313c4644c
+size 8802680
diff --git a/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/full.md b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..66113a3be05b28cf5a4e0d880e5b3392f74a6489
--- /dev/null
+++ b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/full.md
@@ -0,0 +1,285 @@
+# Robust Reference-based Super-Resolution with Similarity-Aware Deformable Convolution
+
+Gyumin Shim Jinsun Park In So Kweon
+
+Robotics and Computer Vision Laboratory
+
+Korea Advanced Institute of Science and Technology, Republic of Korea
+
+{shimgyumin, zzangjinsun, iskweon77}@kaist.ac.kr
+
+# Abstract
+
+In this paper, we propose a novel and efficient reference feature extraction module referred to as the Similarity Search and Extraction Network (SSEN) for reference-based super-resolution (RefSR) tasks. The proposed module extracts aligned relevant features from a reference image to increase the performance over single image super-resolution (SISR) methods. In contrast to conventional algorithms which utilize brute-force searches or optical flow estimations, the proposed algorithm is end-to-end trainable without any additional supervision or heavy computation, predicting the best match with a single network forward operation. Moreover, the proposed module is aware of not only the best matching position but also the relevancy of the best match. This makes our algorithm substantially robust when irrelevant reference images are given, overcoming the major cause of the performance degradation when using existing RefSR methods. Furthermore, our module can be utilized for self-similarity SR if no reference image is available. Experimental results demonstrate the superior performance of the proposed algorithm compared to previous works both quantitatively and qualitatively.
+
+# 1. Introduction
+
+Single Image Super-Resolution (SISR) aims to reconstruct a high-resolution (HR) image from a low-resolution (LR) image. Despite its notorious difficulty, SISR [34, 9] has received substantial attention due to its importance and practicality. As the Convolutional Neural Network (CNN) has demonstrated its capability in various research areas, including SISR, numerous deep learning-based SISR methods have been proposed [5, 14, 18] and have shown substantial performance improvements, especially with respect to reconstruction accuracy. To achieve a high peak signal-to-noise ratio (PSNR), the optimization process is typically defined as the minimization of the mean-squared-error (MSE) or the mean-absolute-error (MAE) between a ground truth
+
+
+Figure 1: RefSR results with reference images with varying levels of similarity. XH, H, M, L, and XL denote very-high, high, middle, low, and very-low similarity levels, respectively.
+
+image and a predicted high-resolution image. This type of algorithm has a critical limitation in that the generated solution is the mean or median of possible high-resolution images, with a lack of high-frequency details and a blurred visual quality level.
+
+In order to obtain high-resolution images with realistic textures, high-level feature similarity between the high-resolution and reconstructed images is enforced. Perceptual loss [12] or Generative Adversarial Network (GAN)-based algorithms [17, 24] are proposed for better output perceptual quality levels in SR. Specifically, adversarial learning helps a generator network to synthesize more realistic images while competing with a discriminator which attempts to differentiate super-resolved and original HR images. Although those algorithms provide visually pleasing outputs, they do not ensure an accurate reconstruction of the original high-resolution image, and this leads to PSNR degradation.
+
+To mitigate this problem, some methods explicitly exploit additional information to make the SR outputs more like the ground truth and more visually pleasing [42, 40].
+
+Because the original high-frequency information is lost due to the down-sampling process, it is highly challenging to reconstruct the precise high-frequency details of the ground truth. For such high-frequency details, providing similar content explicitly is a more reasonable approach compared to generating fake textures. Hence, the importance of reference-based SR (RefSR) is rapidly arising to overcome the limitations of SISR. RefSR aims to recover high-resolution images by utilizing an external reference (Ref) containing similar content to generate rich textures, changing the one-to-many to an one-to-one mapping problem (i.e., mapping textures from the reference to the output). Many existing SR algorithms can be regarded as special cases of RefSR based on which reference image is paired with the input. For instance, reference images can be diversely acquired from video frames [19, 3], web image searches [35], or from different view points [42]. Conventional RefSR algorithms [2, 41, 42] are known to have a critical limitation in that the reference image should contain similar content to avoid any unexpected degradation in the performance. The most desired behavior of the RefSR algorithm is that it should be aware of the degree of similarity between low-resolution and reference images so as not to be affected by irrelevant reference images.
+
+Inspired by recent works on video SR [26, 28] and RefSR methods [35, 42, 40], we propose a novel reference feature extraction module for the RefSR task. The module consists of stacked deformable convolution layers, and it can be inserted into any existing super-resolution network. The major benefit of our approach is that we aggressively search for similarity using a sophisticatedly designed offset estimator which learns the offsets of the deformable convolution. We adopt a non-local block [29] for our offset estimator, which performs pixel- or patch-wise similarity matching in a multi-scale manner. With the benchmark dataset used with RefSR, which has images paired with reference images with five different levels of similarity [40], we conduct experiments to demonstrate the superiority of the proposed algorithm. Experimental results show that our reconstruction results are more accurate and realistic with the help of the proposed module compared to the outcomes of previous algorithms.
+
+Figure 1 shows the result of our method with reference images with different levels of similarity. Our method shows robustness to similarity variations. Even with a reference image with unrelated content or a much lower similarity level, our method still produces less noisy output, demonstrating the adaptiveness/robustness to various levels of content similarity in RefSR.
+
+In summary, our contributions are as follows:
+
+- We propose a novel end-to-end trainable reference feature extraction module termed the Similarity Search and Extraction Network, with similarity-aware deformable convolutions.
+- The proposed method shows superior robustness/adaptiveness without any PSNR degradation given irrelevant references.
+- The proposed method can be utilized not only for RefSR but also for exploiting self-similarity if no reference image is available.
+
+# 2. Related Works
+
+# 2.1. Single Image Super-Resolution
+
+Conventional SISR algorithms aim to reconstruct HR images as accurately as possible by optimizing pixel-level reconstruction errors such as MSE and MAE. Dong et al. [5] propose a three-layer CNN-based SISR algorithm, referred to as SRCNN. Each layer of SRCNN is closely related to sparse representation, and it shows substantial performance improvements compared to those of conventional algorithms. Kim et al. [13, 14] propose a very deep CNN with input-output skip connections and a recursive architecture, offering stable and rapid convergence. Recently, the reconstruction accuracy was improved even further by adopting deeper networks with residual blocks and subpixel convolutions [18].
+
+To overcome the major drawback of reconstruction-oriented SISR algorithms which produce blurred and nonrealistic textures [17], perceptual loss [12] has been proposed to improve the perceptual quality of the generated images by minimizing feature-level differences extracted from a ImageNet [15] pre-trained network. Currently, GAN is known to be effective when used to generate realistic images [8], and numerous GAN-based SISR algorithms [17, 30] have been proposed. SRGAN [17] is the first GAN-based SISR algorithm which generates more realistic SR images compared to those of conventional algorithms. However, it was also found that degradation of the reconstruction accuracy is inevitable with GAN-based approaches, because generated realistic textures do not always correspond to ground truth textures.
+
+# 2.2. Reference-based SR
+
+Earlier works on RefSR derive from patch matching or patch synthesis schemes [2, 41]. Zheng et al. [41] propose a RefSR algorithm based on patch matching and synthesis with a deep network. Down-sampled patches are used for patch matching and for finding correspondences between input and reference images. However, those schemes have critical drawbacks in that they produce blur and grid artifacts and are unable to handle non-rigid image deformations
+
+
+Figure 2: Illustration of our RefSR framework. A stack of two deformable convolution layers is depicted in the figure.
+
+or inter-patch misalignments. Moreover, optimization including patch matching is inefficient due to its high computational cost. CrossNet [42] defines RefSR as a task where the reference image shares a similar viewpoint with a LR input image, and proposes an end-to-end neural network combining a warping process and image synthesis based on an optical flow [6, 10]. However, the ground truth for the optical flow is obtained at a high cost, and the flow estimation from other pre-trained networks is not accurate. In addition, although warping somewhat handles non-rigid deformation, it is highly vulnerable to large motions. SRNTT [40] points out the problem of robustness in CrossNet [42], arguing that severe performance degradation occurs when an unrelated reference image is paired with an input image. In SRNTT [40], a patch-wise matching scheme is adopted at the multi-scale feature level, which sacrifices computational efficiency for capturing long distance dependencies.
+
+# 2.3. Self-Similarity and Non-local Block in SR
+
+In a natural image, similar patterns tend to recur within the same image. Various methods have been studied regarding how to exploit self-similarity for image restoration [7, 33]. Those approaches attempt to utilize the internal information as a reference to reconstruct high-quality images. Huang et al. [9] propose a model allowing geometric transformation, which handles perspective distortions and affine transformations. However, the method of utilizing the intrinsic properties of images in deep learning-based methods remains ambiguous.
+
+To deal with this problem, non-local block [29] based approaches [20, 38] have been proposed. The non-local operation computes pixel-wise correlations to capture long-range and global dependencies. The correlation is computed as a weighted sum of all positions in the input feature maps. This approach largely overcomes the locality of pre
+
+vious CNNs and is therefore suitable for various computer vision applications that require large receptive fields. The proposed method can be used to search not only for correspondences between input and reference image but also for self-similarity within a single image with the help of non-local blocks.
+
+# 3. Similarity Search and Extraction Network
+
+# 3.1. Network Architecture
+
+The goal of reference-based super-resolution is to estimate a high-resolution image given a low-resolution input image and a high-resolution reference image. Inspired by the feature aligning capability of deformable convolution [26, 28], we formulate the RefSR problem as an integrative reconstruction process of matching similar contents between input and reference features and extracting the reference features in an aligned form. We propose an end-to-end unified framework that transfers HR details from reference images to restore high-frequency textures with the help of the proposed reference feature extraction module, specifically Similarity Search and Extraction Network (SSEN). The overall structure of SSEN is shown in Fig. 2. As input-reference pair of images are fed into the framework to reconstruct the high-resolution image, SSEN extracts features from the reference images in an aligned form, matching the contents in the pixel space without any flow supervision.
+
+We design deformable convolution layers in a sequential approach, noting that the receptive field becomes larger as stacking continues in a sequential manner. Stacking multiple layers of deformable convolution, we discover that three layers of deformable convolution are the optimal structure for the best performance (c.f., Tab. 4). As RefSR expects to search for similar areas within the entire image, a large receptive field is the most critical issue during this task. For
+
+this purpose, a multi-scale structure and non-local blocks are adopted to propagate offset information. Our module softly conducts pixel- or patch-level matching with an extremely large receptive field, estimating the offsets for deformable convolution kernels.
+
+# 3.2. Stacked Deformable Convolution Layers
+
+Deformable convolution [4] is proposed to improve the CNN's capability to model geometric transformations. It is trained with a learnable offset, which helps with the sampling of pixel points with a deformed sampling grid. Due to this characteristic, it is widely leveraged for feature alignments or implicit motion estimations without any optical-flow priors [26, 28]. In this work, we leverage the deformable convolution for the similarity search and extraction steps, adopting modulated deformable convolution [43] which additionally learns the dynamic weights of the sampling kernels with a modulation scalar.
+
+In the modulated deformable convolution, modulation scalars are learned together with offsets to make the kernels more spatially-variant. Formally, the deformable convolution operation is defined as follows:
+
+$$
+Y (p) = \sum_ {k = 1} ^ {K} w _ {k} \cdot X \left(p + p _ {k} + \triangle p _ {k}\right) \cdot \triangle m _ {k}, \tag {1}
+$$
+
+where $X$ is the input, $Y$ is the output, and $k$ and $K$ correspondingly denote the index and the number of kernel weights. $w_{k}$ , $p$ , $p_{k}$ and $\triangle p_{k}$ are the $k$ -th kernel weight, indices of the center, the $k$ -th fixed offset and the learnable offsets for the $k$ -th location, respectively. $\triangle m_{k}$ is the modulation scalar, which enables relevancy-aware weight learning to robustly extract correspondences for cluttered or irrelevant input data in RefSR.
+
+SSEN consists of several deformable convolution layers arranged in a sequential manner as shown in Fig. 2. The purpose of the stacking of deformable convolution layers sequentially is to sample more locations from reference images for aligning features with a larger receptive field. SSEN gradually aligns reference features to input features in each layer according to the offset provided from the dynamic offset estimator, which will be covered in detail in the following section.
+
+# 3.3. Dynamic Offset Estimator
+
+To capture the similarity located from near to far distances, the offset should be learned dynamically (i.e., the offset should be able to cover a wide range of area, actively reaching various and distant positions). We design an offset estimator for learning the dynamic offsets, called dynamic offset estimator. Because the offset for deformable convolution should be learned based on the similarity between the reference image and the input low-resolution image, a reference feature and an input feature are concatenated as an
+
+
+Figure 3: The proposed dynamic offset estimator. Features are down-sampled and fed into non-local blocks. The estimator is designed to learn residuals with skip connections.
+
+input for the dynamic offset estimator, as shown in Fig. 3. We follow the multi-scale philosophy commonly adopted in optical flow estimations [6, 10]. The concatenated input is down-sampled three times such that multiple levels of scales can be considered when predicting offsets.
+
+To localize relevant features which can be located at far distances effectively, we exploit non-local blocks in the dynamic offset estimator. The non-local operations capture the global correlation of intra- or inter-features, which helps with the prediction of dynamic offsets with an extremely large receptive field to handle both small and large displacements. We utilize three non-local blocks in the dynamic offset estimator so that the features are amplified with attention in each level of scale. Note that the processing of non-local operations with regard to down-sampled features can be considered as measuring the patch-wise similarity rather than the pixel-wise similarity.
+
+Given an input $\mathbf{x}$ and an output $\mathbf{y}$ , the non-local block operation is defined as follows:
+
+$$
+\mathbf {y} _ {i} = \mathbf {x} _ {i} + W _ {\mathbf {y}} \frac {1}{C (\mathbf {x})} \sum_ {j} f \left(\mathbf {x} _ {i}, \mathbf {x} _ {j}\right) g \left(\mathbf {x} _ {j}\right), \tag {2}
+$$
+
+where $i$ is the index of the output position and $j$ is the index of all possible positions. $W_{\mathbf{y}}$ denotes the weight matrix and $C(\mathbf{x})$ is the normalization factor. $f(\cdot)$ and $g(\cdot)$ represent the pair-wise operation and the linear embedding function, respectively.
+
+Here, we can consider $\mathbf{y}$ as an attention guided feature, which highlights the global correlation between the input feature and the reference feature at the pixel- or patch-level. The function $g(\mathbf{x}_j)$ can be expressed as $\mathbf{W}_g\mathbf{x}_j$ , which computes the linear embedding of the input signal $\mathbf{x}$ at position $j$ . $f(\mathbf{x}_i,\mathbf{x}_j)$ calculates the pairwise similarity between $\mathbf{x}_i$ and $\mathbf{x}_j$ . In this operation, we expect the similarity to be calculated in a similar manner to an inner product which is commonly used in patch matching. We adopt an embedded Gaussian function [29] for this pairwise operation defined
+
+
+Figure 4: Illustration of the self-similarity SR framework
+
+as follows:
+
+$$
+f \left(\mathbf {x} _ {i}, \mathbf {x} _ {j}\right) = \exp \left(\theta \left(\mathbf {x} _ {i}\right) ^ {T} \phi \left(\mathbf {x} _ {j}\right)\right), \tag {3}
+$$
+
+where $\theta (\cdot)$ and $\phi (\cdot)$ are two linear embedding functions. For parameter-efficiency, we halve the dimension of the embeddings within the dynamic offset estimator.
+
+# 3.4. RefSR and Self-Similarity SR Framework
+
+RefSR The baseline is implemented with stacked residual blocks [18], which consist of residual blocks without batch normalization. Following previous work [18], we remove batch normalization from the network for better super-resolution performance. Note that SSEN can easily be attached to any existing super-resolution architecture.
+
+The reference features extracted from the SSEN are fused with the input feature at the mid-level, after which the fused features are processed further at reconstruction network before they are up-sampled (c.f., Fig. 2). In addition, a global skip connection between the input and output layers is adopted to ensure that our network focuses on residual feature learning. All feature manipulations are conducted at one-quarter of the size of the input spatial dimensions for efficient computation.
+
+Self-Similarity SR If no appropriate reference image is available, the SSEN can be utilized in a self-reference manner. As shown in Fig. 4, the feature to be referenced is extracted from the same input image. In this situation, the proposed module is expected to exploit cues from the input image (i.e., cues from itself), which can be helpful to minimize the reconstruction loss.
+
+For the reconstruction network, we adopt RCAN [37] as our baseline network, which shows the best performance in SISR without a self-ensemble scheme. RCAN is designed with a residual-in-residual structure, which consists of several residual blocks with short skip connections. In addition, it adopts a channel attention mechanism to consider inter-dependencies among channels. The performance of SISR can be improved by seamlessly inserting the SSEN into a baseline network.
+
+# 3.5. Training Objective
+
+For the objective function, we adopt the Charbonnier penalty function [16] as the final training objective, which is
+
+known to help with the handling of outliers to improve the performance. The Charbonnier penalty is defined as follows:
+
+$$
+\mathcal {L} _ {r e c} = \sqrt {\| I ^ {H R} - I ^ {S R} \| ^ {2} + \varepsilon^ {2}}, \tag {4}
+$$
+
+where $I^{HR}$ and $I^{SR}$ denote the ground truth and the output from the proposed algorithm, respectively. $\varepsilon$ is set to $1e^{-6}$ .
+
+Moreover, perception-oriented objectives [12, 11] can be incorporated together to generate rich and realistic textures. For instance, PatchGAN judges realism at the scale of the image patches and shows performance superior to those of other GAN classifiers [11].
+
+The objective of the PatchGAN is defined as follows:
+
+$$
+\begin{array}{l} \mathcal {L} _ {a d v} = \min _ {G} \max _ {D} \mathbb {E} _ {I ^ {H R} \sim \mathbb {P} _ {r}} [ \log D (I ^ {H R}) ] \\ + \mathbb {E} _ {I ^ {S R} \sim \mathbb {P} _ {g}} [ \log (1 - D (I ^ {S R})) ], \tag {5} \\ \end{array}
+$$
+
+where $G$ denotes the generator which generates $I^{SR}$ , and $D$ stands for the discriminator. $\mathbb{P}_r$ and $\mathbb{P}_g$ are the real data distribution and the model distribution, respectively.
+
+# 4. Experimental Results
+
+# 4.1. Dataset
+
+We use the CUFED dataset [31] which contains 1883 albums that describe daily life events, to train the network for RefSR. For the RefSR task, there is the assumption that reference images contain contents similar to those of the input low-resolution images. To guarantee this assumption, Zhang et al. [40] reorganize the CUFED dataset into 13,761 image pairs scored based on the number of SIFT [22] correspondence matches. Furthermore, to evaluate the RefSR methods, the authors propose the CUFED5 dataset with 126 groups. Each high-resolution image is paired with five different reference images with five different levels of similarity. We adopt a random $90^{\circ}$ rotation for augmentation during the training process.
+
+For self-similarity SR, we utilize the DIV2K dataset [27], which has been widely used as a benchmark dataset in SR tasks. We augment the training data with random cropping with a patch size of $192 \times 192$ and a random $90^{\circ}$ rotation. For the evaluation, the Urban100 [9], Set5 [1], Set14 [36], and B100 [23] datasets are utilized.
+
+# 4.2. Training Details
+
+All experiments are conducted with a scaling factor of $\times 4$ between the LR and HR images. The network is trained with an initial learning rate of $1e^{-4}$ using the ADAM optimizer with $\beta_{1} = 0.9$ and $\beta_{2} = 0.999$ . We use PyTorch to implement the model on an NVIDIA 1080Ti GPU. For the training of the network with $L_{adv}$ , we initially pre-train the network only with the reconstruction loss, after which we fine-tune the network with the GAN loss attached to
+
+| SISR | PSNR | SSIM |
| Bicubic | 24.18 | 0.684 |
| SRCNN [5] | 25.33 | 0.745 |
| LapSRN [16] | 24.92 | 0.730 |
| MDSR [18] | 25.93 | 0.777 |
| SRGAN [17] | 24.40 | 0.702 |
| ENet [24] | 24.24 | 0.695 |
| Baseline | 26.36 | 0.779 |
+
+(a) SISR
+
+| RefSR | PSNR | SSIM |
| Landmark [35] | 24.91 | 0.718 |
| CrossNet [42] | 25.48 | 0.764 |
| SRNTT [40] | 25.61 | 0.764 |
| SRNTT-ℓ2 [40] | 26.24 | 0.764 |
| Ours | 26.78 | 0.791 |
+
+the training objective. We train the network for 100K iterations with a batch size of 32 and adopt a cosine learning rate schedule scheme [21] with $\gamma = 0.9$ .
+
+# 4.3. Quantitative and Qualitative Evaluations
+
+RefSR We compare the quantitative and qualitative results to those of other GAN-based SISR and RefSR methods to demonstrate the superior performance of the proposed method. Figure 5 shows comparisons of our method with other SISR and RefSR methods in terms of the visual quality. Overall, our method shows better visual quality with less noise, clear contents, and greater relevancy with the ground truth.
+
+To evaluate our approach quantitatively, we measure the PSNR and SSIM (structural similarity) [32] as a means of distortion-oriented measurements. As shown in Tab. 1, our method is compared with various methods, including SISR and RefSR methods. The SISR methods are SRCNN [5], LapSRN [16], MDSR [18], SRGAN [17], and ENet [24], and the RefSR methods are Landmark [35], CrossNet [42], SRNTT [40], and SRNTT- $\ell_2$ . The difference between SRNTT and SRNTT- $\ell_2$ is the presence of perceptual and adversarial losses during the training. SRNTT- $\ell_2$ is trained only with the reconstruction loss to achieve a higher PSNR. All methods are trained with the CUFED dataset and are tested on the CUFED5 dataset. Our method achieves the highest PSNR and outperforms all previous methods by a large margin (see Tab. 1). We emphasize that the effectiveness of the proposed algorithm is caused by less noisy outputs, the clearer boundaries, and the relevant textures softly transferred from the reference (see Fig. 5).
+
+Self-Similarity SR For a fair comparison with the SISR methods, we utilize SSEN in a self-reference manner. As depicted in Fig. 4, the overall network is modified to enable the self-reference capability. In this variant, a LR input image is fed into the baseline and the SSEN simultaneously to extract self-reference features from the input image. Our method is mainly tested on the Urban100 [9] dataset, which contains structured scenes and rich textures to be utilized for self-similarity SR.
+
+Figure 6 shows a qualitative comparison between models with and without the SSEN on the Urban100 dataset. We
+
+(b) RefSR
+Table 1: PSNR / SSIM comparisons with other SR methods on the CUFED5 dataset. We group methods by (a) SISR and (b) RefSR. The best performances are written in bold.
+
+| Methods | Urban100 | Set5 | Set14 | B100 |
| Bicubic | 23.14/0.657 | 28.42/0.810 | 26.00/0.702 | 25.96/0.667 |
| SRCNN [5] | 24.52/0.722 | 30.48/0.862 | 27.50/0.751 | 26.90/0.710 |
| VDSR [14] | 25.18/0.754 | 31.35/0.883 | 28.02/0.768 | 27.29/0.072 |
| LapSRN [16] | 25.21/0.756 | 31.54/0.885 | 28.19/0.772 | 27.32/0.727 |
| MemNet [25] | 25.50/0.763 | 31.74/0.889 | 28.26/0.772 | 27.40/0.728 |
| EDSR [18] | 26.64/0.803 | 32.46/0.896 | 28.80/0.787 | 27.71/0.742 |
| RDN [39] | 26.61/0.802 | 32.47/0.899 | 28.81/0.787 | 27.72/0.741 |
| RCAN [37] | 26.82/0.808 | 32.63/0.900 | 28.87/0.788 | 27.77/0.743 |
| Baseline | 26.61/0.802 | 32.46/0.898 | 28.79/0.787 | 27.69/0.740 |
| Ours | 26.71/0.808 | 32.48/0.899 | 28.84/0.788 | 27.72/0.742 |
+
+Table 2: PSNR / SSIM comparisons with other SISR methods on benchmark datasets.
+
+| Methods | XH | H | M | L | XL |
| SRNTT | 25.17/0.734 | 25.13/0.729 | 25.06/0.728 | 25.07/0.720 | 25.14/0.729 |
| SRNTT-ℓ2 | 26.06/0.765 | 25.97/0.760 | 25.90/0.758 | 25.88/0.758 | 25.87/0.757 |
| Baseline | 26.36/0.779 |
| Ours | 26.78/0.791 | 26.52/0.783 | 26.48/0.782 | 26.42/0.781 | 26.41/0.780 |
| Ours (GAN+) | 25.35/0.742 | 25.05/0.732 | 24.99/0.730 | 24.95/0.729 | 24.98/0.730 |
+
+Table 3: PSNR / SSIM comparisons with five different levels of similarity. The best numbers for each level of similarity are written in bold.
+
+confirm that our method successfully recovers structured and recurring details by transferring finer textures from distant pixels. Relevant reference features extracted from distant pixels are well aligned by the SSEN, and this leads to more accurate and visually pleasing reconstruction results.
+
+Table 2 shows quantitative comparisons with other SISR methods. SRCNN [5], VDSR [14], LapSRN [16], MemNet [25], EDSR [18], RDN [39], and RCAN [37] are compared with our self-similarity SR method. We mainly demonstrate the effectiveness of our module by verifying the performance improvement when the SSEN is attached during the training process. Note that while we reproduce our baseline with the RCAN [37] network unit, we achieve a slightly lower PSNR than the result reported in an earlier paper [37]. However, a PSNR improvement of 0.1dB is observed with our module on the Urban100 dataset. This confirms the effectiveness of the SSEN in self-similarity SR.
+
+# 4.4. Ablation Studies
+
+Robustness to Irrelevancy In this section, we compare the robustness to irrelevancy of the proposed method and SRNTT [40] at five different similarity levels. In Tab. 3, XH, H, M, L, and XL denote very-high, high, middle, low, and very-low similarities, respectively. In a perceptual quality-oriented training condition (i.e., SRNTT and ours $(\mathrm{GAN}+))$ , our method outperforms at the very-high similarity level. Note that the performance of the proposed method with GAN for the other similarity levels can be improved by adjusting the weights for $L_{rec}$ and $L_{adv}$ . In a reconstruction-oriented training condition (i.e., SRNTT- $\ell_2$ and ours), our method shows superior robustness at every
+
+
+Figure 5: Qualitative comparisons with other SR methods on the CUFED5 dataset.
+
+level of similarity compared to SRNTT- $\ell_2$ . Robustness can be strongly proven given that our method consistently outperforms the baseline, which means that even a reference image with a low level of similarity is still quite effectively utilized by our method.
+
+Number of Deformable Convolution Layers As shown in Tab. 4, we conduct an ablation study to investigate the optimal number of deformable convolution layers in Sec. 3.2. We confirm that three layers of deformable convolution are the optimal number for the best performance. Compared to the performance of the baseline, adding only one deformable convolution layer shows a great improvement,
+
+with a PSNR of 0.23dB at the XH level, whereas the performance rarely improves without any deformable convolution layers. Because the output features in each layer have different levels of alignment, a skip connection would be inappropriate if added to each deformable convolution layer. This implies that the deeper the network, the more difficult it is to train. Hence, stacking more layers (e.g., more than four layers) does not guarantee better performance.
+
+Effect of Non-Local Block To validate the importance of non-local blocks in our dynamic offset estimator in Sec. 3.3, we compare the performance of the proposed algorithm with and without non-local blocks, as shown in
+
+
+Figure 6: Qualitative results of self-similarity SR. PSNR and SSIM scores are shown together.
+
+| # of layers | XH | H | M | L | XL |
| Baseline | 26.36/0.779 |
| No layers | 26.42/0.779 | 26.40/0.779 | 26.39/0.779 | 26.39/0.778 | 26.39/0.778 |
| 1 layer | 26.59/0.785 | 26.47/0.781 | 26.44/0.780 | 26.43/0.780 | 26.41/0.779 |
| 2 layers | 26.64/0.786 | 26.47/0.781 | 26.44/0.780 | 26.41/0.780 | 26.40/0.779 |
| 3 layers | 26.78/0.791 | 26.52/0.783 | 26.48/0.782 | 26.42/0.781 | 26.41/0.780 |
| 4 layers | 26.70/0.789 | 26.45/0.781 | 26.43/0.781 | 26.40/0.780 | 26.38/0.779 |
| w/o NB | 26.68/0.788 | 26.47/0.782 | 26.44/0.781 | 26.41/0.780 | 26.39/0.780 |
| w NB | 26.78/0.791 | 26.52/0.783 | 26.48/0.782 | 26.42/0.781 | 26.41/0.780 |
+
+Table 4: PSNR / SSIM comparisons of (top) the number of layers and (bottom) the presence of non-local blocks (NB). The best numbers are written in bold.
+
+Tab. 4. The network with non-local blocks consistently outperforms that without non-local blocks. This implies that the non-local blocks are helpful to capture the global context and the correlations of each feature, which are necessary to estimate the long-range dependencies. Without nonlocal blocks, we observe performance degradation of $0.1\mathrm{dB}$ at the XH level, as shown in Tab. 4.
+
+Visualization of Offset To validate the similarity- and relevancy-awareness of the proposed method, we visualize offsets which are the sampling locations of deformable convolution. We visualize all sampling locations of a pixel of the reference image. As the SSEN consists of three layers of deformable convolution with a $3 \times 3$ kernel, there are $9^{3}$ sampling points in total per pixel.
+
+As shown in Fig. 7, the sampling points in the originally aligned regions tend to cluster near the output pixel location. On the other hand, in the misaligned area, the sampling locations tend to be spread apart by enlarging their receptive field. By enlarging its receptive field, the SSEN attempts
+
+
+Figure 7: Offset visualization for (a) RefSR and (b) Self-Similarity SR. Reference points are shown on the left images and their corresponding sampling points are shown on the right images. Sampling points are drawn in colors identical to those of the reference points.
+
+to find the best matching pairs of pixels between the input image and the reference image. In the self-similarity SR case, the input and reference images are previously aligned. Therefore, the sampling points are spread out along similar regions or structures.
+
+Computation Time We validate the efficiency of our algorithm further by comparing its computation time with those of other algorithms on a $\times 4$ SR task. PatchMatch [2] takes 86.3s and SS-Net [41] takes 105.6s on average on a GPU. SRNTT [40] takes 9.053s for the patch matching process and 2.909s for reconstruction, i.e., 11.962s in total. The patch matching process is the bottleneck in these methods. Our method generates a $322 \times 550$ image within 0.95s on average due to the effective feature alignment capability without any patch matching process. This is highly beneficial for many real-time applications. The inference time is measured on a machine equipped with an Intel Xeon CPU (2.10 GHz) and an NVIDIA GTX 1080 Ti GPU.
+
+# 5. Conclusion
+
+In this paper, we introduced a reference feature extraction module termed the Similarity Search and Extraction Network (SSEN), which extracts features from reference images in an aligned form relative to the low-resolution features. The proposed method is the first end-to-end trainable RefSR method that does not require heavy computation or explicit flow estimations. Our algorithm outperforms other RefSR methods with more robustness. Moreover, the proposed module can be utilized for self-similarity SR if no reference image is available. To deal with the long distance similarity issue, we adopt a multi-scale structure and non-local blocks for the dynamic offset estimator to predict a wide range of offsets. Experimental results demonstrate that our method achieves state-of-the-art performance quantitatively and qualitatively.
+
+Acknowledgements This work was supported by the Institute for Information & Communications Technology Promotion (2017-0-01772) grant funded by the Korea government.
+
+# References
+
+[1] Marco Bevilacqua, Aline Roumy, Christine Guillemot, and Marie Line Alberi-Morel. Low-complexity single-image super-resolution based on nonnegative neighbor embedding. In Proc. of British Machine Vision Conf. (BMVC), 2012.
+[2] Vivek Boominathan, Kaushik Mitra, and Ashok Veeraraghavan. Improving resolution and depth-of-field of light field cameras using a hybrid imaging system. In IEEE Int'l Conf. on Computational Photography (ICCP), 2014.
+[3] Jose Caballero, Christian Ledig, Andrew Aitken, Alejandro Acosta, Johannes Totz, Zehan Wang, and Wenzhe Shi. Realtime video super-resolution with spatio-temporal networks and motion compensation. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2017.
+[4] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In Proc. of Int'l Conf. on Computer Vision (ICCV), 2017.
+[5] Chao Dong, Chen Change Loy, Kaiming He, and Xiaou Tang. Learning a deep convolutional network for image super-resolution. In Proc. of European Conf. on Computer Vision (ECCV), 2014.
+[6] Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Patrick Van Der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proc. of Int'l Conf. on Computer Vision (ICCV), 2015.
+[7] Gilad Freedman and Raanan Fattal. Image and video upscaling from local self-examples. ACM Trans. on Graph. (ToG), 2011.
+[8] 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 Advances in Neural Information Processing Systems, 2014.
+[9] Jia-Bin Huang, Abhishek Singh, and Narendra Ahuja. Single image super-resolution from transformed self-exemplars. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2015.
+[10] 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 Proc. of Computer Vision and Pattern Recognition (CVPR), 2017.
+[11] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2017.
+[12] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proc. of European Conf. on Computer Vision (ECCV), 2016.
+[13] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Deeplyrecursive convolutional network for image super-resolution. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2016.
+[14] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Accurate image super-resolution using very deep convolutional networks. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2016.
+
+[15] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Proc. of Advances in Neural Information Processing Systems, 2012.
+[16] Wei-Sheng Lai, Jia-Bin Huang, Narendra Ahuja, and Ming-Hsuan Yang. Deep laplacian pyramid networks for fast and accurate super-resolution. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2017.
+[17] 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 Proc. of Computer Vision and Pattern Recognition (CVPR), 2017.
+[18] Bee Lim, Sanghyun Son, Heewon Kim, Seungjun Nah, and Young Mu Lee. Enhanced deep residual networks for single image super-resolution. In Proc. of Computer Vision and Pattern Recognition Workshops (CVPRW), 2017.
+[19] Ce Liu and Deqing Sun. A bayesian approach to adaptive video super resolution. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2011.
+[20] Ding Liu, Bihan Wen, Yuchen Fan, Chen Change Loy, and Thomas S Huang. Non-local recurrent network for image restoration. In Proc. of Advances in Neural Information Processing Systems, 2018.
+[21] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. In Proc. of International Conference on Learning Representations (ICLR), 2017.
+[22] David G Lowe et al. Object recognition from local scale-invariant features. In Proc. of Int'l Conf. on Computer Vision (ICCV), 1999.
+[23] David Martin, Charless Fowlkes, Doron Tal, Jitendra Malik, et al. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proc. of Int'l Conf. on Computer Vision (ICCV), 2001.
+[24] Mehdi SM, Sajjadi, Bernhard Scholkopf, and Michael Hirsch. Enhancenet: Single image super-resolution through automated texture synthesis. In Proc. of Int'l Conf. on Computer Vision (ICCV), 2017.
+[25] Ying Tai, Jian Yang, Xiaoming Liu, and Chunyan Xu. Memnet: A persistent memory network for image restoration. In Proc. of Int'l Conf. on Computer Vision (ICCV), 2017.
+[26] Yapeng Tian, Yulun Zhang, Yun Fu, and Chenliang Xu. Tdan: Temporally deformable alignment network for video super-resolution. arXiv preprint arXiv:1812.02898, 2018.
+[27] Radu Timofte, Eirikur Agustsson, Luc Van Gool, Ming-Hsuan Yang, and Lei Zhang. Ntire 2017 challenge on single image super-resolution: Methods and results. In Proc. of Computer Vision and Pattern Recognition Workshops (CVPRW), 2017.
+[28] Xintao Wang, Kelvin CK Chan, Ke Yu, Chao Dong, and Chen Change Loy. Edvr: Video restoration with enhanced deformable convolutional networks. In Proc. of Computer Vision and Pattern Recognition Workshops (CVPRW), 2019.
+[29] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2018.
+
+[30] 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 Proc. of European Conf. on Computer Vision (ECCV), 2018.
+[31] Yufei Wang, Zhe Lin, Xiaohui Shen, Radomir Mech, Gavin Miller, and Garrison W Cottrell. Event-specific image importance. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2016.
+[32] Zhou Wang, Alan C Bovik, Hamid R Sheikh, Eero P Simoncelli, et al. Image quality assessment: from error visibility to structural similarity. IEEE Trans. on Image Processing (TIP), 2004.
+[33] Chih-Yuan Yang, Jia-Bin Huang, and Ming-Hsuan Yang. Exploiting self-similarities for single frame super-resolution. In Proc. of Asian Conf. on Computer Vision (ACCV), pages 497-510. Springer, 2010.
+[34] Jianchao Yang, John Wright, Thomas S Huang, and Yi Ma. Image super-resolution via sparse representation. IEEE Trans. on Image Processing (TIP), 2010.
+[35] Huanjing Yue, Xiaoyan Sun, Jingyu Yang, and Feng Wu. Landmark image super-resolution by retrieving web images. IEEE Trans. on Image Processing (TIP), 2013.
+[36] Roman Zeyde, Michael Elad, and Matan Protter. On single image scale-up using sparse-representations. In Proc. of Int'l Conf. on Curves and Surfaces, 2010.
+[37] Yulun Zhang, Kunpeng Li, Kai Li, Lichen Wang, Bineng Zhong, and Yun Fu. Image super-resolution using very deep residual channel attention networks. In Proc. of European Conf. on Computer Vision (ECCV), 2018.
+[38] Yulun Zhang, Kunpeng Li, Kai Li, Bineng Zhong, and Yun Fu. Residual non-local attention networks for image restoration. arXiv preprint arXiv:1903.10082, 2019.
+[39] Yulun Zhang, Yapeng Tian, Yu Kong, Bineng Zhong, and Yun Fu. Residual dense network for image superresolution. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2018.
+[40] Zhifei Zhang, Zhaowen Wang, Zhe Lin, and Hairong Qi. Reference-conditioned super-resolution by neural texture transfer. arXiv preprint arXiv:1804.03360, 2018.
+[41] Haitian Zheng, Mengqi Ji, Lei Han, Ziwei Xu, Haoqian Wang, Yebin Liu, and Lu Fang. Learning cross-scale correspondence and patch-based synthesis for reference-based super-resolution. In Proc. of British Machine Vision Conf. (BMVC), 2017.
+[42] Haitian Zheng, Mengqi Ji, Haoqian Wang, Yebin Liu, and Lu Fang. Crossnet: An end-to-end reference-based super resolution network using cross-scale warping. In Proc. of European Conf. on Computer Vision (ECCV), 2018.
+[43] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. In Proc. of Computer Vision and Pattern Recognition (CVPR), 2019.
\ No newline at end of file
diff --git a/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/images.zip b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..66194d8780278ea81f7636dcce1f82da0f25f5ef
--- /dev/null
+++ b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23d632a4ea7dc2ce01ac6fe2f6c5b29fbe9fcdb396ce4af11f73ed9ff842e26b
+size 904506
diff --git a/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/layout.json b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b2f2900aebf38dba031ae904ad29146c036080f4
--- /dev/null
+++ b/robustreferencebasedsuperresolutionwithsimilarityawaredeformableconvolution/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98ce6e02d0aefc3a309c1bb705b7df946c120ea26b7603fbea025108e338d301
+size 323936
diff --git a/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_content_list.json b/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d86cc9d8599ac4c74ba9dc31ce6432e5735c3a9c
--- /dev/null
+++ b/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:caf81efe48430594e1538ed95aae2dc6d9af29df9987bc91f5d164fede248a2a
+size 76569
diff --git a/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_model.json b/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..fffe006c04ab830e094df82caea107133d2c8f23
--- /dev/null
+++ b/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2276e3a1de21a700112902bf6d9e7a30f4c5ccb5358ef73b85a9b5f776d8389
+size 93422
diff --git a/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_origin.pdf b/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bddd780f1a327b66fe3bea4f74c3aba9832be3af
--- /dev/null
+++ b/robustsuperpixelguidedattentionaladversarialattack/61bfa74e-3aa3-41a8-8ab6-4f354e4e675d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bed62125f1a91c8fc877bf92746ecc33d7beff4e372b70f9f7054dea2f811796
+size 13520689
diff --git a/robustsuperpixelguidedattentionaladversarialattack/full.md b/robustsuperpixelguidedattentionaladversarialattack/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..297c730f5d43b2b66865da22752a7339a15de461
--- /dev/null
+++ b/robustsuperpixelguidedattentionaladversarialattack/full.md
@@ -0,0 +1,296 @@
+# Robust Superpixel-Guided Attentional Adversarial Attack
+
+Xiaoyi Dong $^{1}$ , Jiangfan Han $^{2}$ , Dongdong Chen $^{3*}$ , Jiayang Liu $^{1}$ , Huanyu Bian $^{1}$ , Zehua Ma $^{1}$ , Hongsheng Li $^{2}$ , Xiaogang Wang $^{2}$ , Weiming Zhang $^{1}$ , Nenghai Yu $^{1}$ , $^{1}$ University of Science and Technology of China $^{2}$ The Chinese University of Hong Kong, $^{3}$ Microsoft Cloud AI
+
+{dlight@,1jyljy@,hybian@,mzh045@,}mail.ustc.edu.cn
+
+{jiangfanhan@link.,hsli@ee.,xgwang@ee.}cuhk.edu.hk
+
+{zhangwm@, ynh@}ustc.edu.cn, cddlyf@gmail.com
+
+# Abstract
+
+Deep Neural Networks are vulnerable to adversarial samples, which can fool classifiers by adding small perturbations onto the original image. Since the pioneering optimization-based adversarial attack method, many following methods have been proposed in the past several years. However most of these methods add perturbations in a "pixel-wise" and "global" way. Firstly, because of the contradiction between the local smoothness of natural images and the noisy property of these adversarial perturbations, this "pixel-wise" way makes these methods not robust to image processing based defense methods and steganalysis based detection methods. Secondly, we find adding perturbations to the background is less useful than to the salient object, thus the "global" way is also not optimal. Based on these two considerations, we propose the first robust superpixel-guided attentional adversarial attack method. Specifically, the adversarial perturbations are only added to the salient regions and guaranteed to be the same within each superpixel. Through extensive experiments, we demonstrate our method can preserve the attack ability even in this highly constrained modification space. More importantly, compared to existing methods, it is significantly more robust to image processing based defense and steganalysis based detection.
+
+# 1. Introduction
+
+Deep neural networks(DNNs) have achieved great achievements on many artificial intelligence tasks such as image recognition [15, 19], object detection [33] and natural language processing [40]. But recent works [37] found that DNNs are vulnerable to adversarial samples. Adversarial samples are carefully crafted images by making small and
+
+
+SAI-FGM(ours)
+
+
+Original Image
+
+
+I-FGM
+Figure 1. Original image and corresponding adversarial samples generated by SAI-FGM(proposed method) and I-FGM. Meanwhile, we enlarge part of the images to show the difference of smoothness between the three images.
+
+invisible perturbations on the original images. Although they are indistinguishable to the original images by human being, they can make DNNs make totally wrong predictions. Adversarial samples reveal the defect and sensitivity of DNNs, but can also help us to get better understanding of DNNs and train more robust models.
+
+First proposed by [37], methods to generate adversarial sample are various. Among all of them, gradient-based methods [9, 17] which calculate the modification pattern by taking the gradient with respect to the input sample are simple and effective. Fast Gradient Sign Method(FGSM) proposed in [9] using the gradient of classification loss with respect to the input image as the adversarial noise to fool the recognition models. It provides a quick solution to get adversarial samples. Then [17] proposes iterative version of FGSM(I-FGSM) to get better attack performance. [5] further adds a momentum term to improve the transferability of adversarial sample to unseen models. Other works [41, 6] provide various methods to get more robust adversarial sample to unknown even defensive models.
+
+Notwithstanding their success, all of these methods add adversarial perturbations in a "pixel-wise" and "global" way. Here "pixel-wise" means these adversarial perturbations are added onto each pixel independently, thus very noisy in most cases. By contrast, from the statistic perspec
+
+
+Figure 2. Pipeline of generating background and foreground adversarial samples. Background and foreground noise are generated by splitting the adversarial noise to two equal size parts with the attention map.
+
+tive, natural images often have the local smoothness property. As illustrated in Figure 1, comparing with original image, adversarial samples generated by I-FGSM are much noisy and rough. Such contradiction makes these methods not robust to existing image processing based defense methods and steganalysis based detection methods. For image processing based defense methods, they often process the adversarial samples in a local way (e.g., smoothing, resizing) and destroy the original noisy adversarial pattern. Similarly, the reason why steganalysis based detection methods can detect adversarial samples is also because steganalysis features can detect the small adversarial perturbations that do not follow the local smoothness property.
+
+For "global", it means that most existing methods treat all the pixels in one image equally and add perturbations to all pixels. In this paper, we argue this "global" way is not optimal and has two obvious drawbacks. Firstly, as shown in Figure 2, we split the adversarial noise to two equal size parts as the foreground object part and the background part and we find that adding adversarial noise to foreground object is more useful than to the background. Because the target classifier only focuses on the foreground part, which is demonstrated by its activation map. Secondly, foreground objects often contain more textures than background regions (e.g., sky, lake) statistically, so perturbations in the background regions are also much easier to be detected.
+
+Based on the above two considerations, we propose the first robust superpixel-guided attentional adversarial attack method. Specifically, given an input image, we first leverage traditional superpixel generation method [32] to get the over-segmented superpixel map, where pixels in each superpixel have similar colors and follow the local smoothness property. Then we generate the adversarial perturbations in a superpixel manner, i.e., the perturbation within each superpixel must be the same. To further ensure the local smoothness, we improve the original superpixel method [32] by adaptively merging similar superpixels. For the above "global" problem, we replace it with an "attentional" way by using the auxiliary information from the class activation map [43]. In other words, we constrain that the per
+
+turbations are only added onto the foreground object (i.e., the class activated regions) rather than the whole image.
+
+With the above locally smooth and attentional constraint, though the adversarial perturbation space of our method is much smaller than previous "pixel-wise and global" methods, extensive experiments demonstrate our method can still preserve the attack ability with dedicated designs. More importantly, we show that the proposed superpixel-guided attentional adversarial attack is significantly more robust to image processing based defense and steganalysis based detection methods by a large margin.
+
+To summarize, our contributions are threefold as below.
+
+- We clearly analyze the limitations of existing "pixelwise and global" adversarial attack methods, and clarify the underlying reason of why they are not robust to image processing and steganalysis.
+- Based on the analysis, we propose the first superpixel-guided attentional adversarial attack method, which not only guarantees the local smoothness but also modifies the image in a more effective way.
+- Extensive experiments demonstrate the proposed method can preserve the original attack ability and achieve superior robustness simultaneously.
+
+# 2. Related Work
+
+Adversarial Attack. Current adversarial sample methods can be categorized into three types: optimization-based [37, 2], gradient-based [9, 17], and generation-based [1, 31, 14]. Optimization-based methods model the generation of adversarial samples as an optimization problem and use optimizers like box-constrained L-BGFS or Adam to solve it, which are powerful but quite slow. Goodfellow /etal [9] proposed the first gradients-based method Fast Gradient Sign Method (FGSM) and following work [17] performed small step size iteratively to get better attack performance (I-FGSM). Generation-based methods aim to train a model to generate adversarial samples with a single forward path, which is very fast but requires extra training time. Different from their "pixel-wise and global" way, the proposed method is the first super-pixel level and foreground only adversarial sample generation method.
+
+Adversarial Detection. There are roughly four different types of adversarial detection methods: model-based [11, 8], PCA-based [16, 20], preprocessing-based [22, 42] and steganalysis-based [24]. Model-based methods view adversarial samples as an additional category and retrain the network to classify adversarial samples to this new category. PCA-based methods leverage the fact that adversarial samples place a higher weight on the larger principal components compared with clean images. Preprocessing-based
+
+methods apply some image transformation on the input images and check the prediction variance. Recently, motivated by steganalysis, [24] proposes to use steganalysis features to detect adversarial samples, because these features are sensitive to the change of image statistics and small perturbations such as C&W [2]. Our idea is partially inspired by this method, and this method is also used as one important metric to evaluate the robustness of adversarial samples.
+
+Adversarial Defense. Compared with adversarial detection, adversarial defense is another active way to protect the target model against adversarial attack. Adversarial training proposed by [9] is one of the most popular way to train a robust network by adding the adversarial sample into the training set. In [12, 28, 3, 23, 44], they add one preprocessing step to remove the adversarial noise of the input images before feeding into the target model. For example, method [25] proposes DNN-Oriented JPEG compression with the idea of feature distillation to remove adversarial noise. Another work [13] proposes to use JPEG compression, total variance minimization(TVM) and image quilting to defence adversarial attack. Another type of methods like [38, 29, 30] use some regularizers or smooth labels to make the target model more robust to the perturbation on input images. Among the aforementioned methods, image preprocessing is the most lightweight method as it does not need to change model architecture or parameters. In this paper, we also use this type of methods to evaluate the final adversarial robustness.
+
+Superpixels. In the era before deep learning, superpixel segmentation [32, 27] aims to oversegment the image by grouping pixels that share similar properties. It captures the redundancy of image and is regarded as representative primitive for computing image features. They are widely used in many computer vision algorithms, such as image compression [34], depth estimation [26], and stereo matching [10]. Motivated by the smooth property within each superpixel, we are the first who leverages superpixel as the guidance to add adversarial perturbations. This helps us to generate local smooth and robust adversarial samples.
+
+# 3. Method
+
+# 3.1. Problem Definition.
+
+We denote $\mathbf{x}$ as the source image and $y$ as the corresponding ground-truth label. Let $\mathcal{H}$ be the target model with parameters $\theta$ . Then $\mathcal{H}(\mathbf{x};\theta)$ is the probability prediction for each class. For an ideal model we should get $\arg \max_c\mathcal{H}(\mathbf{x};\theta)_c = y$ . For a real model, the equation is also satisfied for most samples. An adversarial sample $\mathbf{x}^{adv} = \mathbf{x} + \mathbf{r}$ is generated by adding noise $\mathbf{r}$ to the original image $\mathbf{x}$ and satisfies $\arg \max_c\mathcal{H}(\mathbf{x}^{adv};\theta)_c\neq y$ . In the mean time, the noise $\mathbf{r}$ should be small enough to guarantee the adversarial sample is similar to the original one. In most
+
+cases $\mathbf{r}$ is measured by $l_{p}$ norm and the constraint $\| \mathbf{r}\| _p\leqslant \epsilon$ is proposed to fulfill the similarity requirement. Here $\epsilon$ is a predefined threshold constant.
+
+White-Box vs. Gray-Box vs. Black-Box. If we have the full knowledge about the target model to attack, including the model architecture and parameters, such an attack is called as white-box attack. In this case, we can generate adversarial samples with back-propagated gradients directly. If we have the full access to the model, but there are some unknown input transformations before feeding images into the model, we call such an attack as gray-box attack. For black-box attack, we have no knowledge about the target model, so adversarial samples are often generated by other white-box models and fool the target model with transferability.
+
+# 3.2. Motivation
+
+As briefly described in the introduction part, our method is motivated from the below two observations:
+
+1). The contradiction between the local smoothness of natural images and the noisy property of adversarial perturbations. Although previous attack methods can generate strong adversarial samples, most of them add adversarial perturbations in a "pixel-wise" way and do not consider the original neighborhood information. This causes the generated adversarial perturbations to be noisy as shown in the Figure 1(Right). However, pixels in natural images often have the local smooth property, which implies neighboring pixels often have similar pixel values. This is also the theoretical building block for many image processing tasks like image compression. Therefore, adding pixel-wise perturbations will destroy the original local statistics such as first-order and second-order Markov process statistics. This also motivates the method [24] to use steganalysis features to detect adversarial samples as steganalysis features considers such types of local statistics. Besides, this contradiction also makes these adversarial attack methods not robust to image processing based defense methods. This is because processing techniques like resizing or smoothing are based on the local smooth property and will destroy the original noisy pattern of adversarial perturbations. Take I-FGSM as an example, if we use the local average smoothing with $3 \times 3$ kernel as the processing step before feeding the white-box model, the attack success rate will decrease from $99.40\%$ to $73.67\%$ . Hence, the local smooth property should be considered when adding the adversarial perturbations.
+
+2). It is more effective to add adversarial perturbations to salient object the classifier focuses on. Another observation is that most existing adversarial sample methods treat all the pixels equally and add perturbations to the image globally, but we argue this global way is not optimal. To verify it, we conduct one simple experiment that only keeps the perturbations of background regions and the foreground
+
+
+Figure 3. Pipeline of Generating Superpixel Adversarial Samples. We first use SLIC [32] to generate superpixel image $\mathbf{x}'$ from $\mathbf{x}$ as the noise template $\mathbf{t}$ . Then we calculate the noise vector $\mathbf{n}$ and use a mapping function $f(\mathbf{n};\mathbf{t})$ to map it to superpixel-level noise with the template $\mathbf{t}$ . Then we crop it with the binarized attention mask $\mathbf{m}^*$ and scale it to the threshold $\epsilon$ to get the final adversarial noise.
+
+regions respectively. For I-FGM $(\delta = 2)$ , the attack success rates of foreground/background regions adversarial noise are $94.03\%$ and $46.35\%$ respectively. This means adding perturbations to the foreground objects is more effective and can get better attack performance under the global distance measurement. In fact, this phenomenon is also consistent with the attention map the classifier focuses.
+
+Another intuition is that foreground regions often have more textures than the background regions (e.g., sky, ocean) statistically, which implies hiding perturbations in the foreground regions is much easier. To support this hypothesis, we randomly select 2000 images from the ImageNet [4] dataset and use the smoothness metric HILL [18] to measure the texture richness. The average HILL of foreground regions and background regions are 5269.94 and 18853.42 respectively, here larger HILL indicates less textures.
+
+# 3.3. Superpixel-Guided Attentional Adv Attack
+
+Inspired by the above two observations, we propose the first superpixel-guided attentional adversarial attack method. Rather than adding pixel-wise adversarial perturbations, we use the oversegemented superpixels as guidance and constrain the perturbations within each superpixel should be same. In this way, the generated perturbations are also locally smooth in the superpixel level. Another guidance we use is the foreground attention map, which ensures the perturbations are only added to the foreground objects.
+
+Figure 3 is the overall pipeline of our method, which consists of three steps: 1) Generate the superpixel-guided noise template $\mathbf{t}$ and initialize the adversarial noise $\mathbf{n}$ whose length equals to the superpixel number. 2) Crop and enhance the adversarial perturbations based on the attention map. 3) Use the generated adversarial sample to update $\mathbf{n}$ iteratively.
+
+Template Generation. Instead of generating the template
+
+by sampling pixels with grid steps, we use superpixel algorithms to get the segmentation map as the modification template. It can help to ensure local smoothness and reduce the statistical difference between the source image and the adversarial sample. In this paper, the superpixel algorithm SLIC [32] is used by default. Specifically, both the perceptual color distance and spatial distance are considered as the distance measure:
+
+$$
+\begin{array}{l} d i s = d _ {c} + \frac {p}{S} d _ {s} \\ d _ {c} = \sqrt {\left(l _ {k} - l _ {i}\right) ^ {2} + \left(a _ {k} - a _ {i}\right) ^ {2} + \left(b _ {k} - b _ {i}\right) ^ {2}} \tag {1} \\ d _ {s} = \sqrt {(x _ {k} - x _ {i}) ^ {2} + (y _ {k} - y _ {i}) ^ {2}} \\ \end{array}
+$$
+
+where $dis$ is the distance between the $i_{th}$ pixel and the $k_{th}$ superpixel cluster. Denote $N, K$ as the total pixel number and the pre-defined superpixel number, then each superpixel cluster $C_k$ is represented as the tuple $(l_k, a_k, b_k, x_k, y_k)$ . Here $l_k, a_k, b_k$ is the pixel values of $C_k$ in the CIELAB color space and $x_k, y_k$ is the spatial coordinate. $S = \sqrt{N / K}$ is the grid interval, and $p$ is the parameter to control the compactness of a superpixel. By sampling pixels at regular grid steps $S$ as initialization, SILC updates the clustering result by using a linear iterative clustering algorithm to cluster every pixel to its proximate super-pixel center.
+
+One weakness of SLIC is that the clustering number $K$ is fixed, which means a large smooth region will be clustered into many different small superpixels. If we use it as the template of adversarial noise, different perturbations will be added to each small superpixel. This will influence both the visual quality and statistics of the adversarial samples. To overcome this shortcoming, we propose an adaptive combination strategy to combine neighboring superpixels with similar pixel values. If the color difference between two neighboring superpixels is smaller than $\beta$ , we combine them as a new superpixel.
+
+Attention Mask. In this paper, we use Class Activation Mapping (CAM) [43] method to generate the attention map of the input image. A class activation map for a particular category indicates the discriminative image regions used by CNN to identify that category. CAM calculates this map by simply projecting back the output layer on to the convolutional feature maps. However, all pixel values in the attention map generated by CAM [43] are between 0 to 1, so it cannot be used to guide the noise cropping directly. We use a binarization factor $\phi$ to transform the attention map to a binarized map. The binarization can be expressed as
+
+$$
+m _ {i, j} ^ {*} = \left\{ \begin{array}{l l} 0 & m _ {i, j} < \phi \\ 1 & m _ {i, j} \geqslant \phi \end{array} \right. \tag {2}
+$$
+
+where $\mathbf{m}$ is the attention map and $\mathbf{m}^*$ is the binarized attention map, $m_{i,j}$ and $m_{i,j}^{*}$ are the value of them at the position $i,j$ . With the binarized attention map $\mathbf{m}^*$ as the mask, we crop the adversarial noise to realize attentional attack.
+
+Adversarial Perturbation Generation. To describe how to generate the target adversarial perturbation, we first use I-FGM [17] as the baseline and propose the Superpixel-guided attentional version I-FGM called SAI-FGM by using the superpixel and attention map guidance.
+
+For the baseline I-FGM, adversarial noises are generated by calculating the gradient of the loss function with the input image. However, we find calculating gradients for all superpixel is non-trivial. If we simply use the average or max gradient of all pixels within a superpixel as its gradient, it is neither efficient nor effective, which will be verified in the ablation part. Inspired by optimization based methods, we propose a substitute method to generate adversarial noise. We initialize a noise vector $\mathbf{n}$ whose length equals to the superpixel number, and calculate the gradient with respect to $\mathbf{n}$ directly. During each iteration, one mapping function $f$ is first used to fill $\mathbf{n}$ into the superpixel level noise template $\mathbf{t}$ to get filled noise $f(\mathbf{n};\mathbf{t})$ . Then $f(\mathbf{n};\mathbf{t})$ is cropped and scaled to the threshold $\epsilon$ before adding to the original sample $\mathbf{x}$ . At each iteration step $i + 1$ , $\mathbf{n}$ will be updated from $\mathbf{n_i}$ to $\mathbf{n}_{i + 1}$ with gradient ascent. Formally, our SAI-FGM can be expressed as
+
+$$
+\mathbf {x} _ {0} ^ {\mathbf {a d v}} = \mathbf {x} + f (\mathbf {n} _ {0}; \mathbf {t}) \tag {3}
+$$
+
+$$
+\mathbf {x} _ {\mathrm {i}} ^ {\mathrm {a d v}} = \mathbf {x} + S c a l e _ {\epsilon} \left\{C r o p _ {\mathbf {m}} (f (\mathbf {n} _ {\mathrm {i}}; \mathbf {t})) \right\}
+$$
+
+$$
+\mathbf {n} _ {\mathbf {i} + \mathbf {1}} = \mathbf {n} _ {\mathbf {i}} + \alpha \cdot \frac {\nabla_ {\mathbf {n}} L \left(\mathbf {x} _ {\mathbf {i}} ^ {\mathrm {a d v}} , y , \theta\right)}{\| \nabla_ {\mathbf {n}} L \left(\mathbf {x} _ {\mathbf {i}} ^ {\mathrm {a d v}} , y , \theta\right) \| _ {2}} \tag {4}
+$$
+
+where $L(\mathbf{x}_{\mathbf{i}}^{\mathrm{adv}},y,\theta)$ is the loss function and $\nabla_{\mathbf{n}}L(\mathbf{x}_{\mathbf{i}}^{\mathrm{adv}},y,\theta)$ is the gradient of $L(\mathbf{x}_{\mathbf{i}}^{\mathrm{adv}},y,\theta)$ with respect to $\mathbf{n_i}$ . Crop and Scale represent the crop operation based on the attention map $\mathbf{m}$ and scale operation based on the perturbation scale factor $\epsilon$ respectively.
+
+| Attack | Inc-v3* | Inc-v4 | IncRes-v2 | Inc-v3adv |
| FGM | 84.00 | 54.75 | 56.75 | 56.05 |
| SA-FGM(Ours) | 73.80 | 56.20 | 51.55 | 56.75 |
| I-FGM | 99.80 | 40.65 | 38.00 | 30.70 |
| SAI-FGM(Ours) | 100.00 | 68.35 | 64.95 | 65.05 |
| MI-FGM | 99.90 | 66.45 | 67.95 | 62.40 |
| M-SAI-FGM(Ours) | 99.95 | 68.50 | 66.10 | 67.45 |
+
+Table 1. The attack success rate $(\%)$ of adversarial attack on the ImageNet [4] dataset. * indicates the white-box attacks.
+
+M-SAI-FGM. Our method is general to most existing gradient-based methods. So we can extend our method with other attack methods to get more powerful attack ability. For example, when combining our method with MI-FGSM [5] by integrating the momentum term, we get Momentum Superpixel-guided Attentional Version I-FGM called M-SAI-FGM. Comparing with SAI-FGM, we update $\mathbf{n_i}$ by replacing Eq.4 with:
+
+$$
+\mathbf {g} _ {\mathrm {i} + 1} = \mu \cdot \mathbf {g} _ {\mathrm {i}} + \frac {\nabla_ {\mathbf {n}} L \left(\mathbf {x} _ {\mathrm {i}} ^ {\mathrm {a d v}} , y , \theta\right)}{\| \nabla_ {\mathbf {n}} \mathbf {L} \left(\mathbf {x} _ {\mathrm {i}} ^ {\mathrm {a d v}} , y , \theta\right) \| _ {1}} \tag {5}
+$$
+
+$$
+\mathbf {n _ {i + 1}} = \mathbf {n _ {i}} + \boldsymbol {\alpha} \cdot \frac {\mathbf {g _ {i + 1}}}{\| \mathbf {g _ {i + 1}} \| _ {2}}
+$$
+
+# 4. Experiments
+
+As introduced above, the adversarial perturbations of our method have two key constraints: superpixel level and only added to attentional regions, so our perturbation space is much smaller. Considering such a constrained space, the first question to answer is that "whether the original attack ability can be preserved or not". After answering this question, another key question would be "whether the proposed method can boost the adversarial robustness".
+
+Therefore in this section, the proposed method is evaluated from two aspects: attack ability and attack robustness. In the following experiments, we use $L_{2}$ norm as the distance measurement, threshold of the $L_{2}$ norm $\epsilon$ is calculated by $\delta \sqrt{N}$ , where $N = C \times H \times W$ is the dimension of input images $\mathbf{x}$ . Inception-V3 [36] is adopted as the default target attack model. Unless specified, $\phi = 4 / 12$ , $\alpha = \delta \sqrt{N} / T$ and the total iteration number $T = 10$ .
+
+# 4.1. Attack Ability Comparison
+
+To evaluate the attack ability, we compare the basic attack performance on the ImageNet [4] dataset, including white-box attack success rate and black-box attack success rate. As shown in Table 1, we compare three baselines FGM [9], I-FGM [17], MI-FGM [5] with our corresponding superpixel-guided attentional version SA-FGM, SAI-FGM, M-SAI-FGM. The column "Inc-v3" is white-box attack results while another three "Inc-v4", "IncRes-v2", "Inc-v3adv" represent black-box attack results on model Inception-v4 [35], Inception Resnet-v2 [35], Inception-v3adv respectively. Here Inc-v3adv is Inception-v3 [36]
+
+| Generation method | δ = 2 | δ = 4 | δ = 6 | δ = 8 |
| FGM | 94.32 | 95.59 | 96.28 | 97.09 |
| I-FGM | 94.11 | 94.74 | 95.45 | 96.01 |
| SAI-FGM(β = 0) | 75.50 | 82.10 | 85.00 | 87.20 |
| SAI-FGM(β = 2) | 72.40 | 78.20 | 82.00 | 84.20 |
| SAI-FGM(β = 4) | 63.30 | 72.10 | 76.40 | 80.90 |
+
+
+Table 2. Detect rate $(\%)$ of steganalysis-based detection. Lower success rate indicate the adversarial samples are more robust.
+Figure 4. Attack success rate of adversarial samples with image resizing. Resize factor $\gamma$ varies from 1.0 to 3.0.
+
+model with ensemble adversarial training [38]. Here we set $\delta = 16$ .
+
+Result shows that the single step attack method FGM performs better than our SA-FGM, this means the influence of constrained perturbation space is inevitable. However, if we use multiple step attack method I-FGM or MI-FGM, our SAI-FGM and M-SAI-FGM can achieve similar white-box attack success rate (nearly $100\%$ ). This implies that our method can preserve the attack ability once multiple steps are used. For black-box attack, we find that our method performs better than baseline methods in most cases. For example, our SAI-FGM outperforms I-FGM by nearly $30\%$ for all the black-box models. When we introduce momentum into the attack iterations, we find that performance of our method slightly increases, similar to MI-FGM.
+
+# 4.2. Attack Robustness Comparison
+
+To evaluate the attack robustness, we do comparisons on two different types of methods: steganalysis based adversarial detection methods and image processing based adversarial defense methods.
+
+# Robustness to Steganalysis based Detection Methods
+
+Steganalysis-based adversarial detection method [24] uses steganalysis features as the main indicators to detect adversarial samples. We follow their experiment setting and train detector for every adversarial sample generation method including ours for $\delta = 2,4,6,8$ respectively. As shown in Table 2, our SAI-FGM outperforms the baseline methods by a large margin for different $\delta$ . For example, if adversarial samples are generated with $\delta = 2$ , detect success rate on SAI-FGM with $\beta = 0$ are only $75.50\%$ , while pixel-wise baselines like FGM and I-FGM are $94.32\%$ and $94.11\%$ re
+
+
+
+
+Figure 5. (a) Relation between attack success rate and JPEG quality factor $q$ . (b) Relation between attack success rate and DNN-Oriented JPEG quality factor $q$ .
+
+spectively, nearly $20\%$ higher than SAI-FGM. This proves the superiority of the proposed superpixel-guided adversarial samples over the pixel-wise ones.
+
+We further compare SAI-FGM with different $\beta$ to evaluate the proposed superpixel combination strategy. Obviously, by combining adjacent similar superpixels, SAI-FGM can further reduce the detect success rate for all $\delta$ . For example, when $\delta = 8$ , detect success rate on SAI-FGM with $\beta = 0$ is $87.20\%$ , while on SAI-FGM with $\beta = 4$ , the detect success rate decreases to $80.90\%$ . This is because the statistical difference between adversarial samples and source images is significantly reduced when adjacent similar superpixels are merged.
+
+Robustness to Image Processing based Defense Methods Another important type of adversarial defense methods leverage image processing techniques to remove the adversary before feeding images into the target model. Their underlying hypothesis is similar, i.e., the noisy distribution of perturbations does not match the distribution of real images. In this part, many different image processing techniques are utilized for robustness evaluation, including resizing, JPEG compression [7], DNN-Oriented JPEG Compression [25], pooling, total variance minimization (TVM)[13] and Bit-depth Reduction [42]. To ensure the mis-classification are caused by the adversary of adversarial samples instead of these image processing themselves. We select 2000 robust images from the ImageNet [4] dataset which can be classified correctly after image processing.
+
+Resizing. Resizing is a common and easy image processing method, it can reduce the effectiveness of adversarial samples with local interpolation. Given an adversarial sample with size $H \times W$ , we first downscale its size into $\frac{H}{\gamma} \times \frac{W}{\gamma}$ then upscale back to the origin size $H \times W$ . Figure 4 is the attack success rate curve when varying the scale factor $\gamma$ from 1 to 3 with step 0.1. Obviously, for different perturbation scales $\delta = 4,8,16$ and different baseline methods, our superpixel-guided attentional versions "SA*" are always much more robust and achieve a higher attack success rate. Especially when $\delta = 16$ , the success rate of our SAI-FGM is always at a high level over $80\%$ while that of the baseline I-FGM decreases quickly when $\gamma$ increases.
+
+| Operation | Threshold | Attack method | Kernel Size |
| 3 | 5 | 7 |
| AVG | 4√N | I-FGM | 73.67 | 20.55 | 7.07 |
| SAI-FGM | 93.27 | 65.14 | 36.91 |
| 8√N | I-FGM | 85.94 | 31.21 | 11.47 |
| SAI-FGM | 97.44 | 79.96 | 58.03 |
| 16√N | I-FGM | 95.13 | 46.02 | 20.36 |
| SAI-FGM | 99.57 | 91.48 | 77.35 |
| MAX | 4√N | I-FGM | 41.45 | 16.67 | 13.47 |
| SAI-FGM | 70.37 | 39.20 | 34.67 |
| 8√N | I-FGM | 54.79 | 27.29 | 20.39 |
| SAI-FGM | 85.10 | 61.64 | 55.73 |
| 16√N | I-FGM | 68.36 | 37.06 | 30.38 |
| SAI-FGM | 93.85 | 83.29 | 79.82 |
+
+Table 3. The gray-box attack success rate $(\%)$ of adversarial samples after average/max pooling operation on the ImageNet [4] dataset with different $\epsilon$ and different kernel size $l$ .
+
+JPEG Compression and DNN-Oriented JPEG Compression. Based on the local smoothness property, JPEG compression significantly compresses the high-frequency components of one image while ensuring similar visual quality. As adversarial perturbations are also of high frequency, their attack ability will be weakened by JPEG compression in most cases. As shown in Figure 5 (a), when the images are only compressed a little with high quality factor $q = 95$ , both I-FGM and SAI-FGM can still achieve a quite high attack success rate. But as the quality factor decreases from 95 to 5, attack success rate of I-FGM decrease quickly while SAI-FGM still keep a high success rate. For example, when $q = 55$ , success rate of I-FGM with $\delta = 4$ decrease $31\%$ from $99.4\%$ to $68.4\%$ and SAI-FGM only decrease $7.5\%$ . Especially at low quality regions $(q < 25)$ , performance of both I-FGM and SAI-FGM decrease greatly as the low quality compression removes most detail of the images, but our method still performs better than I-FGM. For DNN-Oriented JPEG compression shown in Figure 5 (b), the superiority of our method is even more obvious.
+
+Pooling. Pooling is a popular operation in DNNs, which is often conducted by sampling the maximum or average pixels within each grid kernel. Similar to smoothing/resizing, this operation will change the original distribution of adversary, so it can reduce the attack ability especially for large grid kernel size. As shown in Table 3, the proposed superpixel-guided attentional adversarial attack is always much better than the baseline methods for different kernel sizes and perturbation levels. For example, when $\delta = 16$ and the kernel size is 5, our SAI-FGM can still achieve $79.82\%$ attack success rate while the baseline I-FGM only has $30.38\%$ success rate, far behind us with about $50\%$ .
+
+TVM. TVM [13] randomly selects a small set of pixels and reconstructs the "simplest" image that is consistent with the selected pixels. Here we follow the setting in [13] with pixel drop rate as 0.5 and tvm weight as 0.03. From Figure 6(a), it can be seen that SAI-FGM outperforms I-FGM
+
+
+Figure 6. (a) Relation between attack success rate and threshold $\epsilon$ after TVM operation. (b) Relation between attack success rate and image reduce depth $d$ .
+
+
+
+| Method | White-Box | Detection | Resizing | JPEG | TVM |
| I-FGM | 99.40 | 94.74 | 46.05 | 68.40 | 44.60 |
| SLIC-adv | 98.90 | 82.10 | 82.17 | 91.40 | 82.00 |
| LSC-adv | 98.90 | 82.75 | 83.10 | 91.80 | 83.50 |
| SEEDS-adv | 98.75 | 82.00 | 81.65 | 91.21 | 81.70 |
+
+Table 4. Attack ability and robustness of adversarial samples generated by SAI-FGM with different superpixel algorithms.
+
+in all settings. For example, when $\delta = 4$ , attack success rate of SAI-FGM are $82.00\%$ , while attack performance of I-FGM dropped from $99.48\%$ to $44.60\%$ .
+
+Bit-depth Reduction. Bit-depth Reduction [42] is a simple quantization method to remove small adversarial noises. Here we vary the depth factor $d$ from 2 to 4(64 colors to 4096 colors). In all the cases as shown in Figure 6 (b), our method outperforms baseline methods consistently.
+
+# 4.3. Visual Results
+
+Besides the visual result shown in Figure 1, we further show several adversarial samples generated by our method SAI-FGM and the baseline I-FGM with $\delta = 4,16$ in Figure 7. It can be seen that these adversarial samples look overall similar, but the adversarial perturbations of our method are more attentional and superpixel-wise smooth.
+
+# 4.4. Ablation Study
+
+Superpixel Size $S$ . In this experiment, we study the relationship between the superpixel size $S$ and the attack performance. Intuitively, large $S$ leads to better robustness while small $S$ leads to better attack ability. To prove it, we adopt the attack success rate of original adversarial samples and resized adversarial samples (downscale and upscale) as the indicators of attack ability and attack robustness respectively. To have a clearer difference, $\delta = 4$ is used here. As shown in Figure 8(a), when $S$ varies from 2 to 8, the attack ability decreases slightly while the robustness first increases then decreases (best at $S = 5$ ). The reason why the robustness of too large $S$ is worse is because the absolute attack ability decreases a lot in such case.
+
+Binarization Factor $\phi$ . Here we explore the influence of the binarization factor $\phi$ . Intuitively, if $\phi$ is too small, most parts of the image are modified so the attentional attack is meaningless. And if $\phi$ is too large, only a small part of the image will be modified and it performs badly. To show the
+
+
+Figure 7. Some visual comparison about the adversarial samples generated by the baseline method I-FGM (top) and our SAI-FGM (bottom) with $\delta = 4$ (left) and $\delta = 16$ (right) respectively.
+
+
+
+
+Figure 8. (a) Relation between superpixel size $S$ and attack success rate. Success rate is evaluated by both original and scaled adversarial samples with scale factor $\gamma = 3.0$ . (b) Relation between binarization factor $k$ and black-box attack success rate.
+
+
+
+performance difference, we use the black-box attack success rate as the indicator and vary $\phi$ from 0 to $11 / 12$ . It can be seen from Figure 8(b) that the attack success rate first increases then decreases. The best performance is achieved when $\phi = 4 / 12$ , which is better than the case that does not use attention ( $\phi = 0$ ) by $10\%$ . When $\phi$ is too large, the perturbation space is too small to achieve good attack ability.
+
+Superpixel Algorithms. To evaluate the influence of robustness of different superpixel algorithms, besides the default SLIC used in Sec.4, we further consider another two classic superpixel segmentation methods LSC [21] and SEEDS[39]. In the following, we denote SLIC-adv, LSC-adv, and SEEDS-adv as the adversarial samples generated with the corresponding method. We follow the setting in Sec.4 with $\delta = 4$ . For the robustness to resizing, we set $\gamma = 2.0$ , and for the robustness to JPEG Compression, we set $q = 55$ . As shown in Table.4, we can find that the performance of adversarial samples generated with different superpixel methods are very similar. It indicates that our method is very robust and insensitive to different superpixel segmentation methods. Because the inherent key reason for our robustness is based on the local consistency constraint, as long as the superpixel results follow the rule that pixels within each cluster have similar pixel values (satisfy the requirement of local consistency), our method can always achieve very good performance.
+
+Image Gradient vs. Noise Gradient. As we stated in the method part, calculating max or average gradient of pixels within one superpixel as the gradient of the superpixel (here we denote these two methods as MAX and AVG respec
+
+tively) is neither efficient nor effective. In this section, we use the white-box performance to prove that our proposed method are better. When $\delta = 4$ , success rate of our method are $98.90\%$ , while success rate of MAX are only $84.20\%$ and AVG are $95.95\%$ . Meanwhile, it's hard to calculate max or average value of irregular image parts parallelly, so we have to use a large memory cost method as substitute, this leads to the result that both MAX and AVG are nearly 30 times slower than our noise gradient method under the same computation resources.
+
+# 5. Conclusion
+
+In this paper, the limitations of existing "pixel-wise and global" adversarial attack methods are analyzed, which are shown to be the reasons why they are not robust to image processing based defense and steganalysis based detection methods. To address these limitations, we propose the first superpixel-guided attentional adversarial attack method. It constrains the perturbations are only added into the foreground regions and pixels within each superpixel have the same perturbation. Even with such a highly constrained perturbation space, experiments demonstrate that the proposed method can still preserve the original attack ability. Because of better statistical consistency between adversarial samples and source images, our method shows much better robustness to both adversarial detection and defense.
+
+# Acknowledgement
+
+This work is supported in part by the Natural Science Foundation of China under Grant U1636201 and 61572452, and by Anhui Initiative in Quantum Information Technologies under Grant AHY150400, and by National Key Research and Development Program of China under Grant 2018YFB0804100, and by Exploration Fund Project of University of Science and Technology of China under Grant YD3480002001. Jiangfan Han, Hongsheng Li, Xiaogang Wang are partially supported by SenseTime Group Limited and the General Research Fund through the Research Grants Council of Hong Kong under Grants CUHK14202217,14203118,14205615,14207814,14213616, 14207319,14208619, and Research Impact Fund R5001-18.
+
+# References
+
+[1] Shumeet Baluja and Ian Fischer. Adversarial transformation networks: Learning to generate adversarial examples. arXiv, 2017.
+[2] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In SP, pages 39-57. IEEE, 2017.
+[3] Nilaksh Das, Madhuri Shanbhogue, Shang-Tse Chen, Fred Hohman, Li Chen, Michael E Kounavis, and Duen Horng Chau. Keeping the bad guys out: Protecting and vaccinating deep learning withjpeg compression. arXiv, 2017.
+[4] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248-255. IEEE, 2009.
+[5] Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Xiaolin Hu, Jianguo Li, and Jun Zhu. Boosting adversarial attacks with momentum. arXiv, 2017.
+[6] Yinpeng Dong, Tianyu Pang, Hang Su, and Jun Zhu. Evading defenses to transferable adversarial examples by translation-invariant attacks. CoRR, abs/1904.02884, 2019.
+[7] Gintare Karolina Dziugaite, Zoubin Ghahramani, and Daniel M Roy. A study of the effect of jpg compression on adversarial images. arXiv, 2016.
+[8] Zhitao Gong, Wenlu Wang, and Wei-Shinn Ku. Adversarial and clean data are not twins. arXiv, 2017.
+[9] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015.
+[10] Rafael Gouveia, Aristotle Spyropoulos, and Philippos Mordohai. Confidence estimation for superpixel-based stereo matching. In 3dv, pages 180-188. IEEE, 2015.
+[11] Kathrin Grosse, Praveen Manoharan, Nicolas Papernot, Michael Backes, and Patrick McDaniel. On the (statistical) detection of adversarial examples. arXiv, 2017.
+[12] Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014.
+[13] Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens Van Der Maaten. Countering adversarial images using input transformations. arXiv, 2017.
+[14] Jiangfan Han, Xiaoyi Dong, Ruimao Zhang, Dongdong Chen, Weiming Zhang, Nenghai Yu, Ping Luo, and Xiaogang Wang. Once a man: Towards multi-target attack via learning multi-target adversarial network once. In Proceedings of the IEEE International Conference on Computer Vision, pages 5158-5167, 2019.
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[16] Dan Hendrycks and Kevin Gimpel. Visible progress on adversarial images and a new saliency map. arXiv, 2016.
+[17] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv, 2016.
+[18] Bin Li, Ming Wang, Jiwu Huang, and Xiaolong Li. A new cost function for spatial image steganography. In 2014 IEEE International Conference on Image Processing (ICIP), pages 4206-4210. IEEE, 2014.
+
+[19] Suichan Li, Dapeng Chen, Bin Liu, Nenghai Yu, and Rui Zhao. Memory-based neighbourhood embedding for visual recognition. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[20] Xin Li and Fuxin Li. Adversarial examples detection in deep networks with convolutional filter statistics. In CVPR, pages 5764-5772, 2017.
+[21] Zhengqin Li and Jiansheng Chen. Superpixel segmentation using linear spectral clustering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1356-1363, 2015.
+[22] Bin Liang, Hongcheng Li, Miaoqiang Su, Xirong Li, Wenchang Shi, and Xiaofeng Wang. Detecting adversarial image examples in deep networks with adaptive noise reduction. arXiv, 2017.
+[23] Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Xiaolin Hu, and Jun Zhu. Defense against adversarial attacks using high-level representation guided denoiser. In CVPR, pages 1778-1787, 2018.
+[24] Jiayang Liu, Weiming Zhang, Yiwei Zhang, Dongdong Hou, Yujia Liu, Hongyue Zha, and Nenghai Yu. Detection based defense against adversarial examples from the steganalysis point of view. In CVPR, pages 4825-4834, 2019.
+[25] Zihao Liu, Qi Liu, Tao Liu, Yanzhi Wang, and Wujie Wen. Feature distillation: Dnn-oriented JPEG compression against adversarial examples. arXiv, 2018.
+[26] S Mahmoudpour and M Kim. Depth from defocus using superpixel-based affinity model and cellular automata. *Electronics Letters*, 52(12):1020-1022, 2016.
+[27] Alastair P Moore, Simon JD Prince, Jonathan Warrell, Umar Mohammed, and Graham Jones. Superpixel lattices. In CVPR, pages 1-8. Citeseer, 2008.
+[28] Margarita Osadchy, Julio Hernandez-Castro, Stuart Gibson, Orr Dunkelman, and Daniel Pérez-Cabo. No bot expects the deepcaptcha! introducing immutable adversarial examples, with applications to captcha generation. TIFs, 12(11):2640-2653, 2017.
+[29] Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In ASIACCS, pages 506-519. ACM, 2017.
+[30] Nicolas Papernot, Patrick McDaniel, Arunesh Sinha, and Michael Wellman. Towards the science of security and privacy in machine learning. arXiv, 2016.
+[31] Omid Poursaeed, Isay Katsman, Bicheng Gao, and Serge Belongie. Generative adversarial perturbations. arXiv, 2017.
+[32] Achanta Radhakrishna, Shaji Appu, Smith Kevin, Lucchi Aurelien, Fua Pascal, and Susstrunk Sabine. Slic superpixels compared to state-of-the-art superpixel methods. TPAMI, 34(11):2274-2282, 2012.
+[33] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, pages 91-99, 2015.
+[34] Ionut Schiopu, Moncef Gabbouj, Atanas Gotchev, and Miska M Hannuksela. Lossless compression of subaperture images using context modeling. In 3DTV-CON, pages 1-4. IEEE, 2017.
+
+[35] Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-reset and the impact of residual connections on learning. In AAAI, 2017.
+[36] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pages 2818-2826, 2016.
+[37] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv, 2013.
+[38] Florian Tramèr, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. arXiv, 2017.
+[39] Michael Van den Bergh, Xavier Boix, Gemma Roig, Benjamin de Capitani, and Luc Van Gool. Seeds: Superpixels extracted via energy-driven sampling. In European conference on computer vision, pages 13-26. Springer, 2012.
+[40] 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.
+[41] Cihang Xie, Zhishuai Zhang, Jianyu Wang, Yuyin Zhou, Zhou Ren, and Alan L. Yuille. Improving transferability of adversarial examples with input diversity. CoRR, abs/1803.06978, 2018.
+[42] Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv, 2017.
+[43] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, pages 2921-2929, 2016.
+[44] Hang Zhou, Kejiang Chen, Weiming Zhang, Han Fang, Wenbo Zhou, and Nenghai Yu. Dup-net: Denoiser and upsampler network for 3d adversarial point clouds defense. In Proceedings of the IEEE International Conference on Computer Vision, pages 1961-1970, 2019.
\ No newline at end of file
diff --git a/robustsuperpixelguidedattentionaladversarialattack/images.zip b/robustsuperpixelguidedattentionaladversarialattack/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d52a9e97fc080b41375882e5efb8581d4d58a207
--- /dev/null
+++ b/robustsuperpixelguidedattentionaladversarialattack/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aadfbf2ab170d8b53817d059082c0b28ce6158445fd2e864a3a97b025eb54706
+size 579408
diff --git a/robustsuperpixelguidedattentionaladversarialattack/layout.json b/robustsuperpixelguidedattentionaladversarialattack/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ee35d2ad662f514a60c5f7449ec0971e5c7ecfc
--- /dev/null
+++ b/robustsuperpixelguidedattentionaladversarialattack/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ab3859c4e4a2556998d986440c9488627ca65af8f65774151333311ac9d68f98
+size 449927
diff --git a/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_content_list.json b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6ed7418e4960cf0103ff3dbe036d93574fff53e4
--- /dev/null
+++ b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1c7317b94ea6702d976a8e3481d43d71493dc9edebd4141c631d17d7427a369
+size 78150
diff --git a/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_model.json b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ef0d52d245e331758d1ecc40956c2a737ed0bbd1
--- /dev/null
+++ b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2e9eb069e7bf8a59b12968d5077ed2679d378615d09169ebb2782236946ab3b4
+size 96711
diff --git a/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_origin.pdf b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..24ef6911f184035514cad1aeeed2b8b2c418f30e
--- /dev/null
+++ b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/06c6b1f6-f807-4c1b-aa50-733da256a1f7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bc91409f459fa839659d6c9c2cae6f42d282d3b6bf95271683883f10a6279fc9
+size 1844098
diff --git a/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/full.md b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..344f2f2ecf508d04df1bcd9383accb45624d528b
--- /dev/null
+++ b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/full.md
@@ -0,0 +1,363 @@
+# Rotate-and-Render: Unsupervised Photorealistic Face Rotation from Single-View Images
+
+Hang Zhou $^{1*}$ Jihao Liu $^{2*}$ Ziwei Liu $^{1}$ Yu Liu $^{1\dagger}$ Xiaogang Wang $^{1}$ $^{1}$ The Chinese University of Hong Kong $^{2}$ SenseTime Research
+
+{zhouhang@link,yuliu@ee,xgwang@ee}.cuhk.edu.hk liujihao@sensetime.com zwliu.hust@gmail.com
+
+
+Figure 1: The rotated faces synthesized by our approach on CelebA-HQ dataset. The first row is the input and the second row is our result. It can be observed that our unsupervised framework produces near photo-realistic results even under extreme poses and expressions.
+
+# Abstract
+
+Though face rotation has achieved rapid progress in recent years, the lack of high-quality paired training data remains a great hurdle for existing methods. The current generative models heavily rely on datasets with multi-view images of the same person. Thus, their generated results are restricted by the scale and domain of the data source. To overcome these challenges, we propose a novel unsupervised framework that can synthesize photo-realistic rotated faces using only single-view image collections in the wild. Our key insight is that rotating faces in the 3D space back and forth, and re-rendering them to the 2D plane can serve as a strong self-supervision. We leverage the recent advances in 3D face modeling and high-resolution GAN to constitute our building blocks. Since the 3D rotation-and-render on faces can be applied to arbitrary angles without losing details, our approach is extremely suitable for in-the-wild scenarios (i.e. no paired data are available), where existing methods fall short. Extensive experiments demonstrate that our approach has superior synthesis quality as well as identity preservation over the state-of-the-art methods, across a wide range of poses and domains.
+
+Furthermore, we validate that our rotate-and-render framework naturally can act as an effective data augmentation engine for boosting modern face recognition systems even on strong baseline models1.
+
+# 1. Introduction
+
+Face rotation, or more generally speaking multi-view face synthesis, has long been a topic of great research interests, due to its wide applications in computer graphics, augmented reality and particularly, face recognition. It is also an ill-posed task with inherent ambiguity that can not be well solved by existing methods. Traditionally, this problem is addressed by using 3D models such as 3DMM [1]. A common challenge here is that invisible areas would appear when rotating a 3D-fitted face. Previous researchers propose to solve this problem through symmetric editing and invisible region filling [48]. However, this filling process usually introduces visible artifacts which lead to nonrealistic results.
+
+With the rapid progress of deep learning and generative adversarial networks (GANs), reconstruction-based methods have been widely applied to face frontalization and ro
+
+tation [42, 14, 33, 12, 32]. Due to the information loss when encoding the given face to bottleneck embeddings, reconstruction-based methods often suffer from the loss of local details such as known facial textures and shapes. It further leads to the confusion of identity information. Moreover, the most notable drawback of existing reconstruction-based methods is that multi-view data of the same person has to be provided as direct supervisions in most cases. To this end, the datasets used for training are constraint to ones in controlled environments such as Multi-PIE [7], and synthetic ones such as 300W-LP [48]. Models trained on controlled datasets can only generate results within a specific domain, lacking the desired generalization ability. Also, their generated resolutions are normally limited to under $128 \times 128$ , far from perceptually satisfying.
+
+To overcome these challenges, we propose a novel unsupervised framework that can synthesize photorealistic rotated faces using only single-view image collections in the wild, and can achieve arbitrary-angle face rotation. While details and ID information tend to degrade during the encoding process of 2D-based methods, we propose to keep as much known information about the given face as possible with 3D model.
+
+Our key insight is that rotating faces in the 3D space back and forth, and re-rendering them to the 2D plane can serve as a strong self-supervision. We take the advantage of both 3D face modeling and GANs by using off-the-shelf 3D-fitting network 3DDFA [49] and the neural renderer [18]. Invisible parts would appear to one fixed 2D view when a face is rotated from one pose to another. While previous methods require both images to form an {input, ground truth} pair, we use the self-supervision of one single image. The key is to create and then eliminate the artifacts caused by rotations. Given one face at pose $\mathbf{P}_a$ , we rotate its 3D-mesh firstly to another arbitrary pose $\mathbf{P}_b$ , and render it to the 2D space to get a 2D-rendered image $\mathrm{Rd}_b$ . Then we rotate it back to its original position and render it to be $\mathrm{Rd}_{a'}$ using textures extracted from $\mathrm{Rd}_b$ . Finally, we use an image-to-image translation network to fill the invisible parts and map the rendered image to real image domain. The overview of our pipeline is shown in Fig. 2. In this way, existing local texture information can be preserved while GAN is responsible for fixing the occluded parts. As the whole pipeline rotates and renders a face forward and backward, we term it Rotate-and-Render framework.
+
+Remarkably, our proposed framework does not rely on paired data or any kind of label, thus any face image can be used as our training source. With unlimited training data, our model can be leveraged to boost large-scale face recognition, providing augmentations and alignments for profile faces. While previous methods are often evaluated on small datasets with moderate baselines, we validate the effectiveness of our approach for large-scale face recognition on
+
+
+Figure 2: Overview of our unsupervised face rotation framework from only single-view image collections. We rotate the 3D-mesh firstly to an arbitrary pose $\mathbf{P}_b$ , and render it to the 2D space to get a 2D-rendered image $\mathrm{Rd}_b$ . Then we rotate it back to its original position $\mathbf{P}_a$ and render it to be $\mathrm{Rd}_{a'}$ using textures extracted from $\mathrm{Rd}_b$ . Finally we use an render-to-image translation network to fill the invisible parts and map the rendered image to real image domain.
+
+strong baseline models.
+
+Our contributions are summarized as follows: 1) We propose a novel Rotate-and-Render framework for training face rotation in a fully unsupervised manner under inthe-wild scenarios. No paired data or any label is needed. 2) We convert incomplete rendered images to real images using an image-to-image translation network, with which photo-realistic face rotation results can be generated. 3) We validate that our generation results benefit large-scale face recognition even on strong baseline models.
+
+# 2. Related Work
+
+# 2.1. Face Rotation and Multi-View Synthesis
+
+The problem of face rotation aims to synthesize multiview faces given a single face image regardless of its viewpoint. Among all views, the frontal view particularly attracts much more research interests. Traditionally, this problem is tackled by building 3D models and warping textures on 3D or 2D [9, 48]. OpenGL can also be used to also easier cases [24]. However, their synthesized results are usually blurry and not photorealistic.
+
+Reconstruction-based Methods. Recently, with the progress of deep learning [22] and GANs [6], reconstruction-based models have revolutionized the field of face frontalization [33, 14, 12, 34, 29, 30]. DRGAN [33, 34], for the first time, adopts GAN to generate frontal faces with an encoder-decoder architecture. Although they do not use multi-view data, the generated results are not satisfying and have perceptually-visible artifacts. Then TP-GAN [14] utilizes global and local networks together with a multi-task learning strategy to
+
+frontalize faces. CAPG-GAN [12] uses face heatmap to guide the generation of multi-view faces. Most of the methods are trained on Multi-PIE dataset, which makes them overfit the dataset's environment and cannot generalize well to unseen data. Even FNM [30] which proposes to combine both labeled and unlabeled data can only normalize faces to a standard MultiPIE-like frontal-view. The common shortcoming that almost all of them share is the requirement of paired multi-view training data.
+
+3D Geometry-based Methods. Several attempts have been made to incorporate 3D prior knowledge into GAN-based frontalization pipeline. FF-GAN [44] proposes to integrate the regression of 3DMM coefficients into the network and employ them for generation. But its generation results are of low-quality. UV-GAN [3] proposes to complete UV-map using image-to-image translation, which is similar to our work. However, their pipeline requires high precision 3D fitting and ground-truth UV-maps, which are both difficult to obtain. Besides, their generated results are not photorealistic under in-the-wild scenarios. Recently, HF-PIM [2] achieves high-quality face frontalization results using facial texture map and correspondence fields. However, their method also requires paired data for training. In this work, our proposed approach not only gets rid of the requirement for paired training data, but also has the capacity to generate high-quality results which preserve texture and identity information.
+
+# 2.2. Image-to-Image Translation
+
+Image-to-image translation aims at translating an input image to a corresponding output image, typically from a different modality or domain. The core idea is to predict pixel values directly with encoder-decoder architecture and low-level connections. GANs are widely adopted in this field [16, 47, 35, 26, 37, 5, 45, 43, 21, 20], since the adversarial loss can alleviate the blurry issue by $L_{1}$ reconstruction loss. Pix2Pix framework [16] firstly uses image-conditional GANs for this task. Pix2PixHD [35] used stacked structures to produce high-quality images. Recently, SPADE [26] and MaskGAN [20] discovers that semantic information can be infused via conditional batch normalization to further improve the results.
+
+Cycle Consistency in Unsupervised Image-to-Image Translation. Cycle consistency has been proven useful on various tasks [47, 28, 38, 36], particularly for image translation without paired data. For example, CycleGAN [47] achieves unpaired image-to-image translation, and GANimation [28] proposes to generation animation without supervision. Our idea shares similar intuition with cycle consistency. However, The difference is that for most unpaired translation papers, they focus on mapping across domain by training neural networks, while our proposed Rotate-and-Render operation is performed off-line.
+
+
+Figure 3: The process of getting texture and rendering. 3D points lying on the same lines will correspond to the same texture in the 2D space. The subscript $a$ and $b$ are associated with pose $a$ and $b$ in Fig 4.
+
+
+
+Inpainting with GAN. After the rendering step, our target is to synthesize photorealistic images from renders with artifacts, which is substantially a combination of image translation and inpainting. Recently, advanced inpainting techniques also benefit from the image-to-image translation pipeline with GAN [27, 40, 37, 46]. Therefore we adopt the recent advances in image-to-image translation to realize render-to-image generation.
+
+# 3. Our Approach
+
+Overall Framework. Our whole face rotation framework consists of three parts: 3D face fitting, the rotate-and-render strategy for training data preparation, and the render-to-image translation module. We elaborate each component as follows.
+
+# 3.1. 3D Face Modeling and Render
+
+3D Face Fitting. Our method relies on a rough 3D parametric fitting of a given face, where all kinds of 3D models and predicting methods are applicable. Here we briefly introduce the notations and concepts of 3D face model we use as an instruction for the following sections.
+
+Given one definition of 3D face model with $n$ vertices, the shape prediction of a face $\mathbf{V} = [v_{1}, v_{2}, \dots, v_{n}]$ represents the normalized position of its vertices in the 3D space with $\boldsymbol{v}_{i} = [x_{i}, y_{i}, z_{i}]^{\mathrm{T}}$ . The projection of a 3D shape onto the 2D image can be written as:
+
+$$
+\Pi (\mathbf {V}, \mathbf {P}) = f * \mathbf {p} _ {\mathbf {r}} * \mathbf {R} * \mathbf {V} + \mathbf {h} _ {\mathbf {2 d}}, \tag {1}
+$$
+
+where $\Pi$ is the projection function that maps model vertices to their 2D positions. The matrix multiplication is denoted by $" * "$ . $f$ is the scale factor, $\mathbf{p_r}$ is the orthographic projection matrix, $\mathbf{R}$ is the rotation matrix and $\mathbf{h_{2d}}$ is the 2D shift. Here we regard all the above defined projection related parameters to be a joint representation of the face's relative pose $\mathbf{P} = \{f,\mathbf{R},\mathbf{h_{2d}}\}$ .
+
+
+Figure 4: Our framework for unsupervised photorealistic face rotation. Our key insight is that rotating faces in the 3D space back and forth, and re-rendering them to the 2D plane can serve as a strong self-supervision. After two rotate-and- render processes, we can create a rendered image $\mathrm{Rd}_{a'}$ which has the artifacts of a face rotated to the position $a$ from any position $b$ . So that the input image $\mathrm{I}_a$ itself can serve as ground truth for training. Only the Render-to-Image module needs training during the whole process.
+
+Acquiring Textures. Textures also play a crucial role when transforming a complete 3D representation to 2D space. For each vertex $\mathbf{v}_i$ , there exists an associated texture $\mathbf{t}_i = [r_i, g_i, b_i]^{\mathrm{T}}$ on a colored face. We use the simplest vertical projection to get the colors of the vertices from the original image I. The color of each vertex can be written as:
+
+$$
+\boldsymbol {t} _ {i} = \mathbf {I} (\Pi (\boldsymbol {v} _ {i}, \mathbf {P})), \tag {2}
+$$
+
+where $\Pi (\pmb {v}_i,\mathbf{P})$ is the projected 2D coordinate of the vertical $\pmb{v}_{i}$ . In this way we get all corresponding textures $\mathbf{T} = [t_1,\dots ,t_n]$ . This process can be easily depicted in Fig 3. We refer to the whole process of getting textures uniformly as:
+
+$$
+\mathbf {T} = \operatorname {G e t T e x} (\mathbf {I}, \{\mathbf {V}, \mathbf {P} \}). \tag {3}
+$$
+
+The projected result $\Pi (\mathbf{V},\mathbf{P})$ is irrelevant to the vertices' $z$ coordinate due to the orthographic matrix $\mathbf{p_r}$ . For each position $(x_{j},y_{j})$ on the 2D space, there might exist multiple rotated vertices on the line $\{x = x_{j}$ and $y = y_{j}\}$ in 3D space, then the same texture will be assigned to every one of them. For all $\boldsymbol {v}_k\in \{\boldsymbol {v}\mid (x_j,y_j) = \Pi (\boldsymbol {v}_k,\mathbf{P})\}$ , only the outermost one with the largest $z$ axis value gets the correct texture. Its index is
+
+$$
+K _ {j} = \underset {k} {\arg \max } ([ 0, 0, 1 ] * \boldsymbol {v} _ {k}). \tag {4}
+$$
+
+The rest are actually invisible vertices due to occlusion in the 2D space. We keep the wrongly acquired textures and regard them as artifacts that we aim to deal with.
+
+**Rendering.** Given a set of 3D representation of a face $\{\mathbf{V},\mathbf{P},\mathbf{T}\}$ , rendering is to map it to the 2D space and generate an image. The rendering process is the reverse of acquiring texture as depicted in Fig 3 (b). Same as equation 4,
+
+it is known that $K_{j}$ is the index of outermost vertex given a 2D point $(x_{j},y_{j})$ . The rendered color image Rd can be calculated as:
+
+$$
+\operatorname {R d} \left(x _ {j}, y _ {j}\right) = \left\{ \begin{array}{l l} \mathbf {T} \left\{K _ {j} \right\}, & \exists K _ {j} \in \mathbb {N}, \\ 0, & \notin K _ {j} \in \mathbb {N}. \end{array} \right. \tag {5}
+$$
+
+Finally, we denote the whole rendering process as:
+
+$$
+\mathrm {R d} = \operatorname {R e n d e r} \left(\left\{\mathbf {V}, \mathbf {P}, \mathbf {T} \right\}\right). \tag {6}
+$$
+
+We use the open-sourced Neural Mesh Renderer [18] to perform rendering without any training.
+
+# 3.2. Rotate-and-Render Training Strategy
+
+It can be discovered that with an accurately fitted 3D model, our aim is to fill the invisible vertices with the correct textures for getting another view of a face. However, existing works with similar ideas [2, 3] require ground truth supervision from multi-view images which are difficult to get.
+
+Here we propose a simple strategy to create training pairs called Rotate-and-Render (R&R) which consists of two rotate-and-render operations. The key idea is to create the artifacts caused by rotating occluded facial surface to the front and eliminate them. Thus we can leverage only self-supervision to train networks. The whole pipeline and visualizations of each step are all illustrated in Fig 4.
+
+Given an input image $\mathrm{I}_a$ , we firstly get the 3D model parameters by a 3D-face fitting model:
+
+$$
+\left\{\mathbf {V}, \mathbf {P} _ {a} \right\} = \operatorname {F i t t i n g} \left(\mathrm {I} _ {a}\right), \tag {7}
+$$
+
+
+Figure 5: Our render-to-image module. Rendered images $\mathrm{Rd}_{a'}$ and $\mathrm{Rd}_b$ are sent into the generator G to get the results $\mathrm{F}_{a'}$ and $\mathrm{F}_b$ . Losses are conducted between generated $\mathrm{F}_{a'}$ and the ground truth $\mathbf{I}_a$ through the discriminator and the pretrained VGG network.
+
+where $a$ denotes the current view of this face in the 2D space, with $\mathbf{P}_a = \{f,\mathbf{R}_a,\mathbf{h}_{\mathbf{2d}}\}$ . The textures of its vertices can be acquired as:
+
+$$
+\mathbf {T} _ {a} = \operatorname {G e t T e x} \left(\mathrm {I} _ {a}, \{\mathbf {V}, \mathbf {P} _ {a} \}\right). \tag {8}
+$$
+
+We then rotate the 3D representation of this face to another random 2D view $b$ by multiplying $\mathbf{R}_a$ with another rotation matrix $\mathbf{R}_{random}$ to get $\mathbf{P}_b = \{f, \mathbf{R}_b, \mathbf{h}_{\mathbf{2d}}\}$ . And we render the current 3D presentation to $\mathrm{Rdb} = \mathrm{Render}(\{\mathbf{V}, \mathbf{P}_b, \mathbf{T}_a\})$ . This completes the first rotate-and-render operation.
+
+Under this circumstance, another set of textures can be acquired as:
+
+$$
+\mathbf {T} _ {b} = \operatorname {G e t T e x} \left(\mathrm {R d} _ {b}, \left\{\mathbf {V}, \mathbf {P} _ {b} \right\}\right). \tag {9}
+$$
+
+We discover that the vertex set whose textures are correct under view $b$ is the subset of the vertex set whose textures are correct under view $a$ . So unlike previous works rely on a ground truth image $\mathbf{I}_b$ as supervision to recover a face under view $b$ given view $a$ , we propose to recover $\mathbf{T}_a$ regarding $\mathbf{T}_b$ as input.
+
+Specifically, we rotate the 3D position $\mathbf{P}_b$ back to $\mathbf{P}_a$ and render it back to its original 2D position with
+
+$$
+\mathrm {R d} _ {a ^ {\prime}} = \operatorname {R e n d e r} \left(\left\{\mathbf {V}, \mathbf {P} _ {a}, \mathbf {T} _ {b} \right\}\right). \tag {10}
+$$
+
+This $\mathrm{Rd}_{a'}$ is basically a rendered image with artifacts caused by rotating a face from view $b$ to $a$ in the 2D space. In this way, we get our input/ground truth pair $\{\mathrm{Rd}_{a'},\mathrm{I}_a\}$ for training.
+
+# 3.3. Render-to-Image Generation
+
+In order to eliminate the artifacts and map the rendered images $\mathrm{Rd}_b$ and $\mathrm{Rd}_{a'}$ from the rendered domain to real image domain, we propose the render-to-image generation module to create $\mathrm{F}_{a'} = \mathrm{G}(\mathrm{Rd}_{a'})$ and $\mathrm{F}_b = \mathrm{G}(\mathrm{Rd}_b)$ using generator G, as shown in Fig 5.
+
+The basic generator G is adopted from CycleGAN [47], which is enough to handle most images in our datasets.
+
+
+Figure 6: Illustration of the miss-alignment effect and the results of the erosion preprocessing.
+
+The multi-layer discriminator and perceptual loss from Pix2PixHD [35] are borrowed directly. The loss function of the discriminator includes the adversarial loss
+
+$$
+\mathcal {L} _ {\mathrm {G A N}} (\mathbf {G}, \mathrm {D}) = \mathbb {E} _ {\mathrm {I}} [ \log \mathrm {D} \left(\mathrm {I} _ {a}\right) ] + \mathbb {E} _ {\mathrm {R d}} [ \log (1 - \mathrm {D} (\mathbf {G} (\mathrm {R d} _ {a ^ {\prime}})) ], \tag {11}
+$$
+
+and a feature matching loss. The feature matching loss is realized by extracting features from multiple layers of the discriminator and regularizing the distance between input and generated images. We use $F_{D}^{(i)}(\mathbf{I})$ to denote the feature extracted from the $i$ th layer of the discriminator for an input I. For total $N_{D}$ layers, the feature matching loss can be written as:
+
+$$
+\mathcal {L} _ {F M} (G, D) = \frac {1}{N _ {D}} \sum_ {i = 1} ^ {N _ {D}} \| F _ {D} ^ {(i)} \left(\mathrm {I} _ {a}\right) - F _ {D} ^ {(i)} \left(\mathrm {G} \left(\mathrm {R d} _ {a ^ {\prime}}\right)\right) \| _ {1}. \tag {12}
+$$
+
+Perceptual loss is achieved by using ImageNet pretrained VGG network. It is used to regularize both the generation results and the generated identity. The perceptual loss is very similar to that of $\mathcal{L}_{FM}$ , with the features denoted by $F_{vgg}^{(i)}$ , the loss function is:
+
+$$
+\mathcal {L} _ {v g g} (\mathrm {G}, \mathrm {D}) = \frac {1}{N _ {v g g}} \sum_ {i = 1} ^ {N _ {v g g}} \| F _ {v g g} ^ {(i)} \left(\mathrm {I} _ {a}\right) - F _ {v g g} ^ {(i)} \left(\mathrm {G} \left(\mathrm {R d} _ {a ^ {\prime}}\right)\right) \| _ {1}. \tag {13}
+$$
+
+Our full objective function can be written as:
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\mathrm {G A N}} + \lambda_ {1} \mathcal {L} _ {F M} + \lambda_ {2} \mathcal {L} _ {v g g}. \tag {14}
+$$
+
+During testing, our desired output can be directly generated by assigning the target view $\mathbf{P}_{\mathbf{c}}$ to form $\mathrm{Rd}_c = \mathrm{Render}(\{\mathbf{V},\mathbf{P}_c,\mathbf{T}_a\})$ , and send the rendered $\mathrm{Rd}_c$ into the trained generator $\mathbf{G}$ .
+
+# 3.4. Building Block Details
+
+3D Fitting Tool. Our choice of 3D face model is the 3D Morpohable Model (3DMM) [1]. Its flattened vertex matrix $\mathbf{V}$ can be denoted by $\mathbf{S} = [\pmb{v}_1^{\mathrm{T}},\pmb{v}_2^{\mathrm{T}},\dots ,\pmb{v}_n^{\mathrm{T}}]^{\mathrm{T}}$ . Its description of 3D faces is based on PCA:
+
+$$
+\mathbf {S} = \overline {{\mathbf {S}}} + \mathbf {A} _ {i d} \boldsymbol {\alpha} _ {i d} + \mathbf {A} _ {e x p} \boldsymbol {\alpha} _ {e x p}. \tag {15}
+$$
+
+Here $\overline{\mathbf{S}}$ is the mean shape, $\mathbf{A}_{id}$ and $\mathbf{A}_{exp}$ are the principle axes for identities and expressions, respectively.
+
+We use the open-sourced implementation and the pretrained model of 3DDFA [49] for 3D face fitting. It is a deep learning based model for regressing the parameters $\left[\mathbf{P}^{\mathrm{T}},\boldsymbol{\alpha}_{id},\boldsymbol{\alpha}_{exp}\right]$ , from a single 2D face image. Therefore the face's 3D shape and its relative position in 2D space $\{\mathbf{V},\mathbf{P}\}$ can be predicted. Please be noted that we do not train the 3DDFA. The usage of it is only for fast application, and its miss-alignment on 3D shape prediction can cast certain problems to the final results. An alternative way is to tune the 3D model using identity labels. However, in a fully unsupervised setting, we propose to solve it using a novel eroding preprocessing.
+
+Pre-Render and Erosion. Due to the inaccuracy of 3D fitting methods, the projection of wrongly fitted vertices sometimes lies outside the true edges of a face. When this kind of 3D miss alignment happens, background pixels would be assigned to these vertices. During the rotate-and-render process, those wrongly acquired textures will be rendered onto the rotated $\mathrm{Rd}_b$ (see Fig. 6 left column). However, such artifacts are difficult to create directly on $\mathrm{Rd}_{a'}$ by the rotate-and-render process, which means that they do not exist in training input-output pairs. Thus they cannot be handled by our generator.
+
+The way to solve it is to pre-render the fitted 3D representation $\{\mathbf{V},\mathbf{P}_a,\mathbf{T}_a\}$ to $\mathrm{Rd}_{a0}$ , and erode the rendered image by certain pixels. The erosion is performed basing on the projected edge of $\mathbf{V}$ with an average color of all vertices. Then texture $\mathbf{T}_a$ is renewed to
+
+$$
+\mathbf {T} _ {a} = \operatorname {G e t T e x} \left(\operatorname {e r o d e} \left(\mathrm {R d} _ {a}\right), \left\{\mathbf {V}, \mathbf {P} _ {a} \right\}\right). \tag {16}
+$$
+
+So that $\mathrm{Rd}_b$ can only contain artifacts that exist in $\mathrm{Rd}_{a'}$ . The output after the erosion can be found at Fig. 6.
+
+# 4. Experiments
+
+# 4.1. Experimental Settings
+
+Implementation Details. We firstly run 3DDFA across all datasets to get the parameters $\{\mathbf{V},\mathbf{P}\}$ for all images. With known $\mathbf{V}$ , we are able to know the facial key points and perform alignment for faces according to their eye centers and noses. The generator G contains 4 downsample and upsample blocks and 9 residual blocks. Spectral Normalization [23] and Batch Normalization [15] are applied to all layers. The discriminator consists of two scales.
+
+Our models are trained using Pytorch on 8 Tesla V100 GPUs with 16 GB memory. Two graphical cards are used for rendering and the others for training. The time for rotating one single image is about 0.1s. The weights $\lambda_{1}$ and $\lambda_{2}$ are both set to 10. Please refer to our code and models for more details.
+
+
+Figure 7: Frontalization results with 3D-based Methods. the first row is the input. From top to down rows are results from: LFW-3D [9]; HPEN [48]; FF-GAN [44] and the last is ours. The samples are selected from LFW [13].
+
+Datasets. Using our rotate-and-render strategy, we do not rely on any paired multi-view data or supervision, so there is no problem of over-fitting in evaluation. Theoretically, we have unlimited number of data for training our system. As datasets in controlled environments are not always applicable to real-world scenarios, we focus more on large-scale in-the-wild problems.
+
+CASIA-WebFace [41] and MS-Celeb-1M [8] are selected as training sets for both our render-to-image module and our face recognition network. Specifically, we adopt the version named MS1MV2 cleaned in [4]. For evaluating our boost on strong face recognition systems, we test on the standard LFW [13], IJBA [19] which contain profile faces in videos, and MegaFace 1-million Challenge [25]. MegaFace is the most challenging and wildly applied dataset for evaluating face recognition results.
+
+# 4.2. Qualitative Results
+
+As most papers do not release their code and models, we directly borrow the results reported from some of the papers and perform frontalization with the corresponding image in the reported dataset. Our results are cropped for better visualization. It is recommended to zoom-in for a better view. Results on CelebA-HQ [17] are shown in Fig 1 to validate that we can generate high-quality results under extreme poses and expressions
+
+Comparison with 3D-based methods. Fig 7 illustrates the results of 3D-based methods and FFGAN [44], which combines 3D and GAN. It can be seen from the figure that while pure 3D methods attempt to fill the missing part with symmetric priors, they would create great artifacts when coming
+
+
+Figure 8: Frontalization results comparing with GAN-based methods. The samples are selected from LFW.
+
+to large poses. This figure is extracted from FFGAN [44]. However, FFGAN fails to rotate faces to the front fully with serious loss of details. Our results seem much appealing comparing to theirs.
+
+Comparison with GAN-based methods. Fig 8 depicts our comparisons with GAN-based methods. TPGAN [14], CAPG-GAN [12], and FNM [30] are all purely reconstruction-based methods trained on a constrained dataset. As a consequence, the generated results lie only in the domain where their networks are trained. This limits their applications in the field of entertainment. Ours, on the other hand, preserves the illumination and environment satisfyingly. Besides, the results of TP-GAN [14] change the facial shape, CAPG-GAN [12] suffers from identity change. HF-PIM [2] is the previous state-of-the-art method. However, the results reported seem to change more details of identity than that of ours. For example, nose and jaw shapes on the first person (Keanu Reeves) in their results have been changed. FNM [30] is a GAN-based method that takes both constraint and in-the-wild data. Their results tend to generate the standard frontal face with neutral expressions in even the same background.
+
+Numerical Results. We have conducted an additional numerical experiments on VidTIMIT dataset [31] to directly compare frontalization results on pixel level. The multiview frames part is used. We select frames with yaw angle larger than $45^{\circ}$ as input and frontal face as ground truth. We unify the scale to $128 \times 128$ to compute the PSNR. Only open-sourced methods are used for comparison. The results of ours, FNM [30] and CR-GAN [32] are 28.8, 27.9 and 28.2 (dB), respectively. This is only for reference because it is almost impossible for frontalized results to match the ground truth. However, we can still find our results outperform others.
+
+# 4.3. Face Recognition Results
+
+Face Recognition Settings. Normally, previous works report face recognition results to validate the success of
+
+| Training Data | Method | ACC(%) | AUC(%) |
| CASIA | TP-GAN[14] | 96.13 | 99.42 |
| CASIA | FF-GAN[44] | 96.42 | 99.45 |
| - | CAPG-GAN[12] | 99.37 | 99.90 |
| - | LightCNN in [2] | 99.39 | 99.87 |
| - | HF-PIM[2] | 99.41 | 99.92 |
| CASIA | Res18 | 98.77 | 99.90 |
| CASIA+rot. | Res18(ours) | 98.95 | 99.91 |
| MS1MV2 | Res18 | 99.63 | 99.91 |
| MS1MV2+rot. | Res18(ours) | 99.68 | 99.92 |
+
+Table 1: Verification performance on LFW dataset. Our method can still boost the performance on a strong baseline.
+
+| Training Data | Method | @FAR=.01 | @FAR=.001 |
| CASIA | FF-GAN | 85.2±1.0 | 66.3±3.3 |
| CASIA | DR-GAN | 87.2±1.4 | 78.1±3.5 |
| CASIA | FNM[30] | 93.4±0.9 | 83.8±2.6 |
| - | HF-PIM[2] | 95.2±0.7 | 89.7±1.4 |
| CASIA | Res18 | 90.57±1.2 | 80.0±4.1 |
| CASIA+rot. | Res18(ours) | 91.98±0.7 | 82.48±2.5 |
| MS1MV2 | Res18 | 97.28±0.6 | 95.39±0.9 |
| MS1MV2+rot. | Res18(ours) | 97.30±0.6 | 95.63±0.7 |
+
+Table 2: Verification performance on IJB-A dataset [19].
+
+their identity preserving quality after frontalization. However, clear descriptions about their settings are seldom given. Moreover, they report results on the baseline of LightCNN [39] with different structures and baseline scores, which are non-comparable. As a result, we will only report their final numbers as a reference.
+
+Meant for proposing a real-world applicable system, we use the state-of-the-art loss function ArcFace [4] and standard ResNet18 [10] backbone which has slightly smaller parameter size than LightCNN29 [39] for face recognition. Both results trained on CASIA and MS1MV2 are provided. We propose a different way of using frontalized data to boost the performance of face recognition by augmenting the original datasets with our 3D generated ones. Then the networks are trained on our augmented datasets. For fair comparison, best results are provided for baselines.
+
+Quantitative Results. We do a comprehensive study on the LFW dataset. The 1:1 face verification accuracy and area-under-curve (AUC) results are reported. It can be discovered that regardless of both weak (CAISA) or strong (MS1M) baselines, augmenting the training set with our frontalized results can boost the performance. Particularly, HF-PIM improves less on their baseline than our proposed method. Improvements can be found on IJB-A as listed in Table 2 with the verification experiments conducted on ResNet18. MultiPIE [7] is also evaluated with the same
+
+| Angle | ±30° | ±45° | ±60° | ±75° | ±90° |
| Res18 | 100 | 99.7 | 96.0 | 76.4 | 39.0 |
| FF-GAN[44] | 92.5 | 89.7 | 85.2 | 77.2 | 61.2 |
| TP-GAN[14] | 98.1 | 95.4 | 87.7 | 77.4 | 64.6 |
| CAPG-GAN[12] | 99.6 | 97.3 | 90.3 | 76.4 | 66.1 |
| HF-PIM[2] | 100 | 99.9 | 99.1 | 96.4 | 92.3 |
| Res18(ours) | 100 | 100 | 99.7 | 99.3 | 94.4 |
+
+Table 3: Rank-1 recognition rates $(\%)$ across views on Multi-PIE dataset.
+
+| Training Data | Method | Id% |
| MS1MV2 | R100 (ArcFace) | 98.35 |
| MS1MV2 | R18 | 97.00 |
| MS1MV2+rotate | R18 | 97.48 |
| MS1MV2 | R50 | 98.26 |
| MS1MV2+rotate | R50 | 98.44 |
+
+Table 4: Evaluation on MegaFace dataset, "Id" refers to the rank-1 face identification accuracy with 1M distractors.
+
+settings as [14] and all works listed in Table 3. As stated before, controlled datasets are not our focus. However, with our strong baseline, we can improve the recognition results on MultiPIE as well.
+
+Finally, we conduct experiments on MegaFace dataset, which is wildly used in the field of face recognition. However, no face frontalization paper has reported results on this dataset. Rank-1 face identification accuracy with 1 million distractors has been evaluated. We use the modified version of the 18 and 50 layers ResNet introduced by the ArcFace [4], and compare with their state-of-the-art result on R100. With our rotated augmentation, we can boost the performance of R50 to outperform the ArcFace R100 model, reaching $98.44\%$ .
+
+# 4.4. Ablation Study
+
+We train the same network with the same set of parameters and training strategy additionally without (i) the VGG loss; (ii) using multi-scale discriminator and the feature matching loss, as they are proposed together. Instead, we change it to the PatchGAN in the original Pix2Pix paper [16]. An additional $L_{1}$ loss on image level is added for regularization.
+
+Quantitative Results. Frechet Inception Distance (FID) [11] is widely used to measure the distances between generated and real image domains. The results of FID scores are listed in Table 5. We can observe that the performance reaches the best FID scores with our full model.
+
+Qualitative Results. We show two sets of frontalization results on the LFW dataset. It can be seen that without the multi-scale D, it is difficult for the network to discriminate the real domain, so the results contain certain GAN artifacts.
+
+
+Input
+
+
+Ours w/o {MultiD}
+
+
+Ours w/o {VGG}
+
+
+Ours
+
+Figure 9: Ablation study of frontalization results.
+
+| Approach \ Dataset | LFW | IJB-A |
| Ours w/o {VGG} | 93.1 | 126.5 |
| Ours w/o {MultiD} | 83.9 | 132.3 |
| Ours | 83.1 | 70.9 |
+
+Table 5: Ablation study on loss functions with FID metric. For FID scores, the lower the better.
+
+Without the VGG loss, the results tend to be smooth. They are both crucial when it comes to large poses.
+
+Note that the modules we use are the least ones to generate reasonable results. Our method can still create visible artifacts, but there is great potential for improvements.
+
+# 5. Conclusion
+
+In this work, we take the advantage of 3D face priors and propose a novel strategy called Rotate-and-Render for unsupervised face rotation. Our key insight is to create self-supervision signal by rotating and rendering the roughly-predicted 3D representation to a random pose and back to its original place. So that self-supervision can be leveraged to create photo-realistic results by translating rendered image to real-image domain. Through comprehensive experiments, the following strengths of our pipeline have been validated: 1) No multi-view or paired-data, nor any kind of labels, including identities are needed for training our method. 2) Instead of purely frontalization a single-view face can be rotated to any desired angle. 3) Near photorealistic face rotation results which preserve details and illumination condition can be generated. Visualization indicates the superiority of our method. 4) It can be used to augment face datasets and boost recognition results on large-scale benchmarks with strong baseline models.
+
+Acknowledgements. We thank Hao Shao for helpful discussions. This work is supported by SenseTime Group Limited, the General Research Fund through the Research Grants Council of Hong Kong under Grants CUHK14202217, CUHK14203118, CUHK14205615, CUHK14207814, CUHK14208619, CUHK14213616, and Research Impact Fund R5001-18.
+
+# References
+
+[1] Volker Blanz, Thomas Vetter, et al. A morphable model for the synthesis of 3d faces. In Siggraph, 1999. 1, 5
+[2] Jie Cao, Yibo Hu, Hongwen Zhang, Ran He, and Zhenan Sun. Learning a high fidelity pose invariant model for high-resolution face frontalization. In NeurIPS, 2018. 3, 4, 7, 8
+[3] Jiankang Deng, Shiyang Cheng, Niannan Xue, Yuxiang Zhou, and Stefanos Zafeiriou. Uv-gan: Adversarial facial uv map completion for pose-invariant face recognition. In CVPR, 2018. 3, 4
+[4] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In CVPR, 2019. 6, 7, 8
+[5] Yixiao Ge, Zhuowan Li, Haiyu Zhao, Guojun Yin, Shuai Yi, Xiaogang Wang, et al. Fd-gan: Pose-guided feature distilling gan for robust person re-identification. In Advances in neural information processing systems, pages 1222–1233, 2018. 3
+[6] Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014. 2
+[7] Ralph Gross, Iain Matthews, Jeffrey Cohn, Takeo Kanade, and Simon Baker. Multi-pie. Image and Vision Computing. 2, 7
+[8] Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. Ms-celeb-1m: A dataset and benchmark for large-scale face recognition. In ECCV, 2016. 6
+[9] Tal Hassner, Shai Harel, Eran Paz, and Roee Enbar. Effective face frontalization in unconstrained images. In CVPR, 2015. 2, 6
+[10] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 7
+[11] 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, 2017. 8
+[12] Yibo Hu, Xiang Wu, Bing Yu, Ran He, and Zhenan Sun. Pose-guided photorealistic face rotation. In CVPR, 2018. 2, 3, 7, 8
+[13] Gary B Huang, Marwan Mattar, Tamara Berg, and Eric Learned-Miller. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. 2008. 6
+[14] Rui Huang, Shu Zhang, Tianyu Li, and Ran He. Beyond face rotation: Global and local perception gan for photorealistic and identity preserving frontal view synthesis. In ICCV, 2017. 2, 7, 8
+[15] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 6
+[16] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. CVPR, 2017. 3, 8
+
+[17] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. *ICLR*, 2018. 6
+[18] Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3d mesh renderer. In CVPR, 2018. 2, 4
+[19] Brendan F Klare, Ben Klein, Emma Taborsky, Austin Blanton, Jordan Cheney, Kristen Allen, Patrick Grother, Alan Mah, and Anil K Jain. Pushing the frontiers of unconstrained face detection and recognition: Iarpa janus benchmark a. In CVPR, 2015. 6, 7
+[20] Cheng-Han Lee, Ziwei Liu, Lingyun Wu, and Ping Luo. Maskgan: towards diverse and interactive facial image manipulation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2020. 3
+[21] Xihui Liu, Guojun Yin, Jing Shao, Xiaogang Wang, and Hongsheng Li. Learning to predict layout-to-image conditional convolutions for semantic image synthesis. In Advances in Neural Information Processing Systems, pages 568-578, 2019. 3
+[22] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Deep learning face attributes in the wild. In ICCV, 2015. 2
+[23] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv preprint arXiv:1802.05957, 2018. 6
+[24] Joel Ruben Antony Moniz, Christopher Beckham, Simon Rajotte, Sina Honari, and Chris Pal. Unsupervised depth estimation, 3d face rotation and replacement. In Advances in Neural Information Processing Systems, pages 9736-9746, 2018. 2
+[25] Aaron Nech and Ira Kemelmacher-Shlizerman. Level playing field for million scale face recognition. In CVPR, 2017. 6
+[26] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In CVPR, 2019. 3
+[27] 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. 3
+[28] Albert Pumarola, Antonio Agudo, Aleix M Martinez, Alberto Sanfeliu, and Francesc Moreno-Noguer. Ganimation: Anatomically-aware facial animation from a single image. In Proceedings of the European Conference on Computer Vision (ECCV), pages 818-833, 2018. 3
+[29] Shengju Qian, Kwan-Yee Lin, Wayne Wu, Yangxiaokang Liu, Quan Wang, Fumin Shen, Chen Qian, and Ran He. Make a face: Towards arbitrary high fidelity face manipulation. In Proceedings of the IEEE International Conference on Computer Vision, pages 10033–10042, 2019. 2
+[30] Yichen Qian, Weihong Deng, and Jiani Hu. Unsupervised face normalization with extreme pose and expression in the wild. In CVPR, 2019. 2, 3, 7
+[31] Conrad Sanderson and Brian C Lovell. Multi-region probabilistic histograms for robust and scalable identity inference.
+
+In International conference on biometrics, pages 199-208. Springer, 2009. 7
+[32] Yu Tian, Xi Peng, Long Zhao, Shaoting Zhang, and Dimitris N Metaxas. Cr-gan: learning complete representations for multi-view generation. *IJCAI*, 2018. 2, 7
+[33] Luan Tran, Xi Yin, and Xiaoming Liu. Disentangled representation learning gan for pose-invariant face recognition. In CVPR, 2017. 2
+[34] Luan Quoc Tran, Xi Yin, and Xiaoming Liu. Representation learning by rotating your faces. IEEE transactions on pattern analysis and machine intelligence, 2018. 2
+[35] 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. 3, 5
+[36] Xiaolong Wang, Allan Jabri, and Alexei A Efros. Learning correspondence from the cycle-consistency of time. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2566-2576, 2019. 3
+[37] Yi Wang, Xin Tao, Xiaojuan Qi, Xiaoyong Shen, and Jiaya Jia. Image inpainting via generative multi-column convolutional neural networks. In Advances in neural information processing systems, 2018. 3
+[38] Wayne Wu, Yunxuan Zhang, Cheng Li, Chen Qian, and Chen Change Loy. Reenactgan: Learning to reenact faces via boundary transfer. In ECCV, 2018. 3
+[39] Xiang Wu, Ran He, Zhenan Sun, and Tieniu Tan. A light cnn for deep face representation with noisy labels. IEEE Transactions on Information Forensics and Security, 2018. 7
+[40] 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. 3
+[41] Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z Li. Learning face representation from scratch. arXiv preprint arXiv:1411.7923, 2014. 6
+[42] Junho Yim, Heechul Jung, ByungIn Yoo, Changkyu Choi, Dusik Park, and Junmo Kim. Rotating your face using multitask deep neural network. In CVPR, 2015. 2
+[43] Weidong Yin, Ziwei Liu, and Chen Change Loy. Instance-level facial attributes transfer with geometry-aware flow. In AAAI, 2019. 3
+[44] Xi Yin, Xiang Yu, Kihyuk Sohn, Xiaoming Liu, and Manmohan Chandraker. Towards large-posed face frontalization in the wild. In ICCV, 2017. 3, 6, 7, 8
+[45] Hang Zhou, Yu Liu, Ziwei Liu, Ping Luo, and Xiaogang Wang. Talking face generation by adversarially disentangled audio-visual representation. In AAAI, 2019. 3
+[46] Hang Zhou, Ziwei Liu, Xudong Xu, Ping Luo, and Xiaogang Wang. Vision-infused deep audio inpainting. In ICCV, 2019. 3
+[47] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networkss. In Computer Vision (ICCV), 2017 IEEE International Conference on, 2017. 3, 5
+
+[48] Xiangyu Zhu, Zhen Lei, Junjie Yan, Dong Yi, and Stan Z Li. High-fidelity pose and expression normalization for face recognition in the wild. In CVPR, 2015. 1, 2, 6
+[49] Xiangyu Zhu, Xiaoming Liu, Zhen Lei, and Stan Z Li. Face alignment in full pose range: A 3d total solution. IEEE transactions on pattern analysis and machine intelligence, 41(1):78-92, 2017. 2, 6
\ No newline at end of file
diff --git a/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/images.zip b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f21d009475e297093e602e117ac55dc198a8f27e
--- /dev/null
+++ b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1ad44129a47273d5b3789695834df36ffdfdc64cc28cb0e24b19648dd1550298
+size 574846
diff --git a/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/layout.json b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9b19f8e3bfdf0129b3723ee41b7a3e8973340cb1
--- /dev/null
+++ b/rotateandrenderunsupervisedphotorealisticfacerotationfromsingleviewimages/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3894b34acd92aa01c04d01aebf95b594a169ce1e4f96c455bd1999c96153f98d
+size 425542
diff --git a/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_content_list.json b/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..60be25db64c198c3dc3fb45b0432a59e079cd42b
--- /dev/null
+++ b/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf6b3f37fb9c735a3bd742bec142d7c7a8f211149c2d60e49e8b9363727fea84
+size 87090
diff --git a/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_model.json b/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5b138c7caf3f03c2e0dea5771421dd0e7b2fa77f
--- /dev/null
+++ b/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:99d9572c68e4982f99ea8fe4522dde08614eec68b8cfc77778f5e0391d4cfe40
+size 109825
diff --git a/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_origin.pdf b/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..41b82d029974a33e60e1872e85c5a4fbc776f778
--- /dev/null
+++ b/rotationconsistentmarginlossforefficientlowbitfacerecognition/7a8e4d5f-a6e9-4c6f-a02a-6ad0dc1677ee_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a7007b48119eefaea659393b3f44581ccd632c0f74d79414e418a3a58967d250
+size 687739
diff --git a/rotationconsistentmarginlossforefficientlowbitfacerecognition/full.md b/rotationconsistentmarginlossforefficientlowbitfacerecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b1bfd8197ef83b0b19887790e8d946544032f110
--- /dev/null
+++ b/rotationconsistentmarginlossforefficientlowbitfacerecognition/full.md
@@ -0,0 +1,400 @@
+# Rotation Consistent Margin Loss for Efficient Low-bit Face Recognition
+
+Yudong Wu $^{1}$ , Yichao Wu $^{1}$ , Ruihao Gong $^{1,2}$ , Yuanhao Lv $^{1}$ , Ken Chen $^{1}$ , Ding Liang $^{1}$ , Xiaolin Hu $^{3}$ , Xianglong Liu $^{2}$ , Junjie Yan $^{1}$
+
+$^{1}$ SenseTime Group Limited $^{2}$ BeiHang University $^{3}$ Tsinghua University
+
+{wuyudong, wuyichao, liangding, yanjunjie}@sensetime.com
+
+# Abstract
+
+In this paper, we consider the low-bit quantization problem of face recognition (FR) under the open-set protocol. Different from well explored low-bit quantization on closed-set image classification task, the open-set task is more sensitive to quantization errors (QEs). We redefine the QEs in angular space and disentangle it into class error and individual error. These two parts correspond to inter-class separability and intra-class compactness, respectively. Instead of eliminating the entire QEs, we propose the rotation consistent margin (RCM) loss to minimize the individual error, which is more essential to feature discriminative power. Extensive experiments on popular benchmark datasets such as MegaFace Challenge, Youtube Faces (YTF), Labeled Face in the Wild (LFW) and IJB-C show the superiority of proposed loss in low-bit (e.g., 4-, 3-bit) FR quantization tasks.
+
+# 1. Introduction
+
+The problem of face recognition (FR) has been well investigated [41, 42, 12, 4, 25, 8, 46, 54] in recent years. Among them, the deep FR technique, which leverages hierarchical and heavy-weight network architectures [43, 34, 38, 14, 16], has significantly improved the state-of-the-art performance and fostered wide-spread applications. Whereas excessive memory and computational consumption make it impractical to deploy massive networks on mobile or embedded devices.
+
+Quantization technique [6, 5, 31, 55, 56, 10] emerges as an elegant compression solution to address this problem. The core idea of this method is to reduce bit-width of weights and activations by mapping continuous values to discrete integers, which can not only reduce the memory footprint but also accelerate the inference directly. Despite the attractive benefits, low bit-width may degrade accuracy due to quantization errors (QEs). To minimize QEs, many methods have been proposed [53, 36, 2, 1], and have been demonstrated successful in the fields of closed-set computer
+
+
+(a) Quantization processes of closed-set and open-set
+
+
+
+
+(b) Comparison of accuracy
+
+
+(c) Angles of positive pairs
+Figure 1: Difference between closed-set and open-set quantization. (a) sketches the quantization processes of closed and open-set, respectively. $W_{i}$ is the $i$ -th column of the weight of the last fully connected layer ( $i$ -th class weight). Gray circle represents unknown face categories in test set, and the green dotted line denotes decision boundary. (b) compares the degradation of top1 accuracy and TPR after quantization. FP refers to full precision. (c) illustrates the increase of angles between positive pairs caused by quantization.
+
+vision problems $^{1}$ , such as image classification and object detection [23]. However, for real-world FR, it is common that the testing identities (IDs) are disjoint from the training set, which makes open-set $\mathrm{FR}^2$ problems more challenging and practical [25, 11]. In this study, we show that FR is much more sensitive to the QEs than closed-set classification tasks, thus novel sophisticated techniques are required to address this issue.
+
+Essentially, FR is a typical scenario of metric learning where features of different IDs are expected to have discriminative large-margins rather than just be separable, as illustrated in Fig. 1a. To demonstrate the difficulty in open-set model quantization, we conduct a toy experiment. For
+
+closed-set protocol, we select 100 categories from CASIA-WebFace [52], and then choose $70\%$ of all the data as training set and the rest as the test set. For open-set protocol, 10 additional categories are collected as open test set. We train a ResNet18 [14] and quantize it into 4-bit. As shown in Fig. 1b, the top1 accuracy of classification keeps almost unchanged after quantization, while the true positive ratio (TPR) of FR decreases more than $20\%$ , especially on the open test set. Angles between positive pairs (two samples belong to the same id) also increase significantly after quantization (Fig. 1c), which indicates the reduced intra-class compactness.
+
+Previous methods for closed-set classification quantization training attempt to completely eliminate the QEs by well-designed quantizers [53, 1, 2] or knowledge distillation (KD) [31]. In this paper, we argue that improving performance of low-bit FR models is not entirely equivalent to reducing the QEs, and propose a novel rotation consistent margin (RCM) loss function for efficient low-bit FR quantization. We define the QEs of face feature representation as the angle between its full precision (FP) feature and its quantized feature, named "A-QE". For a single sample, A-QE can be disentangled into two parts: class error and individual error. The class error refers to the overall rotation of a class caused by quantization. We observe that although it is enormous in low-bit models, it does not weaken the inter-class separability. On the other hand, individual error refers to the within-class deviation of each sample. It represents intra-class structural changes, which affect the performance of the quantized FR models essentially. Therefore, in this study, we attempt to minimize the individual error instead of the entire entangled A-QE by introducing it into cosine-based softmax loss function as an angular margin, which we call rotation consistent margin (RCM).
+
+It is known that the embedding features of FR distribute on a fixed radius hypersphere [35, 8, 46, 45, 54]. Thus, QEs can be considered as rotation over the original distribution. Rotation consistent means that intra-class compactness remains unchanged regardless of class rotations, which can maintain same feature discrimination as the FP model. The proposed method rebuilds intra-class compactness efficiently by focusing on minimizing individual error. Meanwhile, rotation consistent is more realistic and easier to achieve because QEs are intrinsical and cannot be eliminated completely. Extensive experiments on MegaFace [21], LFW [17], YTF [51] and IJB-C [28] show that RCM loss function significantly improves the performance of low-bit FR models. Moreover, our method can be combined with other quantization methods and boost their performance.
+
+To sum up, our contributions could be summarized into three parts:
+
+We redefine the QEs of FR in angular space, and dis
+
+entangle QEs into class error and individual error. The former modifies inter-classes distribution, and the later determines the change of intra-class compactness.
+
+- We rethink the essence of improving quantized FR models, and propose a novel loss function named as rotation consistent margin (RCM) loss for efficient low-bit FR model training by minimizing individual errors.
+- To the best of our knowledge, we are the first to explore the quantization of FR. Extensive experiments on several accessible benchmark datasets demonstrate that our method effectively improves the performance of different low-bit FR models.
+
+# 2. Related Work
+
+# 2.1. Large-scale face recognition
+
+Practical applications of FR are usually under the open-set protocol, where test categories are different from training categories. Therefore, FR is regarded as a typical metric learning task [33, 40, 47, 25, 46], whose objective is to increase the intra-class compactness and inter-class discrepancy. To this end, many loss functions have been proposed. Sun et al. [41, 42] and Wang et al. [50] combine softmax loss with contrast loss or center loss, respectively, to explicitly increase the margin between different classes or reduce the distance between positive sample pairs. FaceNet [38] adopts triplet loss to optimize the embedding features directly, and greatly boost the performance. Recent works [26, 25, 46, 8, 45] propose the cosine-based softmax loss function and incorporate with margin to enhance the feature discriminative power. In these methods, features and class weights are normalized to a fixed scale, and the hypersphere manifold distribution hypothesis arises correspondingly and is widely recognized due to the concise geometric interpretation and impressive performance achieved by those loss functions.
+
+# 2.2. Network quantization
+
+Network quantization is a technique of network compression that works as an analog-to-digital converter: quantizing FP weights and activations into low precision fixed-point integers. Through efficient bit operation or integer-only arithmetic, it can both reduce the storage overhead and accelerate the inference significantly. Common quantization types include binary/ternary [5, 6, 18, 22, 57], uniform [58, 31, 29, 55, 20, 48] and non-uniform [56, 44, 3, 53, 13] quantization. Both uniform and binary/ternary quantizers are hardware-friendly that can enjoy acceleration directly on off-the-shelf hardware [20, 19, 9, 30]. Posttraining quantization and quantization-aware training are two typical quantization schemes. The former solves the value ranges without re-training. The later finetunes the optimized FP model in a simulated quantization scheme and usually yields higher accuracy.
+
+# 3. Preliminaries
+
+# 3.1. Cosine-based softmax loss function
+
+In original deep FR methods [43, 41], models are trained using softmax cross-entropy loss function3,
+
+$$
+\mathcal {L} _ {\text {s o f t m a x}} = - \log \frac {e ^ {z _ {i , j}}}{\sum_ {j = 1} ^ {n} e ^ {z _ {i , j}}}, \tag {1}
+$$
+
+where $z_{i,j} = \boldsymbol{W}_j^T\boldsymbol{f}_i$ is the logit of $j$ -th class. $\boldsymbol{W}_j \in \mathbb{R}^d$ is the $j$ -th column of weights of last fully connected layer, and bias is omitted for simplicity, $\boldsymbol{f}_i \in \mathbb{R}^d$ refers to the feature of $i$ -th sample.
+
+Recently, it is argued that the vanilla softmax loss cannot force features to have higher discriminative power, and cosine-based softmax incorporated with margin is proposed [8, 54, 46], where $\mathbf{W}_j^T\mathbf{f}_i$ is reformulated as $s \cdot \cos \theta_{i,j}$ , and $\theta_{i,j}$ is the angle between $\mathbf{W}_j$ and $\mathbf{f}_i$ , and $s$ is a scale hyperparameter. ArcFace [8] uses additive angular margin $z_{i,j} = s \cdot \cos (\theta_{i,j} + \mathbb{1}\{j = y_i\} \cdot m)$ , CosFace [46] uses additive cosine margin $z_{i,j} = s \cdot (\cos \theta_{i,j} - \mathbb{1}\{j = y_i\} \cdot m)$ , and SphereFace [25] uses multiplicative angular margin $z_{i,j} = s \cdot \cos (\mathbb{1}\{j = y_i\} \cdot m \cdot \theta_{i,j})$ . The indicator function $\mathbb{1}\{j = y_i\}$ returns 1 when $j = y_i$ and 0 otherwise. All of them achieve significant improvement.
+
+# 3.2. Quantization process
+
+Generally, weights and activations of deep models are represented in FP values with 32-bit. Network quantization represents them in fixed-point integers with lower bit-width (e.g., 8-, 4-bit etc.). Among popular quantizers, the binary and uniform quantizers are hardware-friendly, which enables us to accelerate the inference directly on off-the-shelf hardwares [20, 19, 9, 30]. Therefore, the following discussions are all under the uniform protocol.
+
+For $n$ -bit uniform quantization, the process can be defined as:
+
+$$
+x _ {Q} = \operatorname {r o u n d} \left(\frac {\operatorname {c l a m p} \left(x _ {\min } , x _ {\max } , x\right) - x _ {\min }}{\Delta}\right), \tag {2}
+$$
+
+where $x_{Q}$ is the integer number in $n$ -bit width, and $x_{min}$ , $x_{max}$ is the lower and upper bound of FP values. For per-layer quantization scheme, an entire layer shares the same $(x_{min}, x_{max})$ , and for per-channel scheme, each channel has different boundaries. $\Delta = \frac{x_{max} - x_{min}}{2^n - 1}$ is the interval length.
+
+# 4. Proposed Approach
+
+# 4.1. Angle based quantization errors in FR
+
+Generally, when the bit-width goes down, the accuracy of quantized models degrades dramatically due to QEs. QEs refer to the rounding and truncation errors introduced by
+
+representing continuous values in $n$ -bit fixed-point number. For a single value $x$ , QE defines as follows,
+
+$$
+\mathrm {Q E} (x) = x - \mathrm {Q} (x) \tag {3}
+$$
+
+where $\mathrm{Q}(x)$ is de-quantization FP value of $x_{Q}$ . For $r$ uniform quantization, the de-quantization operation is:
+
+$$
+\mathrm {Q} (x) = x _ {\text {m i n}} + x _ {Q} * \Delta . \tag {4}
+$$
+
+In previous works [53, 1], QE of the $d$ -dimension feature or tensor is defined as the average error of each dimension,
+
+$$
+\operatorname {Q E} \left(\boldsymbol {f} _ {i}\right) = \frac {1}{d} \sum_ {l = 1} ^ {d} \left(f _ {i} ^ {l} - \mathrm {Q} \left(f _ {i} ^ {l}\right)\right) ^ {2}, \tag {5}
+$$
+
+where $f_{i}^{l}$ is the $l$ -th dimension of feature $\pmb{f}_{i}$ . As for FR, features are angularly distributed, i.e., on the surface of a fixed radius hypersphere, and the angle or cosine similarity models the interrelation between samples. Reasonably, we redefine the QE of face feature as the angle between its quantized feature and its FP feature,
+
+$$
+\operatorname {A} - \operatorname {Q E} \left(\boldsymbol {f} _ {i}\right) = \arccos \left(\left\langle \frac {\boldsymbol {f} _ {i}}{\| \boldsymbol {f} _ {i} \| _ {2}}, \frac {\hat {\mathrm {Q}} \left(\boldsymbol {f} _ {i}\right)}{\| \hat {\mathrm {Q}} \left(\boldsymbol {f} _ {i}\right) \| _ {2}} \right\rangle\right), \tag {6}
+$$
+
+where $\hat{\mathrm{Q}}(f_i)$ is the feature of quantized model. Compared with the vanilla mean-square error definition, A-QE has a more clear geometric interpretation and is also more intuitive in FR. It intuitively reflects the rotation caused by quantization.
+
+# 4.2. Disentangling A-QE
+
+In this subsection, we investigate the effects of A-QE on FR by theoretical analysis and empirical experiments, and then propose to disentangle the A-QE of a single sample into class error and individual error.
+
+Initially, we represent the class center as the mean of all sample features:
+
+$$
+\boldsymbol {c} _ {y _ {i}} = \frac {1}{n} \sum_ {i = 0} ^ {n} \boldsymbol {f} _ {i}, \quad s. t. \boldsymbol {f} _ {i} \in \mathcal {C} _ {y _ {i}}, \tag {7}
+$$
+
+where $\mathcal{C}_{y_i}$ is the $y_{i}$ -th class set. For $\pmb {f}_i\in \mathcal{C}_{y_i}$ , we denote the QE of $l$ -dimension as $\delta^l$ , then the center of the quantized class,
+
+$$
+\begin{array}{l} q c _ {y _ {i}} ^ {l} = \frac {1}{n} \sum \hat {Q} (f _ {i} ^ {l}) \\ = \frac {1}{n} \sum \left(f _ {i} ^ {l} + \delta_ {i} ^ {l}\right) \tag {8} \\ = \frac {1}{n} \sum f _ {i} ^ {l} + \frac {1}{n} \sum \delta_ {i} ^ {l}, \\ \end{array}
+$$
+
+where $q c_{y_i}$ denotes the center of the quantized class. If we assume that $\delta^l$ is a Gaussian distribution, i.e. $\delta^l \sim \mathcal{N}(\mu_{y_i}, \sigma_{y_i}^2)$ , then $q c_{y_i}^l = c_{y_i}^l + \mu_{y_i}^l$ . The rotation angle of class center after quantization is
+
+$$
+\theta_ {c _ {y _ {i}}} = \operatorname {a r c c o s} \left(\frac {\sum_ {l = 0} ^ {d} c _ {y _ {i}} ^ {l} \cdot \left(c _ {y _ {i}} ^ {l} + \mu_ {y _ {i}} ^ {l}\right)}{\left\| \boldsymbol {c} _ {y _ {i}} \right\| _ {2} \cdot \left\| \boldsymbol {q} \boldsymbol {c} _ {y _ {i}} \right\| _ {2}}\right). \tag {9}
+$$
+
+
+(a) QEs of class centers
+
+
+
+
+(b) Inter-class angles
+(c) Intra-class angles
+Figure 2: QEs analysis of FR model. We train a ResNet18 [14] on CASIA-WebFace [52] dataset and quantize it into 8-, 6-, 4-bit, respectively. (a) plots the rotation angles of class centers of different bit-width models. (b) illustrates the angles between all class center pairs (inter-class angles). (c) demonstrates the within-class angles.
+
+To reveal the actual rotation angles in FR, we conduct experiments on the CASIA-WebFace [52] and plot the distribution of A-QE of each class center in Fig. 2a. Specifically, we train an FP ResNet18 [14] model using Arcface [8] and quantize it into 8-, 6-, 4-bit, respectively. To avoid modifying model weights, we adopt the post-training quantization scheme.
+
+Observation #1. As shown in Fig. 2a, the rotation angles of class centers are significant and increase dramatically as the bit-width decreases. We name this rotation caused by quantization, i.e., $\mathrm{A - QE(c_{y_i})}$ , as class error.
+
+Analysis. The significant class error indicates that the A-QEs of samples in the same category are not completely random; samples are rotated in a common direction. Accordingly, the entire class is rotated. Repeat experiments are performed on MobileNetV2 [37], VGG [39] to exclude the effect of network architectures, and the same phenomena are observed.
+
+The distribution of classes mainly determines the inter-class separability. To further investigate, we use the angles between class center pairs (inter-class angles) to demonstrate the overall inter-class separability of different bitwidth models. The distributions are shown in Fig. 2b.
+
+Observation #2. Compared with the original FP model, there is no obvious change of the inter-class angles after quantization: most remain around $\frac{\pi}{2}$ . This observation holds when the bit-width is reduced.
+
+Analysis. The stationary inter-class angle means the inter-class discrepancy keeps stable after quantization. Based on the above two observations, we can briefly summarize that although QEs rotate classes sorely, the discriminative power between classes has not been weakened.
+
+On the other hand, we also investigate the change of intra-class compactness after quantization. The original definition of within-class scatter is based on the distance between samples and class centers4. We replace the Euclidean distance by angle and show within-class angles in Fig. 2c.
+
+Observation #3. The within-class angles increase significantly after quantization, which means that the intraclass compactness is noticeably reduced, especially in low-bit models. The within-class angles are about $30^{\circ}$ in the FP model, whereas they surge to $90^{\circ}$ when quantized to 4-bit.
+
+Analysis. We can empirically conclude that QEs weaken the intra-class compactness, and as the bit width decreases, the degree of weakening increases.
+
+Based the on above investigations, we propose to decompose A-QE of a sample into class error and individual error two parts,
+
+$$
+\mathrm {A} - \mathrm {Q E} \left(\boldsymbol {f} _ {i}\right) = \mathrm {A} - \mathrm {Q E} \left(\boldsymbol {c} _ {\mathrm {y} _ {\mathrm {i}}}\right) + \mathcal {I} \left(\boldsymbol {f} _ {i}\right), \tag {10}
+$$
+
+where $\mathcal{I}(\pmb{f}_i)$ refers to the individual error. From the perspective of a single sample, its rotation caused by quantization can be considered to follow the class center and then deflect within the class. The within-class deflection degrades the original stable intra-class compactness and leads to inferior performance. The dissection is sketched in Fig.3.
+
+
+Figure 3: Dissection of A-QE. The left showcases a class of FP model, and the right illustrates that class after quantization. Circles and stars refer to the class centers and individual samples, respectively. The green solid line represents the entire A-QE of the sample, blue represents class error and orange represents the individual error. For a clear illustration, we use euclidean distances instead of vector angles to denote errors.
+
+# 4.3. Rotation consistent margin
+
+Initially, quantization methods [20, 49, 18] ignore QEs by taking quantizers as general operators and directly use task loss to tune models in quantization aware training. Afterward, several methods attempt to minimize the entire QEs by well-designed quantizers [53, 1, 2] or knowledge distillation [31], and usually yield higher performance. In spite of the improvement brought by reducing the entire QEs, a question worth thinking about is: Is improving the
+
+
+Figure 4: Training process for low-bit FR models supervised by RCM loss function $\mathcal{L}_{\mathrm{A}}$ . Firstly, $\theta_{y_i}$ in quantized class is calculated. Then we employ two class centers (before and after quantization, represented in big circles) as anchors to obtain the class error $(\theta_1)$ . The entire A-QE of samples (represented in stars) is also calculated, i.e., $\theta_{2} = \arccos \left(\left\langle \frac{\boldsymbol{f}_{i}}{||\boldsymbol{f}_{i}||_{2}}, \frac{\hat{\mathbb{Q}}(\boldsymbol{f}_{i})}{||\hat{\mathbb{Q}}(\boldsymbol{f}_{i})||_{2}} \right\rangle\right)$ , and individual error is $|\theta_{1} - \theta_{2}|$ . We use the $\theta^{*} = \theta_{y_{i}} + \lambda |\theta_{1} - \theta_{2}| + m$ as the final angle to calculate logits. The logits then go through the softmax function and contribute to the cross-entropy loss. The FP feature $\boldsymbol{f}_{i}$ is extracted off-line before training.
+
+# accuracy of quantized models exactly equivalent to reducing all the quantization errors?
+
+Our answer is "not for FR", the essence of improving low-bit FR models is to rebuild the intra-class compactness and the inter-class separability. By dissecting A-QE, we disentangle the QE of a sample into class error and individual error. The class error is the common part of all class samples (class-wise) which rotates class as a whole. Although it is considerable, it dose not impair inter-class discrepancy. Actually, due to the sparsity of high-dimensional class weights, the inter-class angles keep around $\frac{\pi}{2}$ during the whole training process, and this phenomenon has also been validated in other works [58, 15]. We validate that this phenomenon also exists in the low-bit scenario. It indicates that during training, the objective of inter-class separability maintains as a regularization other than pushing class weights further apart in whether FP or low-bit models. In contrast, the individual error is a unique part of each sample (sample-wise), and it changes the intra-class structure. As shown in Fig. 2c, the within-class scatter increases significantly after quantization, which implies the individual error cracks the intra-class compactness. Therefore, we argue that improving the accuracy of quantized FR models is not completely equivalent to reducing all the quantization error. If we directly minimize the entire A-QE, supervision of class error would drive the model to pull the class towards the FP position instead of rebuilding the impaired intra-class compactness.
+
+Alternatively, we propose to only minimize the individual error. We introduce the individual error into the popular cosine-based softmax loss function as an additive angular margin, named rotation consistent margin (RCM),
+
+$$
+\mathcal {L} _ {\mathrm {A}} = - \log \frac {e ^ {s \cdot \cos (\theta_ {i , j} + \mathbb {1} \cdot m + \mathbb {1} \cdot \lambda \theta_ {Q})}}{\sum e ^ {s \cdot \cos (\theta_ {i , j} + \mathbb {1} \cdot m + \mathbb {1} \cdot \lambda \theta_ {Q})}} , \tag {11}
+$$
+
+where $\lambda$ is the scaling parameter, and we write $\mathbb{1}\{j = y_i\}$ as $\mathbb{1}$ for the clear demonstration. As the original cosine-based softmax loss function is not the focus of our discussion, for simplicity and fairness, we choose currently the competitive loss function, ArcFace [8], as our baseline. We keep the original additive margin $m$ . The individual error is calculated as follows,
+
+$$
+\theta_ {Q} = \left| \mathrm {A} - \mathrm {Q E} \left(\boldsymbol {f} _ {i}\right) - \mathrm {A} - \mathrm {Q E} \left(\boldsymbol {c} _ {y _ {i}}\right) \right|. \tag {12}
+$$
+
+The complete training pipeline supervised by $L_{A}$ is illustrated in Fig. 4.
+
+Rotation consistent means that intra-class compactness stays stable regardless of the huge rotation of the classes, and the performance is improved even though the class errors are still huge, which is validated in Sec 5.2. By minimizing the individual error, the proposed loss can enhance the impaired compactness efficiently. Meanwhile, interclass distribution is tuned appropriately via classification loss rather than being pulled towards the original position.
+
+# 4.4. Discussions
+
+Why angle margin. Besides incorporating individual error to cosine-based softmax as an angular margin, combining by weighted sum is also an intuitive way to reduce individual error,
+
+$$
+\mathcal {L} _ {\text {s u m}} = \mathcal {L} _ {\cos} + \lambda \theta_ {Q}, \tag {13}
+$$
+
+where $\mathcal{L}_{\mathrm{cos}}$ refers to the cosine-based softmax loss function. The reasons for adopting the angular margin are two-folds. On the one hand, angular margin brings more clear geometric interpretation and directly links to the discrimination on the hypersphere manifold. On the other hand, incorporating as an angular margin has stronger supervision on most medium hard samples, and produces superior optimization by weakening the influence of too simple and hard samples.
+
+The gradient of $\mathcal{L}_{\mathrm{A}}$ respect to $\theta_{Q}$ is,
+
+$$
+\frac {d \mathcal {L} _ {\mathrm {A}}}{d \theta_ {Q}} = \lambda s ^ {2} \frac {\sum_ {j = 1 , j \neq i} ^ {C} e ^ {z _ {i , j}}}{\sum_ {j = 1 , j \neq i} ^ {C} e ^ {z _ {i , j}} + e ^ {s \cdot \cos (\theta^ {*})}} \cdot \sin (\theta^ {*}), \tag {14}
+$$
+
+where $\theta^{*} = \theta +m + \lambda \theta_{Q}$ and $C$ is the class number. For non-corresponding classes $j\neq i,\theta_{i,j}$ always stays around $\frac{\pi}{2}$ during training, thus we assume $e^{z_{i,j}}\approx 1$ as in [54]. We plot $\frac{d\mathcal{L}_A}{d\theta_Q} = \lambda s^2\frac{C}{C - 1 + e^{s\cdot\cos(\theta^*)}}\sin (\theta^*)$ with different $C$ in Fig. 5. At around $\theta^{*} = \frac{\pi}{2}$ , the gradient has a maximum value. By appropriate $\lambda$ , $\mathcal{L}_A$ can have stronger supervision at the medium hard samples instead of equal supervision for too simple or too hard samples. Too hard samples can be noise, which is common in large scale FR training datasets, and too simple samples are hard to be further optimized whereas would dominate the training and result in inferior models [24].
+
+Decision boundary. Considering a binary-classes scenario, the decision boundaries of the proposed loss function is defined by,
+
+$$
+\cos \left(\theta_ {1} + m + \lambda \theta_ {Q}\right) = \cos \left(\theta_ {2}\right). \tag {15}
+$$
+
+For $c_{1}$ , it requires $\theta_{1} < \theta_{2} - m - \lambda \theta_{Q}$ . In ArcFace, the margin $m$ is immutable and identical for all samples, and the decision boundary also stays the same during training (Fig. 6a). Whereas the rotation consistent margin of the proposed approach is sample-wise and dynamically shrinks during the training (Fig. 6b). In the beginning, significant individual errors generate strong supervision to rebuild intra-class compactness efficiently. At the later stages of training, the rotation consistent margin becomes steady, and optimization turns to learn customized model weights in discrete parameter space.
+
+
+Figure 5: The gradient of $\mathcal{L}_{\mathrm{A}}$ respect to $\theta_{Q}$ of different class number $C$ . $s$ is set to 64 as in ArcFace [8] and $\lambda$ is set to 1.
+
+# 5. Experiment
+
+# 5.1. Experiments setting
+
+Datasets. For datasets, we separately employ publicly available CASIA-WebFace [52] and MS1MV1 [7] cleaned by deepglint as training datasets. The CASIA-WebFace dataset contains 0.49M images of 10,575 face identities.
+
+
+(a) ArcFace
+(b) $L_{A}$
+Figure 6: The comparison of decision boundaries. (a): Decision boundary of ArcFace, which is the same for all samples and immutable during training. (b): Decision boundary of $L_{A}$ . It is sample-wise and dynamically changing during training.
+
+Cleaned MS1MV1 is a large scale dataset that consists of 3.9M images from 87K face identities. We extensively evaluate the performance of our approach on several most widely used benchmark face datasets, including MegaFace [21], Labeled Face in the Wild (LFW) [17], Youtube Faces (YTF) [51] and IJB-C [28].
+
+Training. We employ the widely used CNN architectures, ResNet18 [14] and MobileNetV2 [37]. Following [8], BN-Dropout-FC-BN structure is adopted to get the final 256-D features. We use the SGD algorithm with a momentum of 0.9 and set weight decay 0.0005. Eight GPUs are used with a single batch size of 64. For training on CASIA-WebFace, the learning rate is initially 0.1 and divided by 10 at the 20K, 28K iterations, and the training finished at 32K iterations. For large scale dataset MS1MV1, the learning rate dropped at 100k, 160k iterations, and terminates at 180K.
+
+Quantization setting. In this paper, we employ the asymmetric uniform quantizer, which is hardware-friendly. As per-channel quantization scheme usually yields higher accuracy, we adopt it for weights. As for activations, the per-layer scheme is used because per-channel would complicate the inner product computation at the core of conv and matmul operations [20]. All convolution and fully-connected layers except the first and last one are quantized. We adopt quantization-aware training and initialize quantized weights from FP models.
+
+# 5.2. Ablation studies on RCM loss
+
+Selection of $\lambda$ and formulas. There are three potential positions for margin in cosine-based softmax, like additive angle margin in ArcFace [8] (i.e., $\mathcal{L}_{\mathrm{A}}$ ), additive cosine margin in CosFace [46] and multiplicative angular margin in SphereFace [25]. We denote another two feasible formulas as
+
+$$
+\mathcal {L} _ {\mathrm {B}} = - \log \frac {e ^ {s \cdot (\cos (\theta_ {i , j} + \mathbb {1} \cdot m) - \mathbb {1} \cdot \lambda \theta_ {Q})}}{\sum e ^ {s \cdot (\cos (\theta_ {i , j} + \mathbb {1} \cdot m) - \mathbb {1} \cdot \lambda \theta_ {Q})}}
+$$
+
+and
+
+$$
+\mathcal {L} _ {\mathrm {C}} = - \log \frac {e ^ {s \cdot \cos ((1 \cdot \lambda \theta_ {Q} + 1) \theta_ {i , j} + 1 \cdot m)}}{\sum e ^ {s \cdot \cos ((1 \cdot \lambda \theta_ {Q} + 1) \theta_ {i , j} + 1 \cdot m)}}.
+$$
+
+In this part, we explore the effect of the scaling parameter $\lambda$ and the performance of different formulas. To this end,
+
+we train an FP ResNet18 on CASIA-WebFace. Then we quantize the resulting model into 4-bit using three different formulas with $\lambda$ varying from 1 to 7. Performance is evaluated on MegaFace and illustrated in Fig. 7a. We can see that the performance of $\mathcal{L}_{\mathrm{A}}$ outperforms the other two formulas slightly. For $\mathcal{L}_{\mathrm{A}}$ , the performance gets saturated at $\lambda = 5.0$ , thus we use $\mathcal{L}_{\mathrm{A}}$ with $\lambda = 5.0$ in the subsequent experiments of this study.
+
+
+(a)
+
+
+
+
+(b)
+(c)
+Figure 7: Ablation studies on rotation consistent margin loss. (a) accuracy(%) of 4-bit ResNet18 with different formulas and various $\lambda$ on MegaFace. (b) change of individual error of $\mathcal{L}_A$ with different $\lambda$ during the training. (c) class errors of 4-bit ResNet18 trained by ArcFace, ArcFace+Mimic and $\mathcal{L}_A$ . The errors are in angle.
+
+Change of RCM during training. In this part, we will show the change of RCM $\theta_{Q}$ of $\mathcal{L}_A$ loss during training. Fig. 7b illustrates $\theta_{Q}$ of different $\lambda$ settings. As we can see, the margin gradually decreases as training, and the larger $\lambda$ brings stronger supervision, which leads to a smaller $\theta_{Q}$ . Whereas when the $\lambda$ increases to 5, the RCM becomes stable and hard to be further compressed. Meanwhile, the accuracy also reaches the inflection point, and the larger $\lambda$ would degrade the accuracy. It is due to that $\lambda$ balances the supervision of classification and minimizing individual error, excessively increasing $\lambda$ cannot consistently improve intra-class compactness but weakens the supervision of classification.
+
+Comparison of class errors. To investigate the resulting class errors, we train 4-bit ResNet18 using ArcFace, ArcFace+Mimic and $L_{A}$ , respectively. Directly supervised by ArcFace ignores the QEs and takes quantizers as general operators. Combining with mimic or knowledge distillation (KD) not only finetunes the models according to the classification loss but also pulls the features towards the original position by extra supervision from FP models. Empirical evidence [27] shows that mimicking the feature layer brings more improvements for FR than KD. Thus we use Arc-
+
+| loss | Size of MegaFace Distractor |
| 101 | 102 | 103 | 104 | 105 | 106 |
| FP | 98.13 | 95.75 | 92.10 | 86.96 | 80.72 | 73.35 |
| ArcFace | 97.73 | 94.52 | 90.28 | 84.29 | 76.37 | 67.75 |
| +Mimic | 97.93 | 94.88 | 90.65 | 84.78 | 77.39 | 69.04 |
| LA | 97.85 | 95.32 | 91.46 | 86.33 | 79.37 | 71.57 |
+
+Face+Mimic instead of ArcFace+KD. The performance on MegaFace and resulting class errors are illustrated in Tab. 1 and Fig. 7c. Compared with ArcFace, ArcFace+Mimic results in smaller class errors, meanwhile, improves performance. Whereas, our approach achieves higher accuracy than ArcFace+Mimic with larger class errors. The experimental phenomenon supports our hypothesis that improving the accuracy of quantized FR models is not precisely equivalent to reducing all the QEs, and minimizing only individual errors can bring more improvement.
+
+# 5.3. Results on LFW and YTF
+
+LFW [17] is a standard face verification testing dataset in unconstrained conditions, and all images are collected from the website. It contains 13,233 face images from 5,749 identities with a total of 6,000 ground-truth matches. Half of the matches are positive, while the other half are negative ones. YTF [51] consists of 3,425 videos from 1,595 different people. All the videos are collected from YouTube. In this paper, evaluation results are reported strictly following the standard protocol of unrestricted with labeled outside data.
+
+We train ResNet18 on CASIA-WebFace dataset and report performance of 4-bit and 3-bit quantized models supervised by several accessible loss functions in Tab. 2. On LFW and YTF, the proposed RCM loss achieves $98.91\%$ and $94.98\%$ at 4-bit, and $98.73\%$ and $94.56\%$ at 3-bit. The results outperform all compared loss functions.
+
+Table 1: Identification accuracy (%) of rank-1 of 4-bit ResNet18 on the MegaFace dataset. “+Mimic” refers to ArcFace+Mimic.
+
+| Method | LFW | YTF |
| 4-bit | 3-bit | 4-bit | 3-bit |
| FP | 98.93 | 94.97 |
| SoftMax | 98.60 | 98.26 | 94.28 | 93.49 |
| 12-Softmax [35] | 98.55 | 97.85 | 94.01 | 93.51 |
| CosFace [46] | 98.66 | 97.88 | 94.36 | 93.28 |
| CosFace+Mimic | 98.76 | 98.18 | 94.37 | 93.53 |
| ArcFace [8] | 98.63 | 98.55 | 94.62 | 93.50 |
| ArcFace+Mimic | 98.68 | 98.46 | 94.76 | 93.95 |
| LA | 98.91 | 98.73 | 94.95 | 94.56 |
+
+Table 2: Verification accuracy $(\%)$ on the LFW and the YTF datasets. The model ResNet18 is trained on WebFace.
+
+| Model | Method | Accuracy(%) |
| 4-bit | 3-bit |
| ResNet18 | FP | 93.71 |
| Softmax | 82.43 | 27.22 |
| CosFace [46] | 87.04 | 60.41 |
| CosFace+Mimic | 87.73 | 57.68 |
| ArcFace [8] | 87.31 | 67.83 |
| ArcFace+Mimic | 87.74 | 72.84 |
| LA | 88.56 | 74.34 |
| MobileNetV2 | FP | 91.31 |
| Softmax | 69.21 | 24.11 |
| 12-Softmax [35] | 71.68 | 47.5 |
| CosFace [46] | 74.99 | 57.00 |
| CosFace+Mimic | 74.05 | 59.44 |
| ArcFace [8] | 77.73 | 56.79 |
| ArcFace+Mimic | 77.90 | 59.59 |
| LA | 80.12 | 62.58 |
+
+
+Figure 8: TPR on IJB-C benchmark with FPR varying from $10^{-1}$ to $10^{-5}$ . The model is 4-bit ResNet18 and trained on MS1MV1.
+
+# 5.4. Results on MegaFace
+
+The MegaFace dataset [21] is a very challenging large-scale testing benchmark. It contains 1M images from 690K different individuals as the gallery set and 100K photos of 530 unique individuals from FaceScrub [32] as the probe set. We follow the testing protocol of ArcFace [8]. All the models are trained on the MS1MV1 dataset.
+
+The rank-1 identification accuracies with 1M distractors are summarized in Tab. 3. Our RCM approach shows its superiority on both the ResNet18 and MobileNetV2 with a clear margin. For ResNet18, RCM achieves $88.56\%$ and $74.34\%$ on 4- and 3-bit and outperforms other losses. MobileNetV2 has excellent speed-accuracy trade-off and is hard to quantize, and RCM loss boosts the accuracy significantly. Whereas the gap with FP model still exists, which needs further investigations.
+
+# 5.5. Results on IJB-C
+
+The IJB-C dataset [28] contains about 3,500 identities, with a total of 31,334 still facial images and 117,542 unconstrained video frames. In the 1:1 verification, there are a total of 19,557 positive pairs and 15.6M negative pairs.
+
+We employ the MS1MV1 dataset as training data and report TPR of 4-bit ResNet18 in Fig. 8. Compared with other popular loss functions, our proposed RCM achieves state-of-the-art performance at different FPR.
+
+# 5.6. Compatibility with other quantization baselines
+
+The proposed RCM loss improves the performance of the low-bit model from the perspective of the discriminative essence of open-set tasks. It can be combined with previous methods to boost their performance further. Here, we re-implement the recent two state-of-the-art quantization methods Dorefa-Net [55] and DSQ [10] as quantization baselines and combine them with different loss functions.
+
+We report the evaluation results of 4-bit ResNet18 on MegaFace. As shown in Tab. 4, both Dorefa-Net and DSQ can improve the baseline of different loss functions, and combining with RCM achieves the best accuracy. It demonstrates our approach is compatible with different quantization methods and can further boost their performance.
+
+Table 3: Identification accuracy (\%) of rank-1 on MegaFace dataset. The size of distractor is 1M.
+
+| Basic | Method | Accuracy(%) |
| Dorefa-Net [55] | +CosFace | 87.11 |
| +CosFace+Mimic | 90.59 |
| +ArcFace | 88.27 |
| +ArcFace+Mimic | 89.63 |
| +LA | 91.55 |
| DSQ [10] | +CosFace | 87.07 |
| +CosFace+Mimic | 88.98 |
| +ArcFace | 87.79 |
| +ArcFace+Mimic | 88.42 |
| +LA | 89.46 |
+
+Table 4: Identification accuracy (\%) of rank-1 4-bit ResNet18 on the MegaFace dataset. The size of distractor is 1M and the FP models are trained on MS1MV1.
+
+# 6. Conclusion
+
+In this work, we investigate the effect of quantization errors on FR and propose rotation consistent margin loss for efficient low-bit FR training. Competitive results on several popular face benchmarks demonstrate the superiority and great potentials of our approach. It is hoped that our substantial explorations will inspire more researches on quantization problems for the open-set scenario.
+
+Acknowledgement. This work was supported in part by the National Natural Science Foundation of China under Grant Nos. U19B2034 and 61836014.
+
+# References
+
+[1] Ron Banner, Yury Nahshan, Elad Hoffer, and Daniel Soudry. Aciq: Analytical clipping for integer quantization of neural networks. arXiv preprint arXiv:1810.05723, 2018.
+[2] R Banner, Y Nahshan, E Hoffer, and D Soudry. Post training 4-bit quantization of convolution networks for rapid-deployment. CoRR, abs/1810.05723, 1:2, 2018.
+[3] Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep learning with low precision by half-wave gaussian quantization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5918-5926, 2017.
+[4] Ken Chen, Yichao Wu, Haoyu Qin, Ding Liang, Xuebo Liu, and Junjie Yan. R3 adversarial network for cross model face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9868-9876, 2019.
+[5] Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in neural information processing systems, pages 3123-3131, 2015.
+[6] Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained to + 1 or -1. arXiv preprint arXiv:1602.02830, 2016.
+[7] deepglint. Face feature test/trillion pairs. http://trillionpairs deepglint.com/overview.
+[8] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4690-4699, 2019.
+[9] Jiong Gong, Haihao Shen, Guoming Zhang, Xiaoli Liu, Shane Li, Ge Jin, Niharika Maheshwari, Evarist Fomenko, and Eden Segal. Highly efficient 8-bit low precision inference of convolutional neural networks with intelcaffe. In Proceedings of the 1st on Reproducible Quality-Efficient Systems Tournament on Co-designing Pareto-efficient Deep Learning, page 2. ACM, 2018.
+[10] Ruihao Gong, Xianglong Liu, Shenghu Jiang, Tianxiang Li, Peng Hu, Jiazhen Lin, Fengwei Yu, and Junjie Yan. Differentiable soft quantization: Bridging full-precision and low-bit neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 4852–4861, 2019.
+[11] Manuel Gunther, Steve Cruz, Ethan M Rudd, and Terrance E Boult. Toward open-set face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 71-80, 2017.
+[12] Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. Ms-celeb-1m: A dataset and benchmark for large-scale face recognition. In European Conference on Computer Vision, pages 87–102. Springer, 2016.
+[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.
+
+[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] Lanqing He, Zhongdao Wang, Yali Li, and Shengjin Wang. Softmax dissection: Towards understanding intra-and interclas objective for embedding learning. arXiv preprint arXiv:1908.01281, 2019.
+[16] 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.
+[17] Gary B Huang, Marwan Mattar, Tamara Berg, and Eric Learned-Miller. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. 2008.
+[18] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In Advances in neural information processing systems, pages 4107-4115, 2016.
+[19] Benoit Jacob et al. gemmlowp: a small self-contained low-precision gemm library.(2017), 2017.
+[20] Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2704-2713, 2018.
+[21] Ira Kemelmacher-Shlizerman, Steven M Seitz, Daniel Miller, and Evan Brossard. The megaface benchmark: 1 million faces for recognition at scale. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4873-4882, 2016.
+[22] Fengfu Li, Bo Zhang, and Bin Liu. Ternary weight networks. arXiv preprint arXiv:1605.04711, 2016.
+[23] Rundong Li, Feng Liang, Hongwei Qin, Yan Wang, Rui Fan, and Junjie Yan. Fully quantized network for object detection. In Proceedings of the IEEE International Conference on Computer Vision, 2019.
+[24] 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.
+[25] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherface: Deep hypersphere embedding for face recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 212-220, 2017.
+[26] Weiyang Liu, Yandong Wen, Zhiding Yu, and Meng Yang. Large-margin softmax loss for convolutional neural networks. In ICML, volume 2, page 7, 2016.
+[27] Ping Luo, Zhenyao Zhu, Ziwei Liu, Xiaogang Wang, and Xiaou Tang. Face model compression by distilling knowledge from neurons. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
+[28] Brianna Maze, Jocelyn Adams, James A Duncan, Nathan Kalka, Tim Miller, Charles Otto, Anil K Jain, W Tyler Niggel, Janet Anderson, Jordan Cheney, et al. Iarpa janus
+
+benchmark-c: Face dataset and protocol. In 2018 International Conference on Biometrics (ICB), pages 158-165. IEEE, 2018.
+[29] Jeffrey L McKinstry, Steven K Esser, Rathinakumar Appuswamy, Deepika Bablani, John V Arthur, Izzet B Yildiz, and Dharmendra S Modha. Discovering low-precision networks close to full-precision networks for efficient embedded inference. arXiv preprint arXiv:1809.04191, 2018.
+[30] Szymon Migacz. 8-bit inference with tensorsr. In GPU technology conference, volume 2, page 7, 2017.
+[31] Asit Mishra and Debbie Marr. Apprentice: Using knowledge distillation techniques to improve low-precision network accuracy. arXiv preprint arXiv:1711.05852, 2017.
+[32] Hong-Wei Ng and Stefan Winkler. A data-driven approach to cleaning large face datasets. In 2014 IEEE International Conference on Image Processing (ICIP), pages 343-347. IEEE, 2014.
+[33] Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4004-4012, 2016.
+[34] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, et al. Deep face recognition. In bmvc, volume 1, page 6, 2015.
+[35] Rajeev Ranjan, Carlos D Castillo, and Rama Chellappa. L2-constrained softmax loss for discriminative face verification. arXiv preprint arXiv:1703.09507, 2017.
+[36] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pages 525-542. Springer, 2016.
+[37] 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.
+[38] 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.
+[39] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[40] Kihyuk Sohn. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems, pages 1857-1865, 2016.
+[41] Yi Sun, Yuheng Chen, Xiaogang Wang, and Xiaou Tang. Deep learning face representation by joint identification-verification. In Advances in neural information processing systems, pages 1988–1996, 2014.
+[42] Yi Sun, Xiaogang Wang, and Xiaou Tang. Deeply learned face representations are sparse, selective, and robust. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2892-2900, 2015.
+[43] Yaniv Taigman, Ming Yang, Marc'Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In Proceedings of the IEEE con
+
+ference on computer vision and pattern recognition, pages 1701-1708, 2014.
+[44] Frederick Tung and Greg Mori. Clip-q: Deep network compression learning by in-parallel pruning-quantization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7873–7882, 2018.
+[45] Feng Wang, Jian Cheng, Weiyang Liu, and Hajun Liu. Additive margin softmax for face verification. IEEE Signal Processing Letters, 25(7):926-930, 2018.
+[46] Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou, Zhifeng Li, and Wei Liu. Cosface: Large margin cosine loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5265-5274, 2018.
+[47] Jian Wang, Feng Zhou, Shilei Wen, Xiao Liu, and Yuanqing Lin. Deep metric learning with angular loss. In Proceedings of the IEEE International Conference on Computer Vision, pages 2593-2601, 2017.
+[48] Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. Haq: Hardware-aware automated quantization with mixed precision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8612-8620, 2019.
+[49] Peisong Wang, Qinghao Hu, Yifan Zhang, Chunjie Zhang, Yang Liu, and Jian Cheng. Two-step quantization for low-bit neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4376-4384, 2018.
+[50] Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In European conference on computer vision, pages 499-515. Springer, 2016.
+[51] Lior Wolf, Tal Hassner, and Itay Maoz. Face recognition in unconstrained videos with matched background similarity. IEEE, 2011.
+[52] Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z Li. Learning face representation from scratch. arXiv preprint arXiv:1411.7923, 2014.
+[53] Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 365-382, 2018.
+[54] Xiao Zhang, Rui Zhao, Yu Qiao, Xiaogang Wang, and Hongsheng Li. Adacos: Adaptively scaling cosine logits for effectively learning deep face representations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10823-10832, 2019.
+[55] Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016.
+[56] Shu-Chang Zhou, Yu-Zhi Wang, He Wen, Qin-Yao He, and Yu-Heng Zou. Balanced quantization: An effective and efficient approach to quantized neural networks. Journal of Computer Science and Technology, 32(4):667-682, 2017.
+
+[57] Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. arXiv preprint arXiv:1612.01064, 2016.
+[58] Xiaotian Zhu, Wengang Zhou, and Houqiang Li. Adaptive layerwise quantization for deep neural network compression. In 2018 IEEE International Conference on Multimedia and Expo (ICME), pages 1-6. IEEE, 2018.
\ No newline at end of file
diff --git a/rotationconsistentmarginlossforefficientlowbitfacerecognition/images.zip b/rotationconsistentmarginlossforefficientlowbitfacerecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4539d735edd0a4235a9b4d767af1d6a400f99d4e
--- /dev/null
+++ b/rotationconsistentmarginlossforefficientlowbitfacerecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:654e874d8bb36558685ae285f56e0425f9ffb9c4ac77b400c81d5608b7243148
+size 467790
diff --git a/rotationconsistentmarginlossforefficientlowbitfacerecognition/layout.json b/rotationconsistentmarginlossforefficientlowbitfacerecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d444e24c75dabc91ef93c11ab9a8915abd533712
--- /dev/null
+++ b/rotationconsistentmarginlossforefficientlowbitfacerecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:523951593c41bcef5aafa4dad4cc186f688951b8ba86d11e06e7a8de7fdbc047
+size 488321
diff --git a/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_content_list.json b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..526a38445b0fab40e6bfb39a43771b131a2a4de7
--- /dev/null
+++ b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a132939b6e9959871a153612a638438b82bbb8978c255cc1d8d701b2a14a01a
+size 77339
diff --git a/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_model.json b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8499937691cc5a0f2854d61505bcb67ff8bd9f2d
--- /dev/null
+++ b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fce13e7be2b174c028a3ed139bdbc728a85dc724f791bc658c56bd1ac0fdde96
+size 90697
diff --git a/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_origin.pdf b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2c6f8ad1d9409718cd3370892f6ed5ac16296e77
--- /dev/null
+++ b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/83a61027-dd28-4850-b7b0-78397344c69e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b6f3fb8316b4f6a8d570fe79ea26d93af8c8fca02cd710c62d7dfddd3013f0d0
+size 1004038
diff --git a/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/full.md b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8335a11d37179c566524590895e3f8616677a5c2
--- /dev/null
+++ b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/full.md
@@ -0,0 +1,281 @@
+# Rotation Equivariant Graph Convolutional Network for Spherical Image Classification
+
+Qin Yang $^{1}$ , Chenglin Li $^{1}$ , Wenrui Dai $^{1}$ , Junni Zou $^{1}$ , Guo-Jun Qi $^{2}$ , Hongkai Xiong $^{1}$ $^{1}$ Shanghai Jiao Tong University, $^{2}$ Futurewei Technologies
+
+{yangqin, lcl1985, daiwenrui, zoujunni, xionghongkai}@sjtu.edu.cn, guojunq@gmail.com
+
+# Abstract
+
+Convolutional neural networks (CNNs) designed for low-dimensional regular grids will unfortunately lead to non-optimal solutions for analyzing spherical images, due to their different geometrical properties from planar images. In this paper, we generalize the grid-based CNNs to a non-Euclidean space by taking into account the geometry of spherical surfaces and propose a Spherical Graph Convolutional Network (SGCN) to encode rotation equivariant representations. Specifically, we propose a spherical graph construction criterion showing that a graph needs to be regular by evenly covering the spherical surfaces in order to design a rotation equivariant graph convolutional layer. For the practical case where the perfectly regular graph does not exist, we design two quantitative measures to evaluate the degree of irregularity for a spherical graph. The Geodesic ICOshedral Pixelation (GICOPix) is adopted to construct spherical graphs with the minimum degree of irregularity compared to the current popular pixelation schemes. In addition, we design a hierarchical pooling layer to keep the rotation-equivariance, followed by a transition layer to enforce the invariance to the rotations for spherical image classification. We evaluate the proposed graph convolutional layers with different pixelations schemes in terms of equivariance errors. We also assess the effectiveness of the proposed $\mathrm{SGCN}^1$ in fulfilling rotation-invariance by the invariance error of the transition layers and recognizing the spherical images and 3D objects.
+
+# 1. Introduction
+
+Omnidirectional cameras generate spherical images with 360-degree view of the scenes that enable an immersive experience for users by freely adjusting their viewing orientations. Recently, omnidirectional cameras have become
+
+popular in virtual reality (VR) and augmented reality (AR) systems for applications ranging from robots [23, 27] to autonomous cars [15, 16], which results in an increasing demand for the analysis of spherical images. Convolutional neural networks (CNNs) have achieved significant improvement in analysis tasks related to planar images, e.g., image recognition [10], object detection [8], and image segmentation [9]. However, it is still challenging to generalize CNNs to analyzing spherical images defined on the non-Euclidean spheres, as distortions may be incurred when spherical images are projected onto a flat Euclidean surface to accommodate the grid-based architectures in CNNs [3].
+
+CNNs commonly adapt to the non-Euclidean spherical images in two different ways. The first approach projects the spherical images into the planar format that can be processed directly by CNNs. Various projection methods have been studied, including the equirectangular projection (ERP) and the cube map projection [24], which lead to the inevitable projection distortions. For ERP, filter kernels are further designed for CNNs to compensate for the projection distortion [5, 26, 32]. [26] proposed to learn different kernels with variable size for each row in the projected images, however, the model size increases dramatically with the growth of image resolution. In [5, 32], the sampling location of filter kernel is changed to adapt to the distortion level. Without the guidance of rotation-equivariance, although model parameters could be reduced by sharing the kernels across all pixels, the model performance declines inevitably.
+
+The other approaches [3, 7] extend CNNs to non-Euclidean domains to avoid the projection distortions. Although CNNs have strong capability to exploit the local translation equivariance and some works seek to capture various transformation equivariant representations of regular 2D images [20, 21, 30], they do not adapt to the 3D rotation of spherical images properly. Therefore, it is important to explore rotation-equivariance in spherical image analysis. [3] and [7] develop spherical CNNs by introducing the rotation-equivariant spherical cross-correlation in the spectral domain. However, Fourier transform is required for the
+
+spherical correlation in each step, leading to high computational cost and significant memory overhead. [17] proposes a graph convolutional neural network for cosmological data that often come as spherical maps tailored by the Hierarchical Equal Area isoLatitude Pixelation (HEALPix). However, the irregular feature map in the HEALPix scheme still does not maintain the rotation-equivariance.
+
+As an almost uniform discretization of the sphere, icosahedron [1] has been adopted to represent the spherical domain [4, 11, 14, 29]. In [4, 29], the spherical signal is projected on the icosahedron mesh with 20 basic planar regions, which is further analyzed with the gauge-equivariant and orientation-aware CNNs. The distortion is however still large, and discontinuities between the basic planar regions need to be handled by carefully designed schemes such as the gauge transformation on the features [4] and padding [29]. Based on geodesic icosahedron with smaller distortion, [14] designs the convolution and pooling kernels of CNNs and [11] presents parameterized differential operators on the unstructured grids. Although the convolution kernel is flipped by 180 degrees when applied to the next adjacent triangle [14], the convolution kernels in [11, 14] are still anisotropy and thus not rotation equivariant.
+
+In this paper, we propose a Spherical Graph Convolutional Network (SGCN) to encode rotation-equivariance for spherical image analysis. Specially, we develop a graph convolutional layer through exploring the isometric transformation equivariance of the graph Chebyshev polynomial filters which is isotropy, a hierarchical pooling layer to exploit the multi-scale resolutions of the spherical images and keep the rotation-equivariance, and a transition layer to calculate the rotation-invariant statistics across multiple feature maps of the hierarchical pooling layer.
+
+To enforce rotation-equivariance in the proposed polynomial graph convolutional layer, we propose a spherical graph construction criterion based on regularity, and show that given the number of vertices, a regular graph (i.e., vertices distribute uniformly on the surface of the spherical image) is equivariant to more rotations than an irregular one. For the practical case where the perfectly regular graph does not exist, we design two quantitative measures to evaluate the degree of irregularity for a spherical graph, and empirically show that a graph construction scheme with a lower degree of irregularity will result in smaller equivariance errors of the graph convolutional layers. Further the Geodesic ICOsahedral Pixelation (GICOPix) scheme is adopted to construct the spherical graph, which empirically demonstrates to achieve a lower degree of irregularity with the least weight variance for edges and least degree variance for vertices.
+
+To demonstrate the effectiveness of the proposed criterion, we evaluate the equivariance errors of the graph convolutional layers by different graph construction schemes. We
+
+also assess the invariance errors of the proposed transition layers for the ability of capturing rotation-invariance and recognizing the spherical images. We further employ the proposed SGCN in spherical image classification, demonstrating that SGCN outperforms the state-of-the-art models on the Spherical MNIST (S-MNIST), Spherical CIFAR-10 (S-CIFAR-10) and achieve comparable performance to the 3D models on the ModelNet40 datasets in terms of rotation invariance classification accuracy.
+
+# 2. Preliminaries
+
+We represent a spherical image as an undirected and connected graph $G = (\mathcal{V}, \mathcal{E}, A)$ , where $\mathcal{V}$ is a set of $|\mathcal{V}| = N$ vertices, $\mathcal{E}$ is a set of edges, and $A$ is a weighted adjacency matrix with each element $a_{ij} = w(v_i, v_j)$ representing the connection weight between two vertices $v_i$ and $v_j$ . The weight $a_{ij}$ is zero if vertices $v_i$ and $v_j$ are not connected. The normalized graph Laplacian is then defined as $L = I - D^{-1/2} AD^{-1/2}$ , where $D \in \mathbb{R}^{N \times N}$ is a diagonal degree matrix with $D_{ii} = \sum_{j=1}^{N} a_{ij}$ , and $I$ is the identity matrix.
+
+By recursively computing a Chebyshev polynomial to approximate the convolution kernel [6], the spectral convolution with a spherical signal $x$ can be written as
+
+$$
+y = \sum_ {k = 0} ^ {K - 1} \theta_ {k} T _ {k} (\tilde {L}) x, \tag {1}
+$$
+
+where $\tilde{L} = 2L / \lambda_{max} - I$ , $\lambda_{max}$ is the largest eigenvalue of $L$ , and $\theta_{k}$ denotes the Chebyshev polynomial coefficient which is a learnable parameter. Consequently, the Chebyshev polynomial $T_{k}(\tilde{L}) \in \mathbb{R}^{N \times N}$ can be recursively computed through $T_{k}(\tilde{L}) = 2\tilde{L} T_{k-1}(\tilde{L}) - T_{k-2}(\tilde{L})$ with $T_{0} = I$ and $T_{1} = \tilde{L}$ . The spectral convolution with a $K$ -th order polynomial is $K$ -localized, i.e., the response of a vertex to the polynomial filter only depends on all the vertex values and edge weights on a path of length $k < K$ .
+
+It has been shown that a polynomial filter is equivariant to graph isometric transformations [13]. In the following, we give the definition of the graph isometric transformation and the graph isometric transformation equivariance.
+
+Definition 1. Graph isometric transformation [13]. A graph isometric transformation $g$ is a bijective mapping $g: \mathcal{V} \to \mathcal{V}$ that preserves the distance between two adjacent vertices on the graph. The corresponding transformation operator $L_g$ makes a permutation of signal $x$ by preserving their neighbourhoods. It can be formally depicted as
+
+$$
+\forall v _ {k} \in \mathcal {V}, \exists ! v _ {j} \in \mathcal {V}: \left[ L _ {g} x \right] \left(v _ {k}\right) = x \left(v _ {j}\right), \tag {2}
+$$
+
+where $L_{g}x$ is the transformed signal of $x$ , and $\exists!$ indicates that there exists and only exists a vertex $v_{j}$ corresponding to $v_{k}$ .
+
+
+Figure 1. The proposed SGCN architecture with a two-level graph construction, which comprises two stacks of graph convolutional layer (GConv) and hierarchical pooling layer (HPool) followed by a transition layer (Tran) and a fully-connected layer (FC). The input spherical image is represented as a level-2 graph $G_{2}^{*}$ based on GICOPix to achieve the rotation-equivariance. $[\mu_0,\sigma_0,\dots,\mu_K,\sigma_K]$ is the multi-scale statistics across the feature maps. The output is the distribution over the classes of the datasets.
+
+Definition 2. Graph isometric transformation equivariance. A graph convolutional layer is equivariant to a graph isometric transformation $g$ , if transforming the input signal by the graph isometric transformation operator $L_{g}$ and then feeding it through the graph convolution layer results in the same response as feeding the original signal through the graph convolutional layer followed by a corresponding transformation of the resultant feature maps, i.e.,
+
+$$
+[ \Phi (L _ {g} x) ] (v) = [ L _ {g} (\Phi (x)) ] (v), \tag {3}
+$$
+
+where $\Phi$ represents the graph convolutional layer, and $x$ is the input spherical signal.
+
+We consider a unit sphere with the radius $r$ set to 1 in this paper. Any point $v$ on the sphere is then uniquely defined by its longitude $\theta$ and latitude $\phi$ , with $-\pi \leq \theta \leq \pi$ and $-\frac{\pi}{2} \leq \phi \leq \frac{\pi}{2}$ .
+
+Definition 3. 3D rotation group. The spherical 3D rotation group is denoted by $SO(3)$ , which is continuous. A rotation $R \in SO(3)$ is a rigid transformation preserving the Euclidean distance and orientation, which can be represented by a $3 \times 3$ matrix.
+
+Since a vertex $v$ on the rotated graph corresponds to the vertex $R^{-1}v$ on the original graph, we have
+
+$$
+[ L _ {R} x ] (v) = x \left(R ^ {- 1} v\right), \tag {4}
+$$
+
+where $L_{R}$ denotes the rotation transformation corresponding to $R$ . In this paper, we will consider a rotation subgroup $\mathcal{R}$ of $SO(3)$ with a finite number of elements. If a graph convolution layer is equivariant to all the rotations $R \in \mathcal{R}$ , i.e., $[ \Phi(L_{R}x) ](v) = [L_{R} \Phi(x)](v)$ , it is then equivariant to the rotation group $\mathcal{R}$ .
+
+# 3. Rotation-Equivariant Spherical GCN
+
+Fig. 1 depicts the proposed Spherical Graph Convolutional Network (SGCN) that encodes the graph rotation-equivalence for spherical image classification.
+
+# 3.1. Regularity Constrained Graph Construction
+
+As proved in [13], the polynomial filter in a graph convolution layer is equivariant to the graph isometric transformation. Therefore, the critical criterion here is to construct the graph with a rotation group that contains the largest possible number of graph isometric transformations. In the following, we show from two simple examples that given the number of vertices, such a graph can be constructed by ensuring its regularity.
+
+Definition 4. Graph regularity. A spherical graph is regular if its vertices are distributed uniformly on the spherical surface. In detail, two principles are considered to define graph regularity: i) the distance between any two adjacent vertices is identical, and ii) all the vertices share the same number of neighbors.
+
+Example 1: Regular graph with six vertices. In Fig. 2(a), we illustrate an example of regular spherical graph with 6 vertices, which is constructed based on a spherical octahedron with a rotation group $\mathcal{R}_o$ of order 24. Each rotation $R$ in the octahedral rotation group $\mathcal{R}_o$ is an invertible mapping of vertices in the three-dimensional Euclidean space that preserves all the relevant structure of the spherical octahedron. For simplicity, we consider a 5-point image pattern $x$ , where a vertex $v_{t0}$ is connected with vertices $v_{t1} \sim v_{t4}$ . After an exemplary rotation $R \in \mathcal{R}_o$ , the image pattern $x$ is transformed into $x_R = LRx$ . As illustrated in Fig. 2(a), for all the vertices $v_{r0} \sim v_{r4}$ in the rotated image $x_R$ , there exists and only exists a set of vertices $v_{t0} \sim v_{t4}$ in the original image $x$ satisfying $x_R(v_{rn}) = x(v_{tn}), \forall n = 0,1,\ldots,4$ . The illustrated rotation $R$ is therefore a graph isometric transformation. It can be further verified that all the 24 rotations in the octahedral rotation group $\mathcal{R}_o$ are graph isometric transformations.
+
+Example 2: Irregular graph with six vertices. On the contrary, if the graph is constructed irregularly, its rotation group $\mathcal{R}'$ will have fewer elements than the octahedral rotation group $\mathcal{R}_o$ . According to the definition, an irregular spherical graph may have different distances be
+
+
+Figure 2. Regular and irregular spherical graphs with six vertices, showing how graph regularity affects rotation-equivariance.
+
+tween adjacent vertices or different number of neighbors for the vertices. In Fig. 2(b), we take an irregular graph with different distances between adjacent vertices for example. Given an arbitrary vertex $v_{r0}'$ in the rotated image $x_R'$ , there should be a vertex $v_{t0}'$ in the original image $x'$ that satisfies $x_R'(v_{r0}') = x'(v_{t0}')$ . Then, since the distance between two adjacent vertices differs from each other, for the neighbor vertices $v_{r1}' \sim v_{r4}'$ of the vertex $v_{r0}'$ in $x_R$ , there will no longer exist vertices $v_{t1}' \sim v_{t4}'$ in $x'$ satisfying $x_R'(v_{rn}') = x'(v_{tn}')$ , $\forall n = 1, 2, \ldots, 4$ .
+
+The above two examples conclude that the vertices in a regular graph can be rotated exactly to all the other vertices to satisfy the definition of graph isometric transformation, while the vertices in an irregular graph fail to do so. In other words, for a given number of vertices, fewer graph isometric transformations will be contained in the rotation group of an irregular graph than a regular one. To accurately represent a high-resolution spherical image, the number of vertices $N$ should be sufficiently large. A regular spherical graph constructed from the spherical polyhedron with only tens of vertices is far from enough. For a large number of finite vertices (e.g., thousands of vertices), however, it is impossible to construct a perfectly regular spherical graph. Therefore we design two quantitative measures to evaluate the degree of irregularity for a spherical graph: the variance of edge weights $V_{1}$ and the variance of neighbor numbers $V_{2}$ , as
+
+$$
+V _ {1} = \frac {1}{E} \sum_ {i = 1} ^ {E} \left(w _ {i} - \mu_ {w}\right) ^ {2}, V _ {2} = \frac {1}{N} \sum_ {i = 1} ^ {N} \left[ n \left(v _ {i}\right) - \mu_ {n} \right] ^ {2}, \tag {5}
+$$
+
+where $E = |\mathcal{E}|$ is the number of edges, $w_{i}$ is the weight for the $i$ -th edge, $\mu_w$ is the mean value of the edge weights; while $N = |\mathcal{V}|$ is the number of the vertices, $n(v_i)$ is the number of neighbors for each vertex $v_{i}$ , and $\mu_{n}$ is the mean value of neighbor numbers. According to the graph regularity definition, we have $V_{1} = V_{2} = 0$ if the graph is regularly constructed. For irregular graphs, these two irregularity measures become larger than zero, and reveal the degree of irregularity of the constructed graph, which in turn determine the number of graph isometric transformations contained in the rotation group. Therefore, smaller values of $V_{1}$ and $V_{s}$ are preferred in the spherical graph construction to preserve a higher degree of rotation equivariance of
+
+a graph convolutional layer.
+
+# 3.2. Rotation-Equivariant Convolutional Layer
+
+To reduce the degree of graph irregularity, we construct in this paper the spherical graph based on the Geodesic ICOshedral Pixelation (GICOPix). Compared with other popular pixelation schemes, such a graph is isotropic to a large extent, where the cells are minimally distorted and almost equilateral. A fine-grained binary division can even further increase the resolution of the resultant graph. As will be seen in the experiments, GICOPix can outperform the other pixelations schemes in terms of irregularity measures, equivariance errors and invariance errors.
+
+With GICOPix, the graph is constructed by repeatedly partitioning each equilateral triangle of a simpler geodesic icosahedron into four equilateral triangles, and then projecting the new vertices onto the sphere. All the vertices of the geodesic icosahedron become the graph vertices. Each vertex has six adjacent vertices except the twelve vertices of the original icosahedron that have five neighbors. We define the spherical graph constructed based on the original icosahedron as $G_0^*$ with $N = 12$ vertices, and denote $l$ as the subdivision level, i.e., the number of subdivision operation on the original icosahedron. Then, the graph constructed based on the first level ( $l = 1$ ) geodesic icosahedron is $G_1^*$ with $N = 42$ vertices. By induction, the graph based on the $l$ -th level geodesic icosahedron becomes $G_l^*$ with $N = 10 \times 2^{2l} + 2$ vertices. We show the constructed graph of GICOPix at levels 0, 2, 4 in bottom row of Fig. 4.
+
+The original icosahedron has a symmetry rotation group called icosahedral rotation group $\mathcal{R}_i$ of order 60, which is a subgroup of $SO(3)$ . The subdivision of each equilateral triangle is performed in the same fashion. Therefore, every rotation in $\mathcal{R}_i$ transforms a spherical graph $G_{l}$ to itself and preserves all the relevant structure of that spherical graph, which is therefore graph isometric. Since a Chebyshev polynomial filter is equivariant to the graph isometric transformation [13], the graph convolutional layer is thus equivariant to the icosahedral rotation group $\mathcal{R}_i$ . In this way, we construct a rotation-equivariant graph convolutional layer.
+
+# 3.3. Rotation-Equivariant Pooling Layer
+
+Multi-scale features with hierarchical representations of graphs need to be considered when generalizing CNNs to graphs. For this purpose, we propose a novel graphcoarsening scheme for the proposed pixelation process. The proposed pooling operator needs to be equivariant to the rotation, which is important for constructing the rotation-invariant classification architecture.
+
+Specifically, we coarsen the $l$ -th level spherical graph into the $(l - 1)$ -th level by maintaining the vertices of graph $G_{l - 1}^{*}$ , as illustrated in Fig. 3. We keep the hierarchical structure of the spherical graph without changing the under
+
+
+Figure 3. Illustration of the proposed rotation-equivariant pooling operator.
+
+lying rotation group. Then we show that this can result in a rotation-equivariant pooling. Let us define $\mathcal{V}_l$ as the set of vertices of the $l$ -th level spherical graph. Given a rotation $R$ applied to $l$ -th level spherical signal, we have $[L_{R}x](v_{l}) = x(R^{-1}v_{l}), \forall v_{l} \in \mathcal{V}_{l}$ . The pooling layer $P$ keeps a coarser spherical signal as $P(x)(v_{l-1}) = x(v_{l-1}), \forall v_{l-1} \in \mathcal{V}_{l-1}$ . Rotating the $l$ -th level spherical signal and then feeding it through the pooling layer results in $[P(L_{R}x)](v_{l-1}) = x((R^{-1}v)_{l-1}) = x(R^{-1}(v_{l-1}))$ , $\forall v_{l-1} \in \mathcal{V}_{l-1}$ . And feeding the $l$ -th level spherical signal through the pooling layer followed by rotating the resultant feature maps gives $[L_{R}P(x)](v_{l-1}) = x(R^{-1}(v_{l-1}))$ , $\forall v_{l-1} \in \mathcal{V}_{l-1}$ . Thus, $[P(L_{R}x)](v_{l-1}) = [L_{R}P(x)](v_{l-1}), \forall v_{l-1} \in \mathcal{V}_{l-1}$ , i.e., the pooling operation is equivariant to the rotation. Since the proposed convolutional layers are rotation equivariant at different levels, the stacks of the graph convolutional layers and the pooling layers also maintain rotation-equivariance.
+
+In more detail, for all the feature maps $F_{i}^{h}, \forall i = 1,2,\dots,K_{h}$ of the $h$ -th graph convolutional layer, we perform the same pooling operation. Assume that the input spherical graph is at level $l_{0}$ . The $h$ -th feature map is a spherical graph at level $l_{0} - h$ . For the graph pooling layer following the $h$ -th graph convolutional layer, we keep all the vertices that belong to the spherical graph at the next level $l_{0} - h - 1$ , and the values on them are preserved.
+
+# 3.4. Rotation-Invariant Transition Layer
+
+By stacking graph convolutional layers and hierarchically pooling their results, we can fulfill the rotation-equivariance. After that, however, we would prefer to enforce the rotation invariance to performing classification tasks. In conventional CNNs, a stack of convolutional and pooling layers are followed by the fully-connected layers. However, the fully-connected layers are still spatial sensitive and not invariant to different rotations. Thus, a transition layer is required to extract the rotation-invariant features before the fully-connected layers.
+
+To enforce rotation-invariance, a computationally efficient method [13] is used to perform gradient computation and back propagation. Specifically, we compute a set of graph-convolved signals $t_k = T_k(\tilde{L})x$ using Chebyshev polynomials $T_k(\tilde{L})$ of different order $k$ with $k = 0,1,\dots,K$ for an input signal $x$ . The resultant signals $t_k, k = 0,1,\dots,K$ correspond to the responses on multi-scale resolutions, all of which are equivariant to the
+
+rotation-equivariance. Then, we collect the mean $\mu_{k}$ and variance $\sigma_{k}$ on each convolved feature map $t_k$ across the vertices of the spherical graph, and output a concatenated feature vector $[\mu_0,\sigma_0,\mu_1,\sigma_1,\dots,\mu_K,\sigma_K]$ . The resultant features are invariant to the rotation since they are spatially agnostic to the responses of vertices in the spherical graph.
+
+# 4. Experiments
+
+In this section, we compare the equivariance errors of graph convolutional layers and the invariance errors of transition layers achieved by the proposed SGCN with the three pixelation schemes under various degrees of graph irregularity. We also evaluate the effectiveness of the proposed SGCN and compare it with the state-of-the-art methods in the spherical image classification tasks on the S-MNIST dataset and the S-CIFAR-10 dataset. To show the capability of the SGCN for real problems, we further demonstrate the performance comparison of 3D object classification tasks on ModelNet40 dataset. In addition, we conduct ablation studies on the roles of the hierarchical pooling layer and transition layer.
+
+# 4.1. Degree of Irregularity
+
+We compare the proposed GICOPix with the two other popular pixelation schemes for the degree of graph irregularity, i.e., the Generalized Spiral Set Pixelation (GSSPix) and the Hierarchical Equal Area isoLatitude Pixelation (HEALPix), in terms of the proposed two measures.
+
+The GSSPix is an explicit construction of almost uniformly distributed points on a sphere [22]. For $N$ points, the set cut the sphere with $N$ horizontal planes with each latitude containing one point and the successive points having approximately the same distances. The HEALPix is commonly used for cosmological data with the properties that each pixel covers the same surface area as every other pixel. And 24 pixels at the corner of the rhombus connecting two rhombus of the base rhombic dodecahedron only have seven neighboring pixels.
+
+We illustrate the graphs constructed based on the three pixelation schemes in Fig. 4, where the proposed GICOPix scheme results in a more regular spherical graph. We also calculate the weight variance $V_{1}$ and degree variance $V_{2}$ of the spherical graphs at three different levels $L = 0,2,4$ . As shown in Table 1, the spherical graph based on the proposed GICOPix scheme has the smallest variance at all the levels. Especially, for the weight variance $V_{1}$ , it is smaller with one order of magnitude, which suggests that the proposed GICOPix-based spherical graph is the most regular one.
+
+# 4.2. Equivariance Error
+
+To assess the proposed criterion of graph construction, we measure the equivariance error for the first spherical convolutional layer of the three implementations of the
+
+
+Figure 4. The spherical graph of level $L = 0,2,4$ with the three different pixelation schemes, i.e., GSSPix, HEALPix and the proposed GICOPix.
+
+Table 1. Quantitative measurement of the degree of irregularity with the three different pixelation schemes. $v_{1}$ and $v_{2}$ are the variances of edge weights and vertex degrees, respectively.
+
+| Scheme | Level | # of vertices | V1(1e-2) | V2(1e-1) |
| GSSPix | 0 | 12 | 2.867 | 2.500 |
| 2 | 162 | 3.183 | 6.327 |
| 4 | 2562 | 2.514 | 4.800 |
| HEALPix | 0 | 12 | 1.077 | 0 |
| 2 | 192 | 1.296 | 1.094 |
| 4 | 3072 | 1.465 | 0.078 |
| GICOPix | 0 | 12 | 0 | 0 |
| 2 | 162 | 0.149 | 0.686 |
| 4 | 2562 | 0.154 | 0.047 |
+
+SGCN with three different graph construction schemes, which are denoted as the GICOPix-SGCN, GSSPix-SGCN, and HEALPix-SGCN. Their pooling layers are slightly different from each other since they depend on different pixelation schemes. Following the work of [3], we define the equivariance error as
+
+$$
+\Delta = \frac {1}{n} \sum_ {i = 1} ^ {n} \operatorname {s t d} \left(L _ {R _ {i}} \Phi \left(x _ {i}\right) - \Phi \left(L _ {R _ {i}} x _ {i}\right)\right) / \operatorname {s t d} \left(\Phi \left(x _ {i}\right)\right). \tag {6}
+$$
+
+We sample $n = 1000$ spherical images $x_{i}, i = 1,2,\dots,n$ with random 3D rotations $R_{i}$ . Feeding each spherical image through the first graph convolutional layer results in 32 feature maps. By performing a graph isometric rotation on a completely regular graph, the equivariance error is expected to be zero. However, the constructed spherical graph is not ideally regular with random rotations from the continuous 3D rotation group $SO(3)$ . As shown in Table 2, the proposed GICOPix-SGCN has the smallest equivariance error, and the SGCN based on other pixelation schemes has a larger equivariance error with higher graph irregularity. This indicates that the proposed principles are effective for modeling
+
+Table 2. Equivariance error of the first spherical graph convolutional layer with the three pixelation schemes. The SGCN based on GICOPix has the smallest equivariance error.
+
+| Scheme | GSSPix | HEALPix | GICOPix |
| Error | 0.942 | 0.434 | 0.385 |
+
+
+Figure 5. Illustration of the invariance error of the SGCN with the three different pixelation schemes, where the numbers besides the colorbar are the normalized Euclidean distances indicating the degree of dissimilarity of different features.
+
+
+
+
+
+the rotation-equivariance.
+
+# 4.3. Invariance Error
+
+We evaluate the invariance error of the transition layer to assess the ability of the proposed SGCN capturing the rotation-invariance. Specially, we select three different spherical images from the S-MNIST dataset, i.e., $0^{\prime}$ , $2^{\prime}$ , and $7^{\prime}$ , and project each image in nine different positions $\theta \in \{-1/8, 0, 1/8\}, \phi \in \{0, 1/8, 1/4\}$ , totally yielding 27 spherical images. More details of spherical images creation will be introduced in the following section. By feeding these images into the SGCN, we obtain the features of the transition layer and evaluate the pairwise Euclidean distances in a $[27 \times 27]$ distance matrix. Ideally, the feature maps of different positions for the same spherical image should be identical, which means the three $[9 \times 9]$ diagonal sub-matrices of the $[27 \times 27]$ distance matrix should be zero (i.e., in blue in Fig. 5).
+
+As illustrated in Fig. 5, the GICOPix-SGCN has more similar feature maps for different positions of the same spherical image than the GSSPix-SGCN and HEALPix-SGCN. This suggests the SGCN has smaller invariance error and thus can encode the rotation-equivariance and fulfill rotation-invariance better with a more regular pixelation scheme.
+
+# 4.4. S-MNIST Classification
+
+Dataset. The S-MNIST dataset is created by placing the digits on a plane tangent to the sphere at point $(\theta, \phi)$ and projecting them on the spherical surfaces via the gnomonic projection [12, 5]. To evaluate the generalization performance of the proposed SGCN on the rotated images, we create two instances of this dataset: the non-rotated (NR) dataset and the rotated (R) ones. For the NR dataset, the tangent position is chosen randomly from a uniform distribution of spherical coordinates with the longitude $\theta \in$
+
+
+Figure 6. ERP format examples in the S-MNIST dataset and S-CIFAR-10 dataset with $\phi = \{0, \frac{\pi}{3}, \frac{\pi}{6}, \frac{\pi}{2}\}$ . The distortion of the ERP format with $\phi = \frac{\pi}{2}$ is the largest.
+
+$\{-\frac{\pi}{2}, \frac{\pi}{2}\}$ , the latitude $\phi \in \{-\frac{\pi}{4}, \frac{\pi}{4}\}$ . For the R dataset, $\theta \in \{-\pi, \pi\}$ , $\phi \in \{-\frac{\pi}{2}, \frac{\pi}{2}\}$ . We show the ERP of a spherical image from the S-MNIST dataset with $\phi = 0, \frac{\pi}{3}, \frac{\pi}{6}, \frac{\pi}{2}$ in Fig. 6.
+
+Experiment setup. We benchmark our results against the S2CNNs [3], the GCNNs [12], the PDOs [11] and the SphereNet [5]. Except that the PDOs [11] have one Mesh-conv block, two ResBlocks, and an average pool layer and the transition layer of the SGCN has Chebyshev polynomials of the highest order 5, the architectures of all the models are the same. The network consists of two stacks of convolutional and pooling layers, followed by a fully-connected layer of ten neurons. The first stack has 32 filters, while the second has 64 filters. All the convolutional layer is followed by the ReLU activation. The order of the polynomial filter for the graph convolutional layer is set to 25. We input spherical signals at the level-4 resolution with 2562 pixels for GSSPix-SGCN and GICOPix-SGCN, 3072 pixels for HEALPix-SGCN. We train the models by the momentum optimizer with momentum 0.9 for 50 epochs with batch size 10. To avoid the overfitting, the batch normalization, weight decay rate $5e - 4$ and dropout 0.9 are adopted. The initial learning rate is 0.02 and reduced to 0.002 after 33 epochs.
+
+Result. The classification performances of different models on S-MNIST are compared in Table 3. We train each model on the rotated dataset and test on the rotated dataset as well (R/R). The GICOPix-SGCN outperform all the baselines except the Spherenet [5] based on the conventional CNNs. To evaluate the ability of models in encoding rotation-equivariance, we train the proposed model and Spherenet [5] on the non-rotated dataset and test on the rotated dataset (N/R). The Spherenet [5] performs much worse, while the performance of the proposed GICOPix-SGCN performs the best with only a slight decrease (Dec.) in performance compared to R/R.
+
+We also compare the performances of the three different pixelation schemes with the same network, i.e., the GSSPix-SGCN, the HEALPix-SGCN, and the GICOPix-SGCN. In the R/R and N/R settings, the proposed GICOPix-SGCN
+
+Table 3. Accuracy(%) of different models on the S-MNIST dataset. We achieve the comparable performance with less parameters in the R/R setting. In the N/R setting, the GICOPix-SGCN achieves the best performance. The performance under the "N/R" setting and "Dec" demonstrate the proposed model has stronger capability to capture rotation-equivariance.
+
+| Models | R/R | N/R | Dec. | Param. |
| GCNNs [12] | 82.79 | - | - | 282K |
| S2CNNs [3] | 88.14 | - | - | 149K |
| PDOs [11] | 83.00 | 61.09 | 21.91 | 62 K |
| SphereNet [5] | 94.41 | 55.18 | 39.22 | 196K |
| GSSPix-SGCN | 74.41 | 43.26 | 31.15 | 58K |
| HEALPix-SGCN | 92.36 | 91.41 | 0.95 | 58K |
| GICOPix-SGCN | 93.58 | 93.43 | 0.15 | 58K |
+
+Table 4. Accuracy(%) of different models on the S-CIFAR-10 dataset. The GICOPix-SGCN achieves the best performance in both R/R and N/R settings. The performance under the "N/R" setting and "Dec" demonstrate the proposed model has stronger capability to capture the rotation-equivariance.
+
+| Models | R/R | N/R | Dec. | Param. |
| SphereNet [5] | 53.90 | 37.18 | 16.72 | 196K |
| GSSPix-SGCN | 47.51 | 38.85 | 8.66 | 58K |
| HEALPix-SGCN | 55.08 | 51.90 | 3.18 | 58K |
| GICOPix-SGCN | 58.03 | 56.84 | 1.19 | 58K |
+
+outperforms the SGCNs based on the other two schemes with a significant performance gain, especially for the N/R setting. We attribute the success of the GICOPix-SGCN to the ability to explore rotation-equivariance. Besides, the SGCN based on a more regular spherical graph has a better performance on rotation-invariant classification for the SMNIST dataset.
+
+# 4.5. S-CIFAR-10 Classification
+
+Dataset. The S-CIFAR-10 dataset contains more photorealistic images than the S-MNIST dataset. We create the R and NR sets of the S-CIFAR-10 dataset in the same way as generating the S-MNIST dataset. The ERP of a spherical image from the S-CIFAR-10 dataset with $\phi = 0, \frac{\pi}{3}, \frac{\pi}{6}, \frac{\pi}{2}$ is shown in Fig. 6
+
+Experiment setup. We adopt the SphereNet [5] as our baseline model. The network of the SGCN and implementation details are the same as the S-MNIST classification task except that the learning rate is reduced to 0.01 and 0.001.
+
+Result. The performances of different models on the S-CIFAR-10 dataset are compared in Table 4. The proposed GICOPix-SGCN achieve the state-of-the-art performance in both R/R and N/R settings. Especially, for the N/R setting, the proposed GICOPix-SGCN has the smallest decrease in the performance. This suggests that the proposed SGCN based on a more regular spherical graph has a stronger ability to encode rotation-equivariance and fulfill rotation-invariance, and thus performs better for the rotation invariant classification on the S-CIFAR-10 dataset.
+
+# 4.6.3D Object Classification
+
+Dataset. The ModelNet40 [28] dataset contains 40-class 3D models with 9843 training samples and 2468 testing samples. To apply the proposed SGCN in the 3D object classification task, we convert from the 3D geometries to signals on the sphere by following the method in [3, 11]. We project the 3D meshes onto a level-4 unit sphere with each mesh at the coordinate origin. First, we send a ray from the points on the sphere to the origin and record 3 channels information: the ray length from each point to the mesh and $\sin$ , $\cos$ of the surface angle. Further, we augment the signal with another 3 channels for the convex hull of the mesh, forming 6 channels of the signal in total. Following [7], for the NR dataset, the 3D objects are rotated with random azimuthal rotations. For the R dataset, the 3D objects are rotated with arbitrary rotations randomly.
+
+Experiment Setup. We benchmark our results against the 3D model, i.e., the PointNet [18], the SubVolSup MO [19], the MVCNN 12x [25], the RICNN [31], the ClusterNet [2], and the spherical CNN model, i.e., the PDOs [11] and the SphericalCNN [7]. Compared to the network of our SGCN with two stacks of convolutional layers and ploosing layers, all these baseline methods have a much more complex structure and a significantly enormous number of network parameters, such as 4 blocks with one meshconv block and three ResBlocks for the PDOs [11], and 8 spherical convolutional layers for the SphericalCNN [7]. The implementation details of the SGCN are the same as the S-MNIST classification task except that the networks are trained for 100 epochs with batch size 16. The initial learning rate is 0.01 and reduced to 0.001 after 50 epochs.
+
+Result. The performances of different models on ModelNet40 dataset are compared in Table 5. Compared to the 3D models which have a much more complex structure, the GICOPix-SGCN achieves comparable performance in the R/R setting and N/R setting. Compared to the spherical CNN models, the GICOPix-SGCN achieves comparable performance to the PDOs [11] and the SphericalCNN [7] in the R/R setting. The competing methods suffer a sharp drop in performance for the N/R setting with the unseen rotations presented, and the PDOs [11] perform no better than a random chance. In contrast, the GICOPix-SGCN is robust to this and still perform well. This indicates that our GICOPix-SGCN has strong applicability to real problems in 3D object classification. And the SGCN based on a more regular spherical graph has a stronger ability to explore rotation-equivariance and fulfill rotation-invariance.
+
+# 4.7. Ablation Study
+
+In Tables 3, 4 and 5, we have demonstrated the effectiveness of the proposed SGCN with a regular graph for rotation invariant classification, and the important role of the graph construction for modeling rotation-equivariance.
+
+Table 5. Accuracy(%) of different models on the ModelNet40 dataset. The GICOPix-SGCN achieves the comparable performance to the 3D models in both R/R and N/R settings. Compared to the spherical CNN models, the GICOPix-SGCN achieves the best performance in the N/R setting. The performance under the "N/R" setting and "Dec" demonstrate the ability of the proposed model to capture rotation-equivariance.
+
+| Models | R/R | N/R | Dec. | Param. |
| PointNet [18] | 83.6 | 14.7 | 68.9 | 3.5M |
| SubVolSup MO [19] | 85.0 | 45.5 | 39.5 | 17M |
| MVCNN 12x [25] | 77.6 | 70.1 | 7.5 | 99M |
| RICNN [31] | 86.4 | 86.4 | 0.0 | 0.7M |
| ClusterNet [2] | 87.1 | 87.1 | 0.0 | 1.4M |
| PDOs [11] | 89.8 | 23.5 | 66.3 | 3.7M |
| SphericalCNN [7] | 86.9 | 78.6 | 10.2 | 0.5M |
| GSSPix-SGCN | 66.1 | 14.1 | 52.0 | 0.1M |
| HEALPix-SGCN | 83.9 | 78.4 | 5.5 | 0.1M |
| GICOPix-SGCN | 86.3 | 84.0 | 2.3 | 0.1M |
+
+Table 6. The effect of different components in GICOPix-SGCN on the S-MNIST and ModelNet40 dataset. "HPool" denotes the proposed hierarchical pooling scheme and "Tran" indicates the proposed transition layer.
+
+| HPool | Tran | S-MNIST | ModelNet40 |
| R/R | N/R | R/R | N/R |
| ✓ | ✓ | 93.58 | 93.43 | 86.26 | 84.04 |
| ✓ | | 93.31 | 92.67 | 84.00 | 83.31 |
| ✓ | 93.91 | 91.85 | 85.58 | 81.97 |
+
+We also study here the impact of the two main components of the proposed SGCN, i.e., the hierarchical pooling layer and the transition layer. In Table 6, "HPool" denotes the proposed hierarchical pooling, and "Tran" denotes the proposed transition layer. We replace the proposed pooling layer by the common method as in [6] and replace the transition layer by the global average pooling. In Table 6, we can see that the transition layer has a gain of $0.76\%$ for the S-MNIST classification and $0.73\%$ for the ModelNet40 classification in the N/R setting. The hierarchical pooling has an additional $1.58\%$ improvement for the S-MNIST classification and $2.07\%$ improvement for the ModelNet40 in the N/R setting.
+
+# 5. Conclusion
+
+In this paper, we have presented the spherical graph convolutional network (SGCN) based on GICOPix to encode rotation-equivariance for spherical image analysis. We proposed a spherical graph construction criterion and constructed the spherical graph based on GICOPix with the minimum degree of irregularity. In addition, we designed the SGCN with the hierarchical pooling operator and transition layer. The experiments have demonstrated that the GICOPix-SGCN could encode the rotation-equivariance with a stronger ability to recognize the spherical images.
+
+# References
+
+[1] John R Baumgardner and Paul O Frederickson. Icosahedral discretization of the two-sphere. SIAM Journal on Numerical Analysis, 22(6):1107-1115, 1985.
+[2] Chao Chen, Guanbin Li, Ruijia Xu, Tianshui Chen, Meng Wang, and Liang Lin. Clusternet: Deep hierarchical cluster network with rigorously rotation-invariant representation for point cloud analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4994-5002, 2019.
+[3] Taco S. Cohen, Mario Geiger, Jonas Köhler, and Max Welling. Spherical CNNs. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, April 2018.
+[4] Taco S. Cohen, Maurice Weiler, Berkay Kicanaoglu, and Max Welling. Gauge equivariant convolutional networks and the icosahedral CNN. arXiv preprint arXiv:1902.04615, 2019.
+[5] Benjamin Coors, Alexandru Paul Condurache, and Andreas Geiger. SphereNet: Learning spherical representations for detection and classification in omnidirectional images. In Proceedings of the European Conference on Computer Vision, pages 518-533, Munich, Germany, September 2018.
+[6] Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pages 3844-3852, Barcelona, Spain, December 2016.
+[7] Carlos Esteves, Christine Allen-Blanchette, Ameesh Makadia, and Kostas Daniilidis. Learning SO(3) equivariant representations with spherical CNNs. In Proceedings of the European Conference on Computer Vision, pages 54–70, Munich, Germany, September 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, Columbus, OH, USA, June 2014.
+[9] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision, pages 2980-2988, Venice, Italy, October 2017.
+[10] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770-778, Las Vegas, NV, USA, June 2016.
+[11] Chiyu Jiang, Jingwei Huang, Karthik Kashinath, Prabhat, Philip Marcus, and Matthias Niessner. Spherical CNNs on unstructured grids. In Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA, May 2019.
+[12] Renata Khasanova and Pascal Frossard. Graph-based classification of omnidirectional images. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 860-869, Venice, Italy, October 2017.
+
+[13] Renata Khasanova and Pascal Frossard. Isometric transformation invariant graph-based deep neural network. arXiv preprint arXiv:1808.07366, 2018.
+[14] Yeonkun Lee, Jaeseok Jeong, Jongseob Yun, Wonjune Cho, and Kuk-Jin Yoon. SpherePHD: Applying CNNs on a spherical PolyHeDron representation of $360^{\circ}$ images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9181-9189, Long Beach, CA, USA, June 2019.
+[15] Shigang Li. Monitoring around a vehicle by a spherical image sensor. IEEE Transactions on Intelligent Transportation Systems, 7(4):541-550, April 2006.
+[16] Maxime Meilland, Andrew I. Comport, and Patrick Rives. A spherical robot-centered representation for urban navigation. In IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5196-5201, Taipei, October 2010.
+[17] Nathanaël Perraudin, Michael Defferrard, Tomasz Kacprzak, and Raphael Sgier. DeepSphere: Efficient spherical convolutional neural network with HEALPix sampling for cosmological applications. *Astronomy and Computing*, 27:130-146, April 2019.
+[18] Charles R. Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. Pointnet: Deep learning on point sets for 3D classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 652-660, 2017.
+[19] 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, Las Vegas, NV, USA, June 2016.
+[20] Guo-Jun Qi. Learning generalized transformation equivariant representations via autoencoding transformations. arXiv preprint arXiv:1906.08628, 2019.
+[21] Guo-Jun Qi, Liheng Zhang, Chang Wen Chen, and Qi Tian. Avt: Unsupervised learning of transformation equivariant representations by autoencoding variational transformations. In Proceedings of the IEEE International Conference on Computer Vision, pages 8130-8139, 2019.
+[22] Evguenii A. Rakhmanov, E. B. Saff, and Y. M. Zhou. Minimal discrete energy on the sphere. Mathematical Research Letters, 1(6):647-662, January 1994.
+[23] Lingyan Ran, Yanning Zhang, Qilin Zhang, and Tao Yang. Convolutional neural network-based robot navigation using uncalibrated spherical images. Sensors, 17(6):1341, 2017.
+[24] Manuel Ruder, Alexey Dosovitskiy, and Thomas Brox. Artistic style transfer for videos and spherical images. International Journal of Computer Vision, 126(11):1199-1219, November 2018.
+[25] 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, Santiago, Chile, December 2015.
+[26] Yu-Chuan Su and Kristen Grauman. Learning spherical convolution for fast features from $360^{\circ}$ imagery. In Advances
+
+in Neural Information Processing Systems, pages 529-539, Long Beach, CA, USA, December 2017.
+[27] Guofeng Tong, Ran Liu, and Jindong Tan. 3D information retrieval in mobile robot vision based on spherical compound eye. In Proceedings of the IEEE International Conference on Robotics and Biomimetics, pages 1895-1900, Phuket, Thailand, December 2011.
+[28] 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, Boston, MA, USA, June 2015.
+[29] Chao Zhang, Stephan Liwicki, William Smith, and Roberto Cipolla. Orientation-aware semantic segmentation on icosahedron spheres. In Proceedings of the IEEE International Conference on Computer Vision, pages 3533-3541, 2019.
+[30] Liheng Zhang, Guo-Jun Qi, Liqiang Wang, and Jiebo Luo. Aet vs. aed: Unsupervised representation learning by autoencoding transformations rather than data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2547-2555, 2019.
+[31] Zhiyuan Zhang, Binh-Son Hua, David W Rosen, and Sai-Kit Yeung. Rotation invariant convolutions for 3D point clouds deep learning. In Proceedings of the International Conference on 3D Vision (3DV), pages 204–213. IEEE, 2019.
+[32] Qiang Zhao, Chen Zhu, Feng Dai, Yike Ma, Guoqing Jin, and Yongdong Zhang. Distortion-aware CNNs for spherical images. In Proceedings of the International Joint Conference on Artificial Intelligence, pages 1198-1204, Stockholm, Sweden, July 2018.
\ No newline at end of file
diff --git a/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/images.zip b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..118de60397706e4837a281ca74d8692d59985bd2
--- /dev/null
+++ b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f9d772f30e99e1a0cf46c66bb457935197bbaeca0a824445656ccd3b011eb638
+size 446753
diff --git a/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/layout.json b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7299c15ceb3d79c1d45702f059f07dd1c298aee6
--- /dev/null
+++ b/rotationequivariantgraphconvolutionalnetworkforsphericalimageclassification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a652789f9638be0cb0f215cb8c199242f25e5a2eceec85156a59f6fc1afe448
+size 439770
diff --git a/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_content_list.json b/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5eaed77382e2bc6ab8925365f1b758d3de18dca8
--- /dev/null
+++ b/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed4fb5a9de0ecd1b68e1ce6c219ca63d76a552ac68f1c1d284d4150d140015b6
+size 87204
diff --git a/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_model.json b/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f461f66d243b6395745ec75d7ae294aaad6de13e
--- /dev/null
+++ b/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e892141b38aa711c796e6ba22bf3df1a8cf62b551a6c8e04958d74244644aedd
+size 111660
diff --git a/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_origin.pdf b/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5b5a33689d6766000a711466a5b90d910a46e616
--- /dev/null
+++ b/routedfusionlearningrealtimedepthmapfusion/2cc06df3-25b2-4e7a-89e4-03f2cbf48ed3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:62a8973c310f5e29301d2349112025c203ff708cabc6f7e2cfedb52d6d26ead6
+size 5287454
diff --git a/routedfusionlearningrealtimedepthmapfusion/full.md b/routedfusionlearningrealtimedepthmapfusion/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d814fe38cc9243eb50b19cd50df9ebb66fbb2083
--- /dev/null
+++ b/routedfusionlearningrealtimedepthmapfusion/full.md
@@ -0,0 +1,359 @@
+# RoutedFusion: Learning Real-time Depth Map Fusion
+
+Silvan Weder ETH Zurich
+
+Johannes Schonberger
+Microsoft
+
+Marc Pollefeys
+ETH Zurich/Microsoft
+
+Martin R. Oswald
+ETH Zurich
+
+# Abstract
+
+The efficient fusion of depth maps is a key part of most state-of-the-art 3D reconstruction methods. Besides requiring high accuracy, these depth fusion methods need to be scalable and real-time capable. To this end, we present a novel real-time capable machine learning-based method for depth map fusion. Similar to the seminal depth map fusion approach by Curless and Levoy, we only update a local group of voxels to ensure real-time capability. Instead of a simple linear fusion of depth information, we propose a neural network that predicts non-linear updates to better account for typical fusion errors. Our network is composed of a 2D depth routing network and a 3D depth fusion network which efficiently handle sensor-specific noise and outliers. This is especially useful for surface edges and thin objects for which the original approach suffers from thickening artifacts. Our method outperforms the traditional fusion approach and related learned approaches on both synthetic and real data. We demonstrate the performance of our method in reconstructing fine geometric details from noise and outlier contaminated data on various scenes.
+
+# 1. Introduction
+
+Multi-view 3D reconstruction has been a central research topic in computer vision for many decades. Fusing depth maps from multiple camera viewpoints is an essential processing step in the majority of recent 3D reconstruction pipelines [59, 58, 27, 1, 44, 43, 12, 10], especially for real-time applications [21, 37, 55, 11]. We revisit the problem of 3D reconstruction via depth map fusion from a machine learning perspective. The major difficulty of this task is to deal with various amounts of noise, outliers, and missing data. The classical approach [9, 21] to fusing noisy depth maps is to average truncated signed distance functions (TSDF). This approach has many advantages: $\mathbf{1} +$ ) The updates are local (truncated) and can be done in constant time for a fixed number of depth values. The high memory usage of voxel grids can be easily reduced with voxel hashing [37] or octrees [49]. $\mathbf{2} +$ ) Online updates are simple to implement and noisy measurements are fused into a
+
+
+Standard TSDF Fusion [9]
+Figure 1: Standard TSDF fusion vs. our learned depth map fusion approach (on Kinect data [48]). Due to a more informed decision process, our approach better handles noise and fine geometric details.
+
+
+
+
+Ours
+
+single surface with very few operations. $3 + \cdot$ Due to local independent updates, the approach is computationally cheap and highly parallelizable.
+
+However, the approach also has a number of shortcomings: 1-) The average is only the optimal estimate for zero-mean Gaussian noise, but the real error distribution is typically non-Gaussian, non-centered and depth-dependent. 2-) The updates are linear and a minimal thickness assumption of surfaces has to be made according to the expected noise level. Therefore, thickening artifacts become apparent along surface edges and for thin object structures. 3-) This issue is even more severe when depth measurements of a thin object are made from opposite directions. Then the surface vanishes since the linear TSDF updates cancel each other out. 4-) The linear fusion weights do not properly account for view directional dependencies during TSDF aggregation. The noise level along the viewing direction is typically very different from the one in orthogonal directions. 5-) The fusion approach is unable to handle gross outliers. The depth map has to be pre-filtered or incorrect measurements will clutter the scene. 6-) The fusion param-
+
+eters must be tuned for specific scenes and sensors and it is often difficult to find a good trade-off between runtime and different aspects of reconstruction quality.
+
+In this paper, we aim to tackle the above mentioned disadvantages while maintaining all the advantages of traditional approach with a reasonable amount of additional computation time to still meet real-time requirements. To this end, we propose a learned approach that fuses noisy and outlier contaminated measurements into a single surface, performs non-linear updates to better deal with object boundaries and thin structures, and is fast enough for real-time applications. Figure 1 shows example outputs of our approach. In sum, this paper's contributions are as follows:
+
+- We present a learning-based method for real-time depth map fusion. Due to its compact architecture it requires only little training data, and is not prone to over-fitting.
+- We propose a scalable and real-time capable neural architecture that is independent of the scene size. Therefore, it is applicable to a large set of real-world scenarios.
+- We show significant improvement of standard TSDF fusion's shortcomings: 1) It better handles the fusion of anisotropic noise distributions that naturally arise from the multi-view setting, and 2) It mitigates the surface thickening effect on thin objects and surface boundaries by avoiding inconsistent updates.
+
+# 2. Related Work
+
+Volumetric Depth Map Fusion. With their seminal work, Curless and Levoy [9] proposed an elegant way for fusing noisy depth maps which later got adopted by numerous works like KinectFusion [21], more scalable generalizations like voxel hashing [37, 33], or hierarchical scene representations, such as voxel octrees [16, 49, 34] and hierarchical hashing [24]. Especially for SLAM pipelines like InfiniTAM [23], volumetric fusion became a standard approach due to its real-time capability. In this context, it was also extended to become more accurate and robust [8] as well as improve SLAM with additional surface registration of scene parts to account for pose drift as proposed in [55, 32, 11]. Approaches with additional median filtering [42, 34, 33] improve the robustness and are still real-time capable but with limited effectiveness. Global optimization approaches [59, 27] even better deal with noise and outliers if they further leverage semantic information [19, 6, 20, 44, 43], but they are computationally expensive and not real-time capable. In [65, 31], the authors propose methods for refinement of already fused SDF geometry based on shape-from-shading. The vast majority of these approaches directly fuse RGB-D images for which Zollhöfer et al. [66] provide a recent survey. All these methods handle noisy measurements by updating a wider band of voxels around the measured depth leading to thickening artifacts on thin geometry.
+
+Surfel-based Fusion Methods. Surfel-based methods approximate the surface with local point samples, which can further encode additional local properties such as normal or texture information. Multiple methods have been proposed, e.g. MRSMap [50] uses an octree to store multi-resolution surfel data. The point-based fusion methods [25, 29] combine a surfel representation with probabilistic fusion discussed in the next paragraph. ElasticFusion [55] handles real-time loop closures and corrects all surface estimates online. Schöps et al. [47] proposed a depth fusion approach with real-time mesh construction. A disadvantage of surfel-based methods is the missing connectivity information among surfels. The unstructured neighborhood relationships can only be established with a nearest neighbor search or simplified with space partitioning data structures. In our work, we decided to rely on volumetric representation, but extending our approach to unstructured settings is an interesting avenue of future work.
+
+Probabilistic Depth Map Fusion. To account for varying noise levels in the input depth maps and along different line-of-sight directions, the fusion problem can also be cast as probability density estimation [15] while typically assuming a Gaussian noise model. Keller et al. [25] propose a point-based fusion approach which directly updates a point cloud rather than a voxel grid. Lefloch et al. [29] extended this idea to anisotropic point-based fusion in order to account for different noise levels when a surface is observed from different incident angles. The mesh-based fusion approach by Zienkiewicz et al. [64] allows for depth fusion across various mesh resolutions for known fixed topology. The probabilistic fusion method by Woodford and Vogiatzis [56] incorporates long range visibility constraints. Similar ray-based visibility constraints were also used in [52, 51], but these methods are not real-time capable due to the complex optimization of ray potentials. Anisotropic depth map fusion methods additionally keep track of fusion covariances [57]. Similarly, PSDF Fusion [13] explicitly models directional dependent sensor noise. In contrast to our method, all these approaches assume particular noise distributions, primarily Gaussians, which often do not model the real sensor observations correctly.
+
+Learning-based Reconstruction Approaches. Several learning-based methods have been proposed to fuse, estimate, or improve geometry. SurfaceNet [22] jointly estimates multi-view stereo depth maps and their volumetric fusion, but is extremely memory demanding as each camera view requires a full voxel grid. In [30], multiview consistency is learned upon classical TSDF fusion. RayNet [39] models view dependencies along ray potentials with a Markov random field which is jointly learned with a view-invariant feature representation. 3DMV [10] combines 2D view information with a pre-fused TSDF scene to jointly optimize for shape and semantics. Riegler et
+
+
+Figure 2: System overview for integrating depth maps into a global TSDF volume. A 2D Depth Routing Network takes depth input and decides the update location for every ray within the TSDF volume. The network corrects for noise, outliers and missing values and further estimates per-ray confidence values. Then, for each ray, we extract a depth and view-dependent local voxel grid (light blue) which also includes neighboring rays. We sample $S$ values along each ray, centered around the surface. A Depth Fusion Network then takes the local grid of existing TSDF values, the depth and confidences to predict adequate updates. The predicted TSDF values (red) are then written back into the global volume. Our method learns a robust weighting of input depths and performs non-linear updates to better handle noise, outliers, and thin objects.
+
+al. [40] fuse depth maps using standard TSDF and subsequently post-process the fused model with a neural network. Moreover, hierarchical volumetric deep learning-based approaches [3, 7, 12] tackle the effects of noisy measurements, outliers, and missing data. All these approaches operate on a voxel grid with high memory demands and are not real-time capable. Further, there are several works that learn to predict 3D meshes based on input images [18, 17, 54].
+
+Learned Scene Representations. Ladicky et al. [28] directly estimate an iso-surface from a point cloud via learned local point features with a random forest. In addition, there exist multiple proposals for methods that learn 3D reconstruction in an implicit space [35, 38, 5, 36]. These methods show promising results, but they operate only on a unit cube and are thus limited to single objects or small scenes and they are neither suited for online reconstruction. Contrary to all these methods, our method is independent of the scene's size and can thus also operate on large-scale scenes. Additionally, our method uses learning in an online process, which allows to leverage already fused information for fusing a new depth map. In [2, 60], the authors propose neural models that learn a compact and estimizable 2.5D depth representation for SLAM applications. DeepTAM [62] also addresses SLAM, but the mapping part heavily relies on hand-crafted photoconsistencies and corresponding weights to form a traditional cost volume for depth estimation. None of these methods address global model fusion.
+
+# 3. Method
+
+We first review the standard TSDF fusion approach to provide context and to introduce notation before we present our learned TSDF fusion method.
+
+# 3.1. Review of Standard TSDF Fusion
+
+Standard TSDF fusion integrates given depth maps $\pmb{D}_{t=1,\dots,T} \in \mathbb{R}^{W \times H}$ from known viewpoints $\pmb{P}_t \in \mathrm{SE}(3)$ with camera intrinsics $\pmb{K}_t$ into a discretized signed distance function $\pmb{V}_t \in \mathbb{R}^{X \times Y \times Z}$ and weight function $\pmb{W}_t \in$
+
+$\mathbb{R}^{X\times Y\times Z}$ defined over the entire scene. The fusion process is incremental, i.e. each depth map is integrated after one another for location $\pmb{x}$ using the update equations introduced by Curless and Levoy [9] as
+
+$$
+\boldsymbol {V} _ {t} (\boldsymbol {x}) = \frac {\boldsymbol {W} _ {t - 1} (\boldsymbol {x}) \cdot \boldsymbol {V} _ {t - 1} (\boldsymbol {x}) + w _ {t} (\boldsymbol {x}) \cdot v _ {t} (\boldsymbol {x})}{\boldsymbol {W} _ {t - 1} (\boldsymbol {x}) + w _ {t} (\boldsymbol {x})} \tag {1}
+$$
+
+$$
+\boldsymbol {W} _ {t} (\boldsymbol {x}) = \boldsymbol {W} _ {t - 1} (\boldsymbol {x}) + w _ {t} (\boldsymbol {x}), \tag {2}
+$$
+
+starting from zero-initialized volumes $V_{0}$ and $W_{0}$ . The signed distance update $v_{t}$ and its corresponding weight $w_{t}$ integrate the depth measurements of the next depth map $D_{t}$ at time step $t$ into the TSDF volume. These update functions are traditionally truncated before and after the surface in order to ensure efficient runtimes and robust reconstruction of fine-structured surfaces given noisy depth measurements.
+
+The choice of the truncation distance parameter typically requires cumbersome hand-tuning to adapt to a specific scene and depth sensor as well as accounting for runtime. If the truncation distance is chosen too large, the reconstruction of thin structures becomes more difficult due to larger thickening artifacts and the fusion process gets slower since more voxels have to be updated for each ray. Contrary, a small truncation distance results in time efficient updates but cannot deal with larger noise in the depth measurements.
+
+In this paper, we overcome this limitation by learning the function $v_{t}$ automatically from data. Our system is based on the same above mentioned update equations and our learned functions have only little computational overhead compared to traditional TSDF fusion. As such, our method facilitates real-time depth map fusion and can be readily integrated into existing reconstruction systems. In the following, we describe our proposed method in more detail.
+
+# 3.2. System Overview
+
+Our method contains two network components: a depth routing network and a depth fusion network. The pipeline consists of the following four essential processing steps which are also illustrated in Figure 2:
+
+1. Depth Routing: The depth routing network takes a raw depth map $D_{t}$ and estimates a denoised and outlier-corrected depth map $\hat{D}_{t}$ , and further estimates a corresponding confidence map $C_{t}$ . This network routes the depth location for reading and writing TSDF values along each viewing ray.
+2. TSDF Extraction: Given the routed depth values $\hat{D}_t$ , we extract a local camera-aligned voxel grid with TSDF data $V_{t-1}^*$ and weight $W_{t-1}^*$ via trilinear interpolation from the corresponding global voxel grids $V_{t-1}$ , $W_{t-1}$ .
+3. Depth Fusion: The depth fusion network takes the results of the previous processing steps $(\hat{D}_t, C_t, W_{t-1}^*, V_{t-1}^*)$ and computes the local TSDF update $v_t^*$ .
+4. TSDF Update Integration: The predicted TSDF update $v_{t}^{*}$ is transferred back into the global coordinate frame to get $v_{t}$ which is then integrated into the global TSDF volumes $V_{t}, W_{t}$ using the TSDF updates in Eqs. (1), (2).
+
+These processing steps are detailed in the next subsections.
+
+# 3.3. Depth Routing
+
+Using the depth routing network, we pre-process the depth maps before passing them to the depth fusion network with the main motivation of denoising and outlier correction. Towards this end, the network predicts denoised depth maps and also per-pixel confidence maps $C_{t = 1,\dots,T} \in \mathbb{R}^{W \times H}$ . Figure 3 illustrates our network architecture, which is using a fully-convolutional U-Net [41] with a joint encoder and separate decoders for confidence and depth prediction. Further, we do not use normalization layers since it negatively influences the depth prediction performance by adding a depth-dependent bias to the result. The depth map and the confidence map are processed by two separate decoders to which the output of the bottleneck layers serves as an input.
+
+# 3.4. TSDF Extraction
+
+Instead of processing each ray of a view $t$ independently as in standard TSDF fusion, we deliberately choose to compute the TSDF updates based on the data of a larger neighborhood in order to make a more informed decision about the surface location. Further, the 2D input data also holds valuable information about surface locations as often indicated by depth discontinuities. We argue that the fusion network can best benefit from both 2D and 3D data sources when they are already in correspondence and therefore propose a view-aligned local neighborhood extraction. Then, the 3D TSDF data and the 2D input data can be easily concatenated and fed into the network. Hence, for efficient real-time updates of the global data $\boldsymbol{V}_{t-1}$ , $\boldsymbol{W}_{t-1}$ , we extract a local, view-dependent TSDF volume and corresponding weights $\boldsymbol{V}_{t-1}^{*}, \boldsymbol{W}_{t-1}^{*} \in \mathbb{R}^{W \times H \times S}$ . The first two volume dimensions $W, H$ correspond to the width and height of the
+
+depth map whereas the third dimension $S$ represents the local depth-sampling dimension of the window sampled along the ray. This number $S$ closely relates to the truncation distance in standard TSDF fusion. For each ray independently, the local windows are centered at their respective depth values $\hat{D}_t$ and discretely sampled into a fixed number of $S$ values from the volume $V_{t-1}$ . We choose the step size of the sampling according to the resolution of the scene and use trilinear interpolation to mitigate sampling artifacts.
+
+The input $I_{t}$ to the subsequent depth fusion is then a combination of all available local information, that is, corrected depth map $\hat{D}_t$ , confidence map $C_t$ as well as the extracted TSDF values $V_{t - 1}^{*}$ and TSDF weights $W_{t - 1}^{*}$
+
+$$
+\boldsymbol {I} _ {t} = \left[ \begin{array}{l l l l} \hat {\boldsymbol {D}} _ {t} & \boldsymbol {C} _ {t} & \boldsymbol {W} _ {t - 1} ^ {*} & \boldsymbol {V} _ {t - 1} ^ {*} \end{array} \right] \in \mathbb {R} ^ {W \times H \times (2 S + 2)}. \tag {3}
+$$
+
+Before the subsequent update prediction step, we explicitly filter gross outliers where $C_t < C_{\mathrm{thr}}$ and set their corresponding feature values in $I_t$ to zero.
+
+# 3.5. Depth Fusion
+
+Our depth fusion network takes the local 3D feature volume $\mathbf{I}_t$ as input and predicts the local TSDF update $v_{t}^{*}\in \mathbb{R}^{W\times H\times S}$ . The architecture is fully convolutional in two dimensions and the channel dimension is along the camera viewing direction. Our network is relatively compact and thereby facilitates real-time computation.
+
+Our depth fusion network operates in a two-stage approach, as shown in Figure 3. The first stage encodes local and global information in the viewing frustum. We sequentially pass the input 3D feature volume through encoding blocks of two consecutive convolutional layers with interleaved batch normalization, non-linear activation using leaky RLUs, and a dropout layer. The output of every block is concatenated with its input and passed through the next block. With every block, the receptive field of the neural network increases. This sequential feature extraction results in a 100-dimensional feature vector for each ray in the viewing frustum.
+
+The second network part takes the feature volume and predicts the TSDF updates along each ray. The number of features is sequentially reduced by passing them through convolutional blocks with two $1 \times 1$ convolutional layers interleaved with leaky RLUs, batch normalization, and dropout layers. In the last block, we directly reduce from 40 features to 20 in the first layer and then to $S$ TSDF values in the last convolutional layer, where we apply a tanh-activation on the output mapping it to the range $[-1, 1]$ .
+
+Note that predicted TSDF update values $\boldsymbol{v}_t^*$ can take any value. The network can decide to not update the TSDF at all, e.g., in case of an outlier. Conversely, it can reduce the influence of existing TSDF values if they contained outliers.
+
+
+Figure 3: Proposed network architecture. Our depth routing network consists of a U-Net (depth one) with two separate decoders predicting a corrected depth map and a corresponding confidence map. The depth fusion network extracts in a series of encoding blocks 100 features along each ray. These features are then used to predict the TSDF updates along the ray.
+
+# 3.6. TSDF Update Integration
+
+In order to compute the updated global TSDF volume $V_{t}$ we transform the predicted local TSDF updates $v_{t}^{*}$ back into the global coordinate frame $v_{t}$ . To this end, we apply the inverse operation of the previous extraction step, that is, we redistribute the values using the same trilinear interpolation weights. In fact, we actually repurpose the update weights $w_{t}$ for this task, where $W_{t}$ accumulates the splating weights for each voxel in the scene. Moreover, we also use $W_{t}$ for post-filtering extreme outliers1.
+
+# 3.7. Loss Function and Training Procedure
+
+The two networks in our pipeline are trained in two steps. First, we train the depth routing network and then use the pre-trained routing output to train the fusion network.
+
+Depth Routing Network. We train the depth prediction head in a supervised manner by computing the L1 loss on absolute depth values as well as on the depth map gradient, as proposed in [14]. For training the confidence head, we chose a self-supervised approach [26]. Therefore, the final loss function has the form
+
+$$
+\mathcal {L} _ {\mathrm {2 D}} = \sum_ {i} c _ {i} \mathcal {L} _ {1} \left(y _ {i}, \hat {y} _ {i}\right) + c _ {i} \mathcal {L} _ {1} \left(\nabla y _ {i}, \nabla \hat {y} _ {i}\right) - \lambda \log c _ {i} \tag {4}
+$$
+
+where $y_{i}, \hat{y}_{i}$ are the predicted and ground-truth depth values at pixel $i$ respectively and $c_{i} \in C_{t}$ is the confidence value. The hyperparameter $\lambda$ is empirically set to 0.015.
+
+Depth Fusion Network. Despite the pre-processing of the routing network, the filtered depth map might still contain noise and outliers which should be further handled by the depth fusion network. Each global TSDF update step should a) integrate new information about the true geometry and b) not destroy valuable, previously fused surface information. We train the fusion network in a supervised manner by choosing random update steps at time $t$ during the fusion and penalize differences between the updated local volume $V_{t}^{*} = \frac{W_{t - 1}^{*}\cdot V_{t - 1}^{*} + w_{t}^{*}\cdot v_{t}^{*}}{W_{t - 1}^{*} + w_{t}^{*}}\in \mathbb{R}^{W\times H\times S}$ and the local ground-truth $\hat{\boldsymbol{V}}^{*}\in \mathbb{R}^{W\times H\times S}$ . Therefore, we define
+
+the loss function over all rays $i$ as
+
+$$
+\mathcal {L} _ {\mathrm {3 D}} = \sum_ {i} \lambda_ {1} \mathcal {L} _ {1} \left(\boldsymbol {V} _ {t i} ^ {*}, \hat {\boldsymbol {V}} _ {i} ^ {*}\right) + \lambda_ {C} D _ {C} \left(\boldsymbol {V} _ {t i} ^ {*}, \hat {\boldsymbol {V}} _ {i} ^ {*}\right) \tag {5}
+$$
+
+Here, $\mathcal{L}_1$ denotes the L1 loss over raw TSDF values and $D_C$ denotes the cosine distance between the signs of the TSDF values computed along each ray $i$ . The goal of the first term is to preserve fine surface detail (through means of $\mathcal{L}_1$ ), while, the term $D_C$ ensures that the surface is located at the zero-crossing of the signed distance field. The weights $\lambda_1 = 1$ and $\lambda_C = 0.1$ have been empirically found.
+
+# 4. Experiments
+
+In this section, we first present additional implementation details and our experimental setup. Next, we evaluate and discuss the efficacy of our approach on both synthetic and real-world data. We demonstrate that our approach outperforms traditional TSDF fusion and state-of-the-art learning-based approaches in terms of reconstruction accuracy with only little computational overhead.
+
+# 4.1. Implementation Details
+
+All networks were implemented in PyTorch and trained on an NVIDIA Titan Xp GPU. We trained both networks using the RMSProp optimization algorithm with momentum 0.9 and initial learning rate $1\mathrm{e} - 5$ for the depth routing network and $1\mathrm{e} - 3$ for the depth fusion network. The dropout layers were set to a probability of 0.2. For all experiments, we trained our neural networks in a sequential process, where we first pre-trained the depth routing and then the depth fusion network. A joint end-to-end refinement did not lead to an improvement of the overall performance of the system. To train the depth routing network, we use 10K frames sampled from 100 ModelNet [61] or ShapeNet [4] objects and perturb them with artificial speckle noise. The data is packed into batches of size 4 and the gradient is accumulated across 8 batches before updating the routing network weights. Because of the incremental nature of the TSDF update equation, we must train our depth fusion network using a batch size of 1. However, each batch updates a very large number of voxels in the volume over which the
+
+loss is defined and, together with batch normalization, we obtain robust convergence during training. Since our network has only very few parameters, it is hard to overfit and only little training data is required. In fact, we can train our entire network (given a pre-trained depth routing network) on only ten models from ModelNet [61] or ShapeNet [4] with a total of 1000 depth maps and it already generalizes robustly to other scenes. Furthermore, we can train the network from scratch in only 20 epochs (each epoch passes once over all 1000 frames). Unless otherwise specified, we used $S = 9$ and $C_{thr} = 0.9$ across all experiments². For all experiments, we used a voxel size $0.008m$ , corresponding to a grid resolution of $128^3$ for ShapeNet and ModelNet.
+
+Runtime. A forward pass through the depth routing network and the depth fusion network for one depth map $(W = 320, H = 240)$ takes $0.9\mathrm{ms}$ and $1.8\mathrm{ms}$ , respectively while the full pipeline runs at 15 fps. These numbers can be improved with a more efficient implementation, but already meet real-time requirements.
+
+# 4.2. Results
+
+We evaluate our method on synthetic and real-world data comparing to traditional TSDF fusion [9] as a baseline as well as to the state-of-the-art PSDF fusion method presented by Dong et al. [13]. Moreover, we compare to state-of-the-art learning-based 3D reconstruction methods OccupancyNetworks [35] and DeepSDF [38].
+
+Evaluation Metrics. For quantifying the performance of our method, we compute the following four metrics by comparing the estimated TSDF against the ground-truth.
+
+- MAD: The mean absolute distance is computed over all TSDF voxels and measures the reconstruction performance on fine surface details.
+- MSE: The mean squared error loss is computed over all TSDF voxels and measures the reconstruction performance on large surface deviations.
+- Accuracy: We compare the actual reconstruction accuracy on the occupancy grid. We extract the occupancy grid in the ground-truth and the estimated TSDF by extracting all voxels with negative TSDF values.
+- Intersection over Union (IoU): We compute the intersection-over-union on the occupancy grid, which is an alternative performance measure to the accuracy.
+
+These metrics not only quantify how well our pipeline fuses depth maps into a TSDF, but also how well it performs in classifying the occupancy and reconstructing the geometry.
+
+# 4.3. Synthetic Data
+
+To evaluate our method's performance in fusing noisy synthetic data, we train and test it on the ModelNet [61] and ShapeNet [4] datasets using rendered ground-truth depth
+
+| Method | MSE [e-05] | MAD | Acc. [%] | IoU [0, 1] |
| DeepSDF [38] | 464.0 | 0.0499 | 66.48 | 0.538 |
| OccupancyNetworks [35] | 56.8 | 0.0166 | 85.66 | 0.484 |
| TSDF Fusion [9] | 11.0 | 0.0078 | 88.06 | 0.659 |
| TSDF Fusion + Routing | 27.0 | 0.0084 | 87.48 | 0.650 |
| Ours w/o Routing | 5.9 | 0.0051 | 93.91 | 0.765 |
| Ours | 5.9 | 0.0050 | 94.77 | 0.785 |
+
+Table 1: Quantitative Results on ShapeNet [4]. Our method outperforms TSDF fusion and other learning-based approaches in fusing noisy ( $\sigma = 0.005$ ) depth-maps rendered from ShapeNet objects. The benefit of the routing network increases with higher noise levels (see Fig. 5).
+
+
+Figure 4: Qualitative Results on ShapeNet [4]. Our method is superior to all other methods in reconstructing fine details (see car wheels and spoiler) and produces smoother surfaces (input noise level $\sigma = 0.005$ ).
+
+maps that are perturbed with an artificial depth-dependent multiplicative noise distribution. For both, ModelNet and ShapeNet, we randomly sample our training and test data from the official train-test split.
+
+ShapeNet. The model trained on ShapeNet is then used to evaluate the performance of our method in comparison with other approaches. Therefore, we fuse noisy depth maps of 60 objects (10 per test class - plane, sofa, lamp, table, car, chair) from the test set, which have not been seen during training. For comparison, we use the provided pre-trained model for point cloud completion in the case of OccupancyNetworks. In the case of DeepSDF, we trained the model from scratch using the code provided by the authors and using ShapeNet as training data. The quantitative results of this evaluation are shown in Table 1. Our method consistently outperforms standard TSDF fusion as well as the pure learning-based approaches OccupancyNetworks [35] and DeepSDF [38] on all metrics. Our method significantly improves the accuracy of the fused implicit mesh as well as their IoU, MAD and MSE scores. The results also indicate the potential of our routing network. However, the full benefit of our routing network only becomes obvious when looking at the real-world data experiments and Figure 5.
+
+
+Figure 5: Evaluation of different noise levels $\sigma$ . The left plot shows MAD for different noise levels $\sigma \in \{0.01, 0.03, 0.05\}$ . Our routing network stabilizes both, our method as well as standard TSDF fusion, for high noise levels. On the right, we show corresponding qualitative results on ModelNet test data for Standard TSDF and our method. The figures show the denoising capability of our method, where standard TSDF fusion completely fails.
+
+Figure 4 illustrates the strengths of our method in dealing with noise and in reconstructing thin structures. Flat surfaces in the ground-truth appear smoother in our results as compared to standard TSDF fusion. Furthermore, thin structures are better reconstructed and contain less thickening artifacts. The thickening artifacts are also visible on the car's rims, where our method yields accurate results and DeepSDF and OccupancyNetworks both fail. Both DeepSDF and OccupancyNetworks tend to over-smooth surface details less common in the training data, e.g., the spoiler of the car or the details on the chair's legs.
+
+ModelNet. In order to test our method's robustness against noise we trained and evaluated on various noise levels $\sigma \in \{0.01, 0.03, 0.05\}$ and compared it to standard TSDF fusion. We also analyze the effect of the depth routing network on the fusion result by omitting it in our pipeline and by testing it in combination with standard TSDF fusion. Figure 5 illustrates that our pipeline outperforms standard TSDF fusion for all tested noise levels. It also shows that our depth routing network stabilizes the fusion of data corrupted with extreme noise levels. When used for data preprocessing, our depth routing network also improves the results of standard TSDF fusion.
+
+# 4.4. Real-World Data
+
+We also evaluate on real-world datasets and compare to other state-of-the-art fusion methods. Due to lack of ground-truth data, we use the model trained on synthetic ModelNet data using an artificial and empirically chosen depth-dependent noise distribution with $\sigma = 0.01$ . As such, we also show that our method must not necessarily be trained on real-world data but generalizes robustly to the real domain from being trained on noisy synthetic data only.
+
+3D Scene Data [63]. To quantify the improvement of the reconstruction result, we evaluate our method compared to standard TSDF fusion on scenes provided by Zhou et al. [63]. Since there is no volumetric ground-truth avail
+
+| Method | Lounge | Copyroom | Stonewall | Cactusgarden | Burghers |
| TSDF | 0.0095 | 0.0110 | 0.0117 | 0.0104 | 0.0126 |
| Ours w/o routing | 0.0055 | 0.0057 | 0.0047 | 0.0055 | 0.0071 |
| Ours | 0.0051 | 0.0051 | 0.0043 | 0.0052 | 0.0067 |
+
+Table 2: Quantitative evaluation (MAD [mm]) of our method on 3D Scene Data [63]. Our method is consistently better than standard TSDF fusion on 3D Scene Data. These experiments also show the benefit of our routing network when applied to real-world data.
+
+able for these scenes, we fuse all frames of each scene using standard TSDF fusion and denoised the meshes. Then, we only fuse every 10th frame using standard TSDF fusion as well as our method for evaluation.
+
+Table 2 shows the quantitative reconstruction results from fusing 5 scenes of the 3D scene dataset [63]. Our method significantly outperforms standard TSDF fusion on all scenes without being trained on real-world data.
+
+We further show a qualitative comparison to standard TSDF as well as PSDF fusion [13] on the Burghers of Calais scene in Figure 8. The results illustrate that our method better reconstructs fine geometric details (hands, fingers and face) and produces smoother surfaces than standard TSDF fusion and PSDF fusion [13]. For more qualitative examples on this dataset, we refer to the supplementary material.
+
+Street Sign Dataset [53]. To evaluate the performance of our method on thin structures, we also evaluate on the street sign dataset, again without fine-tuning the network. This dataset consists of 50 RGB frames and we use the COLMAP SfM pipeline [45, 46] to compute camera poses and depth maps. Qualitative results on this scene for different state-of-the-art methods are shown in Figure 6. Our method clearly outperforms TV-Flux [58] and standard TSDF, while producing comparable results with ray potentials [43]. The results also make the benefit of our routing network apparent. With routing, our method reconstructs with better completeness and less noise artifacts than without. Note that both TV-Flux and ray potentials involve an offline optimization with a smoothness prior to reduce noise and complete missing data. This prevents real-time application for these approaches, since ray potentials on this small scene runs for many hours on a cluster.
+
+RGB-D Dataset 7-Scenes [48]. For qualitatively evaluating our method on Kinect data, we fuse the 7-Scenes [48] RGB-D dataset. For each scene, we have chosen the first trajectory and fused it using our pipeline as well as standard TSDF fusion. In Figure 7, we show that our method significantly reduces noise and mitigates the surface thickening effect compared to standard TSDF fusion. Notably, the chair leg and table edges are reconstructed with higher fidelity than it is done by standard TSDF fusion. Moreover, our method shows strong performance in denoising and removing outliers from the scene.
+
+
+
+
+RGB
+
+
+
+
+TV-Flux [58]
+
+
+
+
+Ray Potentials [43]
+
+
+
+
+Standard TSDF [9]
+
+
+
+
+Ours w/o Routing
+
+
+
+
+Ours
+
+
+Figure 6: Qualitative results of our method on the Roadsign dataset [53]. Our method compares favorably to standard TSDF fusion as well as TV-Flux [58] in reconstructing thin surfaces while showing comparable performance with ray potentials [43]. Our method generalizes reasonably well since it was trained on ModelNet and never saw the noise and outlier statistics of stereo depth maps nor the shape statistics of this scene and therefore has a less complete output. ( $C_{thr} = 0.5$ )
+Standard TSDF [9]
+
+
+Ours w/o Routing
+
+
+Ours
+
+
+
+
+TSDF [9]
+Figure 8: Qualitative comparison on the Burghers of Calais scene [63]. Our method reconstructs hands and face geometry with much higher degree of detail than standard TSDF fusion and PSDF fusion.
+
+
+Figure 7: Qualitative comparison on the heads scene of RGB-D Dataset 7-Scenes [48]. Our method significantly reduces noise artifacts and thickening effects - especially on the thin geometry of the chair's leg.
+
+
+PSDF [13]
+
+
+
+
+Ours
+
+# 5. Conclusion
+
+We presented a novel real-time capable depth map fusion method tackling the common limitations of standard TSDF fusion [9]. Due to learned non-linear TSDF updates – rather than hand-crafted linear updates – our method mitigates in-
+
+consistent reconstruction results that occur at object edges and thin structures. The proposed split of our network architecture into a 2D depth routing network and a 3D depth fusion network allows to effectively handle noise and outliers at different processing stages. Moreover, sensor-specific noise distributions can be learned from small amounts of training data. Our approach outperforms competing methods on both synthetic and real data experiments. Due to its low computational requirements and compact architecture, our method has the potential to replace standard TSDF fusion in a variety of tasks and applications.
+
+Acknowledgments. Special thanks go to Akihito Seki from Toshiba Japan for insightful discussions and comments that greatly improved the paper. This research was partially supported by Toshiba and the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/ Interior Business Center (DOI/IBC) contract number D17PC00280. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DOI/IBC, or the U.S. Government.
+
+# References
+
+[1] Maros Bláha, Christoph Vogel, Audrey Richard, Jan D. Wegner, Thomas Pock, and Konrad Schindler. Large-scale semantic 3d reconstruction: an adaptive multi-resolution model for multi-class volumetric labeling. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1
+[2] Michael Bloesch, Jan Czarnowski, Ronald Clark, Stefan Leutenegger, and Andrew J. Davison. Codeslam - learning a compact, optimisable representation for dense visual SLAM. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 2560-2568, 2018. 3
+[3] Yan-Pei Cao, Zheng-Ning Liu, Zheng-Fei Kuang, Leif Kobbelt, and Shi-Min Hu. Learning to reconstruct high-quality 3d shapes with cascaded fully convolutional networks. In Proc. European Conference on Computer Vision (ECCV), pages 626–643, 2018. 3
+[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, 6
+[5] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 3
+[6] Ian Cherabier, Christian Hane, Martin R. Oswald, and Marc Pollefeys. Multi-label semantic 3d reconstruction using voxel blocks. In International Conference on 3D Vision (3DV), 2016. 2
+[7] Ian Cherabier, Johannes L. Schonberger, Martin R. Oswald, Marc Pollefeys, and Andreas Geiger. Learning priors for semantic 3d reconstruction. In European Conference on Computer Vision (ECCV), September 2018. 3
+[8] Sungjoon Choi, Qian-Yi Zhou, and Vladlen Koltun. Robust reconstruction of indoor scenes. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 5556-5565, 2015. 2
+[9] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH 1996, New Orleans, LA, USA, August 4-9, 1996, pages 303-312, 1996. 1, 2, 3, 6, 8
+[10] Angela Dai and Matthias Nießner. 3dmv: Joint 3d-multiview prediction for 3d semantic scene segmentation. In Proc. European Conference on Computer Vision (ECCV), pages 458-474, 2018. 1, 2
+[11] 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. Graph., 36(3):24:1-24:18, 2017. 1, 2
+[12] Angela Dai, Daniel Ritchie, Martin Bokeloh, Scott Reed, Jürgen Sturm, and Matthias Nießner. Scancomplete: Large-scale scene completion and semantic segmentation for 3d
+
+scans. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 1, 3
+[13] Wei Dong, Qiuyuan Wang, Xin Wang, and Hongbin Zha. Psdf fusion: Probabilistic signed distance function for onthe-fly 3d data fusion and scene reconstruction. In Proc. European Conference on Computer Vision (ECCV), September 2018. 2, 6, 7, 8
+[14] Simon Donne and Andreas Geiger. Learning non-volumetric depth fusion using successive reprojections. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 7634-7643, 2019. 5
+[15] Yong Duan, Mingtao Pei, and Yunde Jia. Probabilistic depth map fusion for real-time multi-view stereo. In Proceedings of the 21st International Conference on Pattern Recognition, ICPR 2012, Tsukuba, Japan, November 11-15, 2012, pages 368-371, 2012. 2
+[16] Simon Fuhrmann and Michael Goesele. Fusion of depth maps with multiple scales. ACM Trans. Graph., 30(6):148:1-148:8, 2011. 2
+[17] Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh r-cnn. In Proc. International Conference on Computer Vision (ICCV), October 2019. 3
+[18] Thibault Groueix, Matthew Fisher, Vladimir G. Kim, Bryan C. Russell, and Mathieu Aubry. Atlasnet: A papier-mâché approach to learning 3d surface generation. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 216-224, 2018. 3
+[19] Christian Häne, Christopher Zach, Andrea Cohen, Roland Angst, and Marc Pollefeys. Joint 3d scene reconstruction and class segmentation. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 97-104, 2013. 2
+[20] Christian Häne, Christopher Zach, Andrea Cohen, and Marc Pollefeys. Dense semantic 3d reconstruction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(9):1730-1743, 2017. 2
+[21] Shahram Izadi, Richard A. Newcombe, David Kim, Otmar Hilliges, David Molyneaux, Steve Hodges, Pushmeet Kohli, Jamie Shotton, Andrew J. Davison, and Andrew W. Fitzgibbon. Kinectfusion: real-time dynamic 3d surface reconstruction and interaction. In International Conference on Computer Graphics and Interactive Techniques, SIGGRAPH 2011, Vancouver, BC, Canada, August 7-11, 2011, Talks Proceedings, page 23, 2011. 1, 2
+[22] Mengqi Ji, Juergen Gall, Haitian Zheng, Yebin Liu, and Lu Fang. Surfacenet: An end-to-end 3d neural network for multiview stereopsis. In Proc. International Conference on Computer Vision (ICCV), pages 2326-2334, 2017. 2
+[23] Olaf Kähler, Victor Adrian Prisacariu, Carl Yuheng Ren, Xin Sun, Philip H. S. Torr, and David W. Murray. Very high frame rate volumetric integration of depth images on mobile devices. IEEE Trans. Vis. Comput. Graph., 21(11):1241-1250, 2015. 2
+[24] Olaf Kähler, Victor Adrian Prisacariu, Julien P. C. Valentin, and David W. Murray. Hierarchical voxel block hashing for efficient integration of depth images. IEEE Robotics and Automation Letters, 1(1):192-197, 2016. 2
+
+[25] Maik Keller, Damien Lefloch, Martin Lambers, Shahram Izadi, Tim Weyrich, and Andreas Kolb. Real-time 3d reconstruction in dynamic scenes using point-based fusion. In 2013 International Conference on 3D Vision, 3DV 2013, Seattle, Washington, USA, June 29 - July 1, 2013, pages 1-8, 2013. 2
+[26] Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pages 5574-5584, 2017. 5
+[27] Kalin Kolev, Maria Klodt, Thomas Brox, and Daniel Cremers. Continuous global optimization in multiview 3d reconstruction. International Journal of Computer Vision, 84(1):80-96, 2009. 1, 2
+[28] Lubor Ladicky, Olivier Saurer, SoHyeon Jeong, Fabio Man-inchedda, and Marc Pollefeys. From point clouds to mesh using regression. In Proc. International Conference on Computer Vision (ICCV), pages 3913-3922, 2017. 3
+[29] Damien Lefloch, Tim Weyrich, and Andreas Kolb. Anisotropic point-based fusion. In 18th International Conference on Information Fusion, FUSION 2015, Washington, DC, USA, July 6-9, 2015, pages 2121-2128, 2015. 2
+[30] Vincent Leroy, Jean-Sébastien Franco, and Edmond Boyer. Shape reconstruction using volume sweeping and learned photoconsistency. In Proc. European Conference on Computer Vision (ECCV), pages 796-811, 2018. 2
+[31] R. Maier, K. Kim, D. Cremers, J. Kautz, and M. Nießner. Intrinsic3d: High-quality 3D reconstruction by joint appearance and geometry optimization with spatially-varying lighting. In International Conference on Computer Vision (ICCV), Venice, Italy, October 2017. 2
+[32] R. Maier, R. Schaller, and D. Cremers. Efficient online surface correction for real-time large-scale 3D reconstruction. In British Machine Vision Conference (BMVC), London, United Kingdom, September 2017. 2
+[33] Nico Marniok and Bastian Goldluecke. Real-time variational range image fusion and visualization for large-scale scenes using GPU hash tables. In 2018 IEEE Winter Conference on Applications of Computer Vision, WACV 2018, Lake Tahoe, NV, USA, March 12-15, 2018, pages 912-920, 2018. 2
+[34] Nico Marniok, Ole Johannsen, and Bastian Goldluecke. An efficient octree design for local variational range image fusion. In Proc. German Conference on Pattern Recognition (GCR), pages 401-412, 2017. 2
+[35] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 3, 6
+[36] Mateusz Michalkiewicz, Jhony K. Pontes, Dominic Jack, Mahsa Baktashmotlagh, and Anders Eriksson. Implicit surface representations as layers in neural networks. In Proc. International Conference on Computer Vision (ICCV), October 2019. 3
+[37] Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Marc Stamminger. Real-time 3d reconstruction at scale us-
+
+ing voxel hashing. ACM Trans. Graph., 32(6):169:1-169:11, 2013. 1, 2
+[38] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 3, 6
+[39] Despoina Paschalidou, Ali Osman Ulusoy, Carolin Schmitt, Luc Van Gool, and Andreas Geiger. Raynet: Learning volumetric 3d reconstruction with ray potentials. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 3897-3906, 2018. 2
+[40] Gernot Riegler, Ali Osman Ulusoy, Horst Bischof, and Andreas Geiger. Octnetfusion: Learning depth fusion from data. In 2017 International Conference on 3D Vision, 3DV 2017, Qingdao, China, October 10-12, 2017, pages 57-66, 2017. 3
+[41] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Nassir Navab, Joachim Hornegger, William M. Wells, and Alejandro F. Frangi, editors, Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, pages 234–241, Cham, 2015. Springer International Publishing. 4
+[42] M. Rothermel, N. Haala, and D. Fritsch. A median-based depthmap fusion strategy for the generation of oriented points. In ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences, volume III-3, 2016. 2
+[43] Nikolay Savinov, Christian Hane, Lubor Ladicky, and Marc Pollefeys. Semantic 3d reconstruction with continuous regularization and ray potentials using a visibility consistency constraint. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 5460-5469, 2016. 1, 2, 7, 8
+[44] Nikolay Savinov, Lubor Ladicky, Christian Hane, and Marc Pollefeys. Discrete optimization of ray potentials for semantic 3d reconstruction. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 5511-5518, 2015. 1, 2
+[45] Johannes Lutz Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 7
+[46] Johannes Lutz Schonberger, Enliang Zheng, Marc Pollefeys, and Jan-Michael Frahm. Pixelwise view selection for unstructured multi-view stereo. In European Conference on Computer Vision (ECCV), 2016. 7
+[47] Thomas Schöps, Torsten Sattler, and Marc Pollefeys. Surfelmeshing: Online surfel-based mesh reconstruction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. 2
+[48] Jamie Shotton, Ben Glocker, Christopher Zach, Shahram Izadi, Antonio Criminisi, and Andrew Fitzgibbon. Scene coordinate regression forests for camera relocalization in rgb-d images. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, June 2013. 1, 7, 8
+[49] Frank Steinbrücker, Christian Kerl, and Daniel Cremers. Large-scale multi-resolution surface reconstruction from
+
+RGB-D sequences. In IEEE International Conference on Computer Vision, ICCV 2013, Sydney, Australia, December 1-8, 2013, pages 3264-3271, 2013. 1, 2
+[50] Jörg Stuckler and Sven Behnke. Multi-resolution surfel maps for efficient dense 3d modeling and tracking. J. Visual Communication and Image Representation, 25(1):137-147, 2014. 2
+[51] Ali Osman Ulusoy, Michael J. Black, and Andreas Geiger. Patches, planes and probabilities: A non-local prior for volumetric 3d reconstruction. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 3280-3289, 2016. 2
+[52] Ali Osman Ulusoy, Andreas Geiger, and Michael J. Black. Towards probabilistic volumetric reconstruction using ray potentials. In 2015 International Conference on 3D Vision, 3DV 2015, Lyon, France, October 19-22, 2015, pages 10-18, 2015. 2
+[53] Benjamin Ummenhofer and Thomas Brox. Point-based 3d reconstruction of thin objects. In Proc. International Conference on Computer Vision (ICCV), pages 969-976, 2013, 7, 8
+[54] Chao Wen, Yinda Zhang, Zhuwen Li, and Yanwei Fu. Pixel2mesh++: Multi-view 3d mesh generation via deformation. In Proc. International Conference on Computer Vision (ICCV), October 2019. 3
+[55] Thomas Whelan, Renato F. Salas-Moreno, Ben Glocker, Andrew J. Davison, and Stefan Leutenegger. Elasticfusion: Real-time dense SLAM and light source estimation. I. J. Robotics Res., 35(14):1697-1716, 2016. 1, 2
+[56] Oliver J. Woodford and George Vogiatzis. A generative model for online depth fusion. In Proc. European Conference on Computer Vision (ECCV), pages 144-157, 2012. 2
+[57] Markus Ylimäki, Juho Kannala, and Janne Heikkila. Accurate 3-d reconstruction with rgb-d cameras using depth map fusion and pose refinement. 2018 24th International Conference on Pattern Recognition (ICPR), pages 1977-1982, 2018. 2
+[58] Christopher Zach. Fast and high quality fusion of depth maps. In International Symposium on 3D Data Processing, Visualization and Transmission (3DPVT), 2008. 1, 7, 8
+[59] Christopher Zach, Thomas Pock, and Horst Bischof. A globally optimal algorithm for robust tv-11 range image integration. In Proc. International Conference on Computer Vision (ICCV), pages 1-8, 2007. 1, 2
+[60] Shuaifeng Zhi, Michael Bloesch, Stefan Leutenegger, and Andrew J. Davison. Scenocode: Monocular dense semantic reconstruction using learned encoded scene representations. In Proc. International Conference on Computer Vision and Pattern Recognition (CVPR), pages 11776-11785, 2019. 3
+[61] Zhirong Wu, S. Song, A. Khosla, Fisher Yu, Linguang Zhang, Xiaou Tang, and J. Xiao. 3d shapenets: A deep representation for volumetric shapes. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1912-1920, June 2015. 5, 6
+[62] Huizhong Zhou, Benjamin Ummenhofer, and Thomas Brox. Deeptam: Deep tracking and mapping. In Proc. European Conference on Computer Vision (ECCV), pages 851-868, 2018. 3
+
+[63] Qian-Yi Zhou and Vladlen Koltun. Dense scene reconstruction with points of interest. ACM Trans. Graph., 32(4):112:1-112:8, 2013. 7, 8
+[64] Jacek Zienkiewicz, Akis Tsiotsios, Andrew J. Davison, and Stefan Leutenegger. Monocular, real-time surface reconstruction using dynamic level of detail. In Fourth International Conference on 3D Vision, 3DV 2016, Stanford, CA, USA, October 25-28, 2016, pages 37-46, 2016. 2
+[65] 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 Transactions on Graphics (TOG), 34(4), 2015. 2
+[66] M. Zollhöfer, P. Stotko, A. Görlitz, C. Theobalt, M. Nießner, R. Klein, and A. Kolb. State of the Art on 3D Reconstruction with RGB-D Cameras. Computer Graphics Forum (Eurographics State of the Art Reports 2018), 37(2), 2018. 2
\ No newline at end of file
diff --git a/routedfusionlearningrealtimedepthmapfusion/images.zip b/routedfusionlearningrealtimedepthmapfusion/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..75885d7193837f84016f1ec46bc29f354089e57f
--- /dev/null
+++ b/routedfusionlearningrealtimedepthmapfusion/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:319e48c5f4d931f0c1d5ad6f570fddbb88fc38df2b8b28a18ae63bc01ff5778a
+size 439234
diff --git a/routedfusionlearningrealtimedepthmapfusion/layout.json b/routedfusionlearningrealtimedepthmapfusion/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e0ddf9edacbf73e2c0d7bcf305aaedc46104ec3a
--- /dev/null
+++ b/routedfusionlearningrealtimedepthmapfusion/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39d2f2320665c8382cedbeb3302986d2239b90eeff27fb32786d1c432614c7a1
+size 456909
diff --git a/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_content_list.json b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..99c15efb4143d1dffcac69ba50a4f4c005e3ca90
--- /dev/null
+++ b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:352bc1984f5de1971239991f355b424c80062dcdd3a1783a3b72e39d99adc1a6
+size 77914
diff --git a/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_model.json b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1859933f7a15e6276c9c661cd64e0dc534c3635e
--- /dev/null
+++ b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cfed2ed62dbb9b85deb44288bd65d603796ea2e562f898dec50078379b249315
+size 96550
diff --git a/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_origin.pdf b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..38031de47c0091bc1b4e0ef075741d1b6a56780a
--- /dev/null
+++ b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/d23e7785-aae9-46a1-aac2-7801bdf4d2ce_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:229f20c2bd5cc30ab4df2e11e59d6de2ec013989bdbb4e54016f7bc6f2e6cd27
+size 2204197
diff --git a/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/full.md b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..2b3726447419dec50b03b88b0ad424fbf517004b
--- /dev/null
+++ b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/full.md
@@ -0,0 +1,301 @@
+# S3VAE: Self-Supervised Sequential VAE for Representation Disentanglement and Data Generation
+
+Yizhe Zhu $^{1,2}$ , Martin Renqiang Min $^{1}$ , Asim Kadav $^{1}$ , Hans Peter Graf $^{1}$ , yizhe.zhu@rutgers.edu, {renqiang, asim, hpg} @ nec-labs.com
+
+$^{1}$ NEC Labs America, $^{2}$ Department of Computer Science, Rutgers University
+
+# Abstract
+
+We propose a sequential variational autoencoder to learn disentangled representations of sequential data (e.g., videos and audios) under self-supervision. Specifically, we exploit the benefits of some readily accessible supervisory signals from input data itself or some off-the-shelf functional models and accordingly design auxiliary tasks for our model to utilize these signals. With the supervision of the signals, our model can easily disentangle the representation of an input sequence into static factors and dynamic factors (i.e., time-invariant and time-varying parts). Comprehensive experiments across videos and audios verify the effectiveness of our model on representation disentanglement and generation of sequential data, and demonstrate that, our model with self-supervision performs comparable to, if not better than, the fully-supervised model with ground truth labels, and outperforms state-of-the-art unsupervised models by a large margin.
+
+# 1. Introduction
+
+Representation learning is one of the essential research problems in machine learning and computer vision [5]. Real-world sensory data such as videos, images, and audios are often in the form of high dimensions. Representation learning aims to map these data into a low-dimensional space to make it easier to extract semantically meaningful information for downstream tasks such as classification and detection. Recent years have witnessed rising interests in disentangled representation learning, which tries to separate the underlying factors of observed data variations such that each factor exclusively interprets one type of semantic attributes of sensory data. The representation of sequential data is expected to be disentangled into time-varying factors and time-invariant factors. For video data, the identity of a moving object in a video is regarded as time-invariant factors, and the motion in each frame is considered as time-varying ones [36]. For speech data, the
+
+
+Figure 1. Self-supervision and regularizations enforce the latent variable of our sequential VAE to be disentangled into a static representation $\mathbf{z}_f$ and a dynamic representation $\mathbf{z}_t$ .
+
+representations of the timbre of speakers and the linguistic contents are expected to be disentangled [27]. There are several benefits of learning disentangled representations. First, the models that produce disentangled representations are more explainable. Second, disentangled representations make it easier and more efficient to manipulate data generation, which has potential applications in entertainment industry, training data synthesis [53, 54] and several downstream tasks [32, 19, 18, 43, 55].
+
+Despite the vast amount of works [24, 33, 6, 15, 16, 7, 30] on disentangled representations of static data (mainly image data), fewer works [27, 36, 23, 46] have explored representation disentanglement for sequential data generation. For unsupervised models, FHVAE [27] and DSVAE [36] elaborately designed model architectures and factorized latent variables into static and dynamic parts. These models may well handle simple data forms such as synthetic animation data but fail when dealing with realistic ones as we will show later. Besides, as pointed out in [37], unsupervised representation disentanglement is impossible without inductive biases. Without any supervision, the performance of disentanglement can hardly be guaranteed and greatly depends on the random seed and the dimensionality of latent vectors set in the models. On the other hand, several works [23, 46] resort to utilizing label information or attribute annotation as strong supervision for disentanglement. For instance, VideoVAE [23] leveraged holistic attributes to constrain latent variables. Nevertheless, the
+
+costly annotation of data is essential for these models and prevents them from being deployed to most real-world applications, in which a tremendous amount of unlabeled data is available.
+
+To alleviate the drawbacks of both unsupervised and supervised models discussed above, this work tackles representation disentanglement for sequential data generation utilizing self-supervision. In self-supervised learning, various readily obtainable supervisory signals have been explored for representation learning of images and videos, employing auxiliary data such as the ambient sounds in videos [41, 3], the egomotion of cameras [1, 29], the geometry cue in 3D movies [20], and off-the-shelf functional models for visual tracking [51], and optical flow [42, 50]. However, how self-supervised learning benefits representation disentanglement of sequential data has barely been explored.
+
+In this paper, we propose a sequential variational autoencoder (VAE), a recurrent version of VAE, for sequence generation. In the latent space, the representation is disentangled into time-invariant and time-varying factors. We address the representation disentanglement by exploring intrinsic supervision signals, which can be readily obtained from both data itself and off-the-shelf methods, and accordingly design a series of auxiliary tasks. Specifically, on one hand, to exclude dynamic information from time-invariant variable, we exploit the temporal order of the sequential data and expect the time-invariant variable of the temporally shuffled data to be close to if not the same as that of the original data. On the other hand, the time-varying variable is expected to contain dynamic information in different modalities. For video data, we allow it to predict the location of the largest motion in every frame, which can be readily inferred from optical flow. For audio data, the volume in each segment as an intrinsic label is leveraged as the supervisory signal. To further encourage the representation disentanglement, the mutual information between static and dynamic variables are minimized as an extra regularization.
+
+To the best of our knowledge, this paper is the first work to explicitly use auxiliary supervision to improve the representation disentanglement for sequential data. Extensive experiments on representation disentanglement and sequence data generation demonstrate that, with these multiple freely accessible supervisions, our model dramatically outperforms unsupervised learning-based methods and even performs better than fully-supervised learning-based methods in several cases.
+
+# 2. Related Work
+
+Disentangled Sequential Data Generation With the success of deep generative models, recent works [24, 33, 6, 7, 30] resort to variational autoencoders (VAEs) [34] and generative adversarial networks (GANs) [22] to learn a dis
+
+entangled representation. Regularizations are accordingly designed. $\beta$ -VAE [24] imposed a heavier penalty on the KL divergence term for a better disentanglement learning. Follow-up researches [33, 6] derived a Total Correlation (TC) from the KL term, and highlights this TC term as the key factor in disentangled representation learning. In InfoGAN [7], the disentanglement of a latent code $c$ is achieved by maximizing a mutual information lower-bound between $c$ and the generated sample $\tilde{x}$ .
+
+Several works involving disentangled representation have been proposed for video prediction. Villegas et al. [48] and Denton et al. [12] designed two networks to encode pose and content separately at each timestep. Unlike video prediction, video generation from priors, which we perform in this work, is a much harder task since no frame is available for appearance and motion modeling in the generation phase.
+
+To handle video generation, VAEs are extended to a recurrent version [17, 4, 10]. However, these models do not explicitly consider static and dynamic representation disentanglement and fail to perform manipulable data generation. More recently, several works have proposed VAEs with factorized latent variables. FHVAE [27] presented a factorized hierarchical graphical model that imposes sequence-dependent priors and sequence-independent priors to different sets of latent variables in the context of speech data, but did not take advantage of the sequential prior. Combining the merits of recurrent VAE and FHVAE, DSVAE [36] is capable of disentangling latent factors by factorizing them into time-invariant and time-dependent parts and applies an LSTM sequential prior to keep a better sequential consistency for sequence generation. Although with elaborately designed complex architectures, these models may only perform decently on representation disentanglement of simple data, the disentanglement performance degrades rapidly when the complexity of data increases. In contrast, our work explores both model and regularization designs for representation disentanglement and sequential data generation. Our model fully factorizes the latent variables to time-invariant and time-varying parts, and both the posterior and the prior of the time-varying variable are modeled by LSTM for dynamic consistency. The auxiliary tasks with readily accessible supervisory signals are designed to regularize and encourage representation disentanglement.
+
+Self-Supervised Learning The concept of self-supervised learning traces back to the autoencoder [25], which uses the input itself as supervision to learn the representation. Denoising autoencoder[49] makes the learned representations robust to noise and partial corruption of the input pattern by adding noise to the input. Recent years have witnessed the booming interest in self-supervised learning. The sources of supervisory signals can be roughly categorized into three classes. (a) Intrinsic labels: Doersch et al. [13] explored
+
+
+Figure 2. The framework of our proposed model in the context of video data. Each frame of a video $\pmb{x}_{1:T}$ is fed into an encoder to produce a sequence of visual features, which is then passed through an LSTM module to obtain the manifold posterior of a dynamic latent variable $\{q(\pmb{z}_t|\pmb{x}_{\leq t})\}_{t=1}^T$ and the posterior of a static latent variable $q(\pmb{z}_f|\pmb{x}_{1:T})$ . The static and dynamic representations $\pmb{z}_f$ and $\pmb{z}_{1:T}$ are sampled from the corresponding posteriors and concatenated to be fed into a decoder to generate reconstructed sequence $\widetilde{\pmb{x}}_{1:T}$ . Three regularizers are imposed on dynamic and static latent variables to encourage the representation disentanglement.
+
+the use of spatial context in images, and Noroozi et al. [40] trained a model to solve Jigsaw puzzles as a pretext task. Several works [52, 35] showed that colorizing a gray-scale photograph can be utilized as a powerful pretext task for visual understanding. Temporal information of video is another readily accessible supervisory signal. [38] trained a model to determine whether a sequence of frames from a video is in the correct temporal order and [31] made the model learn to arrange the permuted 3D spatiotemporal crops. (b) Auxiliary data: Agrawal et al. [1] and Jayaraman et al. [29] exploited the freely available knowledge of camera motion as a supervisory signal for feature learning. Ambient sounds in videos [41, 3] are used as a supervisory signal for learning visual models. The geometry cue in 3D movies [20] is utilized for visual representation learning. (c) Off-the-shelf tools: Wang et al. [51] leveraged the visual consistency of objects from a visual tracker in the video clips. [42] used segments obtained by motion-based segmentation based on optical flow as pseudo ground truth for the single-frame object segmentation. Instead of learning visual features as in aforementioned methods, this work aims to achieve static and dynamic representation disentanglement for sequential data such as video and speech. To this end, we leverage supervisory signals from intrinsic labels to regularize the static representation and off-the-shelf tools to regularize the dynamic representation.
+
+# 3. Sequential VAE Model
+
+We start by introducing some notations and the problem definition. $\mathcal{D} = \{\pmb{X}^i\}^N$ is given as a dataset that consists of $M$ i.i.d. sequences, where $\pmb{X}\equiv \pmb{x}_{1:T} = (x_1,x_2,\dots x_T)$ denotes a sequence of $T$ observed variables, such as a video of $T$ frames or an audio of $T$ segments. We propose a sequential variational autoencoder model, where the sequence is assumed to be generated from latent variable $\pmb{z}$ and $\pmb{z}$ is factorized into two disentangled variables: the time-invariant (or static) variable $\pmb{z}_f$ and the time-varying (or dynamic)
+
+variables $z_{1:T}$
+
+**Priors** The prior of $z_{f}$ is defined as a standard Gaussian distribution: $z_{f} \sim \mathcal{N}(0,1)$ . The time-varying latent variables $z_{1:T}$ follow a sequential prior $z_{t} \mid z_{| Methods | SMMNIST | Sprite | MUG |
| Acc | IS | H(y|x) | H(y) | Acc | IS | H(y|x) | H(y) | Acc | IS | H(y|x) | H(y) |
| MoCoGAN | 74.55% | 4.078 | 0.194 | 0.191 | 92.89% | 8.461 | 0.090 | 2.192 | 63.12% | 4.332 | 0.183 | 1.721 |
| DSVAE | 88.19% | 6.210 | 0.185 | 2.011 | 90.73% | 8.384 | 0.072 | 2.192 | 54.29% | 3.608 | 0.374 | 1.657 |
| baseline | 90.12% | 6.543 | 0.167 | 2.052 | 91.42% | 8.312 | 0.071 | 2.190 | 53.83% | 3.736 | 0.347 | 1.717 |
| full model | 95.09% | 7.072 | 0.150 | 2.106 | 99.49% | 8.637 | 0.041 | 2.197 | 70.51% | 5.136 | 0.135 | 1.760 |
| baseline-sv* | 92.18% | 6.845 | 0.156 | 2.057 | 98.91% | 8.741 | 0.028 | 2.196 | 72.32% | 5.006 | 0.129 | 1.740 |
+
+
+
+
+
+
+Figure 7. Controlled video generation. (a) Video generation controlled by fixing the static variable and randomly sampling dynamic variables from the prior $p(\pmb{z}_{1:T})$ . All sequences share a same identity but with different motions for each dataset. (b) Video generation with changed facial expressions. Expression is changed from smile to surprise and from surprise to disgust in two sequences, respectively. We control it by transferring the dynamic variables smoothly.
+
+
+(b)
+
+$z_{f}$ from the prior $p(z_{f})$ . For Sprite, since the ground truth of both actions and appearance attributes are available, we evaluate the ability of preserving both static and dynamic representations, and report the average scores. It's evident that our full model consistently outperforms all competing methods. For SMNIST, we observe that MoCoGAN have poor ability to correctly generate the digits with given labels while our full model can generate correctly digits, reflected by the high Acc. Note that our full model achieves $99.49\%$ Acc on Sprite, indicating the $z_{f}$ and $z_{t}$ are greatly disentangled. Besides, full model significantly boosts the performance of baseline, especially in MUG where more realistic data is contained, the performance gets giant boost from $53.83\%$ to $70.51\%$ , which illustrates the crucial role of our self-supervision and regularization. For video generation, full model consistently shows the superior performances on IS, $H(y|x)$ , $H(y)$ . Especially in MUG, full model outperforms the runner-up MoCoGAN by $18.6\%$ on IS, demonstrating that high quality of videos generated by our model. Note that our baseline is also compared favorably to DSVAE, illustrating the superiority of the designed sequential VAE model.
+
+It is worth noting that our model with self-supervision full model outperforms baseline-sv in SMMNIST on the representation disentanglement. The possible reason is with the ground truth labels, baseline-sv only encourages $z_{f}$ to
+
+contain identity information but fails to exclude the information in $z_{t}$ , resulting in confusion in digit recognition when using various dynamic variables. For MUG, baseline-sv performs better on preserving motion. We conjecture it's because that the strong supervision of expression labels forces $z_{t}$ to encode the dynamic information, and $z_{f}$ does not favor encoding temporal dynamic information and thus varying $z_{f}$ does not affect the motion much.
+
+Qualitative results We first demonstrate the ability of our model to manipulate video generation in Figure 7. By fixing $z_{f}$ and sampling $z_{t}$ , our model can generate videos with the same object that performs various motions as shown in Figure 7.a. Even in one video, the facial expression can be transferred by controlling $z_{t}$ , as shown in Figure 7.b.
+
+We also evaluate the appearance diversity of generate objects from our model. Figure 6 shows the frames our model generates with sampled $z_{f}$ . The objects with realistic and diverse appearances validate our model's outstanding capability of high-quality video generation.
+
+Besides, we compare our model with MoCoGAN on unconditional video generation on MUG dataset, as shown in Figure 5. The videos are generated with sampled $\boldsymbol{z}_f$ and $\boldsymbol{z}_t$ . MoCoGAN generates videos with many artifacts, such as unrealistic eyes and inconsistent mouth in the third video. Conversely, our model generates more realistic human faces with consistent high-coherence expressions.
+
+Table 2. Ablation study of disentanglement on MUG dataset.
+
+| Methods | Acc | IS | H(y|v) | H(y) |
| No LSCC | 61.45% | 4.850 | 0.201 | 1.734 |
| No LDFP | 58.32% | 4.423 | 0.284 | 1.721 |
| No LMI | 66.07% | 4.874 | 0.175 | 1.749 |
| Full model | 70.51% | 5.136 | 0.135 | 1.760 |
+
+# 5.1.4 Ablation Studies
+
+In this section, we present an ablation study to empirically measure the impact of each regularization of our model on its performance. The variant without a certain regularizaion is denoted as $N o\mathcal{L}_X$ . In Table 2, we report the quantitative evaluation. We note that $N o\mathcal{L}_{SSC}$ performs worse than the full model. This illustrates the significance of the static consistency constraint to make $z_{f}$ to be disentangled from $z_{t}$ . $N o\mathcal{L}_{DFP}$ degrades the performance on $Acc$ considerably, indicating that $\mathcal{L}_{DFP}$ as regularization is crucial to preserve the action information in the dynamic vector. Besides, after removing the mutual information regularization, $N o\mathcal{L}_{MI}$ again shows an inferior performance to the full model. A possible explanation is that our $\mathcal{L}_{MI}$ encourages that $z_{t}$ excludes the appearance information; thus the appearance information is only from $z_{f}$ . The qualitative results shown in Figure 8 confirms this analysis. We generate a video with $z_{f}$ of the woman and $z_{t}$ of the man in the first row by different variants of our model. Without $\mathcal{L}_{MI}$ , some characteristics of the man are still preserved, such as the beard, confirming that the appearance information partially remains in $z_{t}$ . In the results of $N o\mathcal{L}_{SSC}$ , the beard is more evident, indicating that the static and dynamic variable are still entangled. On the other hand, without $\mathcal{L}_{DFP}$ , the woman in the generated video cannot mimic the action of the man well, which indicates the dynamic variable does not encode the motion information properly. Finally, the person in the generated video of baseline neither preserves the appearance of the woman nor follows the expression of the man. It illustrates the representation disentanglement without any supervision remains a hard task.
+
+# 5.2. Experiments on Audio Data
+
+To demonstrate the general applicability of our model on sequential data, we conduct experiments on audio data, where the time-invariant and time-varying factors are the timbre of a speaker and the linguistic content of a speech, respectively. The dataset we use is TIMIT, which is a corpus of phonemically and lexically transcribed speech of American English speakers of different sexes and dialects [21], and contains 63000 recordings of read speeches. We split the dataset to training and testing subsets with a ratio of 5:1. As in [27], all the speech are presented as a sequence of 80 dimensional Mel-scale filter bank features.
+
+We quantitatively compare our model with FHVAE and DSVAE on the speaker verification task based on either $\mathbf{z}_f$ or $\mathbf{z}_{1:T}$ , measured by the Equal Error Rate(EER) [8]. Note
+
+
+Figure 8. Ablation study on MUG dataset. The first frame of the appearance video and the motion video are shown in the first row.
+
+Table 3. Performance comparison on speaker verification. Small errors are better for $\mathbf{z}_f$ and large errors are expected for $\mathbf{z}_{1:T}$ .
+
+| model | feature | dim | EER |
| FHVAE | zf | 16 | 5.06% |
| DSVAE | zf | 64 | 4.82% |
| z1:T | 64 | 18.89% |
| Ours | zf | 64 | 4.80% |
| z1:T | 64 | 40.12% |
+
+that we expect the speaker can be correctly verified with $z_{f}$ as it encodes the timbre of speakers, and randomly guess with $z_{1:T}$ as it ideally only encodes the linguistic content. The results are shown in Table 3. Our model outperforms competing methods in both cases. Especially when based on $z_{1:T}$ , our model doubles the score of the baseline, indicating our model significantly eliminate the timbre information in $z_{1:T}$ .
+
+# 6. Conclusion
+
+We propose a self-supervised sequential VAE, which learns disentangled time-invariant and time-varying representations for sequential data. We show that, with readily accessible supervisory signals from data itself and off-the-shelf tools, our model can achieve comparable performance to the fully supervised models that require costly human annotations. The disentangling ability of our model is qualitatively and quantitatively verified on four datasets across video and audio domains. The appealing results on a variety of tasks illustrate that, leveraging self-supervision is a promising direction for representation disentanglement and sequential data generation. In the future, we plan to extend our model to high-resolution video generation, video prediction and image-to-video generation.
+
+# References
+
+[1] Pulkit Agrawal, Joao Carreira, and Jitendra Malik. Learning to see by moving. In Proceedings of the IEEE International Conference on Computer Vision, pages 37-45, 2015. 2, 3
+[2] N. Aifanti, C. Papachristou, and A. Delopoulos. The mug facial expression database. In 11th International Workshop on Image Analysis for Multimedia Interactive Services WIAMIS 10, pages 1-4, April 2010. 5
+[3] Relja Arandjelovic and Andrew Zisserman. Look, listen and learn. In Proceedings of the IEEE International Conference on Computer Vision, pages 609-617, 2017. 2, 3
+[4] Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014. 2
+[5] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798-1828, 2013. 1
+[6] 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. 1, 2, 5
+[7] 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. 1, 2
+[8] Mohamed Chenafa, Dan Istrate, Valeriu Vrabie, and Michel Herbin. Biometric system based on voice recognition using multiclassifiers. In European Workshop on Biometrics and Identity Management, pages 206-215. Springer, 2008. 8
+[9] Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. 3
+[10] Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pages 2980-2988, 2015. 2
+[11] Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. arXiv preprint arXiv:1802.07687, 2018. 5
+[12] Emily L Denton et al. Unsupervised learning of disentangled representations from video. In Advances in neural information processing systems, pages 4414-4423, 2017. 2
+[13] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 1422-1430, 2015. 2
+[14] Xuanyi Dong, Yan Yan, Wanli Ouyang, and Yi Yang. Style aggregated network for facial landmark detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 379-388, 2018. 4
+[15] Babak Esmaeili, Hao Wu, Sarthak Jain, Alican Bozkurt, Narayanaswamy Siddharth, Brooks Paige, Dana H Brooks,
+
+Jennifer Dy, and Jan-Willem van de Meent. Structured disentangled representations. arXiv preprint arXiv:1804.02086, 2018. 1
+[16] Babak Esmaeili, Hao Wu, Sarthak Jain, N Siddharth, Brooks Paige, and Jan-Willem Van de Meent. Hierarchical disentangled representations. stat, 1050:12, 2018. 1
+[17] Otto Fabius and Joost R van Amersfoort. Variational recurrent auto-encoders. arXiv preprint arXiv:1412.6581, 2014. 2
+[18] 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 European Conference on Computer Vision (ECCV). Springer, 2018. 1
+[19] Deng-Ping Fan, Wenguan Wang, Ming-Ming Cheng, and Jianbing Shen. Shifting more attention to video salient object detection. In IEEE CVPR, 2019. 1
+[20] 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, 3
+[21] John S Garofolo, L F Lamel, W M Fisher, Jonathan G Fiscus, D S Pallett, and Nancy L Dahlgren. Darpa timit acoustic-phonetic continuous speech corpus cd-rom {TIMIT}. Technical report, 1993. 8
+[22] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. 2
+[23] 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 (ECCV), pages 452-467, 2018. 1, 6
+[24] Irina Higgins, Loic McThay, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew M Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In ICLR, 2017. 1, 2
+[25] Geoffrey E Hinton and Richard S Zemel. Autoencoders, minimum description length and helmholtz free energy. In Advances in neural information processing systems, pages 3-10, 1994. 2
+[26] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997. 3
+[27] Wei-Ning Hsu, Yu Zhang, and James Glass. Unsupervised learning of disentangled and interpretable representations from sequential data. In Advances in neural information processing systems, pages 1878-1889, 2017. 1, 2, 8
+[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 Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2462-2470, 2017. 4
+[29] Dinesh Jayaraman and Kristen Grauman. Learning image representations tied to ego-motion. In Proceedings of the
+
+IEEE International Conference on Computer Vision, pages 1413-1421, 2015. 2, 3
+[30] Insu Jeon, Wonkwang Lee, and Gunhee Kim. Ib-gan: Disentangled representation learning with information bottleneck gan. 2018. 1, 2
+[31] Longlong Jing and Yingli Tian. Self-supervised visual feature learning with deep neural networks: A survey. arXiv preprint arXiv:1902.06162, 2019. 3
+[32] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017. 1
+[33] Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018. 1, 2
+[34] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 2
+[35] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Colorization as a proxy task for visual understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6874-6883, 2017. 3
+[36] Yingzhen Li and Stephan Mandt. Disentangled sequential autoencoder. arXiv preprint arXiv:1803.02991, 2018. 1, 2, 5, 6
+[37] Francesco Locatello, Stefan Bauer, Mario Lucic, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In ICML, 2019. 1
+[38] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In European Conference on Computer Vision, pages 527-544. Springer, 2016. 3
+[39] Hyeonwoo Noh, Seunghoon Hong, and Bohyung Han. Learning deconvolution network for semantic segmentation. In Proceedings of the IEEE international conference on computer vision, pages 1520-1528, 2015. 3
+[40] Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European Conference on Computer Vision, pages 69-84. Springer, 2016. 3
+[41] 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, 3
+[42] Deepak Pathak, Ross Girshick, Piotr Dólar, Trevor Darrell, and Bharath Hariharan. Learning features by watching objects move. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2701-2710, 2017. 2, 3
+[43] 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
+[44] 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. 6
+
+[45] Aliaksandr Siarohin, Stéphane Lathuilière, Sergey Tulyakov, Elisa Ricci, and Nicu Sebe. Animating arbitrary objects via deep motion transfer. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 5
+[46] Ximeng Sun, Huijuan Xu, and Kate Saenko. A two-stream variational adversarial network for video generation. arXiv preprint arXiv:1812.01037, 2018. 1
+[47] 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. 5
+[48] Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. arXiv preprint arXiv:1706.08033, 2017. 2
+[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. 2
+[50] Jiangliu Wang, Jianbo Jiao, Linchao Bao, Shengfeng He, Yunhui Liu, and Wei Liu. Self-supervised spatio-temporal representation learning for videos by predicting motion and appearance statistics. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[51] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In Proceedings of the IEEE International Conference on Computer Vision, pages 2794-2802, 2015. 2, 3
+[52] Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European conference on computer vision, pages 649-666. Springer, 2016. 3
+[53] Yizhe Zhu, Mohamed Elhoseiny, Bingchen Liu, Xi Peng, and Ahmed Elgammal. A generative adversarial approach for zero-shot learning from noisy texts. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1004-1013, 2018. 1
+[54] Yizhe Zhu, Jianwen Xie, Bingchen Liu, and Ahmed Elgammal. Learning feature-to-feature translator by alternating back-propagation for generative zero-shot learning. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2019. 1
+[55] Yizhe Zhu, Jianwen Xie, Zhiqiang Tang, Xi Peng, and Ahmed Elgammal. Semantic-guided multi-attention localization for zero-shot learning. In Thirty-third Conference on Neural Information Processing Systems (NeurIPS), Dec 2019. 1
\ No newline at end of file
diff --git a/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/images.zip b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ec98ca06991b557d47b97aa22d058ecc8ebdefa7
--- /dev/null
+++ b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed8ea0108cf9b1ca12011f09bbce7aa48d3de22c2772139f4d35236c76d4f437
+size 542096
diff --git a/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/layout.json b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..955ee4a196a63781886b6103bc71cf1f434f2da9
--- /dev/null
+++ b/s3vaeselfsupervisedsequentialvaeforrepresentationdisentanglementanddatageneration/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:820e66771cbb81c2bb56737c1e843c17c971bc387652d457d190703ae1a84ae8
+size 443826
diff --git a/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_content_list.json b/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..36c6fc5f83fa9136a7b90cf5e12b9bd84b759710
--- /dev/null
+++ b/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6813d5eebcf3f032673ee63c4c3df71857c9f6fb456843998688dc0122521448
+size 73252
diff --git a/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_model.json b/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8fbb2fc127044ed6abc9c8dd5078ce088e2d3e6a
--- /dev/null
+++ b/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0fda5ce88afc373c85c365b623b637a8d33dbd0da2c089c1052ec2c9fc32c8f5
+size 86388
diff --git a/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_origin.pdf b/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..13220064387c7f6e704be243436678bc1b993a66
--- /dev/null
+++ b/saccadenetafastandaccurateobjectdetector/472f3145-4a28-4e80-82bf-ab5a0e9f23f7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c093f5cb89fbac0b0b36ceb76ef1c60202461aa4942d5bcd158fe92351b012e
+size 554657
diff --git a/saccadenetafastandaccurateobjectdetector/full.md b/saccadenetafastandaccurateobjectdetector/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9f5e9e38e096a4888e6de2f1087a87b842796aac
--- /dev/null
+++ b/saccadenetafastandaccurateobjectdetector/full.md
@@ -0,0 +1,288 @@
+# SaccadeNet: A Fast and Accurate Object Detector
+
+Shiyi Lan $^{1*}$ Zhou Ren $^{2}$ Yi Wu $^{2}$ Larry S. Davis $^{1}$ Gang Hua $^{2}$
+
+$^{1}$ University of Maryland, College Park $^{2}$ Wormpex AI Research
+
+sylan@cs.umd.edu, lsd@umiacs.umd.edu, {renzhou200622, ywu.china, ganghua}@gmail.com
+
+# Abstract
+
+Object detection is an essential step towards holistic scene understanding. Most existing object detection algorithms attend to certain object areas once and then predict the object locations. However, neuroscientists have revealed that humans do not look at the scene in fixed steadiness. Instead, human eyes move around, locating informative parts to understand the object location. This active perceiving movement process is called saccade.
+
+Inspired by such mechanism, we propose a fast and accurate object detector called SaccadeNet. It contains four main modules, the Center Attentive Module, the Corner Attentive Module, the Attention Transitive Module, and the Aggregation Attentive Module, which allows it to attend to different informative object keypoints, and predict object locations from coarse to fine. The Corner Attentive Module is used only during training to extract more informative corner features which brings free-lunch performance boost. On the MS COCO dataset, we achieve the performance of $40.4\%$ mAP at 28 FPS and $30.5\%$ mAP at 118 FPS. Among all the real-time object detectors, our SaccadeNet achieves the best detection performance, which demonstrates the effectiveness of the proposed detection mechanism.
+
+# 1. Introduction
+
+The human visual system is accurate and fast. As the first gate to perceive the physical world, our visual system glances at a scene and immediately understands what objects are there and where they are. This efficient and effective vision system enables human to perceive the visual world with little conscious thought. In machine intelligence, similarly a fast and accurate object detector is essential, which can allow machines to perceive the physical world efficiently and effectively, and unlock subsequent processes such as understanding the holistic scene and interacting within it.
+
+
+Figure 1. Performance comparison on COCO test-dev. SaccadeNet outperforms all previous fast detectors [31, 16, 1, 22]. Best viewed in color.
+
+Many recent algorithms have been proposed to advance object detection. On the one hand, anchor-based methods [24, 23, 16, 18, 7] proposed to pre-define a large amount of anchor locations, and then either directly regress object bounding box locations, or generate region proposals based on anchors and decide whether each region contains a certain object category. These methods usually achieve competitive performance since they aggregate detailed image features within each region. However, the time-consuming region proposal stage is an bottleneck of inference speed.
+
+On the other hand, researchers proposed anchor-free detectors [13, 32, 5, 31]. This type of methods proposed to directly regress object locations by utilizing features at certain pre-defined object keypoints, either in the object center or on the bounding box edges. Most edge keypoints based methods are not fast because of the time-consuming grouping process that combines multiple detected keypoints to form a single object bounding box. The recent proposed center keypoint based detectors [31] avoid the complex
+
+grouping process and run much faster.
+
+Most existing object detection algorithms steadily attend to certain object areas only once and then predict the object locations. During this one time of scanning for objects, different algorithms attend to different areas, either to the anchor boxes, to the proposed object regions, to the center keypoint, or to the edge keypoints. However, neuroscientists have revealed that [4], to understand an object's location, human do not look at the scene steadily. Instead, our eyes move around, locating informative parts to understand the object location.
+
+Inspired by such mechanism, we propose a fast and accurate object detector, named SaccadeNet, which effectively attends to informative object keypoints, and predicts object locations from coarse to fine. Our SaccadeNet contains four main modules: the Center Attentive Module, the Corner Attentive Module, the Attention Transitive Module, and the Aggregation Attentive Module. The Center Attentive Module predicts the object center location and category. Meanwhile, for each predicted object center, Attention Transitive Module is used to predict the rough location of corresponding bounding box corners. To extract informative corner features, the Corner Attentive Module is used to enforce the CNN backbone to pay more attention to object boundaries, so that the regressed bounding boxes are more accurate. Finally, the Aggregation Attentive Module utilizes the features aggregated from both the center and the corners to refine the object bounding boxes.
+
+SaccadeNet adopts multiple object keypoints including the center point and the corners, which encode and extract multiple levels of rich-detailed objects features. Moreover, it barely has speed loss comparing to the fastest center keypoint based detectors, since we predict object center and its corresponding corners jointly. Thus we do not need a grouping algorithm to combine them. Extensive experiments on the PASCAL VOC and MS COCO datasets have shown that SaccadeNet is fast and accurate. As shown in Figure 1, on COCO dataset when using ResNet-18 [9, 34] as the backbone SaccadeNet achieves mAP of $30.5\%$ at 118 FPS. With DLA-34 [28], SaccadeNet achieves $40.4\%$ mAP at 28 FPS, which is much better than other real-time detectors [22, 31].
+
+# 2. Related Work
+
+Modern object detectors can be roughly divided into two categories: anchor-based object detectors and anchor-free object detectors.
+
+# 2.1. Anchor-based Detectors
+
+After the seminal work of Faster R-CNN [24], anchors have been widely used in modern detectors. It usually contains two stages. The first-stage module is a region proposal network (RPN), which estimates the objectness probabilities of all anchors and regresses the offsets between object
+
+boundaries and anchors. The second stage is R-CNN, which predicts the category probability and refines the boundary of bounding box.
+
+Recently, anchor-based one-stage approaches [23, 16, 18, 7, 30, 29] have drawn much attention in object detection because the architectures are simpler and usually run faster [23]. They remove the RPN and directly predict the categories and regress the boxes of candidate anchors. However, the performance of anchor-based one-stage detectors are usually lower than multi-stage detectors due to the extreme imbalance between positive and negative anchors during training.
+
+# 2.2. Anchor-free Detectors
+
+Recently, anchor-free detectors have become more and more popular [10, 22, 33, 26, 12, 19, 31, 13, 5, 32, 27]. They avoid the complex design of anchors and usually run faster. The object detection is usually formulated as a keypoint detection problem so that the techniques of fully convolutional network (FCN) used in semantic segmentation [20] and pose estimation [21] can be applied for detection [31].
+
+YOLOv1 [22] is one of the most popular anchor-free detectors. On each location of final layer of network, it predicts the bounding box, confidence of the box, and the class probability. In DenseBox [10], Huang et.al extend the FCN [20] for face and car detection. The ground truth is a 5-channel map where the first one is a binary mask for the center of object and the other four are for the bounding box size.
+
+After the seminal work of CornerNet [13], keypoint based anchor-free object detectors have drawn much attention. In CornerNet, the FCN directly predicts the corner heatmap, an embedding and a group of offsets for each corner. The embeddings are used to group the pairs of corner to form bounding boxes and the offsets remap the corners from low-resolutional heatmap to the high-resolutional input image. A corner pooling layer is proposed to better localize corners. ExtremeNet [32] introduces a method that predicts the extreme points instead of the corners of bounding box, and the centerness heatmap is introduced for grouping step. In [5], Duan et.al. extend CornerNet by adding a center keypoint. The center keypoint is used to define a central region heuristically and then they use this region to refine the grouped corners.
+
+To avoid the complex grouping process, CenterNet [31] directly predicts the center keypoint and the size of object. Furthermore, it replaces IoU-based Non-Maximum Suppression (NMS) by peak keypoint extraction which can be run on GPU to reduce inference time. In [26] centerness is used to represent the objectiveness of the bounding box predicted at each location. In RepPoints [2], a set of sample points is learned to bound the spatial extent of an object
+
+
+Figure 2. In SaccadeNet, we utilize 5 keypoints as informative parts for detection: the object center and 4 bounding box corners. After the CNN backbone, as in the middle branch, the Center Attentive Module focuses at predicting the object center keypoint; then the Attention Transitive Module in the bottom switches the attention from object center to estimate rough location of object corners. After that, the Aggregation Attentive Module uses information aggregated from both center and corner keypoints, and predicts a refined location of objects. Moreover, in order to obtain informative corner features, the Corner Attentive Module is used (in training only) to enforce the CNN backbone to pay more attention to object boundaries, as shown in the top branch.
+
+under the keypoint prediction framework.
+
+# 3. SaccadeNet
+
+It has been discovered that human eyes pick up informative parts to understand object locations instead of looking at every detail of objects [4], which makes it fast and accurate. To balance the trade-off between speed and accuracy, on top of the object center point, we use four object bounding box corner points as the informative keypoints in SaccadeNet since it naturally defines the bounding box position. SaccadeNet attends to these informative keypoints sequentially and then aggregates their features to infer accurate object locations. In this section, we will introduce four main modules of SaccadeNet respectively: the Center Attentive Module (Center-Attn), the Attention Transitive Module (Attn-Trans), the Aggregation Attentive Module (Aggregation-Attn), and the Corner Attentive Module (Corner-Attn) used in training.
+
+# 3.1. Center Attentive Module
+
+Center-Attn provides SaccadeNet the first sight of an object at its center and predicts object center keypoints. It takes the feature from CNN backbone as input and predicts the centerness heatmap. The centerness heatmap is used to estimate the categories and the center locations of all objects in the image. The number of channels in centerness heatmap is the number of categories. Figure 2 shows Center-Attn together with its output. In Center-Attn, it contains 2 convolutional layers. This 2-convolutional structure is called head module. It is a basic component for building other modules of SaccadeNet. We will describe it in details in Section 4.
+
+We use the Gaussian heatmap as ground truth [13]. The ground-truth heatmap for keypoints is not defined as either
+
+0 or 1 because locations near the target keypoint should get less penalization than locations far away. Suppose the keypoint is at location $X_{k}$ , the value at location $X$ on the ground-truth heatmap is defined as $e^{\frac{\|X - X_k\|^2}{2\sigma^2}}$ . $\sigma$ is set to $1/3$ of the radius, which is determined by the size of objects to ensure that all locations inside the area could generate a bounding box with at least $t$ IoU with the ground-truth annotations. We follow the previous work [13, 5, 31] and set $t$ as 0.3.
+
+Besides, a variant of focal loss [16] is applied to assist the Gaussian heatmap:
+
+$$
+L _ {i, j} ^ {h m} = \left\{ \begin{array}{l l} (1 - p _ {i, j}) ^ {\alpha} \log (p _ {i, j}), & \text {i f y _ {i , j} = 1} \\ (1 - y _ {i, j}) ^ {\beta} (p _ {i, j}) ^ {\alpha} \log (1 - p _ {i, j}) & \text {o t h e r w i s e} \end{array} \right.
+$$
+
+where $p_{i,j}$ is the score at location $(i,j)$ of heatmap and $y_{i,j}$ is the corresponding ground truth value.
+
+# 3.2. Attention Transitive Module
+
+Attn-Transpredicts the corners for all locations of the deep feature map. The output shape is $w_{f} \times h_{f} \times 2$ for a single image, where $w_{f}, h_{f}$ indicate the width and the height of feature map, respectively. The last dimension is designed to be 2 meaning the width and height of the bounding box. After we get the width and height of bounding box for each center at location $(i,j)$ , we can compute the corresponding corners as $(i - w_{i,j} / 2, j - h_{i,j} / 2), (i - w_{i,j} / 2, j + h_{i,j} / 2), (i + w_{i,j} / 2, j - h_{i,j} / 2), (i + w_{i,j} / 2, j + h_{i,j} / 2)$ . In training, we adopt the L1 regression loss. With Center-Attn and Attn-Trans, SaccadeNet can generate object detections with coarse boundary.
+
+# 3.3. Aggregation Attentive Module
+
+Aggregation-Attn is proposed to attend to object center and bounding box corners again to predict a refined loca
+
+tion. As shown in Figure 2, it aggregates CNN features from corner and center keypoints using bilinear interpolation and outputs more accurate object bounding boxes. As shown in the experiments Section 4.3.1, Aggregation-Attn is essential for us to obtain more accurate boundary.
+
+Aggregation-Attn is a light-weight module for object boundary refinement. Let $w_{i,j}, h_{i,j}$ indicate the width and height prediction at $(i,j)$ . Then, we calculate the corresponding top-left, top-right, bottom-left, bottom-right corners centering at position $(i,j)$ by $(i - w_{i,j} / 2, j - h_{i,j} / 2), (i + w_{i,j} / 2, j - h_{i,j} / 2), (i - w_{i,j} / 2, j + h_{i,j} / 2), (i + w_{i,j} / 2, j + h_{i,j} / 2)$ . Since previous work [8] shows that bilinear sampling is helpful for the downsampled feature map, Aggregation-Attn takes the corners and center from the output of Attn-Trans, Center-Attn and samples features from the backbone output by bilinear interpolation. The structure of Aggregation-Attn is a revised head module. We change the input of the first convolutional layer and let it take features of center and corners of object as input.
+
+Finally, Aggregation-Attn regresses the residual offsets to refine the boundary of objects by incorporating both the features from the corners and the center. The output of Aggregation-Attn consists of residual width and residual height. We adopt L1 loss to train this module.
+
+# 3.4. Corner Attentive Module in Training
+
+To extract informative corner features, we propose an auxiliary Corner-Attn branch (only in training) to enforce the CNN backbone to learn discriminative corner features. As shown in Figure 2, Corner-Attn uses one head module to process feature and output 4-channel heatmap including top-left, top-right, bottom-left, bottom-right corners. Note that this branch is used only during training so that it is a free lunch for the increased inference accuracy.
+
+The training of Corner-Attn is also based on the focal loss and Gaussian heatmap. We tried agnostic and non-agnostic heatmaps, meaning whether different object categories share the same corner heatmap output or not. In our experiments, there is no significant difference between their performance. For shorter training time and easier implementation, we use agnostic heatmaps for Corner-Attn in our experiments.
+
+# 3.5. Relation to existing methods
+
+We will compare our work with other related work to address one of our contributions: SaccadeNet solves the issue of lacking holistic perception existed in edge-keypoint-based detectors and the issue of missing local details presented in center-keypoint-based detectors.
+
+Edge-keypoint-based detectors infer objects by assembling edge-keypoints, like corners [13] or extreme keypoints [32]. They first predict edge keypoints and then use the grouping algorithm to generate object proposals.
+
+There are two possible problems that may make cornerkeypoint-based fail to model holistic information: (a) Feature of corner encodes less holistic information since most corner-keypoint-based detectors [32, 5] still need feature of centers to assemble corner keypoints. (b) Corner keypoints often locate at background pixels which may encode less information than center keypoints do. Although SaccadeNet also utilizes corner keypoints for bounding box estimation, it is still able to capture holistic by inferring bounding boxes directly from center keypoints. Meanwhile, SaccadeNet is very fast since it avoids the time-consuming grouping.
+
+Center-keypoint-based detectors propose objects from center points [31]. It outputs center heatmap and regresses boundary directly. However, center point may be far from the boundary of object so they may fail to estimate accurate boundary on some cases, especially for the large objects (as shown in Figure 3). On the other hand, corner keypoints are naturally proximal to the boundaries, so it may encode more local accurate information. Lack of modeling corners may be harmful for the center-keypoint-based detectors. Therefore, SaccadeNet utilizes corner keypoints to alleviate this issue so that it can estimate more accurate boundary.
+
+SaccadeNet bridges the gap between edge-keypoint-based detectors and center-keypoint-based detectors.
+
+# 4. Experiments
+
+The experiments are conducted on 2 datasets, PASCAL VOC 2012 [6] and MS COCO [17]. MS COCO dataset contains 80 categories, including 105k images for training (train2017) and 5k images for validation (val2017). Pascal VOC consists of 20 categories and it contains a training set of 17k images and a validation set of 5k images. This setting is the same as previous work [13, 5, 8, 31].
+
+# 4.1. Implementation
+
+**Backbone.** Our backbone consists of down-sampling layers and up-sampling layers. The down-sampling layers are from the CNN for image recognition, e.g. [28, 9]. The up-sampling layers use a couple of convolutional layers and skip connections to fuse high-level and low-level feature, e.g. [15]. We choose DLA-34 [28] and ResNet-18 [9] as the down-sampling backbone and use the up-sampling layers adopted in CenterNet [31], where deformable convolutions [34] are used. The size of the backbone output is $1/4$ of the input. The high-resolution output helps SaccadeNet recognize and locate small objects. For fair comparison and to illustrate the effectiveness of SaccadeNet, we keep all the settings of backbone the same as [31].
+
+Head module. The head module is the basic component of building four modules of SaccadeNet as illustrated in Figure 2. We use the unified structure of 2 convolutional layers for all the head modules. The first convolutional layer is followed by a ReLU layer with a kernel
+
+size of $3 \times 3$ and 256-dimension output channels. The second convolutional layer uses a $1 \times 1$ kernel without activation function. Center-Attn contains one head module. The number of output channels of this module depends on the number of categories, e.g. 20 for Pascal VOC, 80 for MS COCO. Corner-Attn contains one head module which outputs a 4-channel heatmap representing the agnostic heatmap of 4 corner keypoints. Corner-Attn contains 2 head modules with 2-channel output, indicating the two directional center offset and the width and height of object, respectively. Aggregation-Attn contains one module with output of 2 channels denoting the residual offsets of width and height of object. The number of parameters of each head module is less than 200k.
+
+Training. Our experiments were conducted on a machine with 4 GPUs of Geforce RTX 2080 Ti. It takes 10 days to train SaccadeNet-DLA34 and 5 days to train SaccadeNet-Res18. We use Adam [11] for network optimization. For data augmentation, we apply random flipping, random scaling (range from 0.6 to 1.3), cropping and color jittering. On MS COCO dataset, the size of input to the network is $512 \times 512$ . We use a batch size of 32 (8 images on each GPU) with the initial learning rate of $1.25 \times 10^{-4}$ for 210 epochs. The learning rate is dropped to $1.25 \times 10^{-5}$ at the 181-th epoch. The same training settings are used for CenterNet [31]. We use different loss weights for the losses. The loss weights for $L_{Center - Attn}$ , $L_{Center - Attn}$ and $L_{Aggregation - Attn}$ are 1, 1, 0.1, respectively. Corner-Attn outputs center offsets and the center-corner offsets. We use 0.1 for the loss weight of center offsets. On PASCAL VOC 2012, we use a batch size of 32 on single GPU for training and the input shape of the network is $384 \times 384$ . We set the initial learning rate to $1.25 \times 10^{-4}$ for 70 epochs. The learning rate is decreased to $1.25 \times 10^{-5}$ , $1.25 \times 10^{-6}$ at the 46-th epoch, 61-th epoch, respectively. All the other settings are kept the same as our experiments on MS COCO dataset for training. We use the parameters pretrained on ImageNet [3] dataset to initialize the down-sampling layers. The parameters of up-sampling layers of backbone and head modules are randomly initialized.
+
+Inference. On MS COCO dataset, the size of input image is $512 \times 512$ . Flipped testing is optional for better performance. When the flipped and the original images are both used as inputs, we average the outputs of Center-Attn, Corner-Attn, Aggregation-Attn. For higher speed, we use peak-picking NMS proposed in [31] instead of IoU-based NMS for post-processing. Peak-picking NMS is a $3 \times 3$ pooling-like operator, which eliminates all non-peak activation. After NMS, we select the object proposals with top-100 centerness scores provided by Center-Attn. For Pascal VOC, we do not apply data augmentation for testing. We use Peak-picking NMS instead of IoU-based NMS.
+
+# 4.2. Comparison with State-of-the-art Methods
+
+Table 1 shows the comparison results of our approaches with previous work. SaccadeNet achieves state-of-the-art performance with higher speed.
+
+SaccadeNet-DLA34 achieves $40.4\mathrm{mAP}$ at 28 FPS. It outperforms CenterNet-DLA34 [31] by $1.2\%$ AP without visible speed loss due to the light-weight head modules. Besides, our approach outperforms the classic two-stage detector, MaskRCNN [8]. Meanwhile, we achieve approximately 3 times speed of it. Compared with RetinaNet [16], SaccadeNet-DLA34 performs approximately 4 times faster with only $0.4\%$ drop in accuracy. As shown in Table 1, SaccadeNet-DLA34 is faster and much more accurate than YOLOv3 [23]. We compare the results of SaccadeNet-DLA34 and CenterNet-DLA34 [31] with different IoU thresholds and of different sizes. The average precision gains $+0.5$ , $+0.7$ of IoU@0.5, IoU@0.7 and gains $+0.5$ , $+0.8$ , $+1.4$ of objects with small, medium, large size, respectively. SaccadeNet benefits more for high-IoU and large object proposals than others. We will study how Aggregation-Attn and Corner-Attn affect the object proposals of different quality and various size in Section 4.3.1. Figure 3 shows the qualitative results of SaccadeNet and CenterNet. With the help of Aggregation-Attn, SaccadeNet is able to locate more accurate boundaries of objects.
+
+Another version of our approach is based on ResNet-18 with deformable convolutions. SaccadeNet-Res18 is the first real-time anchor-free detector that achieves more than $30\%$ mAP on MS COCO val2017 with speed faster than 100 FPS.
+
+# 4.2.1 Efficiency Study
+
+We will discuss 4 main factors of efficiency: backbone, head modules, data augmentation, non-maximum suppression.
+
+Backbone. We use DLA-34 [28] and ResNet-18 [9] with additional up-sampling layers used in CenterNet [31] as backbone. DLA-34 runs at 18.4 ms per image. ResNet-18 runs at 6.8 ms per image. The total inference time of SaccadeNet with DLA-34 and ResNet-18 is 20 ms, 8.5 ms per image, respectively. The efficiency of backbone is the major bottleneck of speed.
+
+Head modules. There are $64 \times 256 \times 3 \times 3 + 256 \times C_{out}$ parameters for each head module, where $C_{out}$ denotes the number of output channels. There are only 3 head modules during inference. The largest head module is the predictor of Center-Attn, which only contains 168k parameters. The only concern is that the inputs of Aggregation-Attn depend on the outputs of Center-Attn and Corner-Attn. It may cause sequential execution that may increase the inference time. Fortunately, the execution turns out to be very fast. The inference time of all the head modules is much smaller
+
+ | Backbone | FPS | AP | \(AP_{50}\) | \(AP_{75}\) | \(AP_S\) | \(AP_M\) | \(AP_L\) |
| TridentNet [14] | ResNet-101-DCN | 0.7 | 48.4 | 69.7 | 53.5 | 31.8 | 51.3 | 60.3 |
| SNIPER [25] | DPN-98 | 2.5 | 46.1 | 67.0 | 51.6 | 29.6 | 48.9 | 58.1 |
| MaskRCNN [8] | ResNeXt-101 | 11 | 39.8 | 62.3 | 43.4 | 22.1 | 43.2 | 51.2 |
| RetinaNet [16] | ResNeXt-101-FPN | 5.4 | 40.8 | 61.1 | 44.1 | 24.1 | 44.2 | 51.2 |
| YOLOv3 [23] | DarkNet-53 | 20 | 33.0 | 57.9 | 34.4 | 18.3 | 25.4 | 41.9 |
| HSD [1] | ResNet101 | 21 | 40.2 | 58.2 | 44.0 | 20.0 | 44.4 | 54.9 |
| HSD [1] | VGG16 | 23 | 38.8 | 58.2 | 42.5 | 21.8 | 41.9 | 50.2 |
| ExtremeNet [32] | Hourglass-104 | 3.1 | 40.2 | 55.5 | 43.2 | 20.4 | 43.2 | 53.1 |
| CornerNet [13] | Hourglass-104 | 4.1 | 40.5 | 56.5 | 43.1 | 19.4 | 42.7 | 53.9 |
| CenterNet [31] | DLA-34-DCN | 52/28 | 37.4/39.2 | -/57.1 | -/42.8 | -/19.9 | -/43.0 | -/51.4 |
| *CenterNet [31] | ResNet-18-DCN | 142/71 | 28.1/30.0 | 44.9/47.5 | 29.6/31.6 | -/- | -/- | -/- |
| SaccadeNet | DLA-34-DCN | 50/28 | 38.5/40.4 | 55.6/57.6 | 41.4/43.5 | 19.2/20.4 | 42.1/43.8 | 50.6/52.8 |
| *SaccadeNet | ResNet-18-DCN | 118/67 | 30.5/32.5 | 46.7/48.9 | 32.6/34.7 | 12.0/13.9 | 33.9/36.2 | 45.8/47.9 |
+
+Table 1. The experiments are conducted on MS COCO test-dev. SaccadeNet-DLA outperforms CenterNet-DLA by $1.2\%$ mAP with little overhead. This is the first detector that achieves more than $40\%$ mmAP on MS COCO test-dev with more than 25 FPS. SaccadeNet-Res18 outperforms CenterNet-Res18 by $2.4\%$ mAP with small overhead. We show naive/flip testing results of CenterNet and SaccadeNet. A dash indicates the method doesn't provide the result. * means the experiments are conducted on MS COCO val2017.
+
+
+SaccadeNet
+
+
+
+
+
+
+Figure 3. Qualitative Results of SaccadeNet and CenterNet [31]. The images on the left 3 columns are the results of SaccadeNet-DLA34. The right column includes the results of CenterNet-DLA34[31]. Best viewed in color.
+
+
+
+
+
+
+CenterNet [31]
+
+
+
+than the backbone, which only cost $1.5\mathrm{ms}$ and $1.6\mathrm{ms}$ for SaccadeNet-DLA34 and SaccadeNet-Res18. The performance of SaccadeNet with and without Aggregation-Attn is illustrated in Table 3. Obviously, Aggregation-Attn is important for the performance improvement.
+
+Data augmentation. For better performance, we feed the network with both the flipped image and the original image. Although this technique will double the inference time theoretically, it significantly improves the performance. Figure 3 illustrates the performance of SaccadeNet with and without flip testing.
+
+Non-maximum Suppression. In SaccadeNet, we replace the popular IoU-based NMS with peak-picking NMS. Peak-picking NMS performs $3 \times 3$ pooling on the output heatmap of Center-Attn. The inference time of it is less than $0.1\mathrm{ms}$ . In comparison, the IoU-based NMS needs $2\mathrm{ms}$ for post-procession. Table 3 shows the comparison between IoU-based NMS and peak-picking NMS.
+
+# 4.3. Ablation Study
+
+In this section, we will study the characteristics of SaccadeNet. We conduct the experiments with SaccadeNet-
+
+ | mAP@50 | mAP@70 | mAP@90 | mAP@s | mAP@M | mAP@L |
| Baseline | 70.69 | 55.50 | 16.48 | 8.15 | 23.74 | 57.86 |
| Corner-Attn | 71.02/+0.33 | 56.42/+0.92 | 13.51/-2.97 | 9.75/+1.60 | 24.45/+0.71 | 58.84/+0.98 |
| Aggregation-Attn | 70.64/-0.05 | 55.85/+0.35 | 17.34/+0.86 | 8.30/+0.15 | 24.30/+0.56 | 58.39/+0.53 |
| Corner-Attn + Aggregation-Attn | 70.94/+0.25 | 57.84/+2.34 | 21.07/+4.59 | 9.69/+1.54 | 25.17/+1.43 | 60.40/+2.54 |
+
+Table 2. This table shows the results of SaccadeNet with or without Aggregation-Attn and Corner-Attn. We use 6 metrics of different IoU thresholds and object sizes. All experiments are conducted on Pascal VOC. For our approaches, we show both the mAP and the mAP gain (+) or loss (-) compared with the baseline.
+
+| Backbone | Aggregation-Attn | Flip | NMS | FPS | mAP |
| DLA | | | PP | 52 | 37.9 |
| DLA | ✓ | | PP | 50 | 38.8 |
| DLA | | ✓ | PP | 28 | 39.9 |
| DLA | ✓ | ✓ | PP | 28 | 40.7 |
| DLA | ✓ | | IoU | 45 | 39.3 |
| DLA | ✓ | ✓ | IoU | 27 | 40.9 |
+
+# Res18 on Pascal VOC.
+
+Evaluation metrics. For detailed evaluation, we use 6 metrics for different IoU thresholds and size: AP@50, AP@70, AP@90, AP@S, AP@M, AP@L. AP@50, AP@70, AP@90 represent the average precision using IoU thresholds of $50\%$ , $70\%$ , $90\%$ , respectively. For evaluating objects of different size, we define AP@S, AP@M, AP@L as the average precision of small objects, medium objects, and large objects. Small, medium, large objects contain objects with area of $[0,64^2]$ , $[64^2,128^2]$ , and $[128^2,\infty]$ , respectively.
+
+# 4.3.1 Benefits of Aggregation-Attn and Corner-Attn
+
+Our proposed Aggregation-Attn and Corner-Attn are designed to improve the quality of boundary. To study how much they affect high-quality/low-quality and large/small object proposals, we use different IoU thresholds to compute the mean average precision and evaluate it on the objects of different sizes. As shown in Table 2, larger objects and high-quality bounding boxes gain more benefits with Aggregation-Attn and Corner-Attn.
+
+# 4.3.2 Keypoint Selection
+
+Although our proposed SaccadeNet reveals that corners are very important for accurate boundary localization, it is still unknown whether other keypoints are helpful for bounding box regression. We try different kinds of points: middle-edge points and other inner-box points.
+
+The middle-edge points of an object are the 4 points in the middle of 4 edges of a bounding box. We also re
+
+Table 3. All experiments are conducted on MS COCO val2017. PP and IoU represent peak-picking NMS and IoU-based NMS, respectively.
+
+ | mAP@50 | mAP@70 | mAP@90 |
| Corners | 70.94 | 57.84 | 21.07 |
| Diag Pts@0.8 | 70.92 | 57.32 | 18.27 |
| Diag Pts@0.6 | 70.59 | 56.48 | 17.40 |
| Diag Pts@0.4 | 70.43 | 56.11 | 17.31 |
| Mid-edge Pts@1.0 | 70.64 | 55.85 | 17.34 |
| Mid-edge Pts@0.8 | 70.43 | 55.33 | 17.29 |
| Mid-edge Pts@0.6 | 70.51 | 55.10 | 16.98 |
+
+Table 4. This table shows the results of using different points for Corner-Attn on PASCAL VOC with ResNet-18. Corner represents the original SaccadeNet-Res18. Diag Pts@t (t is a float number) represents the points locating at $p_{ct} * (1 - t) + p_{cr} * t$ , where $p_{ct}$ , $p_{cr}$ represents the position of centers and corners. Similarly, Mid-edge Pts@t represents a points locating at $p_{ct} * (1 - t) + p_{ml} * t$ , where $p_{ct}$ and $p_{ml}$ indicate center points and middle points of an edge of object bounding box. Figure 4 describes the position of all points mentioned above.
+
+place corners with points on the orthogonal lines of the bounding box. Figure 4 describes the keypoints mentioned above. We change the corners to other keypoints as inputs of Aggregation-Attn and the annotations from corners to other keypoints for Corner-Attn. Table 4 illustrates the results on Pascal VOC.
+
+We find that the corners are the most helpful keypoints for SaccadeNet among all other keypoints except centers. We also find that keypoints closer to corners leads to higher performance for both Aggregation-Attn and Corner-Attn. One possible reason is that corners define the extent of the object and we use the bounding box for loss calculation.
+
+# 4.3.3 Does Iterative Refinement Help?
+
+An intuitive idea for improving SaccadeNet is to apply Aggregation-Attn iteratively. In the experiments, we use a couple of sequential modules of Aggregation-Attn. The outputs of the previous module are used as inputs in the next module. Table 5 shows the results on PASCAL VOC.
+
+The results show that iterative refinement works for more accurate boundary. The finer bounding boxes get more improvement by iterative refinement. However, as a result of more sequential execution, the iterative refinement is not very efficient. Due to speed-accuracy trade-off, we only use
+
+
+Figure 4. Purple points and yellow points denote centers and corners, respectively. On the left, the green lines denote the diagonal lines of bounding box. The blue point represents a Diag Pts computed by bilinear interpolation. On the right, the yellow points are middle points of bounding-box sides. The pink lines denote the middle line of the bounding box. The two end of middle line are two opposite yellow points. The blue point represents a Mid-edge Pts.
+
+
+
+| Num of iter. | mAP@50 | mAP@70 | mAP@90 |
| 0 | 71.02 | 56.42 | 18.96 |
| 1 | 70.94 | 57.84 | 21.07 |
| 2 | 71.09 | 58.18 | 21.32 |
| 3 | 71.12 | 58.42 | 20.70 |
+
+Table 5. The table shows the results of applying iterative refinement on SaccadeNet with different IoU thresholds. All the experiments are based on ResNet-18 on PASCAL VOC. Num of iter means the number of iterations used for boundary refinement
+
+| Aggregation-Attn-Cls | mAP@50 | mAP@70 | mAP@90 |
| 70.92 | 57.49 | 18.96 |
| ✓ | 52.26 | 43.23 | 19.80 |
+
+one Aggregation-Attn in all the other experiments.
+
+# 4.3.4 Does Aggregation-Attn also Help Classification?
+
+Object detection is the step to understand "what is where". We have validated that Aggregation-Attn improves the localization of object by fusing feature of corner and center keypoints, namely it helps in terms of "where". Now we want to study whether such information aggregation also helps in terms of "what". We add another module, namely Aggregation Attentive Classifier (Aggregation-Attn-Cls) to refine classification scores. Its structure is the same as Corner Attentive Module. We use the classification scores to replace the original object classifier output. Table 6 illustrates the results. Unfortunately, the performance is degraded by Aggregation-Attn-Cls. One possible reason is that the feature of corner keypoints encode little high-level discriminative information for classification.
+
+Table 6. This table shows the results of using Aggregation-AttnCls for classification with different IoU thresholds. All Experiments are performed on Pascal VOC with ResNet-18.
+
+| Corner | Center | mAP@50 | mAP@70 | mAP@90 |
| | 71.02 | 56.42 | 18.96 |
| ✓ | 70.89 | 56.55 | 19.01 |
| ✓ | | 71.04 | 57.53 | 19.78 |
| ✓ | ✓ | 70.94 | 57.84 | 21.07 |
+
+Table 7. This table shows the results of using different inputs for Aggregation-Attn with different IoU thresholds. All Experiments are performed on Pascal VOC with ResNet-18.
+
+# 4.3.5 Impact of the Center and Corner Keypoints in Aggregation-Attn module
+
+The experimental results in Section 4.3.1 have shown that the aggregation of features from corners and center in Aggregation-Attn is of great importance for the performance improvement. However, is the feature fusion of the corners and center necessary and helpful? How much improvement does it gain by using center-only or corner-only feature?
+
+To address these questions, we change the inputs of Aggregation-Attn into feature of center keypoints or feature of corner keypoints. Table 7 shows that it is useful to fuse feature of corner and center keypoints together. Comparing to the first row where Aggregation-Attn module is not used, by using the center feature alone it barely improves the performance since previous Center-Attn module already use center feature. By using corner features alone, the performance is improved significantly. By incorporating feature of both corner and center keypoints, the detection result is further improved, especially in high-IOU thresholds.
+
+# 5. Conclusion
+
+We introduce SaccadeNet, a fast and accurate object detection algorithm. Our model actively attends to informative object keypoints from the center to the corners, and predicts the object bounding boxes from coarse to fine. SaccadeNet runs extremely fast, because these object keypoints are predicted jointly so that we do not need a grouping algorithm to combine them. We extensively evaluate SaccadeNet on PASCAL VOC and MS COCO datasets, which both demonstrates its effectiveness and efficiency.
+
+# 6. Acknowledgement
+
+Gang Hua was supported partly by National Key R&D Program of China Grant 2018AAA0101400 and NSFC Grant 61629301. We deeply appreciate the help of Xingyi Zhou and Zuxuan Wu.
+
+# References
+
+[1] Jiale Cao, Yanwei Pang, Jungong Han, and Xuelong Li. Hierarchical shot detector. In Proceedings of the IEEE International Conference on Computer Vision, pages 9705-9714, 2019. 1, 6
+[2] Yuntao Chen, Chenxia Han, Naiyan Wang, and Zhaoxiang Zhang. Revisiting feature alignment for one-stage object detection. arXiv preprint arXiv:1908.01570, 2019. 2
+[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. 5
+[4] Heiner Deubel and Werner X Schneider. Saccade target selection and object recognition: Evidence for a common attentional mechanism. Vision research, 36(12):1827-1837, 1996. 2, 3
+[5] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 6569-6578, 2019. 1, 2, 3, 4
+[6] 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. 4
+[7] Cheng-Yang Fu, Wei Liu, Ananth Ranga, Ambrish Tyagi, and Alexander C Berg. Dssd: Deconvolutional single shot detector. arXiv preprint arXiv:1701.06659, 2017. 1, 2
+[8] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 4, 5, 6
+[9] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 2, 4, 5
+[10] Lichao Huang, Yi Yang, Yafeng Deng, and Yinan Yu. Densebox: Unifying landmark localization with end to end object detection. arXiv preprint arXiv:1509.04874, 2015. 2
+[11] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
+[12] Tao Kong, Fuchun Sun, Huaping Liu, Yuning Jiang, and Jianbo Shi. Foveabox: Beyond anchor-based object detector. arXiv preprint arXiv:1904.03797, 2019. 2
+[13] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In Proceedings of the European Conference on Computer Vision (ECCV), pages 734-750, 2018. 1, 2, 3, 4, 6
+[14] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. 2019. 6
+[15] 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. 4
+
+[16] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980-2988, 2017. 1, 2, 3, 5, 6
+[17] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 4
+[18] 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, 2
+[19] Wei Liu, Shengcai Liao, Weiqiang Ren, Weidong Hu, and Yinan Yu. High-level semantic feature detection: A new perspective for pedestrian detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5187-5196, 2019. 2
+[20] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. 2
+[21] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016. 2
+[22] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You Only Look Once: Unified, Real-Time Object Detection. In CVPR, 2016. 1, 2
+[23] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. 1, 2, 5, 6
+[24] 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
+[25] Bharat Singh, Mahyar Najibi, and Larry S Davis. SNIPER: Efficient Multi-Scale Training. In NeurIPS, 2018. 6
+[26] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In ICCV, 2019. 2
+[27] Ze Yang, Shaohui Liu, Han Hu, Liwei Wang, and Stephen Lin. Repoints: Point set representation for object detection. In ICCV, 2019. 2
+[28] Fisher Yu, Dequan Wang, Evan Shelhamer, and Trevor Darrell. Deep layer aggregation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2403-2412, 2018. 2, 4, 5
+[29] 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, 2017. 2
+[30] Peng Zhou, Xintong Han, Vlad I. Morariu, and Larry S. Davis. Learning rich features for image manipulation detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 2
+[31] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as Points. arXiv, 2019. 1, 2, 3, 4, 5, 6
+
+[32] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 850-859, 2019. 1, 2, 4, 6
+[33] Chenchen Zhu, Yihui He, and Marios Savvides. Feature selective anchor-free module for single-shot object detection. arXiv preprint arXiv:1903.00621, 2019. 2
+[34] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9308-9316, 2019. 2, 4
\ No newline at end of file
diff --git a/saccadenetafastandaccurateobjectdetector/images.zip b/saccadenetafastandaccurateobjectdetector/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..0e7b3e5d311f5eee60db2c28053140c5b2c8c31b
--- /dev/null
+++ b/saccadenetafastandaccurateobjectdetector/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:89f7b09e16bcf53f8c790e6f75e1d658394befbdd9147d305aa6c223ad6d1c7a
+size 473382
diff --git a/saccadenetafastandaccurateobjectdetector/layout.json b/saccadenetafastandaccurateobjectdetector/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4046a983db97cc253bae3c69bfcef9df6e22a0df
--- /dev/null
+++ b/saccadenetafastandaccurateobjectdetector/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c8e8517acc5ad20f5aefcc2e9aa094e20391aa3a87cb8e6bde90bd82f1f687e
+size 336202
diff --git a/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_content_list.json b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ec06805c26fcc9b3f2dd1cb4bf31d8d325514a39
--- /dev/null
+++ b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d8ae6d087f6f5d555e1411ca98dcbd220933ca7ce554ac68b0924b91e8d7097
+size 72856
diff --git a/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_model.json b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..fd0f0f52ea8ea9b8c7ae428c0db82e4055c062e3
--- /dev/null
+++ b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d53c1e6589d668a73f271ba49c4fee462dd3edab874c5ccdb779b84adda8b4f3
+size 90361
diff --git a/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_origin.pdf b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..266d61c94e7f4abaedafdb628603042351d9f014
--- /dev/null
+++ b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/fa971b1d-b354-41b8-8372-405ad43dac1d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8cbc698d4b8f1f8fed0ab441b30c636d7d319c6ca4539f581d46e72ca9fdd713
+size 805402
diff --git a/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/full.md b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5052723c0269c6e3c09b9183530ec473552e2fce
--- /dev/null
+++ b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/full.md
@@ -0,0 +1,334 @@
+# SAINT: Spatially Aware Interpolation Network for Medical Slice Synthesis
+
+Cheng Peng1 Wei-An Lin1 Haofu Liao2 Rama Chellappa1 Shaohua Kevin Zhou3,4
+1University of Maryland, College Park 2University of Rochester
+3Chinese Academy of Sciences 4Peng Cheng Laboratory, Shenzhen
+
+# Abstract
+
+Deep learning-based single image super-resolution (SISR) methods face various challenges when applied to 3D medical volumetric data (i.e., CT and MR images) due to the high memory cost and anisotropic resolution, which adversely affect their performance. Furthermore, mainstream SISR methods are designed to work over specific upsampling factors, which makes them ineffective in clinical practice. In this paper, we introduce a Spatially Aware Interpolation NetWork (SAINT) for medical slice synthesis to alleviate the memory constraint that volumetric data poses. Compared to other super-resolution methods, SAINT utilizes voxel spacing information to provide desirable levels of details, and allows for the upsampling factor to be determined on the fly. Our evaluations based on 853 CT scans from four datasets that contain liver, colon, hepatic vessels, and kidneys show that SAINT consistently outperforms other SISR methods in terms of medical slice synthesis quality, while using only a single model to deal with different upsampling factors.
+
+# 1. Introduction
+
+Medical imaging methods such as computational tomography (CT) and magnetic resonance imaging (MRI) are essential to modern day diagnosis and surgery planning. To provide necessary visual information of the human body, it is desirable to acquire high resolution and high contrast medical images. For MRI, the acquisition of higher resolution images take a long time, and thus, practitioners often accelerate the process by acquiring fewer slices1. 'CT image acquisition is much faster than MRI; however, due to the high cost of keeping complete 3D volumes in memory and print, typically only necessary number of slices are stored. As a result, most medical imaging volumes are anisotropic, with high within-slice resolution and low between-slice resolution. The inconsistent resolution leads to a range of
+
+
+(a) Bicubical Interpolation
+
+
+(b) mDCSRN[4]
+
+
+(c) 3D RDN² [27]
+
+
+(d) SAINT (Ours)
+Figure 1: 3D renderings of bones from CT slice interpolation results. Bicubical interpolation (a) from sparsely sampled CT volume, with highly unrealistic distortions. Methods (b) and (c) improve the image quality; however, they are still under-resolved as is evident on the spinal column. SAINT (d) resolves details much better on the spinal column.
+
+issues, from unpleasant viewing experience to difficulties in developing robust analysis algorithms. Currently, many datasets [9, 19, 1] use affine transforms to equalize voxel spacing between volumes, which may introduce significant distortions to the original data, as shown in Fig. 1a. There-
+
+fore, methods for some analysis tasks, e.g. lesion segmentation, have to resort to intricate algorithms to take into account of the change in resolution [18, 22, 16]. As such, an accurate and reliable 3D SISR method to upsample the low between-slice resolution, which we refer to as the slice interpolation task, is much needed.
+
+Implementations of 3D SISR model suffer from various problems. Firstly, medical images are volumetric and three dimensional in nature, which often lead to memory bottlenecks with Deep Learning (DL)-based methods. While it is possible to mitigate the issue by patch-based training, such an approach will produce undesirable artifact when the patches are stitched together at inference time. Therefore, compared to their 2D counterparts, the depth or width of 3D SISR models as well as their input sample size must be reconciled. Secondly, a practical slice interpolation model needs to robustly handle different levels of upsampling factors without retraining to adapt to various clinical requirements. Most SISR methods can only recover images from one downsampling level (e.g. $\times 2$ or $\times 4$ ), which is insufficient for real application. A recent method by Hu et al. [10] allows for arbitrary magnification factor through a meta-learning upsampling structure. Unfortunately, in order to achieve this functionality, the method requires to generate a filter for every pixel which is extremely memory intensive. Finally, mainstream SISR methods do not consider the underlying physical resolution of the images. Since medical images are often anisotropic in physical resolution to different degrees, a new formulation to address the physical resolution may potentially increase the sensitivity of the output.
+
+To address these problems, we propose a Spatially Aware Interpolation NeTwork (SAINT), an efficient approach to upsample 3D CT images by treating between-slices images through 2D CNN networks. This resolves the memory bottleneck and associated stitching artifacts. To address the anisotropic resolution issue, SAINT introduces an Anisotropic Meta Interpolation (AMI) mechanism, which is inspired by Meta-SR [10] that uses a filter-generating meta network to enable flexible upsampling rates. Instead of using the input-output pixel mapping as in Meta-SR, AMI uses a new image-wide projection that accounts for the spatial resolution variations in medical images and allows arbitrary upsampling factors in integers.
+
+SAINT then introduces a *Residual-Fusion Network* (RFN) that eliminates the inconsistencies resulting from applying AMI (which addresses images in 2D) to 3D CT images, and incorporates information from the third axis for improved modeling of 3D context. Benefited by the effective interpolation of AMI, RFN is lightweight and converges quickly. Combining AMI and RFN, SAINT not only significantly resolves the memory bottleneck at inference time, allowing for deeper and wider networks for 3D SISR, but also provides improved performance, as shown in Fig. 1.
+
+In summary, our main contributions are listed below:
+
+- We propose a unified 3D slice interpolation framework called SAINT for anisotropic volumes. This approach is scalable in terms of memory and removes the stitching artifacts created by 3D methods.
+- We propose a 2D SISR network called Anisotropic Meta Interpolation (AMI), which upsamples the between-slice images from anisotropic volumes. It handles different upsampling factors with a single model, incorporates the spatial resolution knowledge, and generates far less filter weights compared to Meta-SR.
+- We propose a Residual-Fusion Network (RFN), which fuses the volumes produced by AMI by refining on details of the synthesized slices through residual learning.
+- We examine the proposed SAINT network through extensive evaluation on 853 CT scans from four datasets that contain liver, colon, hepatic vessels, and kidneys and demonstrate its superior performance quantitatively. SAINT performs consistently well on independent datasets and on unseen upsampling factor, which further validates its applicability in practice.
+
+# 2. Related Work
+
+Two-dimensional DL-based SISR has achieved great improvements compared to conventional interpolation methods. Here we focus on the most recent advances on natural image SISR, and their applications in medical imaging, such as in reconstruction and denoising.
+
+# 2.1. Natural Image SISR
+
+Dong et al. [5] first proposed SRCNN, which learns a mapping that transforms LR images to HR images through a three-layer CNN. Many subsequent studies explored strategies to improve SISR such as using deeper architectures and weight-sharing [13, 26, 14]. However, these methods require interpolation as a pre-processing step, which drastically increases computational complexity and leads to noise in data. To address this issue, Dong et al. [6] proposed to apply deconvolution layers for LR image to be directly upsampled to finer resolution. Shi et al. [20] first proposed ESPCN, which allows for real-time super-resolution by using a sub-pixel convolutional layer and a periodic shuffling operator to upsample image at the end of the network. Furthermore, many studies have shown that residual learning provided better performance in SISR [17, 15, 27]. Specifically, Zhang et al. [27] incorporated both residual learning and dense blocks [11], and introduced Residual Dense Blocks (RDB) to allow for all layers of features to be seen
+
+
+Figure 2: The overall pipeline of Spatially Aware Interpolation NetWork (SAINT). For visualization purpose, the volumes are rendered in 3D based on their bone structures.
+
+directly by other layers, achieving state-of-the-art performance.
+
+Besides performance, flexibility in upsampling factor has been studied to enable faster deployment and improved robustness. Lim et al. [17] proposed a variant of their EDSR method called MDSR to create individual substructures within the model to accommodate for different upsampling factors. Jo et al. [12] employed dynamic upsampling filters for video super-resolution and generated the filters based on the neighboring frame of each pixel in LR frames in order to achieve better detail resolution. Hu et al. [10] proposed Meta-SR to dynamically generate filters for every LR-SR pixel pair, thus allowing for arbitrary upsampling factors.
+
+Generative Adversarial Networks (GAN) [7] have also been incorporated in SISR to improve the visual quality of the generated images. Ledig et al. pointed out that training SISR networks solely by $L_{1}$ loss intrinsically leads to blurry estimations, and proposed SRGAN [15] to generate more detail-rich images despite achieving lower PSNR.
+
+# 2.2. CT Image Quality Improvement
+
+There is a long history of research on accelerating CT acquisition due to its practical importance. More recently, much of the attention has been put on faster acceleration with noisy data followed by high quality recovery with CNN based methods. For CT acquisition, the applications range from denoising low-intensity, low dose CT images [29, 3, 24], to improving quality of reconstructed images from sparse-view and limited-angle data [28, 2, 25, 8]. A variety of network structures has been experimented, including the encoder-decoder (UNet), DenseNet, and GAN structure. Similar to the SRGAN, networks that involve GAN [24] report inferior PSNR values, and superior visual details. We refrain from applying GAN loss in our model,
+
+as it may produce unexplainable artifacts. We mainly focus on pixel-wise L1 loss in our work.
+
+While most work focuses on improving 2D medical image quality, Chen et al. [4] proposed mDCSRN, which uses a 3D variant of DenseNet for super-resolving MR images. In order to resolve the memory bottleneck, mDCSRN applies inference through patches of smaller 3D cubes, and pads each patch with three pixels of neighboring cubes to avoid distortion. Similar approaches were used by Wang et al. [23]. Wolterink et al. [24] resolved such issues through supplying CNN network with few slices, and applying 3D kernels only in the lower layers.
+
+# 3. Spatially Aware Interpolation Network
+
+Let $I(x,y,z)\in \mathbb{R}^{X\times Y\times Z}$ denote a densely sampled CT volume. By convention, we refer to the $x$ axis as the "sagittal" axis, the $y$ axis as the "coronal" axis, and the $z$ axis as the "axial" axis. Accordingly, there are three types of slices:
+
+- The sagittal slice for a given $x$ : $I^{x}(y,z) = I(x,y,z), \forall x$ .
+- The coronal slice for a given $y: \quad I^y(x, z) = I(x, y, z), \forall y$ .
+- The axial slice for a given $z$ : $I^z(x, y) = I(x, y, z), \forall z$ .
+
+Without loss of generality, this work considers slice interpolation along the axial axis. For a densely-sampled CT volume $I(x,y,z)$ , the corresponding sparsely-sampled volume is defined as
+
+$$
+I _ {\downarrow r _ {z}} (x, y, z) = I (x, y, r _ {z} \cdot z), \tag {1}
+$$
+
+where $I_{\downarrow r_z}(x,y,z)\in \mathbb{R}^{X\times Y\times \frac{Z}{r_z}}$ , and $r_z$ is the sparsity factor along the $z$ axis from $I(x,y,z)$ to $I_{\downarrow r_z}(x,y,z)$ and the upsampling factor from $I_{\downarrow r_z}(x,y,z)$ to $I(x,y,z)$
+
+
+Figure 3: AMI architecture. The feature learning stage generates $F^{LR}$ from $I^{LR}$ . Based on the dynamically determined $r_z$ , the filter generation stage generates filters $W_{c}$ which are convolved with $F^{LR}$ to produce $I_{c}^{SR}$ . $I_{c}^{SR}$ is then rearranged for the final $I^{SR}$ . The physical distance between the $I^{LR}$ coordinates and the generated $I_{c}^{SR}$ pixel coordinate is mapped through FDM and provided to the filter generation stage. This figure demonstrates the process when the upsampling factor $r_z = 4$ and filter size $k = 3$
+
+The goal of slice interpolation is to find a transformation $\mathcal{T} \colon \mathbb{R}^{X \times Y \times \frac{Z}{r_z}} \to \mathbb{R}^{X \times Y \times Z}$ that can optimally transform $I_{\downarrow r_z}(x, y, z)$ back to $I(x, y, z)$ for an arbitrary integer $r_z$ .
+
+# 3.1. Overview of the Proposed Method
+
+As shown in Fig. 2, SAINT consists of two stages: Anisotropic Meta Interpolation (AMI) and Residual Fusion Network (RFN).
+
+Given $I_{\downarrow r_z}(x,y,z)$ , we view it as a sequence of 2D sagittal slices $I_{\downarrow r_z}^x (y,z)$ marginally from the sagittal axis. The same volume can also be treated as $I_{\downarrow r_z}^y (x,z)$ from the coronal axis. Interpolating $I_{\downarrow r_z}^x (y,z)$ to $I^{x}(y,z)$ and $I_{\downarrow r_z}^y (x,z)$ to $I^{y}(x,z)$ are equivalent to applying a sequence of 2D super-resolution along the $x$ axis and $y$ axis, respectively. We apply AMI $\mathcal{G}_{\theta}$ to upsample $I_{\downarrow r_z}^x (y,z)$ and $I_{\downarrow r_z}^y (x,z)$ as follows:
+
+$$
+I _ {s a g} ^ {x} (y, z) = \mathcal {G} _ {\theta} \left(I _ {\downarrow r _ {z}} ^ {x} (y, z)\right), I _ {c o r} ^ {y} (x, z) = \mathcal {G} _ {\theta} \left(I _ {\downarrow r _ {z}} ^ {y} (x, z)\right). \tag {2}
+$$
+
+The super-resolved slices are reformatted as sagitally and coronally super-resolved volumes $I_{sag}(x,y,z)$ , $I_{cor}(x,y,z)$ , and resampled axially to obtain $I_{sag}^{z}(x,y)$ , $I_{cor}^{z}(x,y)$ . We apply RFN $\mathcal{F}_{\theta}$ to fuse $I_{sag}^{z}(x,y)$ and $I_{cor}^{z}(x,y)$ together, such that:
+
+$$
+I _ {f u s e} ^ {z} (x, y) = \mathcal {F} _ {\theta} \left(I _ {s a g} ^ {z} (x, y), I _ {c o r} ^ {z} (x, y)\right), \tag {3}
+$$
+
+and obtain our final synthesized slices $I_{fuse}^{z}(x,y)$ .
+
+# 3.2. Anisotropic Meta Interpolation
+
+We break down $\mathcal{G}_{\theta}$ into three parts: (i) the Feature Learning (FL) stage $\phi_{FL}$ , which extracts features from LR images using an architecture adopted from RDN [27], (ii) the Filter Generation (FG) stage $\phi_{FG}$ , which enables arbitrary upsampling factor by generating convolutional filters of different sizes, and (iii) Anisotropic Sub-Pixel Convolution, which performs sub-pixel convolution and periodic shuffling (PS) operations to produce the final output.
+
+# 3.2.1 Feature Learning
+
+Given an input low-resolution image $I^{LR} \in \{I_{\downarrow r_z}^x (y,z),I_{\downarrow r_z}^y (x,z)\}$ , the feature learning (FL) stage simply extracts its feature maps $F^{LR}$ :
+
+$$
+F ^ {L R} = \phi_ {F L} \left(I ^ {L R}; \theta_ {F L}\right), \tag {4}
+$$
+
+where $\theta_{FL}$ is the parameter of the filter learning network $\phi_{FL}$ . Note that $F^{LR} \in \{F_{\downarrow r_z}^x (y,z), F_{\downarrow r_z}^y (x,z)\}$ . For the same brevity in notation, we also use $I^{SR} \in \{I_{sag}^x (y,z), I_{cor}^y (x,z)\}$ to denote the corresponding super-resolved image obtained in (2).
+
+# 3.2.2 Anisotropic Sub-Pixel Convolution
+
+Mainstream SISR methods use sub-pixel convolution [20] to achieve isotropic upsampling. In order to achieve anisotropic upsampling, we define upsampling factor along the $z$ dimension as $r_z$ . As shown in Fig. 3, our anisotropic sub-pixel convolution layer takes a low-resolution image $I^{LR} \in \mathbb{R}^{H \times W}$ and its corresponding feature $F^{LR} \in \mathbb{R}^{C' \times H \times r_zW}$ as the inputs and outputs a super-resolved image $I^{SR} \in \mathbb{R}^{H \times r_zW}$ . Formally, this layer performs the following operations:
+
+$$
+I _ {0} ^ {S R} = I ^ {L R}, I _ {c} ^ {S R} = F ^ {L R} * W _ {c}, \tag {5}
+$$
+
+$$
+I ^ {S R} = P S ([ I _ {0} ^ {S R}, I _ {1} ^ {S R}, \dots , I _ {r _ {z} - 1} ^ {S R} ]), \tag {6}
+$$
+
+where $*$ and $[\ldots]$ denote the convolution and channel-wise concatenation operation, respectively. $W_{c}, c \in \{1, \ldots, r_{z} - 1\}$ denotes the convolution kernel whose construction will be discussed in Section 3.2.3. The convolution operation aims to output $I_{c}^{SR}$ , which is an interpolated slice of $I^{LR}$ . Concatenating the input $I^{LR} = I_{0}^{SR}$ with the interpolated slices $\{I_{1}^{SR}, \ldots, I_{r_{z} - 1}^{SR}\}$ , we obtain an $r_{z} \times H \times W$ tensor and then apply periodic shuffling (PS) to reshape the tensor for the super-resolved image $I^{SR}$ .
+
+# 3.2.3 Filter Generation
+
+Inspired by Meta-SR [10], which employs a meta module to generate convolutional filters, we design a FG stage with
+
+a CNN structure that can dynamically generate $W$ . Moreover, we propose a Filter Distance Matrix (FDM) operator, which provides a representation of the physical distance between the observed voxels in $I_0^{SR}$ and the interpolated voxels in $\{I_1^{SR},\dots,I_{r_z - 1}^{SR}\}$ .
+
+Filter Distance Matrix. We denote the spatial resolution of $I^{SR}$ as $(R_H, R_W)$ . As shown in Fig. 3, for each convolution operation in $F^{LR} \circ W_c$ , a $k \times k$ patch from $F^{LR}$ is taken to generate a voxel on $I_c^{SR}$ . To find the distance relationship among them, we first calculate the coordinate distance between every point from the feature patch, which are generated from $I^{LR}$ , and the point of the output voxel in $I_c^{SR}$ , in terms of their rearranged coordinate positions in the final image $I^{SR}$ . The coordinate distance is then multiplied by the spatial resolution $(R_H, R_W)$ , thus yielding a physical distance representation between the pair.
+
+Specifically, we define the PS rearrangement mapping between coordinates in $I_{c}^{SR}$ and in $I^{SR}$ as $\mathcal{M}_c$ , such that $I_{c}^{SR}(h,w) = I^{SR}(\mathcal{M}_{c}(h,w))$ . Mathematically, $\mathcal{M}_c$ can be expressed as:
+
+$$
+\mathcal {M} _ {c} (h, w) = \left(h + c, w r _ {z} + \left\lfloor \frac {c}{r _ {z}} \right\rfloor\right). \tag {7}
+$$
+
+We record the physical distance in a matrix called FDM, denoted as $\mathcal{P} = [P_1,\dots ,P_{r - 1}]$ . The algorithm which generates $\mathcal{P}_c$ for every channel $c$ is shown in Algorithm 1.
+
+Algorithm 1: Filter Distance Matrix
+Input: target channel: $c$ , filter size: $k$ , spatial resolution: $(R_H, R_W)$ , PS mapping: $\mathcal{M}$
+Output: FDM for channel $c$ : $\mathcal{P}_c$
+for $h = 0$ to $k$ do
+ for $w = 0$ to $k$ do
+ $\mathcal{P}_c(h, w) = \| (\mathcal{M}_0(h, w) - \mathcal{M}_c(\lfloor \frac{k}{2} \rfloor, \lfloor \frac{k}{2} \rfloor))\|_2$
+ end
+end
+
+$\mathcal{P}_c \in \mathbb{R}^{k \times k}$ is a compact representation that has three desirable properties: (i) it embeds the spatial resolution information of a given slice; (ii) it is variant to channel positions; and (iii) it is invariant to coordinate positions. These properties make $\mathcal{P}_c$ a suitable input to generate channel-specific filters that can change based on different spatial resolution.
+
+As such, we provide $\mathcal{P}_c$ to a filter generation CNN model $\phi_{FG}$ to estimate $W_{c} \in \mathbb{R}^{C^{\prime} \times 1 \times k \times k}$ , formulated as follows:
+
+$$
+W _ {c} = \phi_ {F G} \left(\mathcal {P} _ {c}; \theta_ {F G}\right) \tag {8}
+$$
+
+where $\theta_{FG}$ is the parameter of the filter generation network and $W_{c}$ is the filter weight that produces $I_{c}^{SR}$ . We refer the readers to supplemental material section that explains how the changes in $\mathcal{P}$ impact the rate of interpolation for AMI.
+
+
+(a) $I_{sag}^{z}(x,y)$
+
+
+(b) $I_{cor}^{z}(x,y)$
+
+
+Figure 4: (a) The axial slice generated from $I_{sag}$ . (b) The axial slice generated from $I_{cor}$ . Some details are better resolved by (a) and others by (b). Both of them exhibit directional artifact due to a lack of constraints in the (x,y) plane. This is resolved through RFN in (d), which refines their average $I_{avg}$ , as shown in (c)
+
+
+(c) $I_{avg}^{z}(x,y)$
+(d) $I_{\text{fuse}}(x,y)$
+
+Note that instead of super-resolving a 2D slice independently of its neighboring slices, we in practice estimate a single SR slice output by taking three consecutive slices to AMI as inputs to allow more context. After applying the AMI module for all $x$ in $I_{sag}^{x}$ and all $y$ in $I_{cor}^{y}$ , we finally reformat the sagittally and coronally super-resolved slices into volumes, $I_{sag}(x,y,z)$ and $I_{cor}(x,y,z)$ , respectively. We apply the $L_{1}$ loss in (9) to train AMI:
+
+$$
+\mathcal {L} _ {A M I} = \left\| \mathcal {G} _ {\theta} \left(I _ {\downarrow r _ {z}} ^ {x}\right) - I _ {g t} ^ {x} \right\| _ {1} + \left\| \mathcal {G} _ {\theta} \left(I _ {\downarrow r _ {z}} ^ {y}\right) - I _ {g t} ^ {y} \right\| _ {1}, \tag {9}
+$$
+
+where $I_{gt}^{x} = I^{x}(y,z)$ and $I_{gt}^{y} = I^{y}(x,z)$ in the densely-sampled volume $I$ . From the axial perspective, $I_{sag}(x,y,z)$ and $I_{cor}(x,y,z)$ provide line-by-line estimations for the missing axial slices. However, since no constraint is enforced on the estimated axial slices, inconsistent interpolations lead to noticeable artifacts, as shown in Fig. 4. We resolve this problem in the RFN stage of the proposed pipeline.
+
+# 3.3. Residual-Fusion Network
+
+
+Figure 5: RFN architecture
+
+RFN further improves the quality of slice interpolation by learning the structural variations within individual slices.
+
+As shown in Fig. 5, we first take the axial slices of the sagitally and coronally super-resolved volumes $I_{sag}(x,y,z)$ and $I_{cor}(x,y,z)$ to obtain $I_{sag}^{z}(x,y)$ and $I_{cor}^{z}(x,y)$ , respectively. As each pixel from $I_{sag}^{z}(x,y)$ and $I_{cor}^{z}(x,y)$ represents the best estimate from the sagittal and coronal directions, an average of the slices $I_{avg}^{z}(x,y)$ can reduce some of the directional artifacts. We then apply residual learning, which has been proven to be effective in many image-to-image tasks [17, 15, 27], with fusion network $\mathcal{F}_{\phi}$ :
+
+$$
+I _ {f u s e} ^ {z} (x, y) = I _ {a v g} ^ {z} (x, y) + \mathcal {F} _ {\phi} \left(I _ {s a g} ^ {z} (x, y), I _ {c o r} ^ {z} (x, y)\right), \tag {10}
+$$
+
+where $I_{\text{fuse}}^z(x,y) = \mathcal{F}_{\phi}(I_{\text{sag}}^z, I_{\text{cor}}^z)$ is the output of the fusion network. The objective function for training the fusion network is:
+
+$$
+\mathcal {L} _ {f u s e} = \left\| I _ {f u s e} ^ {z} (x, y) - I _ {g t} ^ {z} \right\| _ {1}, \tag {11}
+$$
+
+where $I_{gt}^{z} = I^{z}(x,y)$ is from the densely-sampled CT volume. After training, the fusion network is applied to all the synthesized slices $I_{sag}^{z}$ and $I_{cor}^{z}$ , yielding CT volume $I_{fuse}(x,y,z)$ .
+
+Alternative implementations. We experimented with an augmented version of SAINT, where $I(x,y,z)$ is viewed from four different directions by AMI, instead of two, and found minor improvement quantitatively. Furthermore, we also experimented with a 3D version of RFN, where all the filters are changed from 2D to 3D, and found no improvement. We believe that, as AMI is optimized on expanding slices in the axial axis, the produced volumes are already axially consistent. We refer readers to the supplemental material for more details on relevant experiments.
+
+# 4. Experiments
+
+Implementation Details. We implement the proposed framework using PyTorch3. To ensure a fair comparison, we construct all models to have similar number of network parameters and network depth; the network parameters are included in Table 1 and Table 2. For AMI, we use six Residual Dense Blocks (RDBs), eight convolutional layers per RDB, and growth rate of thirty-two for each layer. For the 3D version of RDN, we change to growth rate to sixteen to compensate for the larger 3D kernels. For mDCSRN [4], due to different acquisition methods of CT and MRI, we replace the last convolution layer with RDN's upsampling module instead of performing spectral downsampling on LR images. We train all the models with Adam optimization, with a momentum of 0.5 and a learning rate of 0.0001, until they converge. For more details on model architectures, please refer to the supplemental material section.
+
+3D volumes take large amount of memory to be directly inferred through deep 3D CNN networks. For mDCSRN,
+
+we follow the patch-based algorithm discussed in [4] to break down the volumes into cubes of shape $64 \times 64 \times 64$ , and infer them with margin of three pixels on every side; for other non-SAINT 3D networks, we infer only the central $256 \times 256 \times Z$ patch to ameliorate the memory issue. Quantitative results of all the methods are calculated on the central $256 \times 256 \times Z$ patch.
+
+Dataset. We employ 853 CT scans from the publicly available Medical Segmentation Decathlon [21] and 2019 Kidney Tumor Segmentation Challenge (KiTS [9], which we refer to as the kidney dataset hereafter). More specifically, we use the liver, colon, hepatic vessels datasets from Medical Segmentation Decathlon, and take 463 volumes from them for training, 40 for validation, and 351 for testing. The liver dataset contains a mix of volumes with $1\mathrm{mm}$ and $4 - 5\mathrm{mm}$ slice thickness, colon and hepatic vessels datasets contain volumes with $4 - 5\mathrm{mm}$ slice thickness. In order to examine the robustness of model performance on unseen data, we also add thirty-two CT volumes from the kidney dataset for evaluation, with slice thickness less commonly seen in other datasets.
+
+All volumes have slice dimension of $512 \times 512$ , with slice resolution ranging from $0.5\mathrm{mm}$ to $1\mathrm{mm}$ , and slice thickness from $0.7\mathrm{mm}$ to $6\mathrm{mm}$ . For data augmentation, all dense CT volumes are downsampled in the slice dimension to enrich volumes of lesser slice resolution. Such data augmentation is performed until either the volume has less than sixty slices, or its slice thickness is more than $5\mathrm{mm}$ .
+
+Evaluation Metrics. We compare different superresolution approaches using two types of quantitative metrics. Firstly, we use Peak Signal-to-Noise Ratio (PSNR) and Structured Similarity Index (SSIM) to measure low-level image quality. For experiments, we down-sample the original volumes by factors of $r_z = 4$ and $r_z = 6$ .
+
+# 4.1. Ablation Study
+
+In this section, we evaluate the effectiveness of AMI against alternative implementations. Specifically, we compare its performance against:
+
+A) MDSR: Proposed by Lim et al. [17], MDSR can superresolve images with multiple upsampling factors.
+B) RDN: The original RDN architecture, which allows for fixed upsampling factors.
+C) Meta-SR: Using the same RDN structure for feature learning, Meta-SR dynamically generates convolutional kernels based on Location Projection for the last stage.
+
+Table 1 summarizes the performance of different implementations against AMI, evaluated on $I_{sag}(x,y,z)$ , which we find to have better quantitative results than $I_{cor}(x,y,z)$
+
+| Scale | PSNR/SSIM | Parameters | Liver | Colon | Hepatic Vessels | Kidney |
| x2 | 2D MDSR | 2.92M | 37.17/0.9728 | 36.74/0.9741 | 36.80/0.9767 | 38.81/0.9752 |
| 2D RDN | 2.77M | 38.50/0.9800 | 38.11/0.9805 | 38.36/0.9837 | 40.09/0.9800 |
| Meta-SR | 2.81M | 38.03/0.9770 | 37.69/0.9785 | 38.03/0.9818 | 39.69/0.9776 |
| AMI | 2.81M | 38.64/0.9808 | 38.34/0.9815 | 38.48/0.9840 | 40.33/0.9807 |
| AMI+RFN | 2.93M | 39.16/0.9826 | 38.91/0.9835 | 39.13/0.9858 | 40.82/0.9821 |
| x4 | 2D MDSR | 2.92M | 33.43/0.9471 | 32.76/0.9436 | 32.91/0.9490 | 34.57/0.9508 |
| 2D RDN | 2.77M | 34.22/0.9546 | 33.39/0.9511 | 33.74/0.9571 | 35.17/0.9550 |
| Meta-SR | 2.81M | 34.20/0.9541 | 33.51/0.9516 | 33.74/0.9570 | 35.08/0.9544 |
| AMI | 2.81M | 34.40/0.9561 | 33.65/0.9529 | 33.93/0.9586 | 35.28/0.9560 |
| AMI+RFN | 2.93M | 34.91/0.9603 | 34.19/0.9579 | 34.48/0.9630 | 35.79/0.9597 |
| x6 | 2D MDSR | 2.92M | 31.15/0.9237 | 30.16/0.9133 | 30.22/0.9216 | 32.30/0.9297 |
| 2D RDN | 2.77M | 31.78/0.9315 | 30.82/0.9232 | 31.13/0.9319 | 32.47/0.9314 |
| Meta-SR | 2.81M | 31.88/0.9322 | 30.86/0.9234 | 31.09/0.9318 | 32.60/0.9329 |
| AMI | 2.81M | 32.05/0.9333 | 30.99/0.9249 | 31.22/0.9333 | 32.72/0.9343 |
| AMI+RFN | 2.93M | 32.50/0.9392 | 31.50/0.9320 | 31.89/0.9401 | 33.22/0.9393 |
+
+Table 1: Ablation study of SAINT (AMI+RFN) against alternative methods with quantitative evaluations. The best results are in bold, and the second best results are underlined.
+
+
+HR
+HR PSNR/SSIM
+Figure 6: Visual comparisons of different methods against AMI. The difference maps are provided to the right of the results for better visualization. Images are best viewed when magnified.
+
+
+
+
+2D MDSR x4 24.01/0.7735
+
+
+2D RDN x4 24.42/0.8101
+
+
+Meta-SR x4 24.51/0.7995
+
+
+AMI x4 25.84/0.8414
+
+
+2D MDSR x6 19.75/0.4727
+
+
+2D RDN x6 19.22/0.4482
+
+
+Meta-SR x6 22.81/0.7069
+
+
+AMI x6 23.42/0.7376
+
+for all methods. For both $r_z = 4$ and $r_z = 6$ , we found improvement in image quality from AMI over other methods, while Meta-SR and RDN have comparable performance. Despite the higher parameter number, MDSR ranked last due to using different substructures for different upsampling factors. For visual demonstration, we can see in Fig. 6 that AMI is able to recover the separation between the bones of the spine, while other methods lead to erroneous recovery where the bones are merged together. Compared to Meta-SR, AMI generates $HW$ times less filter weights in its filter generation stage. With finite memory, this allows for GPUs to handle more slices in parallel, and achieve faster inference time per volume.
+
+To examine the robustness of different methods, in addition to $r_z = 4$ and $r_z = 6$ , we also tested the methods on $r_z = 2$ , which is not included in training. AMI and Meta-SR can dynamically adjust the upsampling factor by changing the input to the filter generation network. For 2D
+
+MDSR and 2D RDN, we use the $r_z = 4$ version of the networks to over-upsample $I_{\downarrow r_z = 2}^x (y,z)$ and $I_{\downarrow r_z = 2}^y (x,z)$ , and downsample the output by factor of two axially to obtain results. We observe significant degradation in Meta-SR's performance as compared to other methods. Since MetaSR's input to its filter generation stage is dependent on the upsampling factor, an unseen upsampling factor can negatively affect the quality of the generated filters. In comparison, AMI does not explicitly include upsampling factor in its filter generation input, and performs robustly on the unseen upsampling factor.
+
+# 4.2. Quantitative Evaluations
+
+In this section, we evaluate the performance of our method and other SISR approaches. Quantitative comparisons are presented in Table 2. MDCSRN uses a DenseNet structure with batch normalization, which has been shown to adversely affect performance in super-resolution tasks
+
+| Scale | PSNR/SSIM | Parameters | Liver | Colon | Hepatic Vessels | Kidney |
| x4 | Bicubic | N/A | 28.36/0.8733 | 28.01/0.8622 | 27.83/0.8720 | 30.33/0.8946 |
| 3D MDSR | 2.88M | 33.70/0.9487 | 32.79/0.9442 | 32.80/0.9480 | 35.36/0.9563 |
| mDCSRN | 2.98M | 33.70/0.9494 | 32.83/0.9455 | 32.76/0.9487 | 35.44/0.9572 |
| 3D RDN | 2.88M | 34.12/0.9535 | 33.21/0.9497 | 33.26/0.9538 | 35.60/0.9582 |
| SAINT | 2.93M | 34.91/0.9603 | 34.19/0.9579 | 34.48/0.9630 | 35.79/0.9597 |
| x6 | Bicubic | N/A | 26.57/0.8405 | 26.28/0.8265 | 26.00/0.8382 | 28.59/0.8635 |
| 3D MDSR | 2.88M | 31.18/0.9237 | 29.99/0.9122 | 29.95/0.9192 | 32.82/0.9348 |
| mDCSRN | 2.98M | 30.90/0.9210 | 29.93/0.9113 | 29.74/0.9170 | 32.64/0.9330 |
| 3D RDN | 2.88M | 31.52/0.9286 | 30.54/0.9204 | 30.49/0.9263 | 32.71/0.9339 |
| SAINT | 2.93M | 32.49/0.9395 | 31.48/0.9321 | 31.87/0.9404 | 33.22/0.9393 |
+
+Table 2: Quantitative evaluation of 3D SISR approaches in terms of PSNR and SSIM. The best results are in bold, and the second best results are underlined.
+
+
+Figure 7: Visual comparisons of different methods against SAINT. The difference maps are provided to the right of the results for better visualization. Images are best viewed when magnified.
+
+[17, 27]. Furthermore, inference with 3D patches lead to observable artifacts where the patches are stitched together, as shown in the mDCSRN results in Fig. 7.
+
+For liver, colon and hepatic vessels datasets, SAINT drastically outperforms the competing methods; however, the increase in performance is less significant with the kidney dataset. Generalizing over unseen dataset is a challenging problem for all data-driven methods, as factors such as acquisition machines, acquisition parameters, etc. subtly change the data distribution. Furthermore, quantitative measurements such as PSNR and SSIM do not always measure image quality well.
+
+We visually inspect the results and find that SAINT generates richer detail when compared to other methods. It is evident in Fig. 7 that there is a least amount of structural artifacts remaining in the different images produced by SAINT. For more discussion on SAINT's advantage in resolving the memory bottleneck and more slice interpolation results, please refer to the supplemental material section.
+
+# 5. Conclusion
+
+We propose a multi-stage 3D medical slice synthesis method called Spatially Aware Interpolation Network (SAINT). This method enables arbitrary upsampling ratios, alleviates memory constraint posed by competing 3D methods, and takes into consideration the changing voxel resolution of each 3D volume. We carefully evaluate our approach on four different CT datasets and find that SAINT produces consistent improvement in terms of visual quality and quantitative measures over other competing methods, despite that other methods are trained for dedicated upsampling ratios. SAINT is robust too, judging from its performance on the kidney dataset that is not involved in the training process. While we constrain the size of our network for fair comparisons with other methods, the multi-stage nature of SAINT allows for easy scaling in network size and performance improvement. Future work includes investigating the effect of SAINT on downstream analysis tasks, such as lesion segmentation, and improving performance in recovering minute details.
+
+# References
+
+[1] S. Bakas et al. Advancing the cancer genome atlas glioma MRI collections with expert segmentation labels and radiomic features. Scientific data, 4, 2017. 1
+[2] H. Chen, Y. Zhang, Y. Chen, J. Zhang, W. Zhang, H. Sun, Y. Lv, P. Liao, J. Zhou, and G. Wang. Learn: Learned experts' assessment-based reconstruction network for sparse-data ct. IEEE Transactions on Medical Imaging, 37(6):1333-1347, June 2018. 3
+[3] H. Chen, Y. Zhang, M. K. Kalra, F. Lin, Y. Chen, P. Liao, J. Zhou, and G. Wang. Low-dose ct with a residual encoder-decoder convolutional neural network. IEEE Transactions on Medical Imaging, 36(12):2524-2535, Dec 2017. 3
+[4] Y. Chen, F. Shi, A. G. Christodoulou, Z. Zhou, Y. Xie, and D. Li. Efficient and accurate MRI super-resolution using a generative adversarial network and 3d multi-level densely connected network. CoRR, abs/1803.01417, 2018. 1, 3, 6
+[5] C. Dong, C. C. Loy, K. He, and X. Tang. Image superresolution using deep convolutional networks. CoRR, abs/1501.00092, 2015. 2
+[6] C. Dong, C. C. Loy, and X. Tang. Accelerating the super-resolution convolutional neural network. CoRR, abs/1608.00367, 2016. 2
+[7] I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. C. Courville, and Y. Bengio. Generative adversarial networks. CoRR, abs/1406.2661, 2014. 3
+[8] Y. Han and J. C. Ye. Framing u-net via deep convolutional framelets: Application to sparse-view CT. CoRR, abs/1708.08333, 2017. 3
+[9] N. Heller, N. Sathianathen, A. Kalapara, E. Walczak, K. Moore, H. Kaluzniak, J. Rosenberg, P. Blake, Z. Rengel, M. Oestreich, J. Dean, M. Tradewell, A. Shah, R. Tej-paul, Z. Edgerton, M. Peterson, S. Raza, S. Regmi, N. Papanikolopoulos, and C. Weight. The kits19 challenge data: 300 kidney tumor cases with clinical context, ct semantic segmentations, and surgical outcomes, 2019. 1, 6
+[10] X. Hu, H. Mu, X. Zhang, Z. Wang, T. Tan, and J. Sun. Meta-sr: A magnification-arbitrary network for super-resolution. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 3, 4
+[11] G. Huang, Z. Liu, and K. Q. Weinberger. Densely connected convolutional networks. CoRR, abs/1608.06993, 2016. 2
+[12] Y. Jo, S. W. Oh, J. Kang, and S. J. Kim. Deep video superresolution network using dynamic upsampling filters without explicit motion compensation. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3224-3232, June 2018. 3
+[13] J. Kim, J. K. Lee, and K. M. Lee. Accurate image superresolution using very deep convolutional networks. CoRR, abs/1511.04587, 2015. 2
+[14] J. Kim, J. K. Lee, and K. M. Lee. Deeply-recursive convolutional network for image super-resolution. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 1637-1645, 2016. 2
+
+[15] C. Ledig, L. Theis, F. Huszar, J. Caballero, A. Cunningham, A. Acosta, A. P. Aitken, A. Tejani, J. Totz, Z. Wang, and W. Shi. Photo-realistic single image super-resolution using a generative adversarial network. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 105-114, 2017. 2, 3, 6
+[16] X. Li, H. Chen, X. Qi, Q. Dou, C. Fu, and P. Heng. H-denseunet: Hybrid densely connected unet for liver and tumor segmentation from ct volumes. IEEE Transactions on Medical Imaging, 37(12):2663-2674, Dec 2018. 2
+[17] B. Lim, S. Son, H. Kim, S. Nah, and K. M. Lee. Enhanced deep residual networks for single image super-resolution. CoRR, abs/1707.02921, 2017. 2, 3, 6, 8
+[18] S. Liu, D. Xu, S. K. Zhou, T. Mertelmeier, J. Wicklein, A. K. Jerebko, S. Grbic, O. Pauly, W. Cai, and D. Comaniciu. 3d anisotropic hybrid network: Transferring convolutional features from 2d images to 3d anisotropic volumes. CoRR, abs/1711.08580, 2017. 2
+[19] B. H. Menze, A. Jakab, et al. The multimodal brain tumor image segmentation benchmark (BRATS). IEEE Trans. Med. Imaging, 34(10):1993-2024, 2015. 1
+[20] W. Shi, J. Caballero, F. Huszár, J. Totz, A. P. Aitken, R. Bishop, D. Rueckert, and Z. Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network, 2016. 2, 4
+[21] A. L. Simpson, M. Antonelli, S. Bakas, M. Bilello, K. Farahani, B. van Ginneken, A. Kopp-Schneider, B. A. Landman, G. Litjens, B. Menze, O. Ronneberger, R. M. Summers, P. Bilic, P. F. Christ, R. K. G. Do, M. Gollub, J. Golia-Pernicka, S. H. Heckers, W. R. Jarnagin, M. K. McHugo, S. Napel, E. Vorontsov, L. Maier-Hein, and M. J. Cardoso. A large annotated medical image dataset for the development and evaluation of segmentation algorithms, 2019. 6
+[22] G. Wang, W. Li, S. Ourselin, and T. Vercauteren. Automatic brain tumor segmentation using cascaded anisotropic convolutional neural networks. Lecture Notes in Computer Science, page 178-190, 2018. 2
+[23] Y. Wang, Q. Teng, X. He, J. Feng, and T. Zhang. Ct-image super resolution using 3d convolutional neural network, 2018. 3
+[24] J. M. Wolterink, T. Leiner, M. A. Viergever, and I. Isgum. Generative adversarial networks for noise reduction in low-dose ct. IEEE Transactions on Medical Imaging, 36(12):2536-2545, Dec 2017. 3
+[25] T. Würfl, M. Hoffmann, V. Christlein, K. Breininger, Y. Huang, M. Unberath, and A. K. Maier. Deep learning computed tomography: Learning projection-domain weights from image domain in limited angle problems. IEEE Transactions on Medical Imaging, 37(6):1454-1463, June 2018. 3
+[26] K. Zhang, W. Zuo, S. Gu, and L. Zhang. Learning deep CNN denoiser prior for image restoration. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 2808-2817, 2017. 2
+
+[27] Y. Zhang, Y. Tian, Y. Kong, B. Zhong, and Y. Fu. Residual dense network for image super-resolution. CoRR, abs/1802.08797, 2018. 1, 2, 4, 6, 8
+[28] Z. Zhang, X. Liang, X. Dong, Y. Xie, and G. Cao. A sparse-view ct reconstruction method based on combination of densenet and deconvolution. IEEE Transactions on Medical Imaging, 37(6):1407-1417, June 2018. 3
+[29] X. Zheng, S. Ravishankar, Y. Long, and J. A. Fessler. PWLS-ULTRA: An Efficient Clustering and Learning-Based Approach for Low-Dose 3D CT Image Reconstruction. IEEE Transactions on Medical Imaging, 37(6):1498–1510, Jun 2018. 3
\ No newline at end of file
diff --git a/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/images.zip b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8c66f3899b693fac9c31ff667384a8348d899558
--- /dev/null
+++ b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be09dec7f7f1b5b11569f58610e3d62c7a52590d2bd57aad60bac9991710a152
+size 695777
diff --git a/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/layout.json b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1e0d1d1aa17d908edf4ea475a44855b411fb646f
--- /dev/null
+++ b/saintspatiallyawareinterpolationnetworkformedicalslicesynthesis/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7afbbd9cd71486160bbdcdfbd6d1edabebd43d66bc554b879e23cc5eac9c3bee
+size 463341
diff --git a/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_content_list.json b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..053d55bdd95ee3cd35441e302de26645ba7e0601
--- /dev/null
+++ b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc46dbf4cc000b7999974ba88b788212243eaf00ffeb3653817c9467a174d824
+size 85628
diff --git a/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_model.json b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e16aabcd4444062f4ebffb4c70541ca8720db9c
--- /dev/null
+++ b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d2b481261bd1468a96b2003fc1207c76c3421a0d09e333489c82931b5e225596
+size 106528
diff --git a/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_origin.pdf b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b502b782af1213927e731d3f2c0deb2b387b2249
--- /dev/null
+++ b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/858c8778-eecf-4f6b-8d93-a70172e3c97f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da87912f1a62357ee57b88bf9fa08a2ea08fe0482ba65f8ce2686e6d62967ab9
+size 1230368
diff --git a/salienceguidedcascadedsuppressionnetworkforpersonreidentification/full.md b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..23024272d1f2933a87df9fb508e59f76405312af
--- /dev/null
+++ b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/full.md
@@ -0,0 +1,334 @@
+# Salience-Guided Cascaded Suppression Network for Person Re-identification
+
+Xuesong Chen * 1,2 Canmiao Fu 3 Yong Zhao 1
+
+Feng Zheng† 2 Jingkuan Song 6 Rongrong Ji4,7 Yi Yang 5
+
+$^{1}$ School of Electronic and Computer Engineering, Peking University, China
+
+$^{2}$ Southern University of Science and Technology, China $^{3}$ Tencent, China $^{4}$ Xiamen University, China
+
+5The ReLER Lab, Centre for AI, University of Technology Sydney, Australia
+
+6University of Electronic Science and Technology of China, China 7Peng Cheng Laboratory, China
+
+{cedarchen, fcm, yongzhao}@pku.edu.cn, zhengf@sustech.edu.cn
+
+# Abstract
+
+Employing attention mechanisms to model both global and local features as a final pedestrian representation has become a trend for person re-identification (Re-ID) algorithms. A potential limitation of these methods is that they focus on the most salient features, but the re-identification of a person may rely on diverse clues masked by the most salient features in different situations, e.g., body, clothes or even shoes. To handle this limitation, we propose a novel Salience-guided Cascaded Suppression Network (SCSN) which enables the model to mine diverse salient features and integrate these features into the final representation by a cascaded manner.
+
+Our work makes the following contributions: (i) We observe that the previously learned salient features may hinder the network from learning other important information. To tackle this limitation, we introduce a cascaded suppression strategy, which enables the network to mine diverse potential useful features that be masked by the other salient features stage-by-stage and each stage integrates different feature embedding for the last discriminative pedestrian representation. (ii) We propose a Salient Feature Extraction (SFE) unit, which can suppress the salient features learned in the previous cascaded stage and then adaptively extracts other potential salient feature to obtain different clues of pedestrians. (iii) We develop an efficient feature aggregation strategy that fully increases the network's capacity for all potential salience features. Finally, experimental results demonstrate that our proposed method outperforms the state-of-the-art methods on four large-scale datasets. Especially, our approach exceeds the current best method by over $7\%$ on the CUHK03 dataset.
+
+
+Figure 1. The insight of the Salience-guided Cascaded Suppression Network (SCSN). For training, each stage is guided by the gradient from the loss function. During testing, different stage's features will be concatenated to generate the final diverse pedestrian representation. Benefiting from the suppression strategy, potential important features can stand out in the next stage, which enables different stages to discover diverse clues of pedestrians.
+
+# 1. Introduction
+
+Given a probe person image, the Person Re-identification (Re-ID) task aims to search the picture that most likely belongs to the same pedestrian from the gallery (the candidate picture set). It is commonly applied to address the issues of cross-camera tracking and surveillance security and can be considered as an image retrieval problem.
+
+To this end, most existing Re-ID methods focus on learning discriminative and robust features to match the pair of images in response to various challenges, including varying viewing angles, lighting intensity and body pose variations. Specifically, recent studies [9, 12, 27, 32] have shown that combining part-based local features with global features is an effective strategy to enhance the feature representation. In general, considering a whole image, the global feature is robust to the appearance changes and spatial location variations. However, lacking the supervision of fine-grained characterizations, global features may focus on interference information, such as backgrounds, which is not expected. Besides, global features are prone to ignore the information of some small regions which can make contributions for discriminative pedestrian representation. Motivated by such observations, the attention mechanism and part-based
+
+models were introduced to address these issues [5, 7]. The employment of attention mechanisms can enforce the model to capture the discriminative local features of human bodies and reduce the interference of different variations in the background. Meanwhile, part-based models could concentrate on learning more fine-grained local salience features of different human body parts by dividing feature maps into horizontal parts. So, with attention mechanisms, aggregating local features and global features has become a trend for person Re-ID and it has achieved promising results.
+
+Nevertheless, one crucial limitation of these global-local methods, including attention-based and part-based, is the lack of exploration of how to effectively extract discriminative potential salience features of different pedestrians. On the one hand, the attention-based methods [5, 7, 16, 38] mainly focus on the discriminative appearances of the human body. However, the attention mechanism trained in a weakly-supervised manner tends to learn the "easiest" features at a compact subspace due to the partial learning behavior of deep models [3, 4]. In other words, deep models easily focus on surface distribution regularities rather than more general and diverse concepts, so that they are prone to ignore potential information of pedestrians. On the other hand, part-based methods [24, 36, 49] handle misalignment and provide richer fine-grained local features by dividing the input into many horizontal stripes. However, with the number of parts increases, the improvement of accuracy is minor and even gets worse. Because too fine division deprives the semantic information of each part and makes the network redundant as well. Moreover, if all kinds of features are indiscriminately concatenated, some significant discriminant features which are not distinctive in intensity will be masked by other salient features. Therefore, how to efficiently extract diverse salient features and how to integrate these features reasonably are worthy of discussion for the Re-ID task.
+
+In this paper, to further improve the model's feature representation capability, we present a salience-guided cascaded feature suppression mechanism that enables the network to adaptively extract all potential salient pedestrian features. More specifically, we propose a feature aggregation strategy which consists of a Residual Dual Attention Module (RDAM) and a Non-local Multi-stage Feature Fusion (NMFF) block, to better aggregate low-level and high-level features of the backbone, and a Salient Feature Extract (SFE) unit to effectively yet efficiently extract diverse potential features. With the help of the feature aggregation strategy, our network can make better use of low-level features, such as the color and texture of the clothes, which greatly improves the feature representation capability of the backbone. Hence, the cascaded suppression head with SFE units can extract salience features via a cascaded suppression update. In practice, we first employ a global stage on
+
+top of the backbone to extract the most salient region-level information with the SFE unit. In order to boost information flow in our feature suppression mechanism, the salient feature learned at a certain stage is first integrated with the global feature to enhance this stage's feature discriminability, and then it will be suppressed to get the salience-free input feature for the next stage. Similarly, for the rest stages, the network will mine some other important potential features with the SFE unit after the previous salient feature being suppressed. We illustrate the salience-guided cascaded suppression network in Fig. 1.
+
+To summarize, our proposed work makes the following contributions:
+
+- We introduce a novel cascaded feature suppression mechanism that can mine all potential salient features stage-by-stage and integrate these discriminative salience features with the global feature, forming the final diverse feature representation of pedestrians.
+- We devise a Salient Feature Extraction(SFE) unit to adaptively extract potential salient features by suppressing the most salient features.
+- We incorporate an efficient feature aggregation strategy, consisting of the RDAM and the NMFF block, which increases the network's capacity for all potential salience features.
+- Extensive experiments on Market1501 [50], DukeMTMC-ReID [52], CUHK03 [22] and MSMT17 [42] demonstrate that our method significantly outperforms the existing state-of-the-art methods on four popular benchmarks.
+
+# 2. Related Work
+
+Due to the improvement of computing power, in recent years, deep learning based methods are developed to address the person Re-ID task. Below, we review the most representative methods which are related to our work.
+
+Part-based algorithms: Pyramid [49], PCB [36] and MGN [41] achieve state-of-the-art performance by integrating global features and many stripe-based features. This strategy often requires a complex network to learn and combine different levels of features, which bringing performance improvements but suffering from over-fitting and information redundancy. Compared with [36, 41, 49] which divide the feature maps horizontally, other methods learn more semantic local features guided by prior knowledge. Attention-related methods [5, 7, 16, 38] employ different attention modules to improve feature representation and achieve further performance gains on the baseline. Furthermore, incorporating prior knowledge such as the human body structure has also been proved to be an effective method [23, 29, 33, 39, 45, 47]. Meanwhile, GLAD [43]
+
+
+Figure 2. The pipeline of our Salience-guided Cascaded Suppression Network (SCSN). After the modified ResNet50 backbone, we employ several independent feature suppression stages. During training, both the ID loss and Triplet loss are used to supervise the learning of these stages, respectively. In the testing, all features of different stages are concatenated together as the final descriptor of a pedestrian image.
+
+integrates features from both local and global regions using the detected human body parts. Similar to the attention strategies, [48] employs composite models to extract specific salience features from different parts of the human body in an unsupervised manner. However, such methods are prone to possible noises from the pose estimation and semantic parsing algorithms.
+
+Non-part-based algorithms: Recently, to improve the global feature's attention to local information, some adversarial occluded samples [18] and a synthetic dataset [2] are constructed to improve the Re-ID model's feature extraction ability. Moreover, lots of metric learning methods [6, 14, 35] aim to enlarge the inter distance while reducing intra distinction, which improve the representation of Re-ID task. And in our work, we also use the triplet loss [14]. Further, in GSRW [30], a novel group-shuffling random walk network is proposed to improve the training and testing processes by gallery-to-gALLERY affinities.
+
+# 3. Proposed Method
+
+We aim to optimize the architecture of the model to adaptively extract the potential salient feature of pedestrians. To this end, we proposed the Salience-guided Cascaded Suppression Network (SCSN). It introduces two new components: the feature aggregation modules (residual dual attention module and non-local fusion block) and the salient feature extraction unit. For convenience, in stage $t$ , we denote the input feature map as $X^t$ , the boosted feature map as $Y^{t}$ , and the suppressed feature map for the input of $t + 1$ stage as $X^{t + 1}$ . Our framework is illustrated in Fig. 2.
+
+# 3.1. Residual Dual Attention Module
+
+The Residual Dual Attention Module (RDAM) consists of a Channel-wise Attention Module(CAM) and a Residual Spatial Attention Module (RSAM), in which the channel-
+
+wise attention module explores the correlation between channel features and the residual spatial attention module is responsible for exploring the semantically strong features within the spatial dimension.
+
+Channel-wise Attention: The high-level convolutional feature in a trained CNN module is well-known to have remarkable localization ability for a semantic-related object. The channel-wise attention is introduced to enhance the representational ability for various pedestrians by explicitly modeling the interdependencies between the channel of convolutional features. To obtain the channel attention weight, we squeeze the spatial dimension of the input feature map by average pooling (to identify the extent of the object) and max pooling (to identify one discriminative part) simultaneously, generating two different 1D context descriptors: $M_{avg}^{c}$ and $M_{max}^{c}$ , which is similar to [44]. We then aggregate these descriptors via an attention mechanism [17] to obtain our channel attention map $A_{c}$ . The detailed architecture of the attention agent is illustrated in Fig. 2(A). For a input, the channel attention vector is computed as:
+
+$$
+A _ {c} = \sigma \left(\mathbf {W} _ {2} \delta \left(\mathbf {W} _ {1} M _ {a v g} ^ {c}\right) + \mathbf {W} _ {2} \delta \left(\mathbf {W} _ {1} M _ {m a x} ^ {c}\right)\right). \tag {1}
+$$
+
+Herein, $\mathbf{W}_1$ and $\mathbf{W}_2$ are the parameters of FC layers and $\sigma$ , $\delta$ denote the Sigmoid and ReLU function, respectively. The constructed channel-wise attention $A_{c}$ is further applied to the original feature maps via channel-wise multiplication to enhance more informative channels and suppressing less useful ones. Then the obtained feature representations are further leveraged by the Residual Spatial Attention Module.
+
+Residual Spatial Attention: The residual spatial attention is designed to guide the network to gather more necessary semantical information in the spatial dimension, which is complementary to the channel attention. To obtain the spatial attention map, we firstly aggregate the channel-wise
+
+information of a feature map by two pooling operations: average pooling and max pooling, and generate two 2D maps: $M_{avg}^{s} \in \mathbb{R}^{H \times W}$ and $M_{max}^{s} \in \mathbb{R}^{H \times W}$ . We then employ a convolution layer to aggregate $M_{avg}^{s}$ , $M_{max}^{s}$ and further obtain the spatial attention map $W_{n} \in \mathbb{R}^{H \times W}$ which encodes the locations to emphasize or suppress and $n$ denotes the layer index of one stage. Consequently, inspired by [8], we allow the spatial attention information of previous blocks to propagate along with adjacent modules, named residual spatial aggregation, which enhances the consistency and robustness of spatial correlation estimation. Specifically, at each layer $n$ in the same stage of backbone, $A_{n}^{s}$ is the residual refined spatial map and $A_{n-1}^{s}$ is the spatial map of the previous block. Then the update operation is defined as:
+
+$$
+A _ {n} ^ {s} = \sigma \left(A _ {n - 1} ^ {s} + \beta \cdot \left(W _ {n} - A _ {n - 1} ^ {s}\right)\right), \tag {2}
+$$
+
+where $\beta$ is a trainable variable initialized as 1, $\sigma$ is the sigmoid activation function and we set $A_0^s = 0$ for the first layer of each stage. Finally, $A_{n}^{s}$ is applied to the input via an element-wise multiplication, as shown in Fig. 2(B).
+
+
+Figure 3. Illustration of the pyramid average pooling process.
+
+# 3.2. Non-local Multistage Feature Fusion
+
+Features fusion of different levels [20] has been demonstrated to be helpful to semantic segmentation, classification and detection. Common fusing operations are conducted in a pixel-wise, such as addition or concatenation, which has a limited performance gain because low-level features lack semantic information. To aggregate the features from different stages that are worth retaining for the final representation, we incorporate a non-local block to fuse multi-level features by leveraging long-range dependencies inspired by [54], called Non-local Multi-stage Feature Fusion (NMFF) block. Next, we elaborate on the detail of the NMFF block presented in Fig. 5. Specifically, we consider two types of source information for non-local fusion block: a high-level feature map $F_{h} \in \mathbb{R}^{C_{h} \times H_{h} \times W_{h}}$ and a low-level feature map $F_{l} \in \mathbb{R}^{C_{l} \times H_{l} \times W_{l}}$ , where $C, W$ and $H$ denote the number of channel, width and height of features, respectively. Then, we employ three $1 \times 1$ convolutions $\psi_{q}, \psi_{v}$ and $\psi_{k}$ to transform $F$ into compact embedding $F_{q} \in \mathbb{R}^{C' \times N_{h}}$ , $F_{v} \in \mathbb{R}^{C' \times S}$ and $F_{k} \in \mathbb{R}^{S \times C'}$ as:
+
+$$
+F _ {q} = \psi_ {q} \left(F _ {h}\right), \quad F _ {k} = \psi_ {k} \left(F _ {l}\right), \quad F _ {v} = \psi_ {v} \left(F _ {l}\right), \tag {3}
+$$
+
+
+Figure 4. The detailed architecture of the Salient Feature Extraction (SFE) unit.
+
+
+Figure 5. The detailed architecture of the Non-local Multistage Feature Fusion (NMFF) block.
+
+where $N_{h} = W_{h}\times H_{h}$ and $S$ represents pyramid average pooling pixels, as showed in Fig. 3. Consequently, we obtain the similarity matrix $M\in \mathbb{R}^{S\times N_h}$ by applying softmax on the matrix multiplication of $F_{k}$ , $F_{q}$ and then the fused output $F^{hl}\in \mathbb{R}^{C_f\times N_h}$ is computed by a matrix multiplication of $M$ and $F_{v}$ :
+
+$$
+F ^ {h l} = M \times F _ {v} = \mathcal {F} _ {\text {s o f t m a x}} \left(F _ {k} \times F _ {q}\right) \times F _ {v}. \tag {4}
+$$
+
+Based on the above presentation, for the $n$ stages employed for feature fusion, the final multi-stage fused feature $F_{f}$ is obtained by
+
+$$
+F _ {f} = \phi \left(F ^ {h l _ {1}}, F ^ {h l _ {2}}, \dots , F ^ {h l _ {n}}\right), \tag {5}
+$$
+
+where $\phi$ denotes a $1\times 1$ convolution to reduce those features into a compact embedding.
+
+# 3.3. Salient Feature Extraction Unit
+
+As shown in Fig. 4, SFE unit behaves like a salience feature receptor that perceives which part-based features are discriminative. The unit can be decomposed into a salience descriptor and a salience selector.
+
+Salience Descriptor: We divide the feature map into different stripes. Although we do not explicitly define the specific region features corresponding to each stripe of an object, this descriptor can be prone to guide each stripe to adaptively mine important information. As shown in Fig. 4, for a given input feature map $X^{t} \in \mathbb{R}^{C \times H \times W}$ at $t$ stage, we uniformly split it into several part-based stripes and each of which has the size of $C \times (H / K) \times W$ , where $K$ denotes the number of stripes. Then, a convolutional layer followed by
+
+batch normalization and ReLU is explored to capture fine-granularity information of each stripe, generating a compact feature descriptor with the shape of $1 \times (H / K) \times W$ . Consequently, we apply a global average pooling operation on the feature descriptor to get the feature vector $\mathbf{z} \in \mathbb{R}^{k \times 1}$ . Obviously, the larger the number of part-based stripes is, the finer the feature descriptor is.
+
+Salience Selector: After obtaining the feature vector $\mathbf{z}$ , we employ the salience selector that consists of a softmax activation and an element-wise multiplication $\odot$ , which is analogous to an attention mechanism. Then we can get the salience-sensitive weights $W = (w_{1},\dots ,w_{k})^{T}$ and salience local feature $\mathcal{S}a l(X^t)$ :
+
+$$
+\operatorname {S a l} \left(X ^ {t}\right) = W \odot X ^ {t}, \tag {6}
+$$
+
+$$
+w _ {i} = \frac {\exp (z _ {i})}{\sum_ {1} ^ {k} \exp (z _ {j})}, \quad i \in [ 1, k ]. \tag {7}
+$$
+
+$Sal(X^t)$ is highlighted in stage $t$ while will be suppressed in stage $t + 1$ .
+
+# 3.4. Salience-Guided Cascaded Suppression Network
+
+Multi-Stage Suppression: Our proposed SCSN employs ResNet50 as the backbone. Notice that we modified the downsample strides of Stage3 and Stage4 to 1 to preserve more spatial information. After getting the basic feature from the backbone, we extract potential salience feature stage-by-stage. Specifically, for stage $t$ , we first extract salient feature $\mathcal{S}a l(X^{t})$ of this stage by SFE unit and then the $\mathcal{S}a l(X^{t})$ will be integrated with the base input feature $X^{t}$ as follow:
+
+$$
+Y ^ {t} = X ^ {t} + \mathcal {S a l} \left(X ^ {t}\right), \tag {8}
+$$
+
+where $Y^{t}$ denotes the salience boosted feature. The promotion of $\mathcal{S}a l(X^t)$ alleviates the dilution of detail information due to the global average pooling and the summation integration method also avoids the dimensional inefficiency caused by concatenation. Consequently, to mine other potential salient features, we apply a salience mask on the output of stage $t$ to suppress $\mathcal{S}a l(X^t)$ and obtain the input $X^{t + 1}$ of stage $t + 1$ :
+
+$$
+X ^ {t + 1} = X ^ {t} \cdot \mathcal {B} (X ^ {t}), \tag {9}
+$$
+
+where $\mathcal{B}$ is a binary mask which takes values of the most salient $Sal(X^t)$ to 0 and others to 1. The suppression operation relieves the coverage effect of $Sal(X^t)$ on other features and makes potential information stand out. Therefore, the network can further discover more potential features. The detailed pipeline of SCSN is shown in Fig. 2. We consider backbone's last convolution block followed by a SFE unit as the global ( $t = 1$ ) stage. The feature extracted in
+
+
+Query Backbone Stage I Stage II
+
+
+Query Backbone Stage I Stage II
+Figure 6. The feature visualization for 4 hard samples with similar appearances. Warmer color denotes higher value. We can observe that the backbone features are not accurate enough such as the interference of background, as shown in the red circles. However, the stage I features extracted by SFE unit focus on such salient features, as noted in red boxes. And, after the salience feature suppression, stage II discovers some potential features which are also important but masked by salient features of stage I.
+
+the global context is the most salient one among all stripe-based local features. The following stages then continue to mine salience features in the same manner. Fig. 6 shows an intuitive salient feature visualization of 4 hard samples with similar appearances. To avoid information redundancy, we first apply global pooling on the boosted output $Y^{t}$ to generate a 2048-dimensional feature vector and then use the FC layer to reduce the vector dimension. Note that, in our experiments, the global stage uses the average pooling to get the feature vector while the following stages use the max pooling because salience suppression operation causes instability of the mean of the features.
+
+Comparison with Feature Erasing: Inspired by the cognitive process of humans, 'deliberately' suppressing the areas we are not interested in is to better focus on our attention [21]. The similar idea of feature erasing has also been used for weakly-supervised object localization and semantic segmentation [15, 46]. However, the purpose and implementation of these methods are different from ours. Specifically, by erasing the object-related region that the network already captured, these methods encourage CNN to discover more semantic areas related to object for the integral object attention. On the contrary, the proposed SFE unit aims to extract the most salience feature that can distinguish one instance to others, looking for a salience subset in the basis feature space instead of searching for a more complete feature space as [15, 46] did.
+
+Moreover, our approach is more labor-saving than other methods that rely on auxiliary information, such as attribute learning [24] and pose/human parsing [19, 25, 29]. Specifically, with the large labeled datasets, attribute learning methods force the network to pay attention to local contexts by the supervision of specific labels. But the large number of attribute-labels cannot always be taken for granted. Meanwhile, pose/human parsing related methods utilize the prior human body knowledge that comes from the pose estimation and semantic parsing algorithms. They are prone
+
+to be misguided by the noise of prior because semantic segmentation and pose estimation themselves are challenging tasks in complex scenarios.
+
+Loss Function: Identification loss gets the ID prediction logits of images, which is similar to the classification loss, defined as:
+
+$$
+L _ {i d} = \sum_ {i = 1} ^ {N} - q _ {i} \log \left(p _ {i}\right) \left\{ \begin{array}{l l} q _ {i} = \varepsilon / N & y \neq i, \\ q _ {i} = 1 - \varepsilon \frac {N - 1}{N} & y = i, \end{array} \right. \tag {10}
+$$
+
+where $y$ and $p_i$ denote the ground-truth ID label and the predicted logit of class $i$ , respectively. $N$ represents the number of classes and $q_i$ is the smoothed label which is proposed in [37] and $\varepsilon = 0.1$ is used to smooth the label.
+
+In addition, considering the property of Re-ID, that is, finding the most similar series of people from the gallery, we introduce the idea of metric learning, which enables the network to find features that are useful for similarity metrics[13]. Therefore, we employ the triplet loss to enhance the final ranking performance, which is defined as:
+
+$$
+L _ {t p} = \sum_ {N} \left[ d _ {p} - d _ {n} \right] _ {+}, \tag {11}
+$$
+
+where $d_p$ is the feature distance of the same identity and $d_n$ denotes the distance of different identities. $N$ is the batch-size of triplet samples and $[\cdot]_{+}$ means $\max(\cdot, 0)$ . Triplet loss aims to ensure that the distance between positive sample pairs is less than the distance between negative sample pairs. The final loss of our model can be written as:
+
+$$
+L = L _ {i d} + L _ {t p}. \tag {12}
+$$
+
+Finally, we jointly train the end-to-end multi-staged suppression network with intermediate supervision loss.
+
+# 4. Experiments
+
+# 4.1. Implementation
+
+Experimental details: We resize all images into the resolution of $384 \times 128$ and set the number of stripes $K = 8$ . Our backbone is ResNet50 pre-trained on ImageNet. For data augmentation, we deploy random horizontal flipping and random erasing in the training dataset, which is the same as [26]. For each iteration, mini-batch sampled to the triplet loss consists of $B = P \cdot I$ images, including randomly selected $P$ identities and randomly sampled $I$ images for each identity. Here we take $P = 48$ and $I = 4$ . For NMFF block, we take $c_{f}^{34} = 2048$ and $c' = 256$ for Market1501, and set $c_{f}^{14} = c_{f}^{24} = c_{f}^{34} = 512$ , $c' = 64$ for the rest three datasets. We employ Adam as the optimizer with the weight decay factor of 0.0005. In addition, a warmup strategy is applied to make the training gradient smooth. In practice, we first spend 20 epochs to linearly increase the learning rate from $1.25 \times 10^{-4}$ to $2.5 \times 10^{-3}$ (20
+
+| Method | Backbone | mAP | rank 1 |
| SCSN(4 stages) | ResNet50 | 88.30 | 92.40 |
| SCSN(3 stages) | ResNet50 | 88.50 | 95.70 |
| *ABDNet [7](ICCV19) | ResNet50 | 88.28 | 95.60 |
| †Pyramid[49](CVPR19) | ResNet101 | 88.20 | 95.70 |
| DCDS[1](ICCV19) | ResNet101 | 85.80 | 94.81 |
| * †MHN(PCB) [5](ICCV19) | ResNet50 | 85.00 | 95.10 |
| †MGN [24] (ACM MM 18) | ResNet50 | 86.90 | 95.70 |
| BFE [10](ICCV19) | ResNet50 | 86.20 | 95.30 |
| *†CASN(PCB)[51](CVPR19) | ResNet50 | 82.80 | 94.40 |
| *†AANet[38](CVPR19) | ResNet152 | 83.41 | 93.93 |
| *IANet[16](CVPR19) | ResNet50 | 83.10 | 94.40 |
| *†VPM[34](CVPR19) | ResNet50 | 80.80 | 93.00 |
| §PSE+ECN[29](CVPR18) | ResNet50 | 80.50 | 90.40 |
| †PCB+RPP[36](ECCV18) | ResNet50 | 81.60 | 93.80 |
| †PCB[36](ECCV18) | ResNet50 | 77.40 | 92.30 |
| *DuATM [31](CVPR18) | DenseNet121 | 76.60 | 91.40 |
| §Pose-transfer[25](CVPR18) | DenseNet169 | 56.90 | 78.50 |
| §SPRelID[19](CVPR18) | ResNet152 | 83.36 | 93.68 |
| Tricks[26](CVPRW19) | SEResNet101 | 87.30 | 94.60 |
| *Mancs[40](ECCV18) | ResNet50 | 82.30 | 93.10 |
| PAN[53](TCSVT18) | ResNet50 | 63.40 | 82.80 |
| SVDNet[35](CVPR17) | ResNet50 | 62.10 | 82.30 |
+
+* Attention related, † Stripes related, § Pose or human parsing related.
+
+Table 1. Comparison with state-of-the-art person Re-ID methods on the Market1501 dataset.
+
+times) and then employ a cosine annealing strategy to decrease the learning rate from $2.5 \times 10^{-3}$ to 0, using another 200 epochs.
+
+Protocols: To compare the performance of the proposed method with the existing advanced Re-ID methods, we adopt the Cumulative Matching Characteristics (CMC) at rank1 and mean Average Precision (mAP) as the evaluation metrics for each query image on 4 datasets. It is worth noting that re-ranking is not used for simplicity.
+
+# 4.2. Datasets
+
+Market1501: It [50] consists of 32668 images of 1501 individuals in total, among which 12936 images of 751 persons are used as the training set. And 19732 images of 750 people are separated into the testing set with 3368 query images as well as 16364 gallery images. Besides, this dataset is shot by six different cameras with bounding-boxes annotated by the Deformable Part Model (DPM) detector [11].
+
+DukeMTMC-ReID: It is a subset of the DukeMTMC [52] and is also a popular dataset for human Re-ID, including 36411 images of 1812 identities from eight high-resolution cameras. Specifically, the training set contains 16522 images of 702 identities that are randomly selected from the overall images, and the testing set comprises the other 2228 query images and 17661 gallery ones.
+
+CUHK03: This dataset [22] comprehends 14097 images of 1467 persons from ten cameras and is divided into the training set of 767 individuals and the testing set of 700 individuals. Besides, it provides two types of annotations,
+
+| Method | Backbone | mAP | rank 1 |
| SCSN(4 stages) | ResNet50 | 79.00 | 91.00 |
| SCSN(3 stages) | ResNet50 | 79.00 | 90.10 |
| †Pyramid [49](CVPR19) | ResNet101 | 79.00 | 89.00 |
| *ABDNet [7](ICCV19) | ResNet50 | 78.60 | 89.00 |
| †MGN [24] (ACM MM 18) | ResNet50 | 78.40 | 88.70 |
| *†MHN(PCB)[5](ICCV19) | ResNet50 | 77.20 | 89.10 |
| BFE [10](ICCV19) | ResNet50 | 75.90 | 88.90 |
| *†CASN(PCB)[51](CVPR19) | ResNet50 | 73.70 | 87.70 |
| DCDS[1](ICCV19) | ResNet101 | 75.50 | 87.50 |
| *†AANet[38] (CVPR19) | ResNet152 | 74.29 | 87.65 |
| §PSE+ECN[29](CVPR18) | ResNet50 | 75.70 | 84.50 |
| *IANet[16](CVPR19) | ResNet50 | 73.40 | 83.10 |
| *VPM[34](CVPR19) | ResNet50 | 72.60 | 83.60 |
| *DuATM [31](CVPR18) | DenseNet121 | 64.60 | 81.80 |
| †PCB+RPP[36](ECCV18) | ResNet50 | 69.20 | 83.30 |
| §SPReID[19](CVPR18) | ResNet152 | 73.34 | 85.95 |
| §Pose-transfer[25](CVPR18) | DenseNet169 | 56.90 | 78.50 |
| Tricks[26](CVPRW19) | SEResNet101 | 78.00 | 87.50 |
| *Mancs[40](ECCV18) | ResNet50 | 82.30 | 93.10 |
| SVDNet[35](CVPR17) | ResNet50 | 56.80 | 76.70 |
| PAN[53](TCSVT18) | ResNet50 | 51.51 | 71.59 |
+
+* Attention related, † Stripes related, § Pose or human parsing related
+Table 2. Comparison with state-of-the-art person Re-ID methods on the DukeMTMC-ReID dataset.
+
+i.e., manually labeled pedestrian boxes and DPM detected boxes. More concretely, the manually labeled part consists of 7368 training images, 1400 query images and 5328 gallery images; the DPM detected part includes 7365 training images, 1400 query images and 5332 gallery images.
+
+MSMT17: It [42] is a new public person Re-ID dataset. There are 126441 images of 4101 identities captured by a 15-camera network, including 12 outdoor and 3 indoor, in this largest dataset. And all the boxes are annotated by Faster RCNN [28]. Therefore, MSMT17 is more challenging than other public person Re-ID datasets, due to its massive scale, more complex and dynamic scenes.
+
+# 4.3. Comparison with State-of-the-Art Methods
+
+We compare the proposed SCSN with current state-of-the-art methods on four datasets, including Market1501, DukeMTMC-ReID, CUHK03 and MSMT17 to demonstrate the robustness and the superior performance over other advanced methods. Results are given as following.
+
+Market1501: Table 1 shows the results of Market1501. These methods are divided into two groups: the top of Table 1 are methods that integrate local features and global features, called the global-local group and the bottom are methods merely employing global features, called the global group. Our SCSN obtains the best mAP performance and the same rank1 result as Pyramid [49]. However, it is worth pointing out that Pyramid benefits from a larger backbone and a more complex pyramidal feature set (including 21 stripe features). Tricks is the representative of the global group. With the strong backbone SEResNet101,
+
+| Method | Backbone | Labeled | Detected |
| mAP | rank1 | mAP | rank1 |
| SCSN(4 stages) | ResNet50 | 84.00 | 86.80 | 81.00 | 84.70 |
| SCSN(3 stages) | ResNet50 | 83.30 | 86.30 | 80.20 | 84.10 |
| †Pyramid[49](CVPR19) | ResNet101 | 76.90 | 78.90 | 74.80 | 78.90 |
| BFE[10](ICCV19) | ResNet50 | 76.70 | 79.40 | 73.50 | 76.40 |
| *†MHN(PCB)[5](ICCV19) | ResNet50 | 72.40 | 77.20 | 65.40 | 71.70 |
| †MGN[24] (ACM MM 18) | ResNet50 | 67.40 | 68.00 | 66.00 | 68.00 |
| †PCB+RPP[36](ECCV18) | ResNet50 | - | - | 57.50 | 63.70 |
| *†CASN(PCB)[51](CVPR19) | ResNet50 | 68.00 | 73.70 | 64.40 | 71.50 |
| Tricks[26](CVPRW19) | SEResNet101 | 70.40 | 72.00 | 68.00 | 69.60 |
| *Mancs[40](ECCV18) | ResNet50 | 63.90 | 69.00 | 60.50 | 65.50 |
| SVDNet[35](CVPR17) | ResNet50 | 37.80 | 40.90 | 37.30 | 41.50 |
| PAN[53](TCSVT18) | ResNet50 | 35.00 | 36.90 | 34.00 | 36.30 |
+
+* Attention related, † Stripes related
+Table 3. Comparison with state-of-the-art person Re-ID methods on the CUHK03 dataset with the 767/700 split.
+
+Tricks achieves comparative results. However, the inherent defect of the global feature, that is, the dilution of the local significant information, limits further improvement of such methods. Finally, our proposed cascaded feature suppression strategy achieves further improvements, benefiting from the employ of potential salient features explored by SFE units.
+
+DukeMTMC-ReID: The results of this dataset are shown in Table 2. Similar to Market1501 dataset, the proposed SCSN also achieves the best results on rank1 and exceeds Pyramid [49]/ABDNet [7] by $2.0\%$ . Besides, we achieve the same mAP performance as Pyramid [49] while uses a lightweight backbone.
+
+CUHK03: It is a more challenging dataset, compared with Market1501 and DukeMTMC-ReID. This is reflected in 1) CUHK03 has fewer samples and the viewpoint variations and the occlusion problems are serious; 2) the annotation of bounding boxes marked by object detection algorithm has location offsets. While, as reported in Table 3, SCSN substantially exceeds Pyramid [49]/BFE [10] by $7.1\% / 7.3\%$ in mAP and $7.9\% / 7.4\%$ in rank1 metric on the labeled dataset and exceeds the performances of Pyramid [49]/BFE [10] by $6.2\% / 7.5\%$ in mAP and $5.8\% / 8.3\%$ in rank1 on the detected dataset, achieving the most outstanding results. The experimental results clearly demonstrate that under the condition of limited training samples, mining potential features and integrating these complementary features enjoys great advantages. Specifically, with limited samples, the attention mechanism is prone to partially learn the most significant features, but the learned biased feature maybe not robust and essential because it will change and even be lost during testing. Meanwhile, indiscriminate stacking redundant local features, such as Pyramid [49], can only bring limited improvements.
+
+MSMT17: Table 4 shows the results of MSMT17 which is the latest and largest Re-ID dataset and the amount of methods that report on this dataset is less because it is recently publicly-available. SCSN achieves the best performances on rank1 and rank5 metrics.
+
+| Method | Backbone | mAP | rank1 | rank5 |
| SCSN(4 stages) | ResNet50 | 58.50 | 83.80 | 91.50 |
| SCSN(3 stages) | ResNet50 | 58.00 | 83.00 | 91.20 |
| ABDNet[7](ICCV19) | ResNet50 | 60.80 | 82.30 | 90.60 |
| BFE[10](ICCV19) | ResNet50 | 51.50 | 78.80 | 89.10 |
| IANet[16](CVPR19) | ResNet50 | 46.80 | 75.50 | 85.50 |
| GLAD[43](ACM MM 17) | ResNet50 | 34.00 | 61.40 | 76.80 |
| PDC[32](ICCV17) | GoogLeNet | 29.70 | 58.00 | 73.60 |
| ResNet50[13](CVPR16) | Baseline | 33.90 | 63.20 | - |
+
+Table 4. Comparison with state-of-the-art person ReID methods on the MSMT17 dataset.
+
+# 4.4. Ablation Studies
+
+To demonstrate the effects of feature aggregation and feature suppression blocks in SCSN, we incrementally evaluate each module on DukeMTMC-ReID. We take ResNet50 with the global branch as the baseline, employing the ID loss and Triplet loss. Nine variants are then conducted based on the baseline: a) baseline + CAM; b) baseline + SAM (without residual update); c) baseline+ RSAM ; d) baseline+ CAM +SAM ; e) baseline + RDAM (CAM + RSAM); f) B&A + SFE; g) B&A + SFE*1; h) SCSN (B&A + SFE*2) and i) SCSN (B&A + SFE*3), where B&A represents the backbone equipped with the residual dual attention attention module. Table 5 presents the ablation study results, from which several observations could be drawn:
+
+1) All these three attention modules: CAM, Spatial Attention Module(SAM), and RSAM improve the baseline and the RDAM that combines the CAM and RSAM mechanisms can further improve performances, which demonstrates their complementary property and the feature extraction ability. Specifically, the RSAM achieves better performance than SAM. Because the spatial attention module trained in a weakly-supervised manner, without residual connection, cannot obtain accurate position attention maps [7, 15]. There are two reasons: 1) the weakly-supervised training manner, without a powerful supervisory, result that gradient of SAM might be vanishing in the backpropagation process, especially for modules in shallow layers; 2) compared with higher blocks that have rich semantic features, such as the human body, shallow layers focus more on the low-level feature, such as color and texture, which pose an obstacle to get accurate context attention maps.
+
+2) By combining the proposed cascaded feature suppression strategy and attention mechanisms, performance is further boosted. Specifically, in our experiments, 3 or 4 cascaded stages achieve the best performance. Too many cascaded stages can lead to inferior results. We argue that for a pedestrian, its distinctive features are limited so excessive suppressions force the network to learn some non-robust features. Besides, since the features of different stages are contacted during the testing, too many stages can cause the feature vectors redundant, diluting the salient features and increasing the computation amount.
+
+| Method | Backbone | mAP | rank 1 |
| Baseline | ResNet50 | 71.50 | 86.10 |
| Baseline + CAM | ResNet50 | 73.80 | 87.40 |
| Baseline + SAM(without residual) | ResNet50 | 73.50 | 86.60 |
| Baseline + RSAM | ResNet50 | 74.10 | 87.30 |
| Baseline + CAM+SAM | ResNet50 | 75.80 | 87.80 |
| Baseline + RDAM(CAM+RSAM) | ResNet50 | 76.20 | 88.90 |
| B&A + SFE*1 | ResNet50 | 78.30 | 89.50 |
| B&A + SFE*2 | ResNet50 | 78.80 | 89.80 |
| B&A + SFE*3 | ResNet50 | 78.50 | 90.20 |
| SCSN(B&A+SFE*2+NMFF) | ResNet50 | 79.00 | 90.10 |
| SCSN(B&A+SFE*3+NMFF) | ResNet50 | 79.00 | 91.00 |
+
+Table 5. Ablation study of SCSN on DukeMTMC-ReID dataset. Here NMFF denotes the non-local multistage feature fusion block with all four stages in ResNet50.
+
+| Method | B | B+N(14) | B+N(24) | B+N(34) | B+N(24,34) | B+N(14,24,34) |
| mAP | 78.50 | 78.60 | 78.10 | 77.80 | 78.02 | 79.00 |
| rank1 | 89.50 | 89.90 | 89.30 | 89.50 | 89.54 | 90.10 |
+
+Table 6. The effect of different feature fusion strategies, where $N$ denotes the NMFF block and $B$ denotes the baseline without feature fusion. The number of combinations represent the fused feature of different stages of ResNet50. As illustrated, merely merging advanced features, such as (24) and (34), does not bring too much gain because these advanced features have more similar distributions. On the other hand, the fusion of shallow features can significantly improve the accuracy of the network.
+
+3) The feature aggregation modules and the suppression mechanism are complementary. Specifically, without the aggregation module improving the context-awareness of the backbone, the suppression mechanism may focus on the interference information in the background. In contrast, without the suppression modules, the attention and aggregation mechanisms tend to only learn the most salient features that can distinguish each identity and ignore other important information. More detailed differences in feature fusion strategies of NMFF are shown in Table 6.
+
+# 5. Conclusion
+
+In this paper, we propose a novel method called Saliencing-guided Cascaded Suppression Network (SCSN) for person re-identification which solves the problems of how to extract discriminative features and how to integrate these features. The suppression strategy can be considered as a salient dropout scheme that enables the network to adaptively mine potential significant information on different important levels. Extensive experiments demonstrate that our method achieves state-of-the-art results on 4 popular person Re-ID benchmarks, and it is worth noting that our proposed method makes over $7\%$ improvement on CUHK03 datasets. In the future, it is meaningful to investigate a more effective feature extraction method.
+
+Acknowledgement This work is supported in part by the National Natural Science Foundation of China under Grant 61972188, the Science and Technology Planning Project of Shenzhen (No. JCYJ20180503182133411).
+
+# References
+
+[1] Leulseged Tesfaye Alemu, Marcello Pelillo, and Mubarak Shah. Deep constrained dominant sets for person re-identification. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 9855–9864, 2019.
+[2] Igor Barros Barbosa, Marco Cristani, Barbara Caputo, Aleksander Rognhaugen, and Theoharis Theoharis. Looking beyond appearances: Synthetic training data for deep cnns in re-identification. Computer Vision and Image Understanding, 167:50–62, 2018.
+[3] Binghui Chen and Weihong Deng. Energy confused adversarial metric learning for zero-shot image retrieval and clustering. arXiv preprint arXiv:1901.07169, 2019.
+[4] Binghui Chen and Weihong Deng. Hybrid-attention based decoupled metric learning for zero-shot image retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2750–2759, 2019.
+[5] Binghui Chen, Weihong Deng, and Jiani Hu. Mixed high-order attention network for person re-identification. arXiv preprint arXiv:1908.05819, 2019.
+[6] Dapeng Chen, Dan Xu, Hongsheng Li, Nicu Sebe, and Xiaogang Wang. Group consistent similarity learning via deep crf for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8649–8658, 2018.
+[7] Tianlong Chen, Shaojin Ding, Jingyi Xie, Ye Yuan, Wuyang Chen, Yang Yang, Zhou Ren, and Zhangyang Wang. Abdnet: Attentive but diverse person re-identification. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 8351-8361, 2019.
+[8] Xuesong Chen, Haihua Lu, Kaili Cheng, Yanbo Ma, Qiu hao Zhou, and Yong Zhao. Sequentially refined spatial and channel-wise feature aggregation in encoder-decoder network for single image dehazing. In 2019 IEEE International Conference on Image Processing (ICIP), pages 2776-2780, 2019.
+[9] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1335–1344, 2016.
+[10] Zuozhuo Dai, Mingqiang Chen, Xiaodong Gu, Siyu Zhu, and Ping Tan. Batch dropblock network for person re-identification and beyond. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3691–3701, 2019.
+[11] Pedro F Felzenszwalb, David A McAllester, Deva Ramanan, et al. A discriminatively trained, multiscale, deformable part model. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2008.
+[12] Douglas Gray and Hai Tao. Viewpoint invariant pedestrian recognition with an ensemble of localized features. In Proceedings of the European Conference on Computer Vision (ECCV), pages 262-275, 2008.
+[13] 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 (CVPR), pages 770-778, 2016.
+[14] Alexander Hermans, Lucas Beyer, and Bastian Leibe. In defense of the triplet loss for person re-identification. arXiv preprint arXiv:1703.07737, 2017.
+[15] Qibin Hou, PengTao Jiang, Yunchao Wei, and Ming-Ming Cheng. Self-erasing network for integral object attention. In Advances in Neural Information Processing Systems (NeurIPS), pages 549–559, 2018.
+[16] Ruibing Hou, Bingpeng Ma, Hong Chang, Xinqian Gu, Shiguang Shan, and Xilin Chen. Interaction-and-aggregation network for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9317–9326, 2019.
+[17] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7132-7141, 2018.
+[18] Houjing Huang, Dangwei Li, Zhang Zhang, Xiaotang Chen, and Kaiqi Huang. Adversarily occluded samples for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5098-5107, 2018.
+[19] Mahdi M. Kalayeh, Emrah Basaran, Muhittin G?kmen, Mustafa E. Kamasak, and Mubarak Shah. Human semantic parsing for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
+[20] Svetlana Lazebnik, Cordelia Schmid, and Jean Ponce. Beyond bags of features: Spatial pyramid matching for recognizing natural scene categories. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2169-2178, 2006.
+[21] Fei Fei Li, Rufin VanRullen, Christof Koch, and Pietro Perona. Rapid natural scene categorization in the near absence of attention. Proceedings of the National Academy of Sciences (PNAS), pages 9596-9601, 2002.
+[22] Wei Li, Rui Zhao, Tong Xiao, and Xiaogang Wang. Deepreid: Deep filter pairing neural network for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 152–159, 2014.
+[23] Wei Li, Xiatian Zhu, and Shaogang Gong. Person re-identification by deep joint learning of multi-loss classification. arXiv preprint arXiv:1705.04724, 2017.
+[24] Yutian Lin, Liang Zheng, Zhedong Zheng, Yu Wu, and Yi Yang. Improving person re-identification by attribute and identity learning. arXiv preprint arXiv:1703.07220, 2017.
+[25] Jinxian Liu, Bingbing Ni, Yichao Yan, Peng Zhou, Shuo Cheng, and Jianguo Hu. Pose transferrable person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4099–4108, 2018.
+[26] Hao Luo, Youzhi Gu, Xingyu Liao, Shenqi Lai, and Wei Jiang. Bag of tricks and a strong baseline for deep person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 0–0, 2019.
+
+[27] Bryan James Prosser, Wei-Shi Zheng, Shaogang Gong, Tao Xiang, and Q Mary. Person re-identification by support vector ranking. In The British Machine Vision Conference (BMVC), volume 2, page 6, 2010.
+[28] 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.
+[29] M Saquib Sarfraz, Arne Schumann, Andreas Eberle, and Rainer Stiefelhagen. A pose-sensitive embedding for person re-identification with expanded cross neighborhood reranking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 420–429, 2018.
+[30] Yantao Shen, Hongsheng Li, Tong Xiao, Shuai Yi, Dapeng Chen, and Xiaogang Wang. Deep group-shuffling random walk for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2265–2274, 2018.
+[31] Jianlou Si, Honggang Zhang, Chun-Guang Li, Jason Kuen, Xiangfei Kong, Alex C Kot, and Gang Wang. Dual attention matching network for context-aware feature sequence based person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5363-5372, 2018.
+[32] Chi Su, Jianing Li, Shiliang Zhang, Junliang Xing, Wen Gao, and Qi Tian. Pose-driven deep convolutional model for person re-identification. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3960–3969, 2017.
+[33] Chi Su, Jianing Li, Shiliang Zhang, Junliang Xing, Wen Gao, and Qi Tian. Pose-driven deep convolutional model for person re-identification. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3960–3969, 2017.
+[34] Yifan Sun, Qin Xu, Yali Li, Chi Zhang, Yikang Li, Shengjin Wang, and Jian Sun. Perceive where to focus: Learning visibility-aware part-level features for partial person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 393–402, 2019.
+[35] Yifan Sun, Liang Zheng, Weijian Deng, and Shengjin Wang. Svdnet for pedestrian retrieval. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3800-3808, 2017.
+[36] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and a strong convolutional baseline). In Proceedings of the European Conference on Computer Vision (ECCV), pages 480-496, 2018.
+[37] 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 (CVPR), 2016.
+[38] Chiat-Pin Tay, Sharmili Roy, and Kim-Hui Yap. Aanet: Attribute attention network for person re-identifications. In
+
+Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7134-7143, 2019.
+[39] Evgeniya Ustinova, Yaroslav Ganin, and Victor Lempitsky. Multi-region bilinear convolutional neural networks for person re-identification. In Proceedings of 14th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS), pages 1-6. IEEE, 2017.
+[40] Cheng Wang, Qian Zhang, Chang Huang, Wenyu Liu, and Xinggang Wang. Mancs: A multi-task attentional network with curriculum sampling for person re-identification. In Proceedings of the European Conference on Computer Vision (ECCV), pages 365–381, 2018.
+[41] Guanshuo Wang, Yufeng Yuan, Xiong Chen, Jiwei Li, and Xi Zhou. Learning discriminative features with multiple granularities for person re-identification. In Proceedings of ACM Multimedia Conference on Multimedia Conference (ACM MM), pages 274–282, 2018.
+[42] Longhui Wei, Shiliang Zhang, Wen Gao, and Qi Tian. Person transfer gan to bridge domain gap for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 79–88, 2018.
+[43] Longhui Wei, Shiliang Zhang, Hantao Yao, Wen Gao, and Qi Tian. Glad: Global-local-alignment descriptor for pedestrian retrieval. In Proceedings of the 25th ACM international conference on Multimedia (ACM MM), pages 420-428, 2017.
+[44] Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. Cbam: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), pages 3–19, 2018.
+[45] Hantao Yao, Shiliang Zhang, Richang Hong, Yongdong Zhang, Changsheng Xu, and Qi Tian. Deep representation learning with part loss for person re-identification. IEEE Transactions on Image Processing (TIP), 28(6):2860–2871, 2019.
+[46] Xiaolin Zhang, Yunchao Wei, Jiashi Feng, Yi Yang, and Thomas S Huang. Adversarial complementary learning for weakly supervised object localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1325-1334, 2018.
+[47] Liming Zhao, Xi Li, Yueting Zhuang, and Jingdong Wang. Deeply-learned part-aligned representations for person re-identification. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3219–3228, 2017.
+[48] Rui Zhao, Wanli Ouyang, and Xiaogang Wang. Unsupervised salience learning for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3586–3593, 2013.
+[49] Feng Zheng, Deng Cheng, Xing Sun, Xinyang Jiang, Xiaowei Guo, Zongqiao Yu, Feiyue Huang, and Ji Rongrong. Pyramidal person re-identification via multi-loss dynamic training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
+[50] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In Proceedings of the IEEE International
+
+Conference on Computer Vision (ICCV), pages 1116-1124, 2015.
+[51] Meng Zheng, Srikrishna Karanam, Zihan Wu, and Richard J Radke. Re-identification with consistent attentive siamese networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5735–5744, 2019.
+[52] Zhedong Zheng, Liang Zheng, and Yi Yang. Unlabeled samples generated by gan improve the person re-identification baseline in vitro. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3754–3762, 2017.
+[53] Zhedong Zheng, Liang Zheng, and Yi Yang. Pedestrian alignment network for large-scale person re-identification. IEEE Transactions on Circuits and Systems for Video Technology (TCSVT), 2018.
+[54] Zhen Zhu, Mengde Xu, Song Bai, Tengteng Huang, and Xiang Bai. Asymmetric non-local neural networks for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 593-602, 2019.
\ No newline at end of file
diff --git a/salienceguidedcascadedsuppressionnetworkforpersonreidentification/images.zip b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2e8ab6b928915a2a1fdd5adfa2edf47a6f6552d6
--- /dev/null
+++ b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:56964d9078d0f5164712c9d092b4c49dbfc6cdd9321fc7fdb386448dfeef460f
+size 597847
diff --git a/salienceguidedcascadedsuppressionnetworkforpersonreidentification/layout.json b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1f3533e764d0d87adbf85bacf86f9a2273e43b6f
--- /dev/null
+++ b/salienceguidedcascadedsuppressionnetworkforpersonreidentification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:960c28f9145d820ad784a84c2fa230c3b3e52bf5ef71695db9a3407058f212ca
+size 422384
diff --git a/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_content_list.json b/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..039c7cea621b2df29139af2519d40d93db8bc420
--- /dev/null
+++ b/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e59d602f47634560810826243c2841d8091699cec00f070d491d01068505c0f2
+size 77065
diff --git a/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_model.json b/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..503c1710f361a9c6fb04157a07b334d60379c845
--- /dev/null
+++ b/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7cbebc12783a4944b48b5bc89d70d94033092da82439d6b29d3808ceeb064e7f
+size 94749
diff --git a/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_origin.pdf b/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e04c232cf1b042745ccbe9e2313b4242b46a7490
--- /dev/null
+++ b/salsignagnosticlearningofshapesfromrawdata/1284cc2b-5d82-47ff-9088-8046e51423e5_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2654a0ed90efb295bd55e3dc2817409001539a427d565e2c8bb1ca4a4558c6aa
+size 6513960
diff --git a/salsignagnosticlearningofshapesfromrawdata/full.md b/salsignagnosticlearningofshapesfromrawdata/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..821a3f1b2d7ddb4799287c5bf86cc8658ed91406
--- /dev/null
+++ b/salsignagnosticlearningofshapesfromrawdata/full.md
@@ -0,0 +1,326 @@
+# SAL: Sign Agnostic Learning of Shapes from Raw Data
+
+Matan Atzmon and Yaron Lipman
+Weizmann Institute of Science
+Rehovot, Israel
+
+
+Figure 1: We introduce SAL: Sign Agnostic Learning for learning shapes directly from raw data, such as triangle soups (left in each gray pair; back-faces are in red). Right in each gray pair - the surface reconstruction by SAL of test raw scans; in gold - SAL latent space interpolation between adjacent gray shapes. Raw scans are from the D-Faust dataset [7].
+
+# Abstract
+
+Recently, neural networks have been used as implicit representations for surface reconstruction, modelling, learning, and generation. So far, training neural networks to be implicit representations of surfaces required training data sampled from a ground-truth signed implicit functions such as signed distance or occupancy functions, which are notoriously hard to compute.
+
+In this paper we introduce Sign Agnostic Learning (SAL), a deep learning approach for learning implicit shape representations directly from raw, unsigned geometric data, such as point clouds and triangle soups.
+
+We have tested SAL on the challenging problem of surface reconstruction from an un-oriented point cloud, as well as end-to-end human shape space learning directly from raw scans dataset, and achieved state of the art reconstructions compared to current approaches. We believe SAL opens the door to many geometric deep learning applications with real-world data, alleviating the usual painstaking, often manual pre-process.
+
+# 1. Introduction
+
+Recently, deep neural networks have been used to reconstruct, learn and generate 3D surfaces. There are two main approaches: parametric [19, 4, 40, 15] and implicit [12, 30, 28, 2, 14, 17]. In the parametric approach neu
+
+ral nets are used as parameterization mappings, while the implicit approach represents surfaces as zero level-sets of neural networks:
+
+$$
+\mathcal {S} = \left\{\boldsymbol {x} \in \mathbb {R} ^ {3} \mid f (\boldsymbol {x}; \boldsymbol {\theta}) = 0 \right\}, \tag {1}
+$$
+
+where $f: \mathbb{R}^3 \times \mathbb{R}^m \to \mathbb{R}$ is a neural network, e.g., multilayer perceptron (MLP). The benefit in using neural networks as implicit representations to surfaces stems from their flexibility and approximation power (e.g., Theorem 1 in [2]) as well as their efficient optimization and generalization properties.
+
+So far, neural implicit surface representations were mostly learned using a regression-type loss, requiring data samples from a ground-truth implicit representation of the surface, such as a signed distance function [30] or an occupancy function [12, 28]. Unfortunately, for the common raw form of acquired 3D data $\mathcal{X} \subset \mathbb{R}^3$ , i.e., a point cloud or a triangle soup1, no such data is readily available and computing an implicit ground-truth representation for the underlying surface is a notoriously difficult task [5].
+
+In this paper we advocate Sign Agnostic Learning (SAL), defined by a family of loss functions that can be used directly with raw (unsigned) geometric data $\mathcal{X}$ and produce signed implicit representations of surfaces. An important application for SAL is in generative models such as variational auto-encoders [24], learning shape spaces directly
+
+from the raw 3D data. Figure 1 depicts an example where collectively learning a dataset of raw human scans using SAL overcomes many imperfections and artifacts in the data (left in every gray pair) and provides high quality surface reconstructions (right in every gray pair) and shape space (interpolations of latent representations are in gold).
+
+We have experimented with SAL for surface reconstruction from point clouds as well as learning a human shape space from the raw scans of the D-Faust dataset [7]. Comparing our results to current approaches and baselines we found SAL to be the method of choice for learning shapes from raw data, and believe SAL could facilitate many computer vision and computer graphics shape learning applications, allowing the user to avoid the tedious and unsolved problem of surface reconstruction in preprocess.
+
+# 2. Previous work
+
+# 2.1. Surface learning with neural networks
+
+Neural parametric surfaces. One approach to represent surfaces using neural networks is parametric, namely, as parameterization charts $f: \mathbb{R}^2 \to \mathbb{R}^3$ . Groueax et al. [19] suggest to represent a surface using a collection of such parameterization charts (i.e., atlas); Williams et al. [40] optimize an atlas with proper transition functions between charts and concentrate on reconstructions of individual surfaces. Sinha et al. [32, 33] use geometry images as global parameterizations, while [27] use conformal global parameterizations to reduce the number of degrees of freedom of the map. Parametric representation are explicit but require handling of coverage, overlap and distortion of charts.
+
+Neural implicit surfaces. Another approach to represent surfaces using neural networks, which is also the approach taken in this paper, is using an implicit representation, namely $f: \mathbb{R}^3 \to \mathbb{R}$ and the surface is defined as its zero level-set, equation 1. Some works encode $f$ on a volumetric grid such as voxel grid [41] or an octree [36]. More flexibility and potentially more efficient use of the degrees of freedom of the model are achieved when the implicit function $f$ is represented as a neural network [12, 30, 28, 2, 17]. In these works the implicit is trained using a regression loss of the signed distance function [30], an occupancy function [12, 28] or via particle methods to directly control the neural level-sets [2]. Excluding the latter that requires sampling the zero level-set, all regression-based methods require ground-truth inside/outside information to train the implicit $f$ . In this paper we present a sign agnostic training method, namely training method that can work directly with the raw (unsigned) data.
+
+Shape representation learning. Learning collections of shapes is done using Generative Adversarial Networks (GANs) [18], auto-encoders and variational auto-encoders [24], and auto-decoders [8]. Wu et al. [41] use GAN on a voxel grid encoding of the shape, while Ben-Hamu et al. [4] apply GAN on a collection of conformal charts. Dai et al. [13] use encoder-decoder architecture to learn a signed distance function to a complete shape from a partial input on a volumetric grid. Stutz et al. [34] use variational auto-encoder to learn an implicit surface representations of cars using a volumetric grid. Baqautdinov et al. [3] use variational auto-encoder with a constant mesh to learn parametrizations of faces shape space. Litany et al. [25] use variational auto-encoder to learn body shape embeddings of a template mesh. Park et al. [30] use auto-decoder to learn implicit neural representations of shapes, namely directly learns a latent vector for every shape in the dataset. In our work we also make use of a variational auto-encoder but differently from previous work, learning is done directly from raw 3D data.
+
+# 2.2. Surface reconstruction.
+
+Signed surface reconstruction. Many surface reconstruction methods require normal or inside/outside information. Carr et al. [9] were among the first to suggest using a parametric model to reconstruct a surface by computing its implicit representation; they use radial basis functions (RBFs) and regress at inside and outside points computed using oriented normal information. Kazhdan et al. [22, 23] solve a Poisson equation on a volumetric discretization to extend points and normals information to an occupancy indicator function. Walder et al. [38] use radial basis functions and solve a variational hermite problem (i.e., fitting gradients of the implicit to the normal data) to avoid trivial solution. In general our method works with a non-linear parametric model (MLP) and therefore does not require a-priori space discretization nor works with a fixed linear basis such as RBFs.
+
+Unsigned surface reconstruction. More related to this paper are surface reconstruction methods that work with unsigned data such as point clouds and triangle soups. Zhao et al. [43] use the level-set method to fit an implicit surface to an unoriented point cloud by minimizing a loss penalizing distance of the surface to the point cloud achieving a sort of minimal area surface interpolating the points. Walder et al. [37] formulates a variational problem fitting an implicit RBF to an unoriented point cloud data while minimizing a regularization term and maximizing the norm of the gradients; solving the variational problem is equivalent to an eigenvector problem. Mullen et al. [29] suggests to sign an unsigned distance function to a point cloud by a multi-stage algorithm first dividing the problem to near and far
+
+
+
+
+
+
+(a)
+(c)
+Figure 2: Experiment with sign agnostic learning in 2D: (a) and (b) show the unsigned $L^0$ and $L^2$ (resp.) distances to a 2D point cloud (in gray); (c) and (d) visualize the different level-sets of the neural networks optimized with the respective sign agnostic losses. Note how the zero level-sets (in bold) gracefully connect the points to complete the shape.
+
+
+(b)
+(d)
+
+field sign estimation, and propagating far field estimation closer to the zero level-set; then optimize a convex energy fitting a smooth sign function to the estimated sign function. Takayama et al. [35] suggested to orient triangle soups by minimizing the Dirichlet energy of the generalized winding number noting that correct orientation yields piecewise constant winding number. Xu et al. [42] suggested to compute robust signed distance function to triangle soups by using an offset surface defined by the unsigned distance function. Zhiyang et al. [21] fit an RBF implicit by optimizing a non-convex variational problem minimizing smoothness term, interpolation term and unit gradient at data points term. All these methods use some linear function space; when the function space is global, e.g. when using RBFs, model fitting and evaluation are costly and limit the size of point clouds that can be handled efficiently, while local support basis functions usually suffer from inferior smoothness properties [39]. In contrast we use a non-linear function basis (MLP) and advocate a novel and simple sign agnostic loss to optimize it. Evaluating the non-linear neural network model is efficient and scalable and the training process can be performed on a large number of points, e.g., with stochastic optimization techniques.
+
+# 3. Sign agnostic learning
+
+Given a raw input geometric data, $\mathcal{X} \subset \mathbb{R}^3$ , e.g., a point cloud or a triangle soup, we are looking to optimize the weights $\pmb{\theta} \in \mathbb{R}^{m}$ of a network $f(\pmb{x}; \pmb{\theta})$ , where $f: \mathbb{R}^3 \times \mathbb{R}^m \to \mathbb{R}$ , so that its zero level-set, equation 1, is a surface approximating $\mathcal{X}$ .
+
+We introduce the Sign Agnostic Learning (SAL) defined by a loss of the form
+
+$$
+\left. \operatorname {l o s s} (\boldsymbol {\theta}) = \mathbb {E} _ {\boldsymbol {x} \sim D _ {\chi}} \tau \left(f (\boldsymbol {x}; \boldsymbol {\theta}), h _ {\chi} (\boldsymbol {x})\right), \quad \right. \tag {2}
+$$
+
+where $D_{\mathcal{X}}$ is a probability distribution defined by the input data $\mathcal{X}$ ; $h_{\mathcal{X}}(\boldsymbol{x})$ is some unsigned distance measure to $\mathcal{X}$ ; and $\tau: \mathbb{R} \times \mathbb{R}_+ \to \mathbb{R}$ is a differentiable unsigned similarity function defined by the following properties:
+
+(i) Sign agnostic: $\tau (-a,b) = \tau (a,b),\forall a\in \mathbb{R},b\in \mathbb{R}_{+}$
+(ii) Monotonic: $\frac{\partial\tau}{\partial a} (a,b) = \rho (a - b),\forall a,b\in \mathbb{R}_{+},$
+
+where $\rho : \mathbb{R} \to \mathbb{R}$ is a monotonically increasing function with $\rho(0) = 0$ . An example of an unsigned similarity is $\tau(a, b) = |a| - b$ .
+
+To understand the idea behind the definition of the SAL loss, consider first a standard regression loss using $\tau(a,b) = |a - b|$ in equation 2. This would encourage $f$ to resemble the unsigned distance $h_{\mathcal{X}}$ as much as possible. On the other hand, using the unsigned similarity $\tau$ in equation 2 introduces a new local minimum of loss where $f$ is a signed function such that $|f|$ approximates $h_{\mathcal{X}}$ . To get this desirable local minimum we later design a network weights' initialization $\theta^0$ that favors the signed local minima.
+
+As an illustrative example, the inset depicts the one dimensional case ( $d = 1$ ) where $\mathcal{X} = \{x_0\}$ , $h_{\mathcal{X}}(x) = |x - x_0|$ , and $\tau(a, b) = ||a| - b|$ , which satisfies properties (i) and (ii), as discussed below; the loss therefore strives to mini
+
+
+
+mize the area of the yellow set. When initializing the network parameters $\pmb{\theta} = \pmb{\theta}^{0}$ properly, the minimizer $\pmb{\theta}^{*}$ of loss defines an implicit $f(x;\pmb{\theta}^{*})$ that realizes a signed version of $h_{\mathcal{X}}$ ; in this case $f(x;\pmb{\theta}^{*}) = x - x_{0}$ . In the three dimensional case the zero level-set $\mathcal{S}$ of $f(x;\pmb{\theta}^{*})$ will represent a surface approximating $\mathcal{X}$ .
+
+To theoretically motivate the loss family in equation 2 we will prove that it possesses a plane reproduction property. That is, if the data $\mathcal{X}$ is contained in a plane, there is a critical weight $\theta^{*}$ reconstructing this plane as the zero level-set of $f(\pmb{x};\pmb{\theta}^{*})$ . Plane reproduction is important for surface approximation since surfaces, by definition, have an approximate tangent plane almost everywhere [16].
+
+We will explore instantiations of SAL based on different choices of unsigned distance functions $h_{\mathcal{X}}$ , as follows.
+
+Unsigned distance functions. We consider two $p$ -distance functions: For $p = 2$ we have the standard $L^2$ (Euclidean) distance
+
+$$
+h _ {2} (\boldsymbol {z}) = \min _ {\boldsymbol {x} \in \mathcal {X}} \| \boldsymbol {z} - \boldsymbol {x} \| _ {2}, \tag {3}
+$$
+
+and for $p = 0$ the $L^0$ distance
+
+$$
+h _ {0} (z) = \left\{ \begin{array}{l l} 0 & z \in \mathcal {X} \\ 1 & z \notin \mathcal {X} \end{array} . \right. \tag {4}
+$$
+
+Unsigned similarity function. Although many choices exist for the unsigned similarity function, in this paper we take
+
+$$
+\tau_ {\ell} (a, b) = | | a | - b | ^ {\ell}, \tag {5}
+$$
+
+where $\ell \geq 1$ . The function $\tau_{\ell}$ is indeed an unsigned similarity: it satisfies (i) due to the symmetry of $|\cdot|$ ; and since $\frac{\partial\tau}{\partial a} = \ell ||a| - b|^{\ell - 1}\mathrm{sign}(a - b\mathrm{sign}(a))$ it satisfies (ii) as well.
+
+Distribution $D_{\mathcal{X}}$ . The choice of $D_{\mathcal{X}}$ is depending on the particular choice of $h_{\mathcal{X}}$ . For $L^2$ distance, it is enough to make the simple choice of splating an isotropic Gaussian, $\mathcal{N}(\boldsymbol{x}, \sigma^2 I)$ , at every point (uniformly randomized) $\boldsymbol{x} \in \mathcal{X}$ ; we denote this probability $\mathcal{N}_{\sigma}(\mathcal{X})$ ; note that $\sigma$ can be taken to be a function of $\boldsymbol{x} \in \mathcal{X}$ to reflect local density in $\mathcal{X}$ . In this case, the loss takes the form
+
+$$
+\left. \operatorname {l o s s} (\boldsymbol {\theta}) = \mathbb {E} _ {\boldsymbol {z} \sim \mathcal {N} _ {\sigma} (\mathcal {X})} | | f (\boldsymbol {z}; \boldsymbol {\theta}) | - h _ {2} (\boldsymbol {z}) \right| ^ {\ell}. \tag {6}
+$$
+
+For the $L^0$ distance however, $h_{\mathcal{X}}(\pmb {x})\neq 1$ only for $\pmb {x}\in \mathcal{X}$ and therefore a non-continuous density should be used; we opt for $\mathcal{N}(\pmb {x},\sigma^2 I) + \delta_{\pmb{x}}$ , where $\delta_{\pmb{x}}$ is the delta distribution measure concentrated at $\pmb{x}$ . The loss takes the form
+
+$$
+\left. \operatorname {l o s s} (\boldsymbol {\theta}) = \mathbb {E} _ {\boldsymbol {z} \sim \mathcal {N} _ {\sigma} (\mathcal {X})} | | f (\boldsymbol {z}; \boldsymbol {\theta}) | - 1 \right| ^ {\ell} + \mathbb {E} _ {\boldsymbol {x} \sim \mathcal {X}} | f (\boldsymbol {x}; \boldsymbol {\theta}) | ^ {\ell}. \tag {7}
+$$
+
+Remarkably, the latter loss requires only randomizing points $z$ near the data samples without any further computations involving $\mathcal{X}$ . This allows processing of large and/or complex geometric data.
+
+Neural architecture. Although SAL can work with different parametric models, in this paper we consider a multilayer perceptron (MLP) defined by
+
+$$
+f (\boldsymbol {x}; \boldsymbol {\theta}) = \varphi \left(\boldsymbol {w} ^ {T} f _ {\ell} \circ f _ {\ell - 1} \circ \dots \circ f _ {1} (\boldsymbol {x}) + b\right), \tag {8}
+$$
+
+and
+
+$$
+f _ {i} (\boldsymbol {y}) = \nu \left(\boldsymbol {W} _ {i} \boldsymbol {y} + \boldsymbol {b} _ {i}\right), \boldsymbol {W} \in \mathbb {R} ^ {d _ {i} ^ {\text {o u t}} \times d _ {i} ^ {i n}}, \boldsymbol {b} _ {i} \in \mathbb {R} ^ {d _ {i} ^ {\text {o u t}}}, \tag {9}
+$$
+
+where $\nu(a) = (a)_+$ is the ReLU activation, and $\pmb{\theta} = (\pmb{w}, b, \pmb{W}_{\ell}, \pmb{b}_{\ell}, \dots, \pmb{W}_{1}, \pmb{b}_{1})$ ; $\varphi$ is a strong non-linearity, as defined next:
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 3: Geometric initialization of neural networks: An MLP with our weight initialization (see Theorem 1) is approximating the signed distance function to an $r$ -radius sphere, $f(\boldsymbol{x}; \boldsymbol{\theta}^0) \approx \varphi(\|\boldsymbol{x}\| - r)$ , where the approximation improves with the width of the hidden layers: (a) depicts an MLP with 100-neuron hidden layers; (b) with 200; and (c) with 2000.
+
+Definition 1. The function $\varphi : \mathbb{R} \to \mathbb{R}$ is called a strong non-linearity if it is differentiable (almost everywhere), antisymmetric, $\varphi(-a) = -\varphi(a)$ , and there exists $\beta \in \mathbb{R}_+$ so that $\beta^{-1} \geq \varphi'(a) \geq \beta > 0$ , for all $a \in \mathbb{R}$ where it is defined.
+
+In this paper we use $\varphi(a) = a$ or $\varphi(a) = \tanh(a) + \gamma a$ , where $\gamma \geq 0$ is a parameter. Furthermore, similarly to previous work [30, 12] we have incorporated a skip connection layer $s$ , concatenating the input $\mathbf{x}$ to the middle hidden layer, that is $s(\mathbf{y}) = (\mathbf{y}, \mathbf{x})$ , where here $\mathbf{y}$ is a hidden variable in $f$ .
+
+2D example. The two examples in Figure 2 show case the SAL for a 2D point cloud, $\mathcal{X} = \{\pmb{x}_i\}_{i=1}^8 \subset \mathbb{R}^2$ , (shown in gray) as input. These examples were computed by optimizing equation 6 (right column) and equation 7 (left column) with $\ell = 1$ using the $L^2$ and $L^0$ distances (resp.). The architecture used is an 8-layer MLP; all hidden layers are 100 neurons wide, with a skip connection to the middle layer.
+
+Notice that both $h_{\mathcal{X}}(\pmb{x})$ and its signed version are local minima of the loss in equation 2. These local minima are stable in the sense that there is an energy barrier when moving from one to the other. For example, to get to a solution as in Figure 2(b) from the solution in Figure 2(d) one needs to flip the sign in the interior or exterior of the region defined by the black line. Changing the sign continuously will result in a considerable increase to the SAL loss value.
+
+We elaborate on our initialization method, $\pmb{\theta} = \pmb{\theta}^{0}$ , that in practice favors the signed version of $h_{\mathcal{X}}$ in the next section.
+
+# 4. Geometric network initialization
+
+A key aspect of our method is a proper, geometrically motivated initialization of the network's parameters. For MLPs, equations 8-9, we develop an initialization of its parameters, $\pmb{\theta} = \pmb{\theta}^{0}$ , so that $f(\pmb{x};\pmb{\theta}^{0})\approx \varphi (\| \pmb {x}\| -r)$ , where $\| x\| -r$ is the signed distance function to an $r$ -radius sphere. The following theorem specify how to pick $\pmb{\theta}^{0}$ to achieve this:
+
+Theorem 1. Let $f$ be an MLP (see equations 8-9). Set, for $1 \leq i \leq \ell$ , $\pmb{b}_i = 0$ and $\pmb{W}_i$ i.i.d. from a normal distribution $\mathcal{N}(0, \frac{\sqrt{2}}{\sqrt{d_i^{out}}})$ ; further set $\pmb{w} = \frac{\sqrt{\pi}}{\sqrt{d_\ell^{out}}} \pmb{1}$ , $c = -r$ . Then, $f(\pmb{x}) \approx \varphi(\|x\|-r)$ .
+
+Figure 3 depicts level-sets (zero level-sets in bold) using the initialization of Theorem 1 with the same 8-layer MLP (using $\varphi(a) = a$ ) and increasing width of 100, 200, and 2000 neurons in the hidden layers. Note how the approximation $f(\boldsymbol{x}; \boldsymbol{\theta}^0) \approx \| \boldsymbol{x} \| - r$ improves as the layers' width increase, while the sphere-like (in this case circle-like) zero level-set remains topologically correct at all approximation levels.
+
+The proof to Theorem 1 is provided in the supplementary material; it is a corollary of the following theorem, showing how to choose the initial weights for a single hidden layer network:
+
+Theorem 2. Let $f: \mathbb{R}^d \to \mathbb{R}$ be an MLP with ReLU activation, $\nu$ , and a single hidden layer. That is, $f(\pmb{x}) = \pmb{w}^T \nu (\pmb{W} \pmb{x} + \pmb{b}) + c$ , where $\pmb{W} \in \mathbb{R}^{d^{out} \times d}$ , $\pmb{b} \in \mathbb{R}^{d^{out}}$ , $\pmb{w} \in \mathbb{R}^{d^{out}}$ , $c \in \mathbb{R}$ are the learnable parameters. If $\pmb{b} = 0$ , $\pmb{w} = \frac{\sqrt{2\pi}}{\sigma d^{out}} \pmb{1}$ , $c = -r$ , $r > 0$ , and all entries of $\pmb{W}$ are i.i.d. normal $\mathcal{N}(0, \sigma^2)$ then $f(\pmb{x}) \approx \| \pmb{x} \| - r$ . That is, $f$ is approximately the signed distance function to a $d-1$ sphere of radius $r$ in $\mathbb{R}^d$ , centered at the origin.
+
+# 5. Properties
+
+# 5.1. Plane reproduction
+
+Plane reproduction is a key property to surface approximation methods since, in essence, surfaces are locally planar, i.e., have an approximating tangent plane almost everywhere [16]. In this section we provide a theoretical justification to SAL by proving a plane reproduction property. We first show this property for a linear model (i.e., a single layer MLP) and then show how this implies local plane reproduction for general MLPs.
+
+The setup is as follows: Assume the input data $\mathcal{X} \subset \mathbb{R}^d$ lies on a hyperplane $\mathcal{X} \subset \mathcal{P}$ , where $\mathcal{P} = \{\pmb{x} \in \mathbb{R}^d \mid \pmb{n}^T\pmb{x} + c = 0\}$ , $\pmb{n} \in \mathbb{R}^d$ , $\|\pmb{n}\| = 1$ , is the normal to the plane, and consider a linear model $f(\pmb{x}; \pmb{w}, b) = \varphi(\pmb{w}^T\pmb{x} + b)$ . Furthermore, we make the assumption that the distribution $D_{\mathcal{X}}$ and the distance $h_{\mathcal{X}}$ are invariant to
+
+
+Figure 4: Advanced epochs of the neural level-sets from Figure 2. The limit in the $L^0$ case (two right images) is an inside/outside indicator function, while for the $L^2$ case (two left images) it is a signed version of the unsigned $L^2$ distance.
+
+rigid transformations, which is common and holds in all cases considered in this paper. We prove existence of critical weights $(\boldsymbol{w}^{*}, b^{*})$ of the loss in equation 2, and for which the zero level-set of $f$ , $f(\boldsymbol{x}; \boldsymbol{w}^{*}, b^{*}) = 0$ , reproduces $\mathcal{P}$ :
+
+Theorem 3. Consider a linear model $f(\pmb{x};\pmb{\theta}) = \varphi(\pmb{w}^T\pmb{x} + b)$ , $\pmb{\theta} = (\pmb{w},b)$ , with a strong non-linearity $\varphi: \mathbb{R} \to \mathbb{R}$ . Assume the data $\mathcal{X}$ lies on a plane $\mathcal{P} = \{\pmb{x}|\pmb{n}^T\pmb{x} + c = 0\}$ , i.e., $\mathcal{X} \subset \mathcal{P}$ . Then, there exists $\alpha \in \mathbb{R}_+$ so that $(\pmb{w}^*,b^*) = (\alpha\pmb{n},\alpha c)$ is a critical point of the loss in equation 2.
+
+This theorem can be applied locally when optimizing a general MLP (equation 8) with SAL to prove local plane reproduction. See supplementary for more details.
+
+# 5.2. Convergence to the limit signed function
+
+The SAL loss pushes the neural implicit function $f$ towards a signed version of the unsigned distance function $h_{\mathcal{X}}$ . In the $L^0$ case it is the inside/outside indicator function of the surface, while for $L^2$ it is a signed version of the Euclidean distance to the data $\mathcal{X}$ . Figure 4 shows advanced epochs of the 2D experiment in Figure 2; note that the $f$ in these advanced epochs is indeed closer to the signed version of the respective $h_{\mathcal{X}}$ . Since the indicator function and the signed Euclidean distance are discontinuous across the surface, they potentially impose quantization errors when using standard contouring algorithms, such as Marching Cubes [26], to extract their zero level-set. In practice, this phenomenon is avoided with a standard choice of stopping criteria (learning rate and number of iterations). Another potential solution is to add a regularization term to the SAL loss; we mark this as future work.
+
+# 6. Experiments
+
+# 6.1. Surface reconstruction
+
+The most basic experiment for SAL is reconstructing a surface from a single input raw point cloud (without using any normal information). Figure 5 shows surface reconstructions based on four raw point clouds provided in [21] with three methods: ball-pivoting [6], variation-implicit reconstruction [21], and SAL based on the $L^0$ distance, i.e.,
+
+
+Figure 5: Surface reconstruction from (un-oriented) point cloud. From left to right: input point cloud; ball-pivoting reconstruction [6]; variational-implicit reconstruction [21]; SAL reconstruction (ours).
+
+optimizing the loss described in equation 7 with $\ell = 1$ . The only parameter in this loss is $\sigma$ which we set for every point in $x \in \mathcal{X}$ to be the distance to the 50-th nearest point in the point cloud $\mathcal{X}$ . We used an 8-layer MLP, $f: \mathbb{R}^3 \times \mathbb{R}^m \to \mathbb{R}$ , with 512 wide hidden layers and a single skip connection to the middle layer (see supplementary material for more implementation details). As can be visually inspected from the figure, SAL provides high fidelity surfaces, approximating the input point cloud even for challenging cases of sparse and irregular input point clouds.
+
+# 6.2. Learning shape space from raw scans
+
+In the main experiment of this paper we trained on the D-Faust scan dataset [7], consisting of approximately 41k raw scans of 10 humans in multiple poses. Each scan is a triangle soup, $\mathcal{X}_i$ , where common defects include holes, ghost geometry, and noise, see Figure 1 for examples.
+
+Architecture. To learn the shape representations we used a modified variational encoder-decoder [24], where the encoder $(\pmb{\mu}, \pmb{\eta}) = g(\pmb{X}; \pmb{\theta}_1)$ is taken to be PointNet [31] (specific architecture detailed in supplementary material), $\pmb{X} \in \mathbb{R}^{n \times 3}$ is an input point cloud (we used $n = 128^2$ ), $\pmb{\mu} \in \mathbb{R}^{256}$ is the latent vector, and $\pmb{\eta} \in \mathbb{R}^{256}$ represents a diagonal covariance matrix by $\pmb{\Sigma} = \mathrm{diag} \exp \pmb{\eta}$ . That is, the encoder takes in a point cloud $\pmb{X}$ and outputs a probability
+
+measure $\mathcal{N}(\pmb{\mu},\pmb{\Sigma})$ . The point cloud is drawn uniformly at random from the scans, i.e., $\pmb{X}\sim \mathcal{X}_i$ . The decoder is the implicit representation $f(\pmb{x};\pmb{w},\pmb{\theta}_2)$ with the addition of a latent vector $\pmb{w}\in \mathbb{R}^{256}$ . The architecture of $f$ is taken to be the 8-layer MLP, as in Subsection 6.1.
+
+Loss. We use SAL loss with $L^2$ distance, i.e., $h_2(z) = \min_{\boldsymbol{x} \in \mathcal{X}_i} \| \boldsymbol{z} - \boldsymbol{x} \|_2$ the unsigned distance to the triangle soup $\mathcal{X}_i$ , and combine it with a variational auto-encoder type loss [24]:
+
+$$
+\operatorname {L o s s} (\boldsymbol {\theta}) = \sum_ {i} \mathbb {E} _ {\boldsymbol {X} \sim \chi_ {i}} \left[ \operatorname {l o s s} _ {\mathrm {R}} (\boldsymbol {\theta}) + \lambda \| \boldsymbol {\mu} \| _ {1} + \| \boldsymbol {\eta} + \boldsymbol {1} \| _ {1} \right]
+$$
+
+$$
+\mathrm {l o s s} _ {\mathbb {R}} (\pmb {\theta}) = \mathbb {E} _ {\pmb {z} \sim \mathcal {N} _ {\sigma} (\mathcal {X} _ {i}), \pmb {w} \sim \mathcal {N} (\pmb {\mu}, \pmb {\Sigma})} \big | | f (\pmb {z}; \pmb {w}, \pmb {\theta} _ {2}) | - h _ {2} (\pmb {z}) \big |,
+$$
+
+where $\pmb{\theta} = (\pmb{\theta}_1, \pmb{\theta}_2)$ , $\|\cdot\|_1$ is the 1-norm, $\|\pmb{\mu}\|_1$ encourages the latent prediction $\pmb{\mu}$ to be close to the origin, while $\|\pmb{\eta} + \mathbf{1}\|_1$ encourages the variances $\pmb{\Sigma}$ to be constant $\exp(-1)$ ; together, these enforce a regularization on the latent space. $\lambda$ is a balancing weight chosen to be $10^{-3}$ .
+
+Baseline. We compared versus three baseline methods. First, AtlasNet [19], one of the only existing algorithms for learning a shape collection from raw point clouds. AtlasNet uses a parametric representation of surfaces, which is straight-forward to sample. On the down side, it uses a collection of patches that tend to not overlap perfectly, and their loss requires computation of closest points between the generated and input point clouds which poses a challenge for learning large point clouds. Second, we approximate a signed distance function, $\bar{h}_2$ , to the data $\mathcal{X}_i$ in two different ways, and regress them using an MLP as in DeepSDF [30]; we call these methods SignReg. Note that Occupancy Networks [28] and [12] regress a different signed distance function and perform similarly.
+
+To approximate the signed distance function, $\bar{h}_2$ , we first tried using a state of the art surface reconstruction algorithm [23] to produce watertight manifold surfaces. However, only 28684 shapes were successfully reconstructed (69% of the dataset), making this option infeasible to compute $\bar{h}_2$ . We have opted to approximate the signed distance function similar to [20] with $\bar{h}_2(z) = \pmb{n}_*^T (\pmb {z} - \pmb {x}_*)$ , where $\pmb{x}_{*} = \arg \min_{\pmb {x}\in \mathcal{X}_{i}}\| \pmb {z} - \pmb {x}\|_{2}$ is the closest point to $z$ in $\mathcal{X}_i$ and $\pmb{n}_{*}$ is the normal at $\pmb{x}_{*}\in \mathcal{X}_{i}$ . To approximate the normal $\pmb{n}_{*}$ we tested two options: (i) taking $\pmb{n}^{*}$ directly from the original scan $\mathcal{X}_i$ with its original orientation; and (ii) using local normal estimation using Jets [10] followed by consistent orientation procedure based on minimal spanning tree using the CGAL library [1].
+
+Table 1 and Figure 6 show the result on a random $75\% -25\%$ train-test split on the D-Faust raw scans. We report the $5\%$ , $50\%$ (median), and $95\%$ percentiles of the Chamfer distances between the surface reconstructions and the
+
+
+Figure 6: Reconstruction of the test set from D-Faust scans. Left to right in each column: input test scan, SAL (our) reconstruction, AtlasNet [19] reconstruction, and SignReg - signed regression with approximate Jet normals.
+
+ | Registrations | Scans |
| Method | 5% | Median | 95% | 5% | Median |
| Train | AtlasNet[19] | 0.09 | 0.15 | 0.27 | 0.05 | 0.09 | 0.18 |
| Scan normals | 2.53 | 43.99 | 292.59 | 2.63 | 44.86 | 257.37 |
| Jet normals | 1.72 | 30.46 | 513.34 | 1.65 | 31.11 | 453.43 |
| SAL (ours) | 0.05 | 0.09 | 0.2 | 0.05 | 0.06 | 0.09 |
| Test | AtlasNet[19] | 0.1 | 0.17 | 0.37 | 0.05 | 0.1 | 0.22 |
| Scan normals | 3.45 | 45.03 | 294.15 | 3.21 | 277.36 | 45.03 |
| Jet normals | 1.88 | 31.05 | 489.35 | 1.76 | 30.89 | 462.85 |
| SAL (ours) | 0.07 | 0.12 | 0.35 | 0.05 | 0.08 | 0.16 |
+
+Table 1: Reconstruction of the test set from D-Faust scans. We log the Chamfer distances of the reconstructed surfaces to the raw scans (one-sided), and ground-truth registrations; we report the 5-th, 50-th, and 95-th percentile. Numbers are reported $*10^{3}$ .
+
+raw scans (one-sided Chamfer from reconstruction to scan), and ground truth registrations. The SAL and SignReg reconstructions were generated by a forward pass $(\pmb{\mu}, \pmb{\eta}) = g(\pmb{X}; \pmb{\theta}_1)$ of a point cloud $X \subset \mathcal{X}_i$ sampled from the raw unseen scans, yielding an implicit function $f(\pmb{x}; \pmb{\mu}, \pmb{\theta}_2)$ . We used the Marching Cubes algorithm [26] to mesh the zero level-set of this implicit function. Then, we sampled uniformly 30K points from it and compute the Chamfer Distance.
+
+Generalization to unseen data. In this experiment we test our method on two different scenarios: (i) generating
+
+shapes of unseen humans; and (ii) generating shapes of unseen poses. For the unseen humans experiment we trained on 8 humans (4 females and 4 males), leaving out 2 humans for test (one female and one male). For the unseen poses experiment, we randomly chose two poses of each human as a test set. To further improve test-time shape representations, we also further optimized the latent $\pmb{\mu}$ to better approximate the input test scan $\mathcal{X}_i$ . That is, for each test scan $\mathcal{X}_i$ , after the forward pass $(\pmb{\mu},\pmb{\eta}) = g(\pmb{X};\pmb{\theta}_2)$ with $\pmb{X} \subset \mathcal{X}_i$ , we further optimized $\mathrm{loss}_{\mathrm{R}}$ as a function of $\pmb{\mu}$ for 800 further iterations. We refer to this method as latent optimization.
+
+Table 2 demonstrates that the latent optimization method further improves predictions quality, compared to a single forward pass. In 7 and 8, we demonstrate few representatives examples, where we plot left to right in each column: input test scan, SAL reconstruction with forward pass alone, and SAL reconstruction with latent optimization. Failure cases are shown in the bottom-right. Despite the little variability of humans in the training dataset (only 8 humans), 7 shows that SAL can usually fit a pretty good human shape to the unseen human scan using a single forward pass reconstruction; using latent optimization further improves the approximation as can be inspected in the different examples in this figure.
+
+Figure 8 shows how a single forward reconstruction is able to predict the pose correctly, where latent optimization improves the prediction in terms of shape and pose.
+
+
+Figure 7: Reconstruction of unseen humans scans. Each column from left to right: unseen human scan, SAL reconstruction with a single forward pass, SAL reconstruction with latent optimization. Bottom-right shows failure.
+
+
+Figure 8: Reconstruction of unseen pose scans. Each column from left to right: unseen pose scan, SAL reconstruction with a single forward pass, SAL reconstruction with latent optimization. Bottom-right shows failure.
+
+Limitations. SAL's limitation is mainly in capturing thin structures. Figure 9 shows reconstructions (obtained similarly to 6.1) of a chair and a plane from the ShapeNet [11] dataset; note that some parts in the chair back and the plane wheel structure are missing.
+
+ | Registrations | Scans |
| 5% | Median | 95% | 5% | Median | 95% |
| Train | SAL (Pose) | 0.08 | 0.12 | 0.25 | 0.05 | 0.07 | 0.1 |
| SAL (Human) | 0.06 | 0.09 | 0.18 | 0.04 | 0.06 | 0.09 |
| Test | SAL (Pose) | 0.11 | 0.37 | 2.26 | 0.07 | 0.18 | 0.93 |
| SAL + latent opt. (Pose) | 0.08 | 0.16 | 1.12 | 0.05 | 0.09 | 0.19 |
| SAL (Human) | 0.26 | 0.75 | 4.99 | 0.14 | 0.34 | 1.53 |
| SAL + latent opt. (Human) | 0.12 | 0.3 | 3.05 | 0.07 | 0.14 | 0.49 |
+
+Table 2: Reconstruction of the unseen human and pose from D-Faust scans. We log the Chamfer distances of the reconstructed surfaces to the raw scans (one-sided), and groundtruth registrations; we report the 5-th, 50-th, and 95-th percentile. Numbers are reported $*10^{3}$ .
+
+
+Figure 9: Failure in capturing thin structures. In each pair: ground truth model (left), and SAL reconstruction (right).
+
+# 7. Conclusions
+
+We introduced SAL: Sign Agnostic Learning, a deep learning approach for processing raw data without any preprocess or need for ground truth normal data or inside/outside labeling. We have developed a geometric initialization formula for MLPs to approximate the signed distance function to a sphere, and a theoretical justification proving planar reproduction for SAL. Lastly, we demonstrated the ability of SAL to reconstruct high fidelity surfaces from raw point clouds, and that SAL easily integrates into standard generative models to learn shape spaces from raw geometric data. One limitation of SAL was mentioned in Section 5, namely the stopping criteria for the optimization.
+
+Using SAL in other generative models such as generative adversarial networks could be an interesting follow-up. Another future direction is global reconstruction from partial data. Combining SAL with image data also has potentially interesting applications. We think SAL has many exciting future work directions, progressing geometric deep learning to work with unorganized, raw data.
+
+# Acknowledgments
+
+The research was supported by the European Research Council (ERC Consolidator Grant, "LiftMatch" 771136), the Israel Science Foundation (Grant No. 1830/17) and by a research grant from the Carolito Stiftung (WAIC).
+
+# References
+
+[1] Pierre Alliez, Simon Giraudot, Clément Jamin, Florent Lafarge, Quentin Merigot, Jocelyn Meyron, Laurent Saboret, Nader Salman, and Shihao Wu. Point set processing. In CGAL User and Reference Manual. CGAL Editorial Board, 5.0 edition, 2019. 6
+[2] Matan Atzmon, Niv Haim, Lior Yariv, Ofer Israelov, Haggai Maron, and Yaron Lipman. Controlling neural level sets. arXiv preprint arXiv:1905.11911, 2019. 1, 2
+[3] Timur Bagautdinov, Chenglei Wu, Jason Saragih, Pascal Fua, and Yaser Sheikh. Modeling facial geometry using compositional vaes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3877-3886, 2018. 2
+[4] Heli Ben-Hamu, Haggai Maron, Itay Kezurer, Gal Avineri, and Yaron Lipman. Multi-chart generative surface modeling. In SIGGRAPH Asia 2018 Technical Papers, page 215. ACM, 2018. 1, 2
+[5] Matthew Berger, Andrea Tagliasacchi, Lee M Seversky, Pierre Alliez, Gael Guennebaud, Joshua A Levine, Andrei Sharf, and Claudio T Silva. A survey of surface reconstruction from point clouds. In Computer Graphics Forum, volume 36, pages 301-329. Wiley Online Library, 2017. 1
+[6] Fausto Bernardini, Joshua Mittleman, Holly Rushmeier, Claudio Silva, and Gabriel Taubin. The ball-pivoting algorithm for surface reconstruction. IEEE transactions on visualization and computer graphics, 5(4):349-359, 1999. 5, 6
+[7] Federica Bogo, Javier Romero, Gerard Pons-Moll, and Michael J. Black. Dynamic FAUST: Registering human bodies in motion. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), July 2017. 1, 2, 6
+[8] Piotr Bojanowski, Armand Joulin, David Lopez-Paz, and Arthur Szlam. Optimizing the latent space of generative networks. arXiv preprint arXiv:1707.05776, 2017. 2
+[9] Jonathan C Carr, Richard K Beatson, Jon B Cherrie, Tim J Mitchell, W Richard Fright, Bruce C McCallum, and Tim R Evans. Reconstruction and representation of 3d objects with radial basis functions. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pages 67-76. ACM, 2001. 2
+[10] Frédéric Cazals and Marc Pouget. Estimating differential quantities using polynomial fitting of osculating jets. Computer Aided Geometric Design, 22(2):121-146, 2005. 6
+[11] 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. 8
+[12] 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. 1, 2, 4, 6
+[13] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3d-encoder-predictor cnns and shape synthesis. In Proceedings of the IEEE Conference
+
+on Computer Vision and Pattern Recognition, pages 5868-5877, 2017. 2
+[14] Boyang Deng, Kyle Genova, Soroosh Yazdani, Sofien Bouaziz, Geoffrey Hinton, and Andrea Tagliasacchi. Cvxnets: Learnable convex decomposition. arXiv preprint arXiv:1909.05736, 2019. 1
+[15] Theo Deprelle, Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. Learning elementary structures for 3d shape generation and matching. arXiv preprint arXiv:1908.04725, 2019. 1
+[16] Manfredo P Do Carmo. Differential Geometry of Curves and Surfaces: Revised and Updated Second Edition. Courier Dover Publications, 2016. 3, 5
+[17] Kyle Genova, Forrester Cole, Daniel Vlasic, Aaron Sarna, William T Freeman, and Thomas Funkhouser. Learning shape templates with structured implicit functions. arXiv preprint arXiv:1904.06447, 2019. 1, 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 Advances in neural information processing systems, pages 2672–2680, 2014. 2
+[19] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 216-224, 2018. 1, 2, 6, 7
+[20] Hugues Hoppe, Tony DeRose, Tom Duchamp, John McDonald, and Werner Stuetzle. Surface reconstruction from unorganized points, volume 26. ACM, 1992. 6
+[21] Zhiyang Huang, Nathan Carr, and Tao Ju. Variational implicit point set surfaces. ACM Trans. Graph., 38(4), July 2019. 3, 5, 6
+[22] Michael Kazhdan, Matthew Bolitho, and Hugues Hoppe. Poisson surface reconstruction. In Proceedings of the fourth Eurographics symposium on Geometry processing, volume 7, 2006. 2
+[23] Michael Kazhdan and Hugues Hoppe. Screened poisson surface reconstruction. ACM Transactions on Graphics (ToG), 32(3):29, 2013. 2, 6
+[24] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 1, 2, 6
+[25] 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. 2
+[26] William E Lorensen and Harvey E Cline. Marching cubes: A high resolution 3d surface construction algorithm. In ACM siggraph computer graphics, volume 21, pages 163-169. ACM, 1987. 5, 7
+[27] Haggai Maron, Meirav Galun, Noam Aigerman, Miri Trope, Nadav Dym, Ersin Yumer, Vladimir G Kim, and Yaron Lipman. Convolutional neural networks on surfaces via seamless toric covers. ACM Trans. Graph., 36(4):71-1, 2017. 2
+
+[28] 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. 1, 2, 6
+[29] Patrick Mullen, Fernando De Goes, Mathieu Desbrun, David Cohen-Steiner, and Pierre Alliez. Signing the unsigned: Robust surface reconstruction from raw pointsets. In Computer Graphics Forum, volume 29, pages 1733–1741. Wiley Online Library, 2010. 2
+[30] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2, 4, 6
+[31] 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. 6
+[32] Ayan Sinha, Jing Bai, and Karthik Ramani. Deep learning 3d shape surfaces using geometry images. In European Conference on Computer Vision, pages 223-240. Springer, 2016. 2
+[33] Ayan Sinha, Asim Unmesh, Qixing Huang, and Karthik Ramani. Surfnet: Generating 3d shape surfaces using deep residual networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6040-6049, 2017. 2
+[34] David Stutz and Andreas Geiger. Learning 3d shape completion from laser scan data with weak supervision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1955-1964, 2018. 2
+[35] Kenshi Takayama, Alec Jacobson, Ladislav Kavan, and Olga Sorkine-Hornung. Consistently orienting facets in polygon meshes by minimizing the dirichlet energy of generalized winding numbers. arXiv preprint arXiv:1406.5431, 2014. 3
+[36] Maxim Tatarchenko, Alexey Dosovitskiy, and Thomas Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3d outputs. In Proceedings of the IEEE International Conference on Computer Vision, pages 2088-2096, 2017. 2
+[37] Christian Walder, Olivier Chapelle, and Bernhard Schölkopf. Implicit surface modelling as an eigenvalue problem. In Proceedings of the 22nd international conference on Machine learning, pages 936-939. ACM, 2005. 2
+[38] Christian Walder, Olivier Chapelle, and Bernhard Schölkopf. Implicit surfaces with globally regularised and compactly supported basis functions. In Advances in Neural Information Processing Systems, pages 273-280, 2007. 2
+[39] Holger Wendland. Scattered data approximation, volume 17. Cambridge university press, 2004. 3
+[40] Francis Williams, Teseo Schneider, Claudio Silva, Denis Zorin, Joan Bruna, and Daniele Panozzo. Deep geometric prior for surface reconstruction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10130-10139, 2019. 1, 2
+
+[41] 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. 2
+[42] Hongyi Xu and Jernej Barbič. Signed distance fields for polygon soup meshes. In Proceedings of Graphics Interface 2014, pages 35-41. Canadian Information Processing Society, 2014. 3
+[43] Hong-Kai Zhao, Stanley Osher, and Ronald Fedkiw. Fast surface reconstruction using the level set method. In Proceedings IEEE Workshop on Variational and Level Set Methods in Computer Vision, pages 194-201. IEEE, 2001. 2
\ No newline at end of file
diff --git a/salsignagnosticlearningofshapesfromrawdata/images.zip b/salsignagnosticlearningofshapesfromrawdata/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..020f25dc9b025db6c7058a42bae817565b9dea5e
--- /dev/null
+++ b/salsignagnosticlearningofshapesfromrawdata/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b5b9986774ac59d2c15a12d2512ffcf9fb12844daf90ea1408a21b2129dc242
+size 539658
diff --git a/salsignagnosticlearningofshapesfromrawdata/layout.json b/salsignagnosticlearningofshapesfromrawdata/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..522e3d00bdf4a66866c16da83ef7ae6f087f0f2d
--- /dev/null
+++ b/salsignagnosticlearningofshapesfromrawdata/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a6130499c60631387729ead572153fbfa0ff37fff640b6ce72ffde89a34e194
+size 497994
diff --git a/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_content_list.json b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ba21331c45d5e99c16029da2918f76e8d683e0e5
--- /dev/null
+++ b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b114f3a2c2a689323a4d589bfd4aaccbb34eb1196b909bcea5c8e0974915b2b4
+size 68156
diff --git a/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_model.json b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..bb0bee3cf629f67b3e45c15ed36c29116fb8f6e3
--- /dev/null
+++ b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9724c75714e6af9b3a094c9d9514f37af88ec0ade65da7559fbf6137e4c12f92
+size 85780
diff --git a/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_origin.pdf b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e59501f219b3ad82d627e65cd7e8d28d7b19434f
--- /dev/null
+++ b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/c3db9df0-b979-477d-8449-cd6e5432c48e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5fc38aa36ba3aced03f6f2042224ef17d6e965e6cd13aa2e9b8595acd50fc466
+size 2881169
diff --git a/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/full.md b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e12a0a8ffe094ae6bfda1820485d4585db2d7c9f
--- /dev/null
+++ b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/full.md
@@ -0,0 +1,327 @@
+# Same Features, Different Day: Weakly Supervised Feature Learning for Seasonal Invariance
+
+Jaime Spencer, Richard Bowden, Simon Hadfield Centre for Vision, Speech and Signal Processing (CVSSP) University of Surrey
+
+{jaime.spencer, r.bowden, s.hadfield}@surrey.ac.uk
+
+# Abstract
+
+"Like night and day" is a commonly used expression to imply that two things are completely different. Unfortunately, this tends to be the case for current visual feature representations of the same scene across varying seasons or times of day. The aim of this paper is to provide a dense feature representation that can be used to perform localization, sparse matching or image retrieval, regardless of the current seasonal or temporal appearance.
+
+Recently, there have been several proposed methodologies for deep learning dense feature representations. These methods make use of ground truth pixel-wise correspondences between pairs of images and focus on the spatial properties of the features. As such, they don't address temporal or seasonal variation. Furthermore, obtaining the required pixel-wise correspondence data to train in cross-seasonal environments is highly complex in most scenarios.
+
+We propose Deja-Vu, a weakly supervised approach to learning season invariant features that does not require pixel-wise ground truth data. The proposed system only requires coarse labels indicating if two images correspond to the same location or not. From these labels, the network is trained to produce "similar" dense feature maps for corresponding locations despite environmental changes.
+
+Code will be made available at: https://github.com/
+
+jspenmar/DejaVu_Features
+
+# 1. Introduction
+
+Feature extraction and representation is a core component of computer vision. In this paper we propose a novel approach to feature learning with applications in a multitude of tasks. In particular, this paper addresses the highly challenging task of learning features which are robust to temporal appearance changes. This includes both short-term and long-term changes, e.g. day vs. night and summer vs. winter, respectively. This is important in scenarios such as au
+
+
+(a) Traditional
+
+
+(b) Proposed
+Figure 1: Traditional methods for learning dense features require pixel-wise correspondences, making cross-seasonal training nearly impossible. We propose a novel method for dense feature training requiring only image level correspondences and relational labels.
+
+tonomous driving, where the vehicle must be capable of operating reliably regardless of the current season or weather.
+
+Traditional hand-crafted features, such as SIFT [28] and ORB [43], typically fail to obtain reliable matches in cross-domain environments since they haven't been designed to handle these changes. More recently, there have been several deep learning techniques proposed [46, 48, 50] to learn dense feature representations. These methods tend to use a set of pixel-wise correspondences to obtain relational labels indicating similarity or dissimilarity between different image regions. As such, these techniques focus on the spatial properties of the learned features.
+
+However, none of these methods address the huge vi-
+
+sual appearance variation that results from longer temporal windows. This is likely due to the heavy biases in the commonly used training datasets [7, 14, 16], which do not incorporate seasonal variation. A limiting factor to this is acquiring ground truth correspondences for training. Even if the dataset does have data across multiple seasons [29], obtaining the pixel-wise ground truth correspondences required for these techniques is non-trivial. The noise from GPS and drift from Visual Odometry (VO) make pointcloud alignment unreliable and, by the very definition of the problem, appearance cannot be used to solve cross-seasonal correspondence.
+
+In order to overcome this, we instead opt for a weakly supervised approach. Rather than obtaining relational labels at the pixel level, we use coarse labels indicating if two images were taken at the same location. The network is then trained to produce globally "similar" dense feature maps for corresponding locations. An illustration of this process can be found in Figure 1. This allows us to obtain large amounts of training data without requiring pixel-wise cross-seasonal alignment. This paper introduces one of the only approaches capable of using holistic image-level correspondence as ground truth to supervise dense pixel-wise feature learning.
+
+The remainder of this paper describes the details of the proposed approach. This includes the architecture of the Deja-Vu feature (DVF) network and the similarity metric used to train it. We show the properties of the learned features, demonstrating their seasonal invariance. Finally, we discuss the potential applications of these features, most notably in areas such as self-localization.
+
+The main contributions can be summarized as follows:
+
+1. We propose a novel dense feature learning framework focused on invariance to seasonal and visio-temporal changes.
+2. We achieve this in a weakly supervised manner, requiring only rough cross-seasonal image alignment rather than pixel-level correspondences and yet we solve the pixel-level feature description problem.
+3. Finally, we propose a novel method for performing localization based on the aforementioned similarity metric, which makes full use of the dense feature maps.
+
+# 2. Related Work
+
+Historically, hand-crafted sparse features have been widely popular [53]. Notable examples include SIFT [28] and ORB [42]. These continue to be used in current applications for Simultaneous Localization and Mapping (SLAM) [32, 33] and VO estimation [58]. Meanwhile, Li et al. [27] and Sattler et al. [44] use SIFT descriptors in a 3D
+
+pointcloud to perform global localization. On the other hand, Krajnik et al. [24, 23] introduced GRIEF, based on an evolutionary algorithm to refine BRIEF [4] comparisons. These features were subsequently applied to relocalization in [25]. LIFT [57] and LF-Net [40] instead train a sequential pipeline of networks in order to learn keypoint detection, orientation estimation and feature description. However, Valgren and Lilienthal [54] demonstrate how the performance of sparse features degrades as the seasonal variation increases. Stylianou et al. [51] instead claim that changes in illumination and keypoint detection failures are the main degrading factors.
+
+Alternative approaches aggregate sparse features to form super-pixel image representations. Such is the case in the work of Neubert et al. [37, 38] and Naseer et al. [35], who aggregate SURF [3] and HOG [9] features, respectively. Other methods take this idea further and learn how to combine sparse features into a single holistic image descriptor. Some of the most notable examples include the Bag of Words [8] and the Fisher Kernel [19, 55]. Such methods have been applied to localization and mapping in [31, 12]. As an extension to these methods, Jegou et al. propose the Vector of Locally Aggregated Descriptors (VLAD) [20], simplifying the computational complexity whilst maintaining performance. Torii et al. introduced DenseVLAD [52], combining RootSIFT [1] and view synthesis to perform localization. Meanwhile, the contextual loss [30] has been proposed as a metric for similarity between non-aligned images. However, it has never been used in the context of explicit feature learning.
+
+Since the rise of deep learning, methods have focused on the aggregation of intermediate pretrained features [34, 36]. Xia et al. [56] incorporated PCANet [5] into a SLAM loop closure system. Meanwhile, VLAD was adapted into deep learning frameworks such as NetVLAD [2] and directly applied to place localization. Other approaches to holistic image feature learning include [6, 17]. These methods make use of relational labels indicating similarity or dissimilarity to train their networks. As such, they rely on losses such as contrastive [15] and triplet [47] loss.
+
+These deep learning methods focus on producing a single descriptor representing the whole image. However, Sattler et al. [45] conclude that in order to solve complex localization problems it is necessary to learn dense feature descriptors. Dusmanu et al. [10] opt for a "describe-then-detect" approach, where non-maximal-suppression is used to detect keypoints of interest in a dense feature map. Meanwhile, Schuster et al. [48] introduce SDC-Net, focused on the design of an architecture based on the use of stacked dilated convolutions. Schmidt et al. [46] introduce a pixelwise version of the contrastive loss used to train a network to produce dense matches between DynamicFusion [39] and KinectFusion [18] models. Fathy et al. [11] employ a
+
+
+Figure 2: Proposed methodology overview. The network is trained with consecutive Anchor - Positive - Negative triplets corresponding to images of the same or different locations, respectively. The similarity metric doesn't require spatial alignment between images or perfect pixel-wise correspondences.
+
+combination of losses in order to train coarse-to-fine dense feature descriptors. Spencer et al. [50] extended these methods to introduce a more generic concept of scale through spatial negative mining. The main drawback of these methods is that they do not tackle seasonal invariance.
+
+In this paper we propose a new framework to learn dense seasonal invariant representations. This is done in a largely unsupervised manner, greatly expanding the use cases of this feature learning framework. Furthermore, we extend contextual loss to create a relational loss based on a triplet configuration.
+
+# 3. Deja-Vu Features
+
+The aim of this work is to provide a dense feature descriptor representation for a given image. This representation must be capable of describing features uniquely such that short-term feature matching is possible, but with sufficient invariance to temporal appearance variation such that features can also be matched between day & night or winter & summer.
+
+An overview of the proposed methodology can be found in Figure 2. At the core of the system lies a Fully Convolutional Network (FCN) formed from residual blocks and skip connections. By utilizing only convolutions, the network is not restricted to a specific input size and allows for the estimation of a feature at every pixel in the image. The final stage of the encoder makes use of a Spatial Pooling Pyramid (SPP) block, with average pooling branches of size 32, 16, 8 and 4, respectively. This allows the network to incorporate information from various scales and provide a more detailed representation of the input.
+
+Formally, we define Deja-Vu to produce a dense $n$ -dimensional representation at every pixel in the input image, $\pmb{F} \in \mathbb{R}^{H \times W \times n}$ , obtained by
+
+$$
+\boldsymbol {F} = \Phi (\boldsymbol {I} | w), \tag {1}
+$$
+
+where $\pmb{I} \in \mathbb{N}^{H \times W \times 3}$ is the corresponding input image and $\Phi$ a network parametrized by a set of weights $w$ .
+
+# 3.1. Contextual Similarity
+
+In order to determine the similarity between two images, $I_1$ & $I_2$ , we first obtain their features, $F_1$ & $F_2$ , using (1). We then take inspiration from [30] to quantify how uniquely each feature in $F_1$ matches to a single location in $F_2$ . This allows us to compare feature maps of the same location without requiring pixel-wise matches or perfect photometric alignment. In the context of localization and revisitation, this means that two images of the same location should be regarded as similar, whereas any other pair should be dissimilar.
+
+To formalize this idea, two images are considered similar if each feature descriptor in $I_{1}$ has a matching feature in $I_{2}$ that is significantly closer in the embedded feature space than any other features in that image. Given a single feature at a 2D point $p_{1}$ , its set of distances with respect to the other feature map is defined as
+
+$$
+D \left(\boldsymbol {p} _ {1}\right) = \left\{\left| \left| \boldsymbol {F} _ {1} \left(\boldsymbol {p} _ {1}\right) - \boldsymbol {F} _ {2} \left(\boldsymbol {p} _ {2}\right) \right| \right|: \forall \boldsymbol {p} _ {2} \right\}. \tag {2}
+$$
+
+We then normalize this set of distances according to
+
+$$
+\widetilde {D} \left(\boldsymbol {p} _ {1}\right) = \frac {D \left(\boldsymbol {p} _ {1}\right)}{\min \left(D \left(\boldsymbol {p} _ {1}\right)\right) + \epsilon}, \tag {3}
+$$
+
+where $\epsilon = 1e - 5$ . Intuitively, this is similar to performing a traditional ratio test on the feature distances. In general, the best match will have $\widetilde{D} = 1$ . The rest of the points are then described as the ratio with respect to the best match in the range $\widetilde{D} = [1,\infty)$ . The set of normalized similarities between $p_1$ and all of $F_{2}$ is then given using a softmax function
+
+$$
+S \left(\boldsymbol {p} _ {1}\right) = \exp \left(\frac {1 - \widetilde {D} \left(\boldsymbol {p} _ {1}\right)}{h}\right), \tag {4}
+$$
+
+$$
+\widetilde {S} \left(\boldsymbol {p} _ {1}\right) = \frac {S \left(\boldsymbol {p} _ {1}\right)}{\sum_ {\boldsymbol {p} _ {2}} S \left(\boldsymbol {p} _ {2}\right)}, \tag {5}
+$$
+
+where $h$ represents the band-width parameter controlling the "hardness" of the similarity margin. In this case, the
+
+
+Figure 3: Contextual triplet loss framework. The triplets formed by each training sample can be divided into seasonal or cross-seasonal triplets, each contributing to the short-term and long-term matching performance. In the case of positive pairs, each feature in the image should only match to a single feature in the other image.
+
+best match results in a value of $S = 1$ and $S$ will tend to 0 for large values of $\widetilde{D}$ . $\widetilde{S}$ is therefore maximised by a single low and many high values of $\widetilde{D}$ , i.e. cases where there is a unique match.
+
+Following these definitions, we can now represent the global similarity between the original pair of images as
+
+$$
+C X \left(\boldsymbol {F} _ {1}, \boldsymbol {F} _ {2}\right) = \frac {1}{N} \sum_ {\boldsymbol {p} _ {1}} \max \widetilde {S} \left(\boldsymbol {p} _ {1}\right), \tag {6}
+$$
+
+where $N$ is the total number of features $\pmb{p}_1$ . Since this is an average of the normalised pixel-wise similarities, the resulting metric is constrained to the range [0, 1], indicating completely different or identical feature maps, respectively. As such, this encodes both the distances and uniqueness of the feature space without enforcing spatial constraints. This similarity metric can now be used at inference time to determine if two feature maps are likely to represent the same location.
+
+# 3.2. Contextual Triplet Loss
+
+Since we make use of relational labels between images, i.e. if the images correspond to approximately the same location or not, the similarity metric is introduced into a triplet loss framework. In a traditional triplet loss, the aim is to minimize positive feature embedding distances, AP, and separate them from negative pairs AN by at least a set margin $m$ .
+
+However, in the context of relocalization, positive pairs should be those with a high similarity. We therefore introduce a modified triplet loss inspired by (6) to take this into account:
+
+$$
+T = \left\{\boldsymbol {I} _ {A}, \boldsymbol {I} _ {P}, \boldsymbol {I} _ {N} \right\}, \tag {7}
+$$
+
+$$
+l (T) = \max \left(C X \left(\boldsymbol {F} _ {A}, \boldsymbol {F} _ {N}\right) - C X \left(\boldsymbol {F} _ {A}, \boldsymbol {F} _ {P}\right) + m, 0\right). \tag {8}
+$$
+
+Given an Anchor image, the Positive sample is obtained from the same location in a different weather/season. On the other hand, the Negative corresponds to an image from a different location and any season.
+
+Each training sample is composed of two consecutive frames of triplets. This framework allows us to introduce additional triplets, which help to provide additional consistency within each season and aid short-term matching. This results in a total of five triplets per training sample, illustrated in Figure 3. In order to incorporate the information from all the triplets, the final loss is defined as
+
+$$
+L = \frac {1}{N _ {X}} \sum_ {T _ {X}} l \left(T _ {X}\right) + \frac {\alpha}{N _ {S}} \sum_ {T _ {S}} l \left(T _ {S}\right), \tag {9}
+$$
+
+where $T_{X}$ and $T_{S}$ are the sets of seasonal and cross-seasonal triplets, $N_{X}$ and $N_{S}$ are the respective number of triplets in each category and $\alpha$ is a balancing weight in the range [0, 1]. Once again, the image-level labels of $\mathbf{A}$ , $\mathbf{P}$ & $\mathbf{N}$ are used to drive pixel-wise feature training.
+
+# 4. Results
+
+Dataset. To train the proposed features we make use of the RobotCar Seasons dataset [45]. This is a subset of the original RobotCar dataset [29] focused on cross-seasonal revisitations. It provides a set of consecutive frames at 49 unique locations, each at different times of the year including sun, rain, dawn, overcast, dusk and night. Additionally,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 4: Learnt feature visualizations from PCA dimensionality reduction. Despite drastic appearance changes, the network is capable of correctly identifying the similarities between the anchor and positive pair, whilst discriminating the negative pair.
+
+
+
+
+
+
+
+
+
+
+
+a reference pointcloud and poses are provided. However, it it still not possible to obtain accurate cross-seasonal pixellevel matches due to pose inconsistency. Fortunately, our system does not require this type of correspondence supervision.
+
+The dataset is split into a training and validation set of 40 and 9 locations, respectively. The training triplets are generated on the fly. From an Anchor image at a given season and location, a random target season is selected for the Positive sample. The closest frame within that season is found by calculating the distance between the respective GPS readings. Finally, the Negative sample is obtained by randomly sampling from a different RobotCar Seasons location, without any restriction on the season.
+
+Training. Using this data, Deja-Vu is trained for 160 epochs with a base learning rate of 0.001 and an SGD optimizer. The contextual triplet loss margin was typically fixed to $m = 0.5$ since the similarity between images is constrained to the range [0, 1]. In order to provide a more compact representation, the dimensionality of the features was restricted to $n = 10$ , with a consistency loss weight $\alpha = [0,1]$ .
+
+Feature visualization. In order to visualize the $n$ -dimensional features produced by the network, we apply PCA and map the features to the RGB cube. Three pairs of examples are shown in shown in Figure 4. This triplet helps to illustrate some of the most challenging aspects of the task at hand. This includes the drastic appearance changes between different times of day, night-time motion blur from the increased exposure and sunburst/reflections. Despite this, the feature maps for the anchor and positive appear globally similar and distinct to the negative pair.
+
+Cross-seasonal AUC. The baselines and proposed DVF are evaluated based on the Area Under the Curve (AUC) of
+
+the ROC curve when classifying a pair of images as corresponding to the same location or not. In this context, we consider all images within each RobotCar Seasons location as “true positives”, regardless of the season and their exact alignment.
+
+These results are shown in Figure 5 as a series of performance matrices indicating the classification performance between all possible season combinations. The diagonal corresponds to classification within each season, whereas
+
+| Features | Seasonal AUC | Cross-season AUC |
| SIFT [28] | 80.78 | 46.79 |
| RootSIFT [1] | 97.15 | 59.75 |
| ORB [43] | 96.60 | 66.99 |
| SIFT + CX | 94.42 | 64.58 |
| RootSIFT + CX | 95.55 | 68.36 |
| ORB + CX | 96.26 | 70.54 |
| VGG [49] + CX | 99.05 | 73.03 |
| NC-Net [41] + CX | 97.58 | 74.03 |
| D2-Net [10] + CX | 98.70 | 74.96 |
| SAND [50] + CX | 99.74 | 74.86 |
| NetVLAD [2] + CX | 99.41 | 77.57 |
| DVF - α = 0 | 99.30 | 93.82 |
| DVF - α = 0.2 | 99.82 | 96.56 |
| DVF - α = 0.4 | 99.59 | 91.37 |
| DVF - α = 0.6 | 99.76 | 93.46 |
| DVF - α = 0.8 | 99.52 | 94.12 |
| DVF - α = 1 | 99.47 | 92.94 |
+
+Table 1: Within season and cross-season AUCs from Figure 5. Incorporating the contextual similarity improves performance on hand crafted baselines. The proposed approach further increases accuracy by a large margin.
+
+
+(a) ORB
+
+
+(b) $\mathrm{SAND} + \mathrm{CX}$
+
+
+(c) NetVLAD + CX
+
+
+(d) DVF (Proposed)
+Figure 5: Performance matrices for baselines and the proposed DVF. The diagonals represent localization within each season, whereas all other cells perform cross-season localization. For summarized results see Table 1. N-R: Night-Rain, O-S: Overcast-Summer, O-W: Overcast-Winter.
+
+all other blocks represent cross-seasonal classification. This is summarized in Table 1, where we show that the proposed features outperform all baselines. These baselines were obtained by using the code and features provided by the corresponding authors/libraries. Additionally, we show how the used similarity metric can improve performance even in traditional methods using ORB, SIFT and RootSIFT.
+
+Sparse feature matching. Despite producing primarily a dense feature map representation, Deja-Vu can also be used to perform sparse cross-seasonal matching. This is worthy of note, given that the proposed method does not
+
+make use of any spatial information when training. The system is only required to produce globally "similar" or "disimilar" feature maps, with no context on what regions of the images match to each other.
+
+Recently, a new dataset [26] was proposed containing cross-seasonal correspondences. However, additional experiments in the supplementary material show that this dataset is still not accurate enough to provide meaningful evaluation data, especially in the case of the RobotCar Seasons dataset. As such, we provide quantitative results on [26] as supplementary material, and instead show qualita
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6: Sample seasonal and cross-seasonal matches obtained by DVF (proposed), SAND and D2-Net, respectively. However, they fail when attempting to match scenes with drastic appearance changes.
+
+
+
+
+
+tive performance compared to two recent state-of-the-art feature representations, SAND [50] and D2-Net [10], using the models provided by the respective authors.
+
+In order to provide the keypoint locations at which to match, we use the well established Shi-Tomasi corner detector [21]. In the case of D2-Net we use their own provided keypoint detection module. The detected descriptors are matched using traditional techniques, such as mutual nearest neighbour and the ratio test, and refined using RANSAC [13]. In all images we show a representative subset of the obtained inliers to avoid cluttering the visualizations.
+
+The first two columns in Figure 6 represent short-term matches between consecutive frames. Here it can be seen how all methods perform well, obtaining multiple matches. However, in the case where we try to perform matching between two different seasons at different times, i.e. the final column, performance drops significantly for SAND and D2-Net. Meanwhile, DVF is still capable of handling drastic changes in appearance.
+
+Cross-Seasonal Relocalization. Finally, we show how Deja-Vu can be used to perform 6-DOF cross-seasonal relocalization. In practice this means that localization can be performed in previously unseen conditions without requiring additional training or fine-tuning. In order to demonstrate this, PoseNet [22] is trained on a subset of RobotCar sequences from one season and evaluated on a corresponding subset from a different season.
+
+The baseline is obtained by training PoseNet in a traditional manner. Meanwhile, all other feature variants are incorporated by replacing the input image to the network with its corresponding dense $n$ -dimensional feature representation, namely D2-Net, SAND and the proposed DVF. These features correspond to those in Table 1, which are left fixed during PoseNet training.
+
+From the results in Table 2, it can be seen how the DVF variants clearly outperform the baselines, with the best one almost halving the error. Figure 7 shows some qualitative results from the localization pipeline. As expected, the proposed PoseNet variant using Deja-Vu features follows the ground truth poses more closely, despite having been trained on different weather conditions.
+
+| Method | P (m) | R (deg/m) |
| PoseNet [22] | 10.3459 | 0.0170 |
| D2-Net [10] | 11.1858 | 0.0029 |
| SAND [50] | 7.3386 | 0.0045 |
| DVF - α = 0 | 5.5759 | 0.0050 |
| DVF - α = 1 | 7.2076 | 0.0036 |
+
+Table 2: Position (meters) and Rotation (deg/meter) error when localizing in a RobotCar sequence of one season using a sequence of a different season.
+
+
+Figure 7: Predicted localization using PoseNet models trained under different seasonal conditions. The variant using the proposed Deja-Vu features follows the target trajectory more closely.
+
+# 5. Conclusions & Future Work
+
+In this paper we have proposed Deja-Vu features, a novel approach to dense feature learning which is robust to temporal changes. We have achieved this in a largely unsupervised manner, removing the need for exact pixel-wise matches between cross-season sequences. In combination with the relational nature of the supervision, this can generate much larger amounts of training data by simply using rough alignment obtained automatically from GPS.
+
+We have shown how the use of contextual similarity can improve relocalization performance, even in well established methods using hand-crafted features. While state-of-the-art same season localization methods tend to perform with high accuracy, their cross-seasonal performance is not comparable. On the other hand, Deja-Vu has over $90\%$ accuracy and can still perform pixel-level matching between complex seasons.
+
+We hope this is a step towards generalizing feature representation in complex tasks and environments. Interesting avenues for future work include introducing some level of spatial constraints into the proposed loss metrics.
+
+# Acknowledgements
+
+This work was funded by the EPSRC under grant agreement (EP/R512217/1). We would also like to thank NVIDIA Corporation for their Titan Xp GPU grant.
+
+# References
+
+[1] R. Arandjelovic. Three Things Everyone Should Know to Improve Object Retrieval. In Proceedings of the 2012 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2911-2918, 2012.
+
+[2] R. Arandjelovic, P. Gronat, A. Torii, T. Pajdla, and J. Sivic. NetVLAD: CNN Architecture for Weakly Supervised Place Recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(6):1437-1451, 2018.
+[3] H. Bay, T. Tuytelaars, and L. V. Gool. SURF: Speeded Up Robust Features - Demonstration. Computer Vision ECCV, 2006.
+[4] M. Calonder, V. Lepetit, C. Strecha, and P. Fua. BRIEF: Binary Robust Independent Elementary Features. In Genetic Programming, volume 6314, pages 778-792. 2010.
+[5] T. H. Chan, K. Jia, S. Gao, J. Lu, Z. Zeng, and Y. Ma. PCANet: A Simple Deep Learning Baseline for Image Classification? IEEE Transactions on Image Processing, 24(12):5017-5032, 2015.
+[6] Z. Chen, A. Jacobson, N. Sunderhauf, B. Upcroft, L. Liu, C. Shen, I. Reid, and M. Milford. Deep learning features at scale for visual place recognition. In Proceedings - IEEE International Conference on Robotics and Automation, pages 3223-3230. IEEE, may 2017.
+[7] M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele. The Cityscapes Dataset for Semantic Urban Scene Understanding. CVPR, apr 2016.
+[8] C. B. Csurka, G. Christopher R. Dance, Lixin Fan, Jutta Willamowski. Visual Categorization with Bags of Keypoints. Revista Mexicana de Biodiversidad, 82(1):179-191, 2011.
+[9] N. Dalal and W. Triggs. Histograms of Oriented Gradients for Human Detection. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition CVPR05, 1(3):886-893, 2004.
+[10] M. Dusmanu, I. Rocco, T. Pajdla, M. Pollefeys, J. Sivic, A. Torii, and T. Sattler. D2-Net: A Trainable CNN for Joint Detection and Description of Local Features. CVPR, may 2019.
+[11] M. E. Fathy, Q.-H. Tran, M. Z. Zia, P. Vernaza, and M. Chandraker. Hierarchical Metric Learning and Matching for 2D and 3D Geometric Correspondences. ECCV, 2018.
+[12] D. Filliat. A visual bag of words method for interactive qualitative localization and mapping. In Proceedings - IEEE International Conference on Robotics and Automation, pages 3921-3926, 2007.
+[13] M. A. Fischler and R. C. Bolles. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24(6):381-395, 1981.
+[14] A. Geiger, P. Lenz, and R. Urtasun. Are we ready for Autonomous Driving? The KITTI Vision Benchmark Suite. Conference on Computer Vision and Pattern Recognition (CVPR), 2012.
+[15] R. Hadsell, S. Chopra, and Y. LeCun. Dimensionality reduction by learning an invariant mapping. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, volume 2, pages 1735-1742, 2006.
+[16] X. Huang, P. Wang, X. Cheng, D. Zhou, Q. Geng, and R. Yang. The ApolloScape Open Dataset for Autonomous Driving and its Application. CVPR Workshops, 2018.
+
+[17] B. Ivanovic. Visual Place Recognition in Changing Environments with Time-Invariant Image Patch Descriptors. Stanford, 2016.
+[18] S. Izadi, D. Kim, O. Hilliges, D. Molyneaux, R. Newcombe, P. Kohli, J. Shotton, S. Hodges, D. Freeman, A. Davison, and A. Fitzgibbon. KinectFusion: Real-time 3D reconstruction and interaction using a moving depth camera. In UIST'11 - Proceedings of the 24th Annual ACM Symposium on User Interface Software and Technology, pages 559-568, 2011.
+[19] T. S. Jaakkola and D. Haussler. Exploiting Generative Models in Discriminative Classifiers. NIPS, pages 487-493, 1999.
+[20] H. Jégou, C. Schmid, I. Grenoble, and P. Pérez Technicolor. Aggregating local descriptors into a compact image representation. Technical report, 2010.
+[21] Jianbo Shi and Tomasi. Good features to track. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition CVPR-94, pages 593-600. IEEE Comput. Soc. Press, 1994.
+[22] A. Kendall, M. Grimes, and R. Cipolla. PoseNet: A convolutional network for real-time 6-dof camera relocalization. In Proceedings of the IEEE International Conference on Computer Vision, volume 2015 Inter, pages 2938-2946, 2015.
+[23] T. Krajnik, P. Cristóforis, K. Kusumam, P. Neubert, and T. Duckett. Image features for visual teach-and-repeat navigation in changing environments. Robotics and Autonomous Systems, 88:127-141, feb 2017.
+[24] T. Krajnik, P. Cristóforis, M. Nitsche, K. Kusumam, and T. Duckett. Image features and seasons revisited. In 2015 European Conference on Mobile Robots, ECMR 2015 - Proceedings, pages 1-7. IEEE, sep 2015.
+[25] T. Krajnik, J. P. Fentanes, J. M. Santos, and T. Duckett. FreeMEn: Frequency map enhancement for long-term mobile robot autonomy in changing environments. IEEE Transactions on Robotics, 33(4):964-977, aug 2017.
+[26] M. Larsson, E. Stenberg, L. Hammarstrand, M. Pollefeys, T. Sattler, and F. Kahl. A cross-season correspondence dataset for robust semantic segmentation. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, volume 2019-June, pages 9524-9534. IEEE Computer Society, jun 2019.
+[27] Y. Li, N. Snavely, D. Huttenlocher, and P. Fua. Worldwide pose estimation using 3D point clouds. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 7572 LNCS, pages 15-29, 2012.
+[28] D. G. Lowe. Distinctive Image Features from Scale-Invariant Keypoints. International Journal of Computer Vision, 60(2):91-110, 2004.
+[29] W. Maddern, G. Pascoe, C. Linegar, and P. Newman. 1 Year, $1000\mathrm{km}$ : The Oxford RobotCar Dataset. IJRR, 3(December 2015), 2015.
+[30] R. Mechrez, I. Talmi, and L. Zelnik-Manor. The Contextual Loss for Image Transformation with Non-Aligned Data. ECCV, mar 2018.
+[31] A. Mousavian and J. Košecka. Semantically Aware Bag-of-Words for Localization. CVPR Workshops, 2015.
+
+[32] R. Mur-Artal, J. M. Montiel, and J. D. Tardos. ORB-SLAM: A Versatile and Accurate Monocular SLAM System. IEEE Transactions on Robotics, 31(5):1147-1163, oct 2015.
+[33] R. Mur-Artal and J. D. Tardos. ORB-SLAM2: An Open-Source SLAM System for Monocular, Stereo, and RGB-D Cameras. IEEE Transactions on Robotics, 33(5):1255-1262, oct 2017.
+[34] T. Naseer, M. Ruhnke, C. Stachniss, L. Spinello, and W. Burgard. Robust visual SLAM across seasons. In IEEE International Conference on Intelligent Robots and Systems, 2015.
+[35] T. Naseer, L. Spinello, W. Burgard, and C. Stachniss. Robust visual robot localization across seasons using network flows. Proceedings of the AAAI Conference on Artificial Intelligence, 2014.
+[36] P. Neubert and P. Protzel. Beyond Holistic Descriptors, Keypoints, and Fixed Patches: Multiscale Superpixel Grids for Place Recognition in Changing Environments. IEEE Robotics and Automation Letters, 1(1):484-491, jan 2016.
+[37] P. Neubert, N. Sunderhauf, and P. Protzel. Appearance change prediction for long-term navigation across seasons. In 2013 European Conference on Mobile Robots, ECMR 2013 - Conference Proceedings, pages 198-203. IEEE, sep 2013.
+[38] P. Neubert, N. Sünderhauf, and P. Protzel. Superpixel-based appearance change prediction for long-term navigation across seasons. Robotics and Autonomous Systems, 69(1):15-27, jul 2015.
+[39] R. A. Newcombe, D. Fox, and S. M. Seitz. DynamicFusion: Reconstruction and Tracking of Non-rigid Scenes in Real-Time. Computer Vision and Pattern Recognition (CVPR), pages 343-352.
+[40] Y. Ono, P. Fua, E. Trulls, and K. M. Yi. LF-Net: Learning local features from images. In Advances in Neural Information Processing Systems, volume 2018-Decem, pages 6234–6244, 2018.
+[41] I. Rocco, M. Cimpoi, R. Arandjelović, A. Torii, T. Pajdla, and J. Sivic. Neighbourhood Consensus Networks. *NeurIPS*, oct 2018.
+[42] E. Rublee and G. Bradski. ORB: an eficient alternative to SIFT or SURF. ICCV, 2011.
+[43] E. Rublee, V. Rabaud, K. Konolige, and G. Bradski. ORB: An efficient alternative to SIFT or SURF. In Proceedings of the IEEE International Conference on Computer Vision, pages 2564-2571, 2011.
+[44] T. Sattler, M. Havlena, F. Radenovic, K. Schindler, and M. Pollefeys. Hyperpoints and fine vocabularies for large-scale location recognition. In Proceedings of the IEEE International Conference on Computer Vision, volume 2015 Inter, pages 2102-2106, 2015.
+[45] T. Sattler, W. Maddern, C. Toft, A. Torii, L. Hammarstrand, E. Stenberg, D. Safari, M. Okutomi, M. Pollefeys, J. Sivic, F. Kahl, and T. Pajdla. Benchmarking 6DOF Outdoor Visual Localization in Changing Conditions. CVPR, 2018.
+[46] T. Schmidt, R. Newcombe, and D. Fox. Self-Supervised Visual Descriptor Learning for Dense Correspondence. IEEE Robotics and Automation Letters, 2(2):420-427, 2017.
+
+[47] F. Schroff, D. Kalenichenko, and J. Philbin. FaceNet: A Unified Embedding for Face Recognition and Clustering. CVPR, mar 2015.
+[48] R. Schuster, O. Wasenmüller, C. Unger, and D. Stricker. SDC - Stacked Dilated Convolution: A Unified Descriptor Network for Dense Matching Tasks. CVPR, 2019.
+[49] K. Simonyan and A. Zisserman. Very Deep Convolutional Networks for Large-Scale Image Recognition. International Conference on Learning Representations, 2015.
+[50] J. Spencer, R. Bowden, and S. Hadfield. Scale-Adaptive Neural Dense Features : Learning via Hierarchical Context Aggregation. CVPR, 2019.
+[51] A. Stylianou, A. Abrams, and R. Pless. Characterizing feature matching performance over long time periods. In Proceedings - 2015 IEEE Winter Conference on Applications of Computer Vision, WACV 2015, pages 892-898, 2015.
+[52] A. Torii, R. Arandjelovic, J. Sivic, M. Okutomi, and T. Pajdla. 24/7 Place Recognition by View Synthesis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(2):257-271, 2018.
+[53] T. Tuytelaars and K. Mikolajczyk. Local Invariant Feature Detectors: A Survey. Foundations and Trends in Computer Graphics and Vision, 3(3):177-280, 2008.
+[54] C. Valgren and A. J. Lilienthal. SIFT, SURF & seasons: Appearance-based long-term localization in outdoor environments. Robotics and Autonomous Systems, 58(2):149-156, feb 2010.
+[55] L. van der Maaten. Learning Discriminative Fisher Kernels. Proceedings of the 28th international conference on Machine learning - ICML '11, 2011.
+[56] Y. Xia, J. Li, L. Qi, and H. Fan. Loop closure detection for visual SLAM using PCANet features. In Proceedings of the International Joint Conference on Neural Networks, volume 2016-Octob, pages 2274-2281. IEEE, jul 2016.
+[57] K. M. Yi, E. Trulls, V. Lepetit, and P. Fua. LIFT: Learned invariant feature transform. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 9910 LNCS, pages 467-483, 2016.
+[58] T. Zhou, M. Brown, N. Snavely, and D. G. Lowe. Unsupervised learning of depth and ego-motion from video. In Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, volume 2017-Janua, pages 6612-6621, 2017.
\ No newline at end of file
diff --git a/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/images.zip b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bbf6e8f31c27e62c838f6a77dbaf9813b96ffaca
--- /dev/null
+++ b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2945529a7ef3d1228f290a00bd9e50b393fc0b6a3ef06d20bff0769f9d9132c2
+size 838516
diff --git a/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/layout.json b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5ad711f62bb8507020c85529d9b3101ae00afc37
--- /dev/null
+++ b/samefeaturesdifferentdayweaklysupervisedfeaturelearningforseasonalinvariance/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:82392f160a7977ef3022fe2e60dce25936c7fb166ba52717f94b6f726ab17b31
+size 350070
diff --git a/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_content_list.json b/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..553bf38b704337114f849cd28ea6e569065de265
--- /dev/null
+++ b/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4faa0da2b3dde7a2d54779c88e1d360a77313657a9c7520ed52d6b122d86a315
+size 80193
diff --git a/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_model.json b/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e95450d85f7b12ea7a633604abf7f2d5247ebd5
--- /dev/null
+++ b/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6f27c1fa53b80ef721a781ddc8caa41c04ebab1965c3d14dd14f094d53531e1c
+size 101269
diff --git a/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_origin.pdf b/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6e35ed8bc4ebde0617ef5bd79ba079383b4baac4
--- /dev/null
+++ b/samplenetdifferentiablepointcloudsampling/91734260-e1a3-4d2f-970c-efa1dc53a37b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c9cde9df71e6ff5e09524aa6368012c830b22b5dde43c8093f25f973b4eac136
+size 1250433
diff --git a/samplenetdifferentiablepointcloudsampling/full.md b/samplenetdifferentiablepointcloudsampling/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..98c1b59877b190b0e3eb2849b635157e49fdc9f0
--- /dev/null
+++ b/samplenetdifferentiablepointcloudsampling/full.md
@@ -0,0 +1,370 @@
+# SampleNet: Differentiable Point Cloud Sampling
+
+Itai Lang
+
+Tel Aviv University
+
+itailang@mail.tau.ac.il
+
+Asaf Manor
+
+Tel Aviv University
+
+asafmanor@mail.tau.ac.il
+
+Shai Avidan
+
+Tel Aviv University
+
+avidan@eng.tau.ac.il
+
+# Abstract
+
+There is a growing number of tasks that work directly on point clouds. As the size of the point cloud grows, so do the computational demands of these tasks. A possible solution is to sample the point cloud first. Classic sampling approaches, such as farthest point sampling (FPS), do not consider the downstream task. A recent work showed that learning a task-specific sampling can improve results significantly. However, the proposed technique did not deal with the non-differentiability of the sampling operation and offered a workaround instead.
+
+We introduce a novel differentiable relaxation for point cloud sampling that approximates sampled points as a mixture of points in the primary input cloud. Our approximation scheme leads to consistently good results on classification and geometry reconstruction applications. We also show that the proposed sampling method can be used as a front to a point cloud registration network. This is a challenging task since sampling must be consistent across two different point clouds for a shared downstream task. In all cases, our approach outperforms existing non-learned and learned sampling alternatives. Our code is publicly available1.
+
+# 1. Introduction
+
+The popularity of 3D sensing devices increased in recent years. These devices usually capture data in the form of a point cloud - a set of points representing the visual scene. A variety of applications, such as classification, registration and shape reconstruction, consume the raw point cloud data. These applications can digest large point clouds, though it is desirable to reduce the size of the point cloud (Figure 1) to improve computational efficiency and reduce communication costs.
+
+This is often done by sampling the data before running the downstream task [8, 11, 12]. Since sampling preserves the data structure (i.e., both input and output are point
+
+
+Figure 1. Applications of SampleNet. Our method learns to sample a point cloud for a subsequent task. It employs a differentiable relaxation of the selection of points from the input point cloud. SampleNet lets various tasks, such as classification, registration, and reconstruction, to operate on a small fraction of the input points with minimal degradation in performance.
+
+clouds), it can be used natively in a process pipeline. Also, sampling preserves data fidelity and retains the data in an interpretable representation.
+
+An emerging question is how to select the data points. A widely used method is farthest point sampling (FPS) [30, 52, 18, 27]. FPS starts from a point in the set, and iteratively selects the farthest point from the points already selected [7, 23]. It aims to achieve a maximal coverage of the input.
+
+FPS is task agnostic. It minimizes a geometric error and does not take into account the subsequent processing of the sampled point cloud. A recent work by Dovrat et al. [6] presented a task-specific sampling method. Their key idea was to simplify and then sample the point cloud. In the first step, they used a neural network to produce a small set of simplified points in the ambient space, optimized for the task. This set is not guaranteed to be a subset of the
+
+input. Thus, in a post-processing step, they matched each simplified point to its nearest neighbor in the input point cloud, which yielded a subset of the input.
+
+This learned sampling approach improved application performance with sampled point clouds, in comparison to non-learned methods, such as FPS and random sampling. However, the matching step is a non-differentiable operation and can not propagate gradients through a neural network. This substantially compromises the performance with sampled points in comparison to the simplified set, since matching was not introduced at the training phase.
+
+We extend the work of Dovrat et al. [6] by introducing a differentiable relaxation to the matching step, i.e., nearest neighbor selection, during training (Figure 2). This operation, which we call soft projection, replaces each point in the simplified set with a weighted average of its nearest neighbors from the input. During training, the weights are optimized to approximate the nearest neighbor selection, which is done at inference time.
+
+The soft projection operation makes a change in representation. Instead of absolute coordinates in the free space, the projected points are represented in weight coordinates of their local neighborhood in the initial point cloud. The operation is governed by a temperature parameter, which is minimized during the training process to create an annealing schedule [38]. The representation change renders the optimization goal as multiple localized classification problems, where each simplified point should be assigned to an optimal input point for the subsequent task.
+
+Our method, termed SampleNet, is applied to a variety of tasks, as demonstrated in Figure 1. Extensive experiments show that we outperform the work of Dovrat et al. consistently. Additionally, we examine a new application - registration with sampled point clouds and show the advantage of our method for this application as well. Registration introduces a new challenge: the sampling algorithm is required to sample consistent points across two different point clouds for a common downstream task. To summarize, our key contributions are threefold:
+
+- A novel differentiable approximation of point cloud sampling;
+- Improved performance with sampled point clouds for classification and reconstruction tasks, in comparison to non-learned and learned sampling alternatives;
+- Employment of our method for point cloud registration.
+
+# 2. Related Work
+
+Deep learning on point clouds Early research on deep learning for 3D point sets focused on regular representations of the data, in the form of 2D multi-views [29, 35] or 3D voxels [44, 29]. These representations enabled the natural extension of successful neural processing paradigms
+
+
+Figure 2. Illustration of the sampling approximation. We propose a learned sampling approach for point clouds that employs a differentiable relaxation to nearest neighbor selection. A query point $\mathbf{q}$ (in Red) is projected onto its local neighborhood from the input point cloud (in Blue). A weighted average of the neighbors form a softly projected point $\mathbf{r}$ (in Magenta). During training the weights are optimized to approximated nearest neighbor sampling $(\mathbf{p}_2$ in this example), which occurs at inference time.
+
+from the 2D image domain to 3D data. However, point clouds are irregular and sparse. Regular representations come with the cost of high computational load and quantization errors.
+
+PointNet [28] pioneered the direct processing of raw point clouds. It includes per point multi-layer perceptrons (MLPs) that lift each point from the coordinate space to a high dimensional feature space. A global pooling operation aggregates the information to a representative feature vector, which is mapped by fully connected (FC) layers to the object class of the input point cloud.
+
+The variety of deep learning applications for point clouds expanded substantially in the last few years. Today, applications include point cloud classification [30, 18, 36, 43], part segmentation [15, 34, 21, 42], instance segmentation [40, 19, 41], semantic segmentation [13, 25, 39], and object detection in point clouds [27, 33]. Additional applications include point cloud autoencoders [1, 48, 10, 54], point set completion [53, 5, 31] and registration [2, 22, 32], adversarial point cloud generation [14, 46], and adversarial attacks [20, 45]. Several recent works studied the topic of point cloud consolidation [52, 51, 16, 49]. Nevertheless, little attention was given to sampling strategies for point sets.
+
+Nearest neighbor selection Nearest neighbor (NN) methods have been widely used in the literature for information fusion [9, 30, 26, 42]. A notable drawback of using nearest neighbors, in the context of neural networks, is that the selection rule is non-differentiable. Goldberger et al. [9] suggested a stochastic relaxation of the nearest neighbor rule. They defined a categorical distribution over the set of candidate neighbors, where the 1-NN rule is a limit case of the distribution.
+
+Later on, Plötz and Roth [26] generalized the work of Goldberger et al., by presenting a deterministic relaxation of the $k$ nearest neighbor (KNN) selection rule. They pro
+
+posed a neural network layer, dubbed neural nearest neighbors block, that employs their KNN relaxation. In this layer, a weighted average of neighbors in the features space is used for information propagation. The neighbor weights are scaled with a temperature coefficient that controls the uniformity of the weight distribution. In our work, we employ the relaxed nearest neighbor selection as a way to approximate point cloud sampling. While the temperature coefficient is unconstrained in the work of Plotz and Roth, we promote a small temperature value during training, to approximate the nearest neighbor selection.
+
+# Sampling methods for points clouds in neural networks
+
+Farthest point sampling (FPS) has been widely used as a pooling operation in point cloud neural processing systems [30, 27, 50]. However, FPS does not take into account the further processing of the sampled points and may result in sub-optimal performance. Recently, alternative sub-sampling methods have been proposed [17, 24, 47]. Nezhadarya et al. [24] introduced a critical points layer, which passes on points with the most active features to the next network layer. Yang et al. [47] used Gumbel subset sampling during the training of a classification network instead of FPS, to improve its accuracy. The settings of our problem are different though. Given an application, we sample the input point cloud and apply the task on the sampled data.
+
+Dovrat et al. [6] proposed a learned task-oriented simplification of point clouds, which led to a performance gap between train and inference phases. We mitigate this problem by approximating the sampling operation during training, via a differentiable nearest neighbor approximation.
+
+# 3. Method
+
+An overview of our sampling method, SampleNet, is depicted in Figure 3. First, a task network is pre-trained on complete point clouds of $n$ points and frozen. Then, SampleNet takes a complete input $P$ and simplifies it via a neural network to a smaller set $Q$ of $m$ points [6]. $Q$ is soft projected onto $P$ by a differentiable relaxation of nearest neighbor selection. Finally, the output of SampleNet, $R$ , is fed to the task.
+
+SampleNet is trained with three loss terms:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {t o t a l}} ^ {\text {s a m p}} = \mathcal {L} _ {\text {t a s k}} (R) + \alpha \mathcal {L} _ {\text {s i m p l i f y}} (Q, P) \tag {1} \\ + \lambda \mathcal {L} _ {\text {p r o j e c t}}. \\ \end{array}
+$$
+
+The first term, $\mathcal{L}_{task}(R)$ , optimizes the approximated sampled set $R$ to the task. It is meant to preserve the task performance with sampled point clouds. $\mathcal{L}_{simplify}(Q,P)$ encourages the simplified set to be close to the input. That is, each point in $Q$ should have a close point in $P$ and vice-versa. The last term, $\mathcal{L}_{project}$ is used to approximate the
+
+
+Figure 3. Training of the proposed sampling method. The task network trained on complete input point clouds $P$ and kept fixed during the training of our sampling network SampleNet. $P$ is simplified with a neural network to a smaller set $Q$ . Then, $Q$ is softly projected onto $P$ to obtain $R$ , and $R$ is fed to the task network. Subject to the denoted losses, SampleNet is trained to sample points from $P$ that are optimal for the task at hand.
+
+
+Figure 4. The soft projection operation. The operation gets as input the point cloud $P$ and the simplified point cloud $Q$ . Each point $\mathbf{q} \in Q$ is projected onto its $k$ nearest neighbors in $P$ , denoted as $\{\mathbf{p}_i\}$ . The neighbors $\{\mathbf{p}_i\}$ are weighted by $\{w_i\}$ , according to their distance from $\mathbf{q}$ and a temperature coefficient $t$ , to obtain a point $\mathbf{r}$ in the soft projected point set $R$ .
+
+sampling of points from the input point cloud by the soft projection operation.
+
+Our method builds on and extends the sampling approach proposed by Dovrat et al. [6]. For clarity, we briefly review their method in section 3.1. Then, we describe our extension in section 3.2.
+
+# 3.1. Simplify
+
+Given a point cloud of $n$ 3D coordinates $P\in \mathbb{R}^{n\times 3}$ the goal is to find a subset of $m$ points $R^{*}\in \mathbb{R}^{m\times 3}$ , such that the sampled point cloud $R^{*}$ is optimized to a task $T$ Denoting the objective function of $T$ as $\mathcal{F},R^{*}$ is given by:
+
+$$
+R ^ {*} = \underset {R} {\operatorname {a r g m i n}} \mathcal {F} (T (R)), \quad R \subseteq P, \quad | R | = m \leq n. \tag {2}
+$$
+
+This optimization problem poses a challenge due to the non-differentiability of the sampling operation. Dovrat et al. [6] suggested a simplification network that produces $Q$ from $P$ , where $Q$ is optimal for the task and its points are close to those of $P$ . In order to encourage the second property, a simplification loss is utilized. Denoting average nearest neighbor loss as:
+
+$$
+\mathcal {L} _ {a} (X, Y) = \frac {1}{| X |} \sum_ {\mathbf {x} \in X} \min _ {\mathbf {y} \in Y} \| \mathbf {x} - \mathbf {y} \| _ {2} ^ {2}, \tag {3}
+$$
+
+and maximal nearest neighbor loss as:
+
+$$
+\mathcal {L} _ {m} (X, Y) = \max _ {\mathbf {x} \in X} \min _ {\mathbf {y} \in Y} \| \mathbf {x} - \mathbf {y} \| _ {2} ^ {2}, \tag {4}
+$$
+
+the simplification loss is given by:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {s i m p l i f y}} (Q, P) = \mathcal {L} _ {a} (Q, P) + \beta \mathcal {L} _ {m} (Q, P) \tag {5} \\ + (\gamma + \delta | Q |) \mathcal {L} _ {a} (P, Q). \\ \end{array}
+$$
+
+In order to optimize the point set $Q$ to the task, the task loss is added to the optimization objective. The total loss of the simplification network is:
+
+$$
+\mathcal {L} _ {s} (Q, P) = \mathcal {L} _ {\text {t a s k}} (Q) + \alpha \mathcal {L} _ {\text {s i m p l i f y}} (Q, P). \tag {6}
+$$
+
+The simplification network described above is trained for a specific sample size $m$ . Dovrat et al. [6] also proposed a progressive sampling network. This network orders the simplified points according to their importance for the task and can output any sample size. It outputs $n$ points and trained with simplification loss on nested subsets of its output:
+
+$$
+\mathcal {L} _ {p r o g} (Q, P) = \sum_ {c \in C _ {s}} \mathcal {L} _ {s} \left(Q _ {c}, P\right), \tag {7}
+$$
+
+where $C_s$ are control sizes.
+
+# 3.2. Project
+
+Instead of optimizing the simplified point cloud for the task, we add the soft projection operation. The operation is depicted in Figure 4. Each point $\mathbf{q} \in Q$ is softly projected onto its neighborhood, defined by its $k$ nearest neighbors in the complete point cloud $P$ , to obtain a projected point $\mathbf{r} \in R$ . The point $\mathbf{r}$ is a weighted average of original points form $P$ :
+
+$$
+\mathbf {r} = \sum_ {i \in \mathcal {N} _ {P} (\mathbf {q})} w _ {i} \mathbf {p} _ {i}, \tag {8}
+$$
+
+where $\mathcal{N}_P(\mathbf{q})$ contains the indices of the $k$ nearest neighbors of $\mathbf{q}$ in $P$ . The weights $\{w_i\}$ are determined according to the distance between $\mathbf{q}$ and its neighbors, scaled by a learnable temperature coefficient $t$ :
+
+$$
+w _ {i} = \frac {e ^ {- d _ {i} ^ {2} / t ^ {2}}}{\sum_ {j \in \mathcal {N} _ {P} (\mathbf {q})} e ^ {- d _ {j} ^ {2} / t ^ {2}}}, \tag {9}
+$$
+
+The distance is given by $d_{i} = ||\mathbf{q} - \mathbf{p}_{i}||_{2}$
+
+The neighborhood size $k = |\mathcal{N}_P(\mathbf{q})|$ plays a role in the choice of sampled points. Through the distance terms, the network can adapt a simplified point's location such that it will approach a different input point in its local region. While a small neighborhood size demotes exploration, choosing an excessive size may result in loss of local context.
+
+The weights $\{w_{i}\}$ can be viewed as a probability distribution function over the points $\{\mathbf{p}_i\}$ , where $\mathbf{r}$ is the expectation value. The temperature coefficient controls the shape of this distribution. In the limit of $t\to 0$ , the distribution converges to a Kronecker delta function, located at the nearest neighbor point.
+
+Given these observations, we would like the point $\mathbf{r}$ to approximate nearest neighbor sampling from the local neighborhood in $P$ . To achieve this we add a projection loss, given by:
+
+$$
+\mathcal {L} _ {\text {p r o j e c t}} = t ^ {2}. \tag {10}
+$$
+
+This loss promotes a small temperature value.
+
+In our sampling approach, the task network is fed with the projected point set $R$ rather than simplified set $Q$ . Since each point in $R$ estimates the selection of a point from $P$ , our network is trained to sample the input point cloud rather than simplify it.
+
+Our sampling method can be easily extended to the progressive sampling settings (Equation 7). In this case, the loss function takes the form:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {t o t a l}} ^ {\text {p r o g}} = \sum_ {c \in C _ {s}} \left(\mathcal {L} _ {\text {t a s k}} \left(R _ {c}\right) + \alpha \mathcal {L} _ {\text {s i m p l i f y}} \left(Q _ {c}, P\right)\right) \tag {11} \\ + \lambda \mathcal {L} _ {\text {p r o j e c t}}, \\ \end{array}
+$$
+
+where $R_{c}$ is the point set obtained by applying the soft projection operation on $Q_{c}$ (Equation 8).
+
+At inference time we replace the soft projection with sampling, to obtain a sampled point cloud $R^{*}$ . Like in a classification problem, for each point $\mathbf{r}^{*} \in R^{*}$ , we select the point $\mathbf{p}_{i}$ with the highest projection weight:
+
+$$
+\mathbf {r} ^ {*} = \mathbf {p} _ {i ^ {*}}, \quad i ^ {*} = \underset {i \in \mathcal {N} _ {P} (\mathbf {q})} {\operatorname {a r g m a x}} w _ {i}. \tag {12}
+$$
+
+Similar to Dovrat et al. [6], if more than one point $\mathbf{r}^*$ corresponds the same point $\mathbf{p}_{i^*}$ , we take the unique set of sampled points, complete it using FPS up to $m$ points and evaluate the task performance.
+
+Soft projection as an idempotent operation Strictly speaking, the soft projection operation (Equation 8) is not idempotent [37] and thus does not constitute a mathematical projection. However, when the temperature coefficient in Equation 9 goes to zero, the idempotent sampling operation is obtained (Equation 12). Furthermore, the nearest neighbor selection can be viewed as a variation of projection under the Bregman divergence [4]. The derivation is given in the supplementary.
+
+# 4. Results
+
+In this section, we present the results of our sampling approach for various applications: point cloud classification, registration, and reconstruction. The performance with
+
+point clouds sampled by our method is contrasted with the commonly used FPS and the learned sampling method, S-NET, proposed by Dovrat et al. [6].
+
+Classification and registration are benchmarked on ModelNet40 [44]. We use point clouds of 1024 points that were uniformly sampled from the dataset models. The official train-test split [28] is used for training and evaluation.
+
+The reconstruction task is evaluated with point sets of 2048 points, sampled from ShapeNet Core55 database [3]. We use four shape classes with the largest number of examples: Table, Car, Chair, and Airplane. Each class is split to $85\% / 5\% / 10\%$ for train/validation/test sets.
+
+Our network SampleNet is based on PointNet architecture. It operates directly on point clouds and is invariant to permutations of the points. SampleNet applies MLPs to the input points, followed by a global max pooling. Then, a simplified point cloud is computed from the pooled feature vector and projected onto the input point cloud. The complete experimental settings are detailed in the supplemental.
+
+# 4.1. Classification
+
+Following the experiment of Dovrat et al. [6], we use PointNet [28] as the task network for classification. PointNet is trained on point clouds of 1024 points. Then, instance classification accuracy is evaluated on sampled point clouds from the official test split. The sampling ratio is defined as $1024 / m$ , where $m$ is the number of sampled points.
+
+SampleNet Figure 5 compares the classification performance for several sampling methods. FPS is agnostic to the task, thus leads to substantial accuracy degradation as the sampling ratio increases. S-NET improves over FPS. However, S-NET is trained to simplify the point cloud, while at inference time, sampled points are used. Our SampleNet is trained directly to sample the point cloud, thus, outperforms the competing approaches by a large margin.
+
+For example, at sampling ratio 32 (approximately $3\%$ of the original points), it achieves $80.1\%$ accuracy, which is $20\%$ improvement over S-NET's result and only $9\%$ below the accuracy when using the complete input point set. SampleNet also achieves performance gains with respect to FPS and S-NET in progressive sampling settings (Equation 7). Results are given in the supplementary material.
+
+Simplified, softly projected and sampled points We evaluated the classification accuracy with simplified, softly projected, and sampled points of SampleNet for progressive sampling (denoted as SampleNet-Progressive). Results are reported in Figure 6. For sampling ratios up to 16, the accuracy with simplified points is considerably lower than that of the sampled points. For higher ratios, it is the other way around. On the other hand, the accuracy with softly projected points is very close to that of the sampled ones. This indicates that our network learned to select optimal points
+
+
+Figure 5. Classification accuracy with SampleNet. PointNet is used as the task network and was pre-trained on complete point clouds with 1024 points. The instance classification accuracy is evaluated on sampled point clouds from the test split of ModelNet40. Our sampling method SampleNet outperforms the other sampling alternatives with a large gap.
+
+
+Figure 6. Classification accuracy with simplified, softly projected, and sampled points. The instance classification accuracy over the test set of ModelNet40 is measured with simplified, softly projected, and sampled points of SampleNet-Progressive. The accuracy with simplified points is either lower (up to ratio 16) or higher (from ratio 16) than that of the sampled points. On the contrary, the softly projected points closely approximate the accuracy achieved by the sampled points.
+
+for the task from the input point cloud, by approximating sampling with the differentiable soft projection operation.
+
+Weight evolution We examine the evolution of projection weights over time to gain insight into the behavior of the soft projection operation. We train SampleNet for $N_{e} \in \{1, 10, 100, 150, 200, \ldots, 500\}$ epochs and apply it each time on the test set of ModelNet40. The projection weights are computed for each point and averaged over all the point clouds of the test set.
+
+Figure 7 shows the average projection weights for SampleNet trained to sample 64 points. At the first epoch, the weights are close to a uniform distribution, with a maximal and minimal weight of 0.19 and 0.11, respectively. During training, the first nearest neighbor's weight increases, while the weights of the third to the seventh neighbor de
+
+crease. The weight of the first and last neighbor converges to 0.43 and 0.03, respectively. Thus, the approximation of the nearest neighbor point by the soft projection operation is improved during training.
+
+Interestingly, the weight distribution does not converge to a delta function at the first nearest neighbor. We recall that the goal of our learned sampling is to seek optimal points for a subsequent task. As depicted in Figure 6, similar performance is achieved with the softly projected and the sampled points. Thus, the approximation of the nearest neighbor, as done by our method, suffices.
+
+To further investigate this subject, we trained SampleNet with additional loss term: a cross-entropy loss between the projection weight vector and a 1-hot vector, representing the nearest neighbor index. We also tried an entropy loss on the projection weights. In these cases, the weights do converge to a delta function. However, we found out that this is an over constraint, which hinders the exploration capability of SampleNet. Details are reported in the supplemental.
+
+
+Figure 7. Evolution of the soft projection weights. SampleNet is trained to sample 64 points. During training, it is applied to the test split of ModelNet40. The soft projection weights are computed with $k = 7$ neighbors (Equation 9) and averaged over all the examples of the test set. Higher bar with warmer color represents higher weight. As the training progresses, the weight distribution becomes more centered at the close neighbors.
+
+Temperature profile The behavior of the squared temperature coefficient $(t^2$ in Equation 9) during training is regarded as temperature profile. We study the influence of the temperature profile on the inference classification accuracy. Instead of using a learned profile via the projection loss in Equation 11, we set $\lambda = 0$ and use a pre-determined profile.
+
+Several profiles are examined: linear rectified, exponential, and constant. The first one represents slow convergence; the exponential one simulates convergence to a lower value than that of the learned profile; the constant profile is set to 1, as the initial temperature.
+
+
+Figure 8. Temperature profile. Several temperature profiles are used for the training of SampleNet-Progressive: a learned profile; a linear rectified profile, representing slow convergence; and an exponential profile, converging to a lower value than the learned one. The classification accuracy for SampleNet-Progressive, trained with different profiles, is reported in Table 1.
+
+| SR | 2 | 4 | 8 | 16 | 32 | 64 | 128 |
| FPS | 85.6 | 81.2 | 68.1 | 49.4 | 29.7 | 16.3 | 8.6 |
| Con | 85.5 | 75.8 | 49.6 | 32.7 | 17.1 | 7.0 | 4.7 |
| Lin | 86.7 | 86.0 | 85.0 | 83.1 | 73.7 | 50.9 | 20.5 |
| Exp | 86.6 | 85.9 | 85.6 | 82.0 | 74.2 | 55.6 | 21.4 |
| Lrn | 86.8 | 86.2 | 85.3 | 82.2 | 74.6 | 57.6 | 19.4 |
+
+Table 1. Classification accuracy with different temperature profiles. SR stands for sampling ratio. Third to last rows correspond to SampleNet-Progressive trained with constant (Con), linear rectified (Lin), exponential (Exp), and learned (Lrn) temperature profile, respectively. SampleNet-Progressive is robust to the decay behavior of the profile. However, if the temperature remains constant, the classification accuracy degrades substantially.
+
+The first two profiles and the learned profile are presented in Figure 8. Table 1 shows the classification accuracy with sampled points of SampleNet-Progressive, which was trained with different profiles. Both linear rectified and exponential profiles result in similar performance of the learned profile, with a slight advantage to the latter. However, a constant temperature causes substantial performance degradation, which is even worse than that of FPS. It indicates that a decaying profile is required for the success of SampleNet. Yet, is it robust to the decay behavior.
+
+Time, space, and performance SampleNet offers a trade-off between time, space, and performance. For example, employing SampleNet for sampling 32 points before PointNet saves about $90\%$ of the inference time, with respect to applying PointNet on the original point clouds. It requires only an additional $6\%$ memory space and results in less than $10\%$ drop in the classification accuracy. The computation is detailed in the supplementary.
+
+# 4.2. Registration
+
+We follow the work of Sarode et al. [32] and their proposed PCRNet to construct a point cloud registration network. Point sets with 1024 points of the Car category in ModelNet40 are used. For training, we generate 4925 pairs of source and template point clouds from examples of the train set. The template is rotated by three random Euler angles in the range of $[-45^{\circ}, 45^{\circ}]$ to obtain the source. An additional 100 source-template pairs are generated from the test split for performance evaluation. Experiments with other shape categories appear in the supplemental.
+
+PCRNet is trained on complete point clouds with two supervision signals: the ground truth rotation and the Chamfer distance [1] between the registered source and template point clouds. To train SampleNet, we freeze PCRNet and apply the same sampler to both the source and template. The registration performance is measured in mean rotation error (MRE) between the estimated and the ground truth rotation in angle-axis representation. More details regarding the loss terms and the evaluation metric are given in the supplementary material.
+
+The sampling method of Dovrat et al. [6] was not applied for the registration task, and much work is needed for its adaption. Thus, for this application, we utilize FPS and random sampling as baselines. Figure 9 presents the MRE for different sampling methods. The MRE with our proposed sampling remains low, while for the other methods, it is increased with the sampling ratio. For example, for a ratio of 32, the MRE with SampleNet is $5.94^{\circ}$ , while FPS results in a MRE of $13.46^{\circ}$ , more than twice than SampleNet.
+
+
+Figure 9. Rotation error with SampleNet. PCRNet is used as the task network for registration. It was trained on complete point clouds of 1024 points from the Car category in ModelNet40. Mean rotation error (MRE) between registered source and template point cloud pairs is measured on the test split for different sampling methods. Our SampleNet achieves the lowest MRE for all ratios.
+
+A registration example is visualized in Figure 10. FPS points are taken uniformly, while SampleNet points are located at semantic features of the shape. Using FPS does not enable to align the sampled points, as they are sampled
+
+at different parts of the original point cloud. In contrast, SampleNet learns to sample similar points from different source and template clouds. Thus, registration with its sampled sets is possible. Quantitative measure of this sampling consistency is presented in the supplementary.
+
+In conclusion, SampleNet proves to be an efficient sampling method for the registration task, overcoming the challenge of sampling two different point clouds. We attribute this success to the permutation invariance of SampleNet, as opposed to FPS and random sampling. That, together with the task-specific optimization, gives SampleNet the ability to achieve low registration error.
+
+
+
+
+FPS
+
+
+
+
+SampleNet
+Figure 10. Registration with sampled points. Top row: unregistered source with 1024 points in Blue overlaid on the mesh model. Sampled sets of 32 points from the template and source are illustrated in Orange and Magenta, respectively. Bottom row: the registered source cloud is overlaid on the mesh. SampleNet enables us to perform registration of point clouds from their samples.
+
+# 4.3. Reconstruction
+
+SampleNet is applied to the reconstruction of points clouds from sampled points. The task network, in this case, is the autoencoder of Achlioptas et al. [1] that was trained on point clouds with 2048 points. The sampling ratio is defined as $2048 / m$ , where $m$ is the sample size.
+
+We evaluate the reconstruction performance by normalized reconstruction error (NRE) [6]. The reconstruction error is the Chamfer distance [1] between a reconstructed point cloud and the complete input set. The NRE is the error when reconstructing from a sampled set divided by the error of reconstruction from the complete input.
+
+Figure 11 reports the average NRE for the test split of the shape classes we use from ShapeNet database. Up to sampling ratio of 8, all the methods result in similar reconstruction performance. However, for higher ratios, SampleNet outperforms the other alternatives, with an increasing margin. For example, for a sampling ratio of 32, the NRE for S-NET is 1.57 versus 1.33 for SampleNet - a reduction of
+
+
+Figure 11. SampleNet for reconstruction. The input point cloud is reconstructed from its sampled points. The reconstruction error is normalized by the error when using the complete input point set. Starting from ratio 8, SampleNet achieves lower error, with an increasing gap in the sampling ratio.
+
+24%. We conclude that SampleNet learns to sample useful points for reconstructing point sets unseen during training.
+
+Reconstruction from samples is visualized in Figure 12. FPS points are spread over the shape uniformly, as opposed to the non-uniform pattern of SampleNet and S-NET. Interestingly, some points of the learned sampling methods are sampled in similar locations, for example, at the legs of the chair. Nevertheless, reconstructing using S-NET or FPS points results in artifacts or loss of details. On the contrary, utilizing SampleNet reconstructs the input shape better.
+
+A failure case When computing the NRE per shape class, SampleNet achieves lower NRE for Chair, Car, and Table classes. However, the NRE of FPS is better than that of SampleNet for airplanes. For example, for a sample size of 64 points, the NRE of FPS is 1.31, while the NREs of SampleNet and S-NET are 1.39 and 1.41, respectively. Figure 13 shows an example of reconstructing an airplane from 64 points. FPS samples more points on the wings than SampleNet. These points are important for the reconstruction of the input, thus leading to an improved result.
+
+# 5. Conclusions
+
+We presented a learned sampling approach for point clouds. Our network, SampleNet, takes an input point cloud and produces a smaller point cloud that is optimized to some downstream task. The key challenge was to deal with the non-differentiability of the sampling operation. To solve this problem, we proposed a differentiable relaxation, termed soft projection, that represents output points as a weighted average of points in the input. During training, the projection weights were optimized to approximate nearest neighbor sampling, which occurs at the inference phase. The soft projection operation replaced the regression of optimal points in the ambient space with multiple classification problems in local neighborhoods of the input.
+
+
+Figure 12. Reconstruction from sampled points. Top and third rows: complete input point set of 2048 points, input with 64 SampleNet points (in Purple), input with 64 S-NET points (in Green), input with 64 FPS points (in Magenta). Second and bottom rows: reconstructed point cloud from the input and the corresponding sample. Using SampleNet better preserves the input shape and results in similar reconstruction to one from the complete input.
+
+
+Figure 13. A failure example. Top row: complete input with 2048 points, 64 SampleNet points (in Purple), 64 FPS points (in Magenta). Bottom row: reconstruction from complete input and from corresponding sampled points. In this case, uniform sampling by FPS is preferred.
+
+We applied our technique to point cloud classification and reconstruction. We also evaluated our method on the task of point cloud registration. The latter is more challenging than previous tasks because it requires the sampling to be consistent across two different point clouds. We found that our method consistently outperforms the competing non-learned as well as learned sampling alternatives by a large margin.
+
+Acknowledgment This work was partly funded by ISF grant number 1549/19.
+
+# References
+
+[1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas J. Guibas. Learning Representations and Generative Models For 3D Point Clouds. Proceedings of the 35th International Conference on Machine Learning (ICML), pages 40-49, 2018. 2, 7
+[2] Yasuhiro Aoki, Hunter Goforth, Rangaprasad Arun Srivatsan, and Simon Lucey. PointNetLK: Robust & Efficient Point Cloud Registration using PointNet. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7163-7172, 2019. 2
+[3] Angel X. Chang, Thomas Funkhouser, Leonidas J. 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. arXiv preprint arXiv:1512.03012, 2015. 5
+[4] Pengwen Chen, Yunmei Chen, and Murali Rao. Metrics Defined by Bregman Divergences. Communications in Mathematical Sciences, 6, 2008. 4
+[5] Xuelin Chen, Baoquan Chen, and Niloy J. Mitra. Unpaired Point Cloud Completion on Real Scans using Adversarial Training. arXiv preprint arXiv:1904.00069, 2019. 2
+[6] Oren Dovrat, Itai Lang, and Shai Avidan. Learning to Sample. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2760-2769, 2019. 1, 2, 3, 4, 5, 7
+[7] Yuval Eldar, Michael Lindenbaum, Moshe Porat, and Y. Yehoshua Zeevi. The Farthest Point Strategy for Progressive Image Sampling. IEEE Transactions on Image Processing, 6:1305-1315, 1997. 1
+[8] Natasha Gelfand, Leslie Ikemoto, Szymon Rusinkiewicz, and Marc Levoy. Geometrically Stable Sampling for the ICP Algorithm. Proceedings of the IEEE International Conference on 3-D Digital Imaging and Modeling (3DIM), pages 260-267, 2003. 1
+[9] Jacob Goldberger, Sam Roweis, Geoff Hinton, and Ruslan Salakhutdinov. Neighbourhood Components Analysis. Proceedings of Advances in Neural Information Processing Systems (NeuralIPS), pages 513-520, 2005. 2
+[10] Zhizhong Han, Xiyang Wang, Yu-Shen Liu, and Matthias Zwicker. Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds from Multiple Angles by Joint Self-Reconstruction and Half-to-Half Prediction. Proceedings of the International Conference on Computer Vision (ICCV), 2019. 2
+[11] Michael Himmelsbach, Thorsten Luettel, and H-J Wuesche. Real-time Object Classification in 3D Point Clouds using Point Feature Histograms. 2009 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 994-1000, 2009. 1
+[12] Roman Klokov and Victor Lempitsky. Escape from Cells: Deep Kd-Networks for the Recognition of 3D Point Cloud Models. Proceedings of the IEEE International Conference on Computer Vision, pages 863-872, 2017. 1
+[13] Loic Landrieu and Martin Simonovsky. Large-scale Point Cloud Semantic Segmentation with Superpoint Graphs. Pro
+
+ceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4558-4567, 2018. 2
+[14] Chun-Liang Li, Manzil Zaheer, Yang Zhang, Barnabas Poc-zos, and Ruslan Salakhutdinov. Point Cloud GAN. arXiv preprint arXiv:1810.05795, 2018. 2
+[15] Jiaxin Li, Ben M Chen, and Gim Hee Lee. SO-Net: Self-Organizing Network for Point Cloud Analysis. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9397–9406, 2018. 2
+[16] Ruihui Li, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. PU-GAN: a Point Cloud Upsampling Adversarial Network. Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. 2
+[17] Xianzhi Li, Lequan Yu, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. Unsupervised Detection of Distinctive Regions on 3D Shapes. arXiv preprint arXiv:1905.01684, 2019. 3
+[18] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution On X-Transformed Points. Proceedings of Advances in Neural Information Processing Systems (NeuralIPS), 2018. 1, 2
+[19] Yi Li, Wang Zhao, He Wang, Minhyuk Sung, and Leonidas J. Guibas. GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3947-3956, 2019. 2
+[20] Daniel Liu, Roland Yu, and Hao Su. Extending Adversarial Attacks and Defenses to Deep 3D PointCloud Classifiers. arXiv preprint arXiv:1901.03006, 2019. 2
+[21] Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-Shape Convolutional Neural Network for Point Cloud Analysis. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8895–8904, 2019. 2
+[22] Weixin Lu, Guowei Wan, Yao Zhou, Xiangyu Fu, Pengfei Yuan, and Shiyu Song. DeepICP: An End-to-End Deep Neural Network for 3D Point Cloud Registration. Proceedings of the International Conference on Computer Vision (ICCV), 2019. 2
+[23] Carsten Moenning and Neil A. Dodgson. Fast Marching farthest point sampling. Eurographics Poster Presentation, 2003. 1
+[24] Ehsan Nezhadarya, Taghavi Ehsan, Bingbing Liu, and Jun Luo. Adaptive Hierarchical Down-Sampling for Point Cloud Classification. arXiv preprint arXiv:1904.08506, 2019. 3
+[25] Quang-Hieu Pham, Duc 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. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8827–8836, 2019. 2
+[26] Tobias Plötz and Stefan Roth. Neural Nearest Neighbors Networks. Proceedings of Advances in Neural Information Processing Systems (NeuralIPS), 2018. 2
+[27] Charles R. Qi, Or Litany, Kaiming He, and Leonidas J. Guibas. Deep Hough Voting for 3D Object Detection in
+
+Point Clouds. Proceedings of the International Conference on Computer Vision (ICCV), 2019. 1, 2, 3
+[28] Charles R. Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 652-660, 2017. 2, 5
+[29] 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. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5648–5656, 2016. 2
+[30] Charles R. Qi, Li Yi, Hao Su, and Leonidas J. Guibas. Point-Net++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space. Proceedings of Advances in Neural Information Processing Systems (NeuralIPS), 2017. 1, 2, 3
+[31] Muhammad Sarmad, Hyunjoo Jenny Lee, and Young Min Kim. RL-GAN-Net: A Reinforcement Learning Agent Controlled GAN Network for Real-Time Point Cloud Shape Completion. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5898–5907, 2019. 2
+[32] Vinit Sarode, Xueqian Li, Hunter Goforth, Rangaprasad Arun Aoki, Yasuhiro Srivatsan, Simon Lucey, and Howie Choset. PCRNet: Point Cloud Registration Network using PointNet Encoding. arXiv preprint arXiv:1908.07906, 2019. 2, 7
+[33] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. PointR-CNN: 3D Object Proposal Generation and Detection from Point Cloud. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-779, 2019. 2
+[34] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. SPLATNet: Sparse Lattice Networks for Point Cloud Processing. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2530-2539, 2018. 2
+[35] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik Learned-Miller. Multi-view Convolutional Neural Networks for 3D Shape Recognition. Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 945-953, 2017. 2
+[36] Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatrix Marcotegui, François Goulette, and Leonidas J. Guibas. KPConv: Flexible and Deformable Convolution for Point Clouds. Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. 2
+[37] Robert J Valenza. Linear Algebra: An Introduction to Abstract Mathematics. Springer Science & Business Media, 2012. 4
+[38] P. J. M. Van Laarhoven and E. H. L. Aarts. Simulated Annealing: Theory and Applications. Kluwer Academic Publishers, 1987. 2
+[39] Lei Wang, Yuchun Huang, Yaolin Hou, Shenman Zhang, and Jie Shan. Graph Attention Convolution for Point Cloud Semantic Segmentation. Proceedings of the IEEE Conference
+
+on Computer Vision and Pattern Recognition (CVPR), pages 10296-10305, 2019. 2
+[40] Weiyue Wang, Ronald Yu, Qiangui Huang, and Ulrich Neumann. SGPN: Similarity Group Proposal Network for 3D Point Cloud InstanceSegmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2569-2578, 2018. 2
+[41] Xinlong Wang, Shu Liu, Xiaoyong Shen, Chunhua Shen, and Jiaya Jia. Associatively Segmenting Instances and Semantics in Point Clouds. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4096-4105, 2019. 2
+[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), 2019. 2
+[43] Wenxuan Wu, Zhongang Qi, and Li Fuxin. PointConv: Deep Convolutional Networks on 3D Point Clouds. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9622-9630, 2019. 2
+[44] Z. Wu, S. Song, A. Khosla, F. Yu, L. Zhang, X. Tang, and J. Xiao. 3D ShapeNets: A Deep Representation for Volumetric Shapes. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1912-1920, 2015. 2, 5
+[45] Chong Xiang, Charles R. Qi, and Bo Li. Generating 3D Adversarial Point Clouds. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9136-9144, 2019. 2
+[46] Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. PointFlow: 3D Point Cloud Generation with Continuous Normalizing Flows. Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019. 2
+[47] Jiancheng Yang, Qiang Zhang, Bingbing Ni, Linguo Li, Jinxian Liu, Mengdie Zhou, and Qi Tian. Modeling Point Clouds with Self-Attention and Gumbel Subset Sampling. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3323–3332, 2019. 3
+[48] Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 206–215, 2018. 2
+[49] Wang Yifan, Shihao Wu, Hui Huang, Daniel Cohen-Or, and Olga Sorkine-Hornung. Patch-based Progressive 3D Point Set Upsampling. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5958–5967, 2019. 2
+[50] Kangxue Yin, Zhiqin Chen, Hui Huang, Daniel Cohen-Or, and Zhang Hao. LOGAN: Unpaired Shape Transform in Latent Overcomplete Space. arXiv preprint arXiv:1904.10170, 2019.3
+[51] Lequan Yu, Xianzhi Li, Chi-Wing Fu, Daniel Cohen Or, and Pheng Ann Heng. EC-Net: an Edge-aware Point set Consolidation Network. Proceedings of the European Conference on Computer Vision (ECCV), 2018. 2
+
+[52] Lequan Yu, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng Ann Heng. PU-Net: Point Cloud Upsampling Network. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2790–2799, 2018. 1, 2
+[53] Wentao Yuan, Tejas Khot, David Held, Christoph Mertz, and Martial Hebert. PCN: Point Completion Network. Proceedings of the International Conference on 3D Vision (3DV), 2018. 2
+[54] Yongheng Zhao, Tolga Birdal, Haowen Deng, and Federico Tombari. 3D Point-Capsule Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1009-1018, 2019. 2
\ No newline at end of file
diff --git a/samplenetdifferentiablepointcloudsampling/images.zip b/samplenetdifferentiablepointcloudsampling/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d87fc26c4243d121420c6a236ba6283aa93dd4e6
--- /dev/null
+++ b/samplenetdifferentiablepointcloudsampling/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f9cccd37d106670694e74e3ff46987cbb2987480be1571b3dc5ee230e54fcb1
+size 549771
diff --git a/samplenetdifferentiablepointcloudsampling/layout.json b/samplenetdifferentiablepointcloudsampling/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9a13f3fad63f7c3ce463d0eec8b92981449f18a8
--- /dev/null
+++ b/samplenetdifferentiablepointcloudsampling/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:129d873e134cf68040fa5ec362d24d0aeaf807cb3ca1720b9c8e1cf3c97946d9
+size 432659
diff --git a/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_content_list.json b/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..eed0f44917505514749903d0eadc57be58a02e38
--- /dev/null
+++ b/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2c28294eb256e1328673d90c7b4893d8db5aa2fe5f34d6cf7f8f7965a46e42e2
+size 81129
diff --git a/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_model.json b/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ac560dc45299858fe2b3614fec0c547a7d366cdc
--- /dev/null
+++ b/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a315660d70b432cce9e65be5d75eadc8f3606269d5edd2f8444c83d77ea0e4c3
+size 105869
diff --git a/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_origin.pdf b/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..568f46e35a0aec30deff50248bd336c52de10648
--- /dev/null
+++ b/samthesensitivityofattributionmethodstohyperparameters/f4fa84fb-a3c1-408e-98b6-fccc7572f8f2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:51edd49818aec2287dd8f3befca3383cf5ba70ee29402b7a2b66c0d1a4132a65
+size 890549
diff --git a/samthesensitivityofattributionmethodstohyperparameters/full.md b/samthesensitivityofattributionmethodstohyperparameters/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..7f1429e07e4b4dae0a11161e8755a31580fa12bf
--- /dev/null
+++ b/samthesensitivityofattributionmethodstohyperparameters/full.md
@@ -0,0 +1,324 @@
+# SAM: The Sensitivity of Attribution Methods to Hyperparameters
+
+Naman Bansal*
+
+Auburn University
+
+bnaman50@gmail.com
+
+Chirag Agarwal*
+
+University of Illinois at Chicago
+
+chiragagarwall12@gmail.com
+
+Anh Nguyen*
+
+Auburn University
+
+anh.ng8@gmail.com
+
+# Abstract
+
+Attribution methods can provide powerful insights into the reasons for a classifier's decision. We argue that a key desideratum of an explanation method is its robustness to input hyperparameters which are often randomly set or empirically tuned. High sensitivity to arbitrary hyperparameter choices does not only impede reproducibility but also questions the correctness of an explanation and impairs the trust of end-users. In this paper, we provide a thorough empirical study on the sensitivity of existing attribution methods. We found an alarming trend that many methods are highly sensitive to changes in their common hyperparameters e.g. even changing a random seed can yield a different explanation! Interestingly, such sensitivity is not reflected in the average explanation accuracy scores over the dataset as commonly reported in the literature. In addition, explanations generated for robust classifiers (i.e. which are trained to be invariant to pixel-wise perturbations) are surprisingly more robust than those generated for regular classifiers.
+
+# 1. Introduction
+
+Why did a self-driving car decide to run into a truck [29]? Why is a patient being predicted to have breast cancer [59] or to be a future criminal [2]? The explanations for such predictions made by machine learning (ML) models can impact our lives in many ways, under scientific [53, 37], social [18] or legal [24, 19] aspects.
+
+A popular medium for visually explaining an image classifier's decisions is an attribution map i.e. a heatmap that highlights the input pixels that are the evidence for and against the classification outputs [35]. Dozens of attribution methods (Fig. 1) have been proposed [44] and applied to a variety of domains including natural images [35], medical brain scans [25], text [12], videos [50], and speech [14]. Notably, attribution maps have been useful e.g. in localizing malignant tumors in a breast x-ray scan [41] or in revealing biases in object recognition models [30, 31]. Yet are these
+
+
+Input image
+
+
+Random seed:
+Patch size:
+
+
+
+
+Blur radius:
+Sample size:
+50
+200
+800
+Figure 1: Attribution maps by four methods to explain the same prediction (match stick: 0.535) made by a ResNet-50 classifier to an ImageNet image. In each row, the explanations are generated by running the default settings of a method while varying only one common hyperparameter. All 12 explanations are unique and can be interpreted differently. LIME: an explanation changes when one re-runs the algorithm with a different random seed. SP: the positive evidence for the fire (top-right red blob) grows together with the patch size. MP: attribution maps become more scattered as the Gaussian blur radius increases. SG: heatmaps becomes smoother as the number of samples increases.
+
+explanations reliable enough to convince medical doctors or judges to accept a life-critical prediction by a machine [32]?
+
+First, ML techniques often have a set of hyperparame
+
+ters to be tuned empirically and most attribution methods are not an exception. Second, a major cause of the current replication crisis in ML [27] is that many methods, e.g. in reinforcement learning, are notoriously sensitive to hyperparameters—a factor which is also often overlooked in the interpretability field. Aside from being faithful, an explanation needs to be reproducible and invariant to arbitrary hyperparameter choices. In this paper, we studied an important question: How sensitive are attribution maps to their hyperparameters? on 7 well-known attribution methods and found that:
+
+1. Gradient heatmaps, for robust image classifiers i.e. models trained to ignore adversarial pixel-wise noise [21], exhibit visible structures (Fig. 3) in stark contrast to the noisy, uninterpretable gradient images for regular classifiers reported in prior work [48] (Sec. 4.1).
+2. The gradient images from a robust and a regular classifier are different but would appear $\sim 1.5\times$ more similar, potentially causing misinterpretation, under several prior methods that attempted to de-noise the original explanations [49, 48] (Sec. 4.2).
+3. For many attribution methods [42, 22, 60], their output heatmaps can change dramatically (Fig. 1) when a common hyperparameter changes (Sec. 4.3). This sensitivity of an individual explanation also translates into the sensitivity of its accuracy scores (Sec. 4.5).
+4. Some hyperparameters cause up to $10 \times$ more variation in the accuracy of explanations than others (Sec. 4.6).
+5. Explanations for robust classifiers are not only more invariant to pixel-wise image changes (Sec. 4.1) but also to hyperparameter changes (Sec. 4.3)
+
+# 2. Methods and Related Work
+
+Let $f: \mathbb{R}^{d \times d \times 3} \to [0,1]$ be a classifier that maps a color image $\pmb{x}$ of spatial size $d \times d$ onto a probability of a target class. An attribution method is a function $A$ that takes three inputs—an image $\pmb{x}$ , the model $f$ , and a set of hyperparameters $\mathcal{H}$ —and outputs a matrix $\pmb{a} = A(f, \pmb{x}, \mathcal{H}) \in [-1,1]^{d \times d}$ . Here, the explanation $\pmb{a}$ associates each input pixel $x_{i}$ to a scalar $a_{i} \in [-1,1]$ , which indicates how much $x_{i}$ contributes for or against the classification score $f(\pmb{x})$ .
+
+Methods Attribution methods can be categorized into two main types: (1) exact and (2) approximate approaches. Exact approaches may derive an attribution map by upsampling a feature map of a convolutional network [62], or from the analytical gradients of the classification w.r.t. the input i.e. $\nabla_{\boldsymbol{x}}f$ [47, 8], or by combining both the gradients and
+
+the feature maps [45]. These approaches enjoy fast derivation of explanations and have no hyperparameters in principles. However, they require access to the internal network parameters—which may not be available in practice. Also, taking gradients as attributions faces several issues: (1) gradient images are often noisy [48] limiting their utility; (2) gradient saturation [51] i.e. when the function $f$ flattens within the vicinity of a pixel $x_{i}$ , its gradient becomes near-zero and may misrepresent the actual importance of $x_{i}$ ; (3) sudden changes in the gradient $\partial f / \partial x_{i}$ (e.g. from RLUs [36]) may yield misleading interpretation of the attribution of pixel $x_{i}$ [46].
+
+Therefore, many approximate methods have been proposed to modify the vanilla gradients to address the aforementioned issues [48, 51, 13]. Among gradient-based methods, we chose to study the following four representatives.
+
+Gradient [47, 8] The gradient image $\nabla_{\boldsymbol{x}}f$ quantifies how a small change of each input pixel modifies the classification and therefore commonly serves as an attribution map.
+
+SmoothGrad (SG) [48] proposed to smooth out a gradient image by averaging out the gradients over a batch of $N_{SG}$ noisy versions $\pmb{x}_n$ of the input image $\pmb{x}_0$ . That is, an SG heatmap is $\frac{1}{N_{SG}}\sum_{1}^{N_{SG}}\nabla_{\pmb{x}}f(\pmb{x}_0 + \epsilon)$ where $\epsilon \sim \mathcal{N}(0,\sigma)$ .
+
+Gradient $\odot$ Input (GI) [46] As gradients are often noisy and thus not interpretable [48], element-wise multiplying the gradient image with the input i.e. $\nabla_{\boldsymbol{x}}f\odot \boldsymbol{x}$ can yield less-noisy heatmaps in practice. Here, the input image acts as a model-independent smoothing filter. GI is an approximation of a family of related LRP methods [13] as shown in [11] and is also a representative for other explicit gradient-based extensions [25, 61, 34, 46].
+
+Integrated Gradients (IG) [51] In order to ameliorate the gradient saturation problem [51], IG intuitively replaces the gradient in GI [46] with an average of the gradients evaluated for $N_{IG}$ images linearly sampled along a straight line between the original image $\pmb{x}$ and a zero image. IG is intuitively a smooth version of GI and depends on the sample size $N_{IG}$ while GI has no hyperparameters.
+
+Furthermore, there exist other approximate methods that attempt to compute the attribution of an input region by replacing it with zeros [60, 42], random noise [17], or blurred versions of the original content [22]. These methods inherently depend on many empirically-chosen hyperparameters. Among the family of perturbation-based methods, we chose to study the following three famous representatives.
+
+Sliding Patch (SP) [60] slides a square, occlusion patch of size $p \times p$ across the input image and records the prediction changes into an attribution map. This approach is applicable to any black-box classifier $f$ and widely used [25, 4, 38, 11]. LIME [42] Instead of a square patch, LIME generates $N_{LIME}$ masked images $\{\overline{x}^i\}$ by masking out a random set of $S$ non-overlapping superpixels in the input image. Intuitively, the attribution for a superpixel $k$ is proportional to
+
+the average score $f(\bar{\pmb{x}}^i)$ over a batch of $N_{LIME}$ perturbed images where the superpixel $k$ is not masked out.
+
+Meaningful-Perturbation (MP) [22] finds a minimal Gaussian blur mask of radius $b_{R}$ such that when applied over the input image would produce a blurred version that has a near-zero classification score. MP is the basis for many extensions [56, 40, 15, 57, 54, 9]. In this paper, we evaluate MP sensitivity to three common hyperparameters: the blur radius $b_{R}$ , the number of steps $N_{iter}$ , and the random seed (which determines the random initialization).
+
+See Sec. S1 for a detailed description of all methods.
+
+Explanation sensitivity First, recent work has argued that some attribution methods have a problem of being highly sensitive to small pixel-wise changes in the input image [28, 10, 23]. Our results suggest that such sensitivity to image changes also depends on the classifier $f$ . That is, gradient-based explanations of a robust classifier stay more consistent when the input image is perturbed with pixel-wise noise (Sec. 4.1). Second, some attribution methods were found to behave akin to an edge detector i.e. producing similar explanations despite that $f$ 's parameters are randomized to various degrees [8]. In sum, previous work has studied the sensitivity of explanations to input image changes [28, 10, 23] and classifier changes [8]. In this paper, we present the first systematic study on the sensitivity of explanations to changes in the hyperparameters $\mathcal{H}$ , which are often randomly or heuristically tuned [48, 58].
+
+# 3. Experiment framework
+
+Explanation evaluation metrics Currently, there is not yet a common ground-truth dataset for evaluating the accuracy of attribution methods [18]. However, researchers often approximate explanation correctness via two main techniques: (1) object localization [62]; and (2) Insertion & Deletion [38]. The localization error measures how accurately an attribution map localizes the main object in the input image [62]—a reasonable approximation for the ImageNet images [43], which are object-centric and paired with human-labeled segmentation masks. We did not use evaluation metrics like Pointing Game accuracy [61] and Saliency Metric [17] as they are derivatives of the localization task. The Deletion metric [38] measures the classification score changes as we gradually zero out the input pixels in the descending order of their attributions. The idea is if the attribution values correctly reflect the discriminative power of the input pixels, knocking out the highest-attrbution pixels should quickly cause the probability to approach zero. In contrast, Insertion [38] tests whether inserting the highest-attrbution pixels into a zero image would quickly increase the probability. We used all three above mentioned metrics2
+
+to quantify how much the variation of explanations translates into the sensitivity of their accuracy (Sec. 4.5).
+
+Classifiers All of our experiments were conducted on two groups of classifiers: (a) GoogLeNet [52] & ResNet-50 [26] (hereafter, ResNet) pre-trained on the 1000-class 2012 ImageNet dataset [43]; and (b) the robust versions of them i.e. GoogLeNet-R & ResNet-R that were trained to also be invariant to small adversarial changes in the input image [20]. We obtained the two regular models from the PyTorch model zoo [39], the ResNet-R from [20], and we trained GoogLeNet-R by ourselves using the code released by [20]. While the two robust classifiers are more invariant to pixelwise noise they have lower ImageNet validation-set accuracy scores (50.94% and 56.25%) than those of the original GoogLeNet & ResNet (68.86% and 75.59%).
+
+Datasets From the 50,000 ImageNet validation-set images, we randomly sampled a set of 1735 images that all four models correctly classify. We used this set of images in all experiments throughout the paper.
+
+Similarity metrics To quantify the sensitivity of attribution maps, we followed Adebayo et al. [8] and used three measures3 that cover a wide range of similarity notions: Spearman rank correlation, Pearson correlation of the histogram of gradients (HOGs), and the structural similarity index (SSIM). To quantify the sensitivity of the accuracy scores of explanations, we used the standard deviation (std).
+
+# 4. Experiments and Results
+
+# 4.1. Gradient maps of robust classifiers are smooth and insensitive to pixel-wise image noise
+
+Gradient saliency maps of image classifiers are (1) notoriously noisy [47, 48, 13] limiting their utility and (2) sensitive to input changes [10]. Therefore, a number of techniques have been proposed to de-noise the gradient images [46, 48, 49, 45]. However, are these smoothing techniques necessary for gradients of robust classifiers?
+
+First, we observed, for the first time, that the vanilla gradients of robust classifiers consistently exhibit visible structures (see the outline of the goblet in Fig. 3c & e), which is surprising! They are in stark contrast to the noisy gradients of regular classifiers (Fig. 3b & d).
+
+Second, we found that the gradient explanations of robust classifiers are significantly more invariant to a large amount of random noise added to the input image. Specifically, for each image $\pmb{x}$ in the dataset, we added noise $\sim \mathcal{N}(0, 0.1)$ to generate a noisy version $x_{n}$ (Fig. 3; bottom) and measured the similarity between the saliency maps for the pair $(\pmb{x}, \pmb{x}_{n})$ using all three similarity metrics described in Sec. 3. Across all images and all three quantitative metrics, the gradients of robust classifiers are substantially more invariant to noise than their regular counterparts
+
+
+Figure 2: The SmoothGrad [48] explanations (b–g) for a prediction by ResNet are becoming increasingly similar to the explanation for a different prediction by a ResNet-R as we increase $N_{SG}$ —a hyperparameter that governs the smoothness of SG explanations. Similarly, under GuidedBackprop (GB) [49], the explanation appears substantially closer to that of a different model (h vs. i) compared the original heatmaps (b vs. i). Below each heatmap is the SSIM similarity score between that heatmap and the ResNet-R heatmap (i). See more examples in Fig. S14.
+
+
+Figure 3: Top: The gradients of robust classifiers (c & e) reflect the structure of the goblet in an example input image (a), which is in stark contrast to the commonly reported noisy gradients of regular classifiers (b & d). Bottom: The gradients of robust classifiers remain similar before and after the addition of noise to the input image (c & e—higher SSIM scores). An SSIM similarity score is for the two images in each column.
+
+(Figs. 5a & S13). For example, the average similarity of the gradient pairs from robust models is $\sim 36\times$ higher than that of the counterparts under the Spearman rank correlation (Fig. S13; leftmost bars). This result interestingly show that the gradients of robust models are fairly insensitive to minor pixel-wise image changes—a concern in [28, 10, 23].
+
+# 4.2. De-noising explanations may cause misinterpretation
+
+We have shown that the vanilla gradients of robust classifiers can be fairly smooth (Sec. 4.1). That result naturally raises a follow-up question: Do the smoothing techniques [48, 45, 49] improve or mislead our interpretation of explanations? To shed light on that question, we quantify the similarity between (a) the de-noised explanations by SG [48] for a regular classifier and (b) the vanilla gradient saliency maps for a robust classifier.
+
+Experiment For each image, we generated SG explanations for regular models by sweeping across a range of the
+
+sample size $N_{SG} \in \{0, 50, 100, 200, 500, 800\}$ . Here, $N_{SG} = 0$ yields the vanilla gradient. We measured the similarity between each SG heatmap of a regular model and the vanilla gradient of a robust counterpart model (e.g. ResNet vs. ResNet-R).
+
+Results We observed that as the sample size $N_{SG}$ increases, the resultant explanations of ResNet become increasingly more similar to the explanation of ResNet-R—a completely different classifier! That is, the SSIM similarity between two heatmaps increases up to $\sim 1.4\times$ (Fig. 2; b-g) on average. This monotonic trend is also observed across three similarity metrics and two pairs of regular vs. robust models (Fig. S3).
+
+Additionally, we generated an explanation using another popular explanation method, GuidedBackprop (GB) [49], which modifies the gradient by only letting the positive forward activations and backward gradients to flow through during backpropagation. Across the dataset, the average similarity between a pair of (ResNet GB heatmap, ResNet-R gradient heatmap) is 0.377 while the original similarity between the vanilla gradients of two models is only 0.239.
+
+In sum, our result shows that two explanations from two completely different classifiers (ResNet vs. ResNet-R) may become substantially more similar under explanations techniques (here, SG and GB) that attempt to heuristically denoise heatmaps, potentially misleading user interpretation. We reached the same conclusion by comparing GI and its approximate version i.e. IG [51] (see Sec. S3).
+
+# 4.3. Gradient-based attribution maps are sensitive to hyperparameters
+
+In practice, attribution methods often have various hyperparameters that are either randomly set (e.g. a random seed [42]) or empirically tuned (e.g. the number of optimization steps [22]). It is important to understand how such choices made by the end-user vary the explanations (Fig. 1), which impedes reproducibility and can impair users' trust e.g. a medical doctor's trust in a model's explanation of its prediction [32, 18]. Here, we quantify the sensitivity of attribution maps generated by two representative meth
+
+
+(a) Sensitivity to changes in the blur radius $b_{R}$
+
+
+(b) Sensitivity to changes in the number of iterations $N_{iter}$
+Figure 4: MP attribution maps generated for a regular model (ResNet) are highly sensitive to changes (i.e. low SSIM scores) in the Gaussian blur radius $b_{R}$ (a) and in the number of iterations $N_{iter}$ (b). In contrast, the same MP explanations for a robust model (ResNet-R) are substantially more stable (see Fig. S8 for quantitative results). Two reference images in this figure are the top-2 that cause the largest differences between the SSIM scores of ResNet vs. ResNet-R heatmaps. MP being more unstable with ResNet compared to that with ResNet-R can be seen quantitatively in the loss plot (Fig. S9) and qualitatively in the evolution of the MP heatmaps (Fig. S10). See Fig. S16 for more examples of the blur sensitivity experiments.
+
+ods (SG and MP) as a common hyperparameter changes. In all experiments, we compare the average pair-wise similarity between a reference heatmap—the explanation generated using the default settings provided by the authors—and those generated by changing one hyperparameter.
+
+# 4.3.1 SmoothGrad is sensitive to sample sizes
+
+SG was created to combat the issue that gradient images for image classifiers are often too noisy to be human-interpretable—an issue reported in many previous papers [48, 49, 13, 47] and also shown in Sec. 4.1. While SG does qualitatively sharpen the explanations [48] (see Fig. 2b vs. c), the method also introduces two hyperparameters (1) the sample size $N_{SG}$ and (2) the Gaussian std $\sigma$ that were empirically tuned [48]. Here, we test the sensitivity of SG explanations when varying these two hyperparameters.
+
+Experiment To test the sensitivity to sample sizes, we measure the average pair-wise similarity between a reference heatmap at $N_{SG} = 50$ (Fig. S12b; ii)—i.e. the default value in [48]—and each of the four heatmaps generated by sweeping across $N_{SG} \in \{100, 200, 500, 800\}$ (Fig. S12b; iii—vi) on the same input image. $\sigma$ is constant at 0.15.
+
+Results We found that the SG explanations for robust models exhibited near-maximum consistency (Fig. S12a; all scores are near 1.0). In contrast, the robustness of SG when running on regular models is consistently lower under all three metrics (Fig. S12a; light vs. dark red or light vs. dark green). SG heatmaps for robust classifiers appear sharper and less noisy compared to those of regular models (Fig. S12b; top vs. bottom). Furthermore, while SG heatmaps may appear qualitatively stable (Fig. S12b; ii-vi), the actual pixel-wise variations are not. For example, the $L_{1}$ pixel-wise difference between the ResNet heatmaps at the
+
+two extreme settings (i.e. $N_{SG} = 50$ vs. 800) is over $5 \times$ larger than the difference between the respective ResNet-R explanations (Fig. S12b; vii).
+
+In sum, we showed that it is non-trivial how to tune a hyperparameter, here $N_{SG}$ , to yield an accurate explanation because the heatmaps vary differently for different classifiers. Similarly, we further found SG heatmaps to be highly sensitive to changes in the amount of noise i.e. Gaussian std $\sigma$ (Sec. S4.1) added to the input image.
+
+# 4.3.2 Meaningful-Perturbation is sensitive to the number of iterations, the Gaussian blur radius, and the random seed
+
+MP [22] is a representative of a family of methods that attempt to learn an explanation via iterative optimization [56, 40, 15, 57, 54, 9]. However, in practice, optimization problems are often non-convex and thus the stopping criteria for iterative solvers are heuristically set. For instance, it can be controlled by a pre-defined number of iterations $N_{iter}$ . Also, MP learns to blur the input image to minimize the classification scores and thus depends on the Gaussian blur radius $b_{R}$ . Here, we test MP sensitivity to three common hyperparameters: $N_{iter}$ , $b_{R}$ , and the random seed which governs random initializations.
+
+Experiment In order to test the sensitivity to the number of iterations, we measure the average similarity between a reference heatmap at $N_{iter} = 300$ which is the default setting in [22] and each of the three heatmaps generated by sweeping across $N_{iter} \in \{10, 150, 450\}$ (Fig. 4b) on the same input image. To measure the sensitivity to the blur radius settings, we repeated a similar comparison to the above for a reference heatmap at $b_{R} = 10$ and other heatmaps by sweeping across $b_{R} \in \{5, 30\}$ (Fig. 4a). For other hyperpa
+
+rameters, we used all default settings as in [22].
+
+Results We found that MP explanations are sensitive to changes in the blur radius but interestingly in opposite ways for two different types of classifiers. That is, as we increase $b_{R}$ , the heatmaps for ResNet tend to be more noisy and sparse; however, those for ResNet-R become gradually more localized and smoother (Fig. 4a; top vs. bottom). See Fig. S16 for more examples.
+
+Across the number of iterations, MP explanations for regular classifiers vary dramatically. In contrast, the heatmaps for robust models are $1.4 \times$ more consistent under SSIM similarity metrics (Figs. 4b & S10). The MP optimization runs for robust models converged substantially faster within only $\sim 10$ steps (compared to the default $N_{iter} = 300$ [22]) which can be seen in both the loss plot (Fig. S9) and the sequence of heatmaps (Fig. S10). This inconsistent behavior of MP suggests that when comparing MP explanations between these two classifiers, an end-user may draw an entirely different conclusion depending on when optimization stops (which is heuristically chosen). Sensitivity to the random seed Our previous experiments followed exactly the setup in [22] where the authors used a blur circular mask that suppresses the target probability by $99\%$ as the initial heatmap. This initialization, however, strongly biases the optimization towards a certain type of explanation. To avoid that, in practice, MP users randomly initialize the explanation before optimization [16]. By running experiments similar to the previous ones, we found that MP is also sensitive to the random seed, which controls the random initializations. That is, on average across 3 similarity metrics, heatmaps for robust classifiers are $1.22 \times$ more consistent than those for regular classifiers (see Sec. S4.3 for more details and Fig. S7 for results).
+
+In sum, consistent with SG results (Sec. 4.3.1), robust classifiers yield more stable explanations than regular models for the three aforementioned hyperparameters of MP (Fig. S8). That is, not only the gradients of robust classifiers are more interpretable but also more invariant to pixel-wise image changes, yielding more robust explanations (Fig. 4b).
+
+# 4.4. Non-gradient attribution maps are sensitive to hyperparameters
+
+# 4.4.1 Sliding-Patch is sensitive to the patch size
+
+Sec. 4.3 shows that gradient-based explanation methods are sensitive to hyperparameters and their sensitivity depends on the robustness of the gradients with respect to the input changes (Sec. 4.3.2). Here, we test whether methods that are not gradient-based would have similar shortcomings. We chose SP [60] which slides a square patch of size $p \times p$ across the input image and records the classification probability changes into the corresponding cells in the attribution map. While SP has been widely used [60, 4, 11], it remains unknown how to choose the patch size.
+
+
+Figure 6: SP explanations are sensitive to patch sizes. Zoomed-out: SP attribution region (red squares) for a tennis ball of size $19 \times 19$ (rendered on a $224 \times 224$ zero image) grows as the patch size increases. Zoomed-in: SP outputs blank heatmaps at patch sizes of $5 \times 5$ , $17 \times 17$ , and $29 \times 29$ , which are much smaller than the size of the tennis ball (here, $84 \times 84$ ) in a zoomed-in version of the top image.
+
+To understand the relation between SP patch size and the size of the object in an input image, we generated two images, each containing a tennis ball of size $19 \times 19$ or $84 \times 84$ on a zero background of size $224 \times 224$ (Fig. 6). We ran SP on these two images sweeping across 5 patch sizes of $p \times p$ where $p \in \{5, 17, 29, 41, 53\}$ . We observed that the heatmaps tend to be blank when the patch size is much smaller than the object size (Fig. 6; zoomed-in) because the occlusion patch is too small to substantially change the classification score. In contrast, if the patch size is much larger than the object size (Fig. 6; zoomed-out), the attribution areas tend to be exaggerated i.e. even larger than the object size (Fig. 6; the size of the red square increases from left to right). Therefore, SP explanations are subject to errors as the size of the object in the image is unknown.
+
+Sensitivity to large changes To quantify the sensitivity of SP explanations to the patch size, here, we measure the average similarity between a reference SP attribution map at $p = 29$ and each of the four attribution maps generated by sweeping across $p \in \{5,17,41,53\}$ on the same input image. This set of patch sizes covers a large range of settings (hence, denoted by SP-L) used in the literature [11, 60, 4]. We kept the stride constant at 3. We observed that across all classifiers, SP is highly sensitive to changes within the SP-L set. In contrast to the case of gradient-based methods, SP explanations for robust classifiers are not significantly more consistent than those for regular models (Fig. S11). Compared to other methods, SP sensitivity to patch sizes is higher than the sensitivity of SG and MP (Fig. 5a; SP-L bars are the shortest on average). See Fig. S15 for more examples on sensitivity to large changes in patch size.
+
+Sensitivity to small changes We further repeated the previous experiment but comparing the similarity of SP explanations at $p = 53$ with those generated at $p \in \{52, 54\}$ i.e. a
+
+
+(a) SSIM
+
+
+(b) Localization error
+Figure 5: Average sensitivity of an individual attribution map measured in the pixel space (a) and three accuracy metric spaces: the Localization error (b), Deletion (c) and Insertion (d) scores (Sec. 4.5). The results were produced by varying the random seed of LIME and MP (bottom two rows), the patch size in SP (SP-S and SP-L), and the sample size of SG (top row). SP-S and SP-L are two variants of the SP experiments (Sec. 4.4.1). For Localization performance of SP-S (b), even a change of $\pm 1\mathrm{px}$ in patch size results in a std of $\sim 10\%$ for GoogLeNet (dark red) and ResNet (dark green). Compared to regular models, robust models (here, GoogLeNet- and ResNet-R) cause the attribution maps to be more consistent pixel-wise under hyperparameter changes—i.e. higher SSIM scores (a)—and also more consistent in the three accuracy metrics—i.e. lower standard deviations (b-d). See Table S1 for the exact numbers.
+
+
+(c) Deletion
+
+
+(d) Insertion
+
+small range (hence, denoted by SP-S). We observed that SP explanations are not $100\%$ consistent even when the patch dimension changes within only $\pm 1\mathrm{px}$ (Fig. 5a; SSIM scores for SP-S are $< 1.0$ ).
+
+# 4.4.2 LIME is sensitive to random seeds and sample sizes
+
+LIME [42] is a black-box explanation method. Instead of masking out a single square patch (as in SP), which can yield the "square artifact" (Fig. 6; zoomed-out), LIME masks out a finite set of random superpixels.
+
+Our experiments show that LIME is highly sensitive to its two common hyperparameters. First, LIME attribution maps interestingly often change as the random seed (which controls the random sampling of superpixel masks) changes! Second, LIME is also sensitive to the changes in the number of perturbation samples. See Sec. S4.2 for more details. Aligned with the results with SP (Sec. 4.4.1), here, we did not find robust classifiers to yield more stable LIME heatmaps than regular classifiers consistently under all three similarity metrics. An explanation is that GoogLeNet-R and ResNet-R are robust to pixel-wise changes but not patchwise or superpixel-wise changes (as done by SP and LIME) in the input image. See Fig. S17 for a list of the most sensitive cases across all the LIME sensitivity experiments.
+
+# 4.5. How do the accuracy scores of an explanation vary when a hyperparameter changes?
+
+In Sec. 4.3 and Sec. 4.4, we have shown that many attribution methods are highly sensitive to changes in their common hyperparameters. For example, under SSIM, the average explanation consistency is often far from the maxi
+
+mum (Fig. 5a; GoogLeNet and ResNet scores are far below 1.0). However, there is still a need to quantify how the variation in pixel-wise heatmaps translates into the variation in accuracy scores. That is, two heatmaps that are different pixel-wise may have the same accuracy score. Therefore, it is important for users to understand: How much does the correctness of an explanation varies, on average, when a given hyperparameter changes? To answer that, here, we quantify the variance of three explanation accuracy scores (i.e. the Localization error, Insertion, and Deletion scores described in Sec. 3) upon varying the most common hyperparameters of the considered attribution methods: (1) the sample size in SG (Sec. 4.3.1); (2) the patch size in SP (Sec. 4.4.1; both sweeping across a small range i.e. SP-S and a large range i.e. SP-L); (3) the random seed in LIME (Sec. 4.4.2); and (4) the random seed in MP (Sec. 4.3.2).
+
+Experiment For each hyperparameter, we swept across $N$ values to generate the corresponding $N$ explanations for each input image. Using an accuracy metric, we evaluated each set of $N$ attribution maps per image to produce $N$ accuracy scores. From the $N$ scores, we then obtained a mean and a std, for each image. From the per-image means and standard deviations, we then calculated the global mean and average std across the dataset (Fig. 5). We repeated the same procedure for each accuracy metric and each classifier.
+
+Results First, we found that changing the tested hyperparameters (i.e. which are the most common) does not only change the explanations (Fig. 5a; average SSIM scores are under 1.0) but also their three downstream accuracy scores (Fig. 5b-d; the average std bars are above 0). However, explanation accuracy varies differently between the metrics. That is, compared to the mean scores (Fig. 5; circles), the score variation (in std) are higher for object local-
+
+
+(a) Localization error
+
+
+(b) Deletion
+Figure 7: Comparisons of the variation in three accuracy scores of attribution methods when changing different hyperparameters. Here, the horizontal bars show standard deviations (std) for the Localization error (a), Deletion (b) and Insertion (c) scores obtained by marginalizing over all images and classifiers (see Sec. 4.6). Changing the number of superpixels (in LIME) and the number of iterations (in MP) causes the largest sensitivity to the accuracy of the two methods, respectively.
+
+
+(c) Insertion
+
+ization (Fig. 5b) and lower for deletion and insertion metrics (Fig. 5c-d). Notably, the localization scores are highly sensitive—the average stds of regular and robust models are $0.51 \times$ and $0.31 \times$ of their respective mean accuracy scores.
+
+Second, varying the patch size of SP by only 1px caused a small variation in the explanation (Fig. 5a; mean SSIM scores are $\approx 1$ for SP-S) but a large variation in object localization performance (Fig. 5b; for SP-S, the stds are $\sim 10\%$ of the mean statistics).
+
+Third, across all four tested hyperparameters and three accuracy metrics, the correctness of explanations for robust models is on average $2.4 \times$ less variable than that for regular models. In sum, we found that explanations for robust classifiers are not only more consistent but also more similarly accurate upon varying the common hyperparameters (compared to the darker bars i.e. regular classifiers, lighter bars are longer in Fig. 5a and shorter in Fig. 5b-d).
+
+# 4.6. Which hyperparameter when changed causes a higher variation in explanation accuracy?
+
+In Sec. 4.5, we show that the accuracy of an individual explanation, on average, can vary substantially as we change a hyperparameter. Here, we ask a different important question: Which hyperparameter when varied causes a higher variation in explanation accuracy? That is, we attempt to compare hyperparameters by computing the marginal effects of changing each hyperparameter to the variation in accuracy scores (when marginalizing over all images and four classifiers).
+
+Experiment As a common practice in the literature, for each classifier, we computed an accuracy score for each generated explanation and took a mean accuracy score over the entire dataset. Repeating the computation for $N$ values of each hyperparameter (e.g. $N$ random seeds of LIME), we obtained $N$ mean accuracy scores from which we computed an std $s$ . For each hyperparameter, we averaged over $\{s\}_{4}$ i.e. four such stds, each computed for a classifier, yielding one global std, which is used for comparing hyperparameters. Here, we compare the global stds for different hyper-
+
+parameters within and between methods (see Fig. 7): (1) the patch size in SP (Sec. 4.4.1; SP-S and SP-L); (2) the random seed and the number of superpixels in LIME (Sec. 4.4.2); (3) the random seed, the blur radius, and the number of iterations of MP (Sec. 4.3.2).
+
+SP results Within SP, we found that varying the patch size across a larger range yields a higher variation in accuracy scores (Fig. 7a; SP-L vs. SP-S).
+
+LIME results Our results enable quantitatively comparing the effects of changing different hyperparameters. In LIME, varying the number of superpixels causes far more sensitivity in the correctness of explanations compared to varying the LIME random seed (Fig. 7; row 3 vs. 4). Specifically, the std of Insertion scores when changing the number of superpixels was $130.5 \times$ higher as compared to the std when changing the random seed (Fig. 7c).
+
+MP results In MP, changing the number of optimization iterations causes the largest sensitivity in explanation accuracy (among the three MP hyperparameters). Precisely, the std of Insertion scores, when changing the blur radius $b_{R}$ and the number of iterations $N_{iter}$ , was $16.6 \times$ and $74 \times$ higher than that when changing the random seed (Fig. 7c; bottom three rows).
+
+Across methods Changing the random seed in LIME vs. in MP (two different methods) interestingly causes a similar variation in all three accuracy metrics (Fig. 7; row 3 vs. 5).
+
+# 5. Discussion and Conclusion
+
+We present the first thorough study on the sensitivity of attribution methods to changes in their input hyperparameters. Our findings show that the attribution maps for many gradient-based and perturbation-based interpretability methods can change radically upon changing a hyperparameter, causing their accuracy scores to vary as well. We propose to evaluate the sensitivity to hyperparameters as an evaluation metric for attribution methods. It is important to carefully evaluate the pros and cons of interpretability methods with no hyperparameters and those that have.
+
+# References
+
+[1] ankurtaly/integrated-gradients: Attributing predictions made by the inception network using the integrated gradients method. https://github.com/ankurtaly/Integrated-Gradients. (Accessed on 11/08/2019). 12
+[2] Machine bias propublica. https://www_propublica.org/article/machine-bias-risk-assessments-in-crimina (Accessed on 06/10/2019). 1
+[3] marcotcr/lime: Lime: Explaining the predictions of any machine learning classifier. https://github.com/marcotcr/lime. (Accessed on 11/08/2019). 13
+[4] Network visualization based on occlusion sensitivity $\gg$ deep learning - matlab & simulink. https://blogs.mathworks.com/deep-learning/2017/12/15/network-visualization-based-on-occlusion-(Accessed on 11/15/2019). 2, 6, 13
+[5] Pair-code/saliency: Tensorflow implementation for smooth-grad, grad-cam, guided backprop, integrated gradients and other saliency techniques. https://github.com/pair-code/saliency. (Accessed on 11/08/2019). 13
+[6] ruthcfong/perturb_explanations: Code for fong and vedaldi 2017, "interpretable explanations of black boxes by meaningful perturbation". https://github.com/ruthcfong/perturb_explanations. (Accessed on 11/08/2019). 14
+[7] Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Süsstrunk. Slic superpixels compared to state-of-the-art superpixel methods. IEEE transactions on pattern analysis and machine intelligence, 34(11):2274-2282, 2012. 13
+[8] Julius Adebayo, Justin Gilmer, Michael Muelly, Ian Goodfellow, Moritz Hardt, and Been Kim. Sanity checks for saliency maps. In Advances in Neural Information Processing Systems, pages 9505-9515, 2018. 2, 3, 12
+[9] Chirag Agarwal, Dan Schonfeld, and Anh Nguyen. Removing input features via a generative model to explain their attributions to classifier's decisions. arXiv preprint arXiv:1910.04256, 2019. 3, 5
+[10] David Alvarez-Melis and Tommi S Jaakkola. On the robustness of interpretability methods. arXiv preprint arXiv:1806.08049, 2018. 3, 4
+[11] Marco Ancona, Enea Ceolini, Cengiz Öztireli, and Markus Gross. Towards better understanding of gradient-based attribution methods for deep neural networks. In International Conference on Learning Representations, 2018. 2, 6
+[12] Leila Arras, Grégoire Montavon, Klaus-Robert Müller, and Wojciech Samek. Explaining Recurrent Neural Network Predictions in Sentiment Analysis. In Proceedings of the EMNLP 2017 Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pages 159-168. Association for Computational Linguistics, 2017. 1
+[13] Sebastian Bach, Alexander Binder, Gregoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech
+
+Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. *PloS one*, 10(7):e0130140, 2015. 2, 3, 5
+[14] Sören Becker, Marcel Ackermann, Sebastian Lapuschkin, Klaus-Robert Müller, and Wojciech Samek. Interpreting and explaining deep neural networks for classification of audio signals. arXiv preprint arXiv:1807.03418, 2018. 1
+[15] Marco Carletti, Marco Godi, Maedeh Aghaei, and Marco Cristani. Understanding deep architectures by visual summarises: arXiv preprint arXiv:1801.09103, 2018. 3, 5
+[16] Chun-Hao Chang, Elliot Creager, Anna Goldenberg, and David Duvenaud. Explaining image classifiers by counterfactual generation. In International Conference on Learning Representations, 2019. 6
+[17] Piotr Dabkowski and Yarin Gal. Real time image saliency for black box classifiers. In Advances in Neural Information Processing Systems, pages 6967-6976, 2017. 2, 3
+[18] Finale Doshi-Velez and Been Kim. Towards a rigorous science of interpretable machine learning. arXiv preprint arXiv:1702.08608, 2017. 1, 3, 4
+[19] Finale Doshi-Velez, Mason Kortz, Ryan Budish, Chris Bavitz, Sam Gershman, David O'Brien, Stuart Schieber, James Waldo, David Weinberger, and Alexandra Wood. Accountability of ai under the law: The role of explanation. arXiv preprint arXiv:1711.01134, 2017. 1
+[20] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry. Adversarial robustness as a prior for learned representations, 2019. 3, 14
+[21] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry. Learning perceptually-aligned representations via adversarial robustness. arXiv preprint arXiv:1906.00945, 2019. 2
+[22] Ruth C Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3429-3437, 2017. 1, 2, 3, 4, 5, 6, 17, 18
+[23] Amirata Ghorbani, Abubakar Abid, and James Zou. Interpretation of neural networks is fragile. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3681-3688, 2019. 3, 4
+[24] Bryce Goodman and Seth Flaxman. European union regulations on algorithmic decision-making and a "right to explanation". AI Magazine, 38(3):50-57, 2017. 1
+[25] Luisa M graf, Taco S Cohen, Tameem Adel, and Max Welling. Visualizing deep neural network decisions: Prediction difference analysis. arXiv preprint arXiv:1702.04595, 2017. 1, 2
+[26] 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
+[27] Matthew Hutson. Artificial intelligence faces reproducibility crisis. Science, 359(6377):725-726, 2018. 2
+[28] Pieter-Jan Kindermans, Sara Hooker, Julius Adebayo, Maximilian Alber, Kristof T Schutt, Sven Dähne, Dumitru Erhan, and Been Kim. The (un) reliability of saliency methods. In Explainable AI: Interpreting, Explaining and Visualizing Deep Learning, pages 267-280. Springer, 2019. 3, 4
+
+[29] F Lambert. Understanding the fatal Tesla accident on autopilot and the nhtsa probe. Electrek, July, 2016. 1
+[30] Sebastian Lapuschkin, Alexander Binder, Grégoire Montavon, Klaus-Robert Muller, and Wojciech Samek. Analyzing classifiers: Fisher vectors and deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2912-2920, 2016. 1
+[31] Sebastian Lapuschkin, Alexander Binder, Klaus-Robert Muller, and Wojciech Samek. Understanding and comparing deep neural networks for age and gender classification. In Proceedings of the IEEE International Conference on Computer Vision, pages 1629-1638, 2017. 1
+[32] Zachary C Lipton. The doctor just won't accept that! arXiv preprint arXiv:1711.08037, 2017. 1, 4
+[33] 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. 14
+[34] Grégoire Montavon, Sebastian Lapuschkin, Alexander Binder, Wojciech Samek, and Klaus-Robert Müller. Explaining nonlinear classification decisions with deep taylor decomposition. Pattern Recognition, 65:211-222, 2017. 2
+[35] Grégoire Montavon, Wojciech Samek, and Klaus-Robert Müller. Methods for interpreting and understanding deep neural networks. Digital Signal Processing, 73:1-15, 2018. 1
+[36] Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th international conference on machine learning (ICML-10), pages 807–814, 2010. 2
+[37] Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), CVPR '15, pages 427-436. IEEE, June 2015. 1
+[38] Vitali Petsiuk, Abir Das, and Kate Saenko. Rise: Randomized input sampling for explanation of black-box models. In Proceedings of the British Machine Vision Conference (BMVC), 2018. 2, 3
+[39] PyTorch. torchvision.models — pytorch master documentation. https://pytorch.org/docs/stable/torchvision/models.html, 2019. (Accessed on 09/21/2019). 3, 14
+[40] Zhongang Qi, Saeed Khorram, and Fuxin Li. Visualizing deep networks by optimizing with integrated gradients. arXiv preprint arXiv:1905.00954, 2019. 3, 5
+[41] Pranav Rajpurkar, Jeremy Irvin, Kaylie Zhu, Brandon Yang, Hershel Mehta, Tony Duan, Daisy Ding, Aarti Bagul, Curtis Langlotz, Katie Shpanskaya, et al. Chexnet: Radiologist-level pneumonia detection on chest x-rays with deep learning. arXiv preprint arXiv:1711.05225, 2017. 1
+[42] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Why should i trust you?: Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pages 1135-1144. ACM, 2016. 1, 2, 4, 7
+[43] 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. 3
+[44] Wojciech Samek and Klaus-Robert Müller. Towards explainable artificial intelligence. In Explainable AI: Interpreting, Explaining and Visualizing Deep Learning, pages 5-22. Springer, 2019. 1
+[45] Ramprasaath R Selvaraju, Abhishek Das, Ramakrishna Vedantam, Michael Cogswell, Devi Parikh, and Dhruv Batra. Grad-cam: Why did you say that? arXiv preprint arXiv:1611.07450, 2016. 2, 3, 4
+[46] Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, and Anshul Kundaje. Not just a black box: Learning important features through propagating activation differences. arXiv preprint arXiv:1605.01713, 2016. 2, 3, 15
+[47] Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. 2, 3, 5
+[48] Daniel Smilkov, Nikhil Thorat, Been Kim, Fernanda Viégas, and Martin Wattenberg. Smoothgrad: removing noise by adding noise. arXiv preprint arXiv:1706.03825, 2017. 1, 2, 3, 4, 5, 15, 16
+[49] Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014. 2, 3, 4, 5, 14, 24
+[50] Vignesh Srinivasan, Sebastian Lapuschkin, Cornelius Hellge, Klaus-Robert Müller, and Wojciech Samek. Interpretable human action recognition in compressed domain. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2017. 1
+[51] Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3319-3328. JMLR.org, 2017. 2, 4, 14, 15
+[52] 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. 3
+[53] 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
+[54] Hristina Uzunova, Jan Ehrhardt, Timo Kepp, and Heinz Handels. Interpretable explanations of black box classifiers applied on medical images by meaningful perturbations using variational autoencoders. In Medical Imaging 2019: Image Processing, volume 10949, page 1094911. International Society for Optics and Photonics, 2019. 3, 5
+[55] Stéfan van der Walt, Johannes L. Schonberger, Juan Nunez-Iglesias, François Boulogne, Joshua D. Warner, Neil Yager, Emmanuelle Gouillart, Tony Yu, and the scikit-image contributors. scikit-image: image processing in Python. PeerJ, 2:e453, 6 2014. 3
+
+[56] Jorg Wagner, Jan Mathias Kohler, Tobias Gindele, Leon Hettzel, Jakob Thaddaus Wiedemer, and Sven Behnke. Interpretable and fine-grained visual explanations for convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9097-9107, 2019. 3, 5
+[57] Yulong Wang, Xiaolin Hu, and Hang Su. Learning attributions grounded in existing facts for robust visual explanation. XAI 2018, page 178. 3, 5
+[58] Yi Wei, Ming-Ching Chang, Yiming Ying, Ser Nam Lim, and Siwei Lyu. Explain black-box image classifications using superpixel-based interpretation. In 2018 24th International Conference on Pattern Recognition (ICPR), pages 1640-1645. IEEE, 2018. 3
+[59] N. Wu, J. Phang, J. Park, Y. Shen, Z. Huang, M. Zorin, S. Jastrzebski, T. Févry, J. Katsnelson, E. Kim, S. Wolfson, U. Parikh, S. Gaddam, L. L. Y. Lin, K. Ho, J. D. Weinstein, B. Reig, Y. Gao, H. T. K. Pysarenko, A. Lewin, J. Lee, K. Airola, E. Mema, S. Chung, E. Hwang, N. Samreen, S. G. Kim, L. Heacock, L. Moy, K. Cho, and K. J. Geras. Deep neural networks improve radiologists' performance in breast cancer screening. IEEE Transactions on Medical Imaging, pages 1-1, 2019. 1
+[60] Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pages 818-833. Springer, 2014. 1, 2, 6
+[61] Jianming Zhang, Sarah Adel Bargal, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Stan Sclaroff. Top-down neural attention by excitation backprop. International Journal of Computer Vision, 126(10):1084-1102, 2018. 2, 3
+[62] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2921-2929, 2016. 2, 3
\ No newline at end of file
diff --git a/samthesensitivityofattributionmethodstohyperparameters/images.zip b/samthesensitivityofattributionmethodstohyperparameters/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c493719d3d4a1606c170e4e5c58b6cb25997860f
--- /dev/null
+++ b/samthesensitivityofattributionmethodstohyperparameters/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:16bfab455c7ab08dfdb26accc8b0c33a1e9dbe2269f53671496dfba8eb8d8f9e
+size 304205
diff --git a/samthesensitivityofattributionmethodstohyperparameters/layout.json b/samthesensitivityofattributionmethodstohyperparameters/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d108a1fc82ea66713956687580be3b17be08266
--- /dev/null
+++ b/samthesensitivityofattributionmethodstohyperparameters/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:032b6f78a1e53893a2d8c103abad30df62eadd327deab246c2774cccf9f1ddb5
+size 460074
diff --git a/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_content_list.json b/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b7bf2a24833702a795ebff03e205c59dbb4dfdca
--- /dev/null
+++ b/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:64b79f8162745cebc8e90729a14262ab342235a27d92b3f7408ca7539039a960
+size 78927
diff --git a/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_model.json b/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..178dd0a78a0203197ab64484f333184e140c0c5d
--- /dev/null
+++ b/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36e07f84c0975ec81340bb4a60d0747dc5a2832a276a0d02ff7b8aefa2ae40e6
+size 97590
diff --git a/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_origin.pdf b/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b39c7f0132698ad9e9147b02793ff6ebc4de920d
--- /dev/null
+++ b/sapienasimulatedpartbasedinteractiveenvironment/6ebcea3b-4777-4b0f-a09b-5e215eb13d19_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c6ae838eb537c122a778944c56c0842b37e68942ed305ee3796bc20f38095f6
+size 2072650
diff --git a/sapienasimulatedpartbasedinteractiveenvironment/full.md b/sapienasimulatedpartbasedinteractiveenvironment/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..594a698e1e0768468022c23a9e0f621e4bf6dcde
--- /dev/null
+++ b/sapienasimulatedpartbasedinteractiveenvironment/full.md
@@ -0,0 +1,268 @@
+# SAPIEN: A SimulAted Part-based Interactive Environment
+
+Fanbo Xiang $^{1}$ Yuzhe Qin $^{1}$ Kaichun Mo $^{2}$ Yikuan Xia $^{1}$ Hao Zhu $^{1}$
+
+Fangchen Liu $^{1}$ Minghua Liu $^{1}$ Hanxiao Jiang $^{3}$ Yifu Yuan $^{5}$ He Wang $^{2}$ Li Yi $^{4}$
+
+Angel X. Chang³ Leonidas Guibas² Hao Su¹
+
+1UC San Diego 2Stanford University 3Simon Fraser University 4Google Research 5UC Los Angeles
+
+https://sapien.ucsd.edu
+
+# Abstract
+
+Building home assistant robots has long been a goal for vision and robotics researchers. To achieve this task, a simulated environment with physically realistic simulation, sufficient articulated objects, and transferability to the real robot is indispensable. Existing environments achieve these requirements for robotics simulation with different levels of simplification and focus. We take one step further in constructing an environment that supports household tasks for training robot learning algorithm. Our work, SAPIEN, is a realistic and physics-rich simulated environment that hosts a large-scale set of articulated objects. SAPIEN enables various robotic vision and interaction tasks that require detailed part-level understanding. We evaluate state-of-the-art vision algorithms for part detection and motion attribute recognition as well as demonstrate robotic interaction tasks using heuristic approaches and reinforcement learning algorithms. We hope that SAPIEN will open research directions yet to be explored, including learning cognition through interaction, part motion discovery, and construction of robotics-ready simulated game environment.
+
+# 1. Introduction
+
+To achieve human-level perception and interaction with the 3D world, home-assistant robots must have the capability to use perception to interact with 3D objects [11, 61, 40]. For a robot to help put away groceries, it must be able to open the refrigerator by locating the door handle, pulling the door and fetching the target objects.
+
+One direct way to address the problem is to train robots by interacting with the real environment [30, 4, 27]. However, training robots in the real world could be very time consuming, costly, unstable, and potentially unsafe. Moreover, a slight perturbation in hardware or environment setup can result in different outcomes in the real world, thus inhibiting reproducible research. Researchers, therefore,
+
+
+
+
+Figure 1: Robot-object Interaction in SAPIEN. We show the ray-traced scene (top) and robot camera views (bottom): RGB image, surface normals, depth and semantic segmentation of motion parts, while a robot is learning to operate a dishwasher.
+
+have long used simulated environments for tasks such as navigation [43, 58, 44, 1, 3, 56, 14, 58] and control [24, 42, 50, 10].
+
+Constructing simulated environments for robot learning with transferability to the real world is a non-trivial task. It faces challenges from four main aspects: 1) The environment needs to reproduce the real-world physics to some level. As it is still infeasible to simulate real-world physics exactly, any physical simulator needs to decide the level-of-details and accuracy it operates on. Some approximate physics by simulating rigid bodies and joints[36, 50, 10]; some handle soft deformable objects [50, 10]; and others simulate fluid [50, 45]. 2) The environment should incorporate the simulation of real robots, including the behaviors of real robotics manipulators, sensors and controllers [35]. Only this can enable seamless transfer to the real-world after training. 3) The environment needs
+
+| Environment | Level | Physics | Rendering | Tasks | Interface |
| Habitat [44]* | Scene | Static+ | Real Photo | Navigation, Vision | Python, C++ |
| AI2-THOR [25]* | Scene-Object | Dynamic | Unity | Navigation+, Vision | Python, Unity |
| OpenAI Gym MuJoCo [2] | Scene-Object | Dynamic | OpenGL(fixed) | Learning, Robotics | Python |
| RLBench[22] | Scene-Object | Dynamic | V-REP, PyRep | Learning, Vision, Robotics | Python, V-REP |
| SAPIEN | Scene-Object-Part | Dynamic | Customizable | Learning, Vision, Robotics | Python, C++ |
+
+Table 1: Comparison to other Simulation Environments. Habitat [44] is a representative for navigation environments, which include Gibson [58, 57], Minos [43] and others; they primarily use static physics but are starting to add interactions very recently. AI2-THOR [25] is a representative for game-like interactive environments; these environments usually support navigation with limited low-level object interactions. OpenAI Gym [2] and RLBench [22] provide interactive environments, but the use of commercial software limits their customizability.
+
+to produce physically accurate renderings to mitigate the visual domain gap. 4) Most importantly, the environment requires sufficient content, scenes and objects for the robot to interact with, since data diversity is critical for training and evaluating learning-based algorithms. The content also determines how much we shall address challenges in the previous tasks: data with soft objects such as cloth requires deformable body simulation; translucent objects require special rendering techniques, and specific robot requires a specific interface.
+
+Existing environments achieve these requirements for robotics simulation with different levels of simplification and focus. For example, OpenAI Gym [2] provides an interactive and easy-to-use interface; Gibson [58] and AI Habitat [44] use photorealistic rendering for semantic navigation tasks. A more detailed discussion of popular environments can be found in Sec 2. These environments can support the benchmarking and training of down-stream tasks such as navigation, low-level control, and grasping. However, from the perspective of tasks, there still lacks environments that target at object manipulation of daily objects, a basic skill of household robots. In a household environment, a great portion of daily objects are articulated and require manipulation: bottles with caps, ovens with doors, electronics with switches and buttons. Notably, RLBench [22] provides well-defined robotics tasks and realistic controller interface with detailed manipulation demonstration, but it lacks diversity in its simulated scenarios.
+
+We take one step further in constructing an environment that supports the manipulation of diverse articulated objects. Our system, SAPIEN, is a realistic and physics-rich simulated environment that hosts a large set of articulated objects. At the core of SAPIEN are three main components: 1) SAPIEN Engine, an interaction-rich and physics-realistic simulation environment integrating PhysX physical engine and ROS control interface; this engine supports accurate simulation of rigid body and joint constraints for simulation of articulated objects. 2) SAPIEN Asset, including PartNet-Mobility dataset, which contains 14K movable parts over
+
+2,346 3D articulated models from 46 common indoor object categories, richly annotated with kinematic part motions and dynamic interactive attributes; 3) SAPIEN Renderer, with both fast-frame-rate OpenGL rasterizer and more photorealistic ray-tracing options. We demonstrate that SAPIEN enables a large variety of robotic perception and interaction tasks by benchmarking state-of-the-art vision algorithms for part detection and motion attribute recognition. We also show a variety of robotic interaction tasks that SAPIEN supports by demonstrating heuristic approaches and reinforcement learning algorithms.
+
+# 2. Related Work
+
+Simulation Environments. In recent years, there has been a proliferation of indoor simulation environments primarily designed for navigation, visual recognition and reasoning [43, 56, 58, 44, 1]. Static environments, based on synthetic scenes [56] or real-world RGB-D scans [1] and reconstructions [43, 58, 44], are able to provide images that closely resembles reality, minimizing the domain gap in the visual aspect. However, they usually offer very limited or no object interactions, failing to capture the dynamic and interactive nature of the real world.
+
+To allow for more interactive features in environments, researchers leverage partial functionalities of game engines or physics engine to provide photorealistic rendering together with interactions [54, 34, 25, 38, 3, 59, 13, 26]. When agents interact with objects in these environments, it is via high level state changes triggered by explicit commands (e.g. "open refrigerator"), or proximity (e.g. refrigerator door opens when the robot or robot arm is next to the trigger region). In addition, the underlying physics is often over-simplified, for instance, to directly exert force and torque. While they allow for research on high-level object interactions, they cannot close the gap between high-level instructions and low-level dynamics since they fail to include accurate simulation of articulated robots and objects. This limits the use of such simulators for learning of detailed low-level robot-object interactions.
+
+| Dataset | #Categories | #Models | #Motion Parts |
| Shape2Motion[53] | 45 | 2,440 | 6,762 |
| RPM-Net[60] | 43 | 949 | 1,420 |
| Hu et al. [18] | - | 368 | 368 |
| RBO*[31] | 14 | 14 | 21 |
| Ours | 46 | 2,346 | 14,068 |
+
+Table 2: Comparison of Articulated Part Datasets. *RBO is collected in real-world with long video sequences.
+
+Finally, there are environments that integrate full-featured physics engines. These environments are favored in continuous control and reinforcement learning tasks. OpenAI Gym [2], RLLAB [12], DeepMind Control Suite [49] and DoorGym [51] integrate MuJoCo physical engine to provide RL environments. Arena [47], a platform that supports multi-agent environments, is built on top of Unity [23]. PyBullet [10], a real-time physics engine with Python interface, powers a series of projects focusing on robotics tasks [62, 28]. Gazebo [24], a high-level visualization and modeling package, is widely used in robotics community [32, 20]. Recently, RLBench [22], a benchmark and physical environment for robot learning, uses V-REP [42] as the backend to provide diverse tasks for robot manipulation. Our environment, SAPIEN engine, is directly based on the open-source Nvidia PhysX API [36], which has comparable performance and interface with PyBullet, and avoids the unnecessary complication introduced by game engine infrastructures, or any barriers from commercial software such as MuJoCo and V-REP. Table 1 provides a brief summary of several representative environments.
+
+One bottleneck of these robotic simulators is their limited rendering capability, which creates a gap between simulation and the real world. Another limitation of many of these environments, including RLBench [22] and DoorGym [51], is that they are very task-centric, designed to work for only a few predefined tasks. The SAPIEN simulator, equipped with 2,346 3D interactive models from 46 object categories and flexible rendering pipelines, provides robot agents a virtual environment for learning a large set of complex, diverse and customizable robotic interaction tasks.
+
+Simulation Content. Navigation environments typically use datasets providing real-world RGB-D scans [58, 6, 48], and/or high-quality synthetic scenes [46]. Simulation environments that leverage game engines [54, 34, 3, 13, 25] come with manually designed or procedurally generated game scenes. For environments with detailed physics and reinforcement learning support [2, 49, 12], they usually support very few scenarios with simple objects and robot agents. Notably, RLBench [22] provides a relatively large
+
+robot learning dataset with varied tasks. To address the lack-of-content problem, our work provides a large-scale simulation-ready dataset, PartNet-Mobility dataset, that is constructed from 3D model datasets including PartNet [33] and ShapeNet [7].
+
+There are also shape part datasets with part articulation annotations. Table 2 summarizes recent part mobility datasets. The RBO dataset [31] is a collection of 358 RGB-D video sequences of humans manipulating 14 objects which are reconstructed as articulated 3D meshes. The meshes have detailed part motion parameters and have realistic textures. Other datasets annotate 3D synthetic CAD models with articulation information. Hu et al. [18] introduced a dataset of 368 mobility part articulations with diverse types. RPM-Net [60] provides another dataset with 969 objects and 1,420 mobility units. Shape2Motion [53] provides a dataset of 2,440 objects and 6,762 movable parts for mobility analysis, but it does not provide RGB textures and motion limits that hinders physical simulation. Compared to these datasets, our dataset contains comparable number of objects (2,346), but with much more movable part annotations (14,068). Besides, our models have textures and motion range limits, which are crucial for the dataset to be simulatable.
+
+# 3. SAPIEN Simulation Environment
+
+SAPIEN aims to integrate state-of-the-art physical simulators, modern graphics rendering engines, and user-friendly robotic interfaces into a unified framework (Figure 2), to support a diverse set of robotic perception and interaction tasks. We develop the environment with $\mathrm{C + + }$ for efficiency and provide Python wrapper API for ease-of-use at the user end. Below we dually introduce the three main components: SAPIEN engine, SAPIEN asset and SAPIEN renderer.
+
+# 3.1. SAPIEN Engine
+
+We use the open-source Nvidia PhysX physical engine to provide detailed robot-object interaction simulation. The system provides Robot Operating System (ROS) supports that are easy-to-use for end-stream robotic research. We provide both synchronous and asynchronous modes of simulation to support reinforcement learning training and robotics tasks.
+
+Physical Simulation. We choose PhysX 4.1 [36] to provide rigid body kinematics and dynamics simulation, since it is open-source, simplistic, and provides functionalities designed for robotics. To simulate articulated bodies, we provide 3 different body-joint systems: kinematic joint system, dynamic joint system, and PhysX articulation. The kinematic joint system provides kinematic objects with parent-child relations, suitable for simulating very heavy
+
+
+Figure 2: SAPIEN Simulator Overview. The left box shows SAPIEN Renderer, which takes custom shaders and scene information to produce images such as RGB-D and segmentation. The middle box shows SAPIEN Engine, which integrates PhysX simulator and ROS control interface that enables various robot actions and utilities. The right box shows SAPIEN Asset, which contains the large-scale PartNet-Mobility dataset that provides simulatable models with part-level mobility.
+
+objects that are not affected by small forces. Dynamic joint systems use PhysX joints to drive rigid bodies towards constraints, suitable for simulating complicated objects that do not require accurate control. PhysX articulation is a system specifically designed for robot simulation. It natively supports accurate force control, P-D control and inverse dynamics with the cost of relatively low speed.
+
+ROS Interfaces. Robot Operating System (ROS) [41] is a generic and widely-used framework for building robot applications. Our ROS interface bridges the gap between ROS and physical simulator, as well as providing a set of high-level APIs for interacting with robots using physics. It supports three levels of abstractions: direct force control, ROS controllers and motion planning interface.
+
+At the lowest level, forces and torques are directly applied on joints, similar to OpenAI Gym [2]. This control method is simple and intuitive, but challenging to transfer to real environments due to the differences between real-world dynamics and simulation, and between the continuous nature of real-robots and the discretized approximation in simulations.
+
+For high-level control, we provide joint space and Cartesian coordinate space control APIs. We build controllers (Figure 2) based upon [8] and implement the standard ROS control interface. Researchers often want to specify movement at a higher level of abstraction, for example, to move the robot arm to a desired 6-DoF pose with specific path constraints. Thus, at the highest level, we provide motion planning support based on the popular MoveIt framework [9], which can generate motion plans that effectively move the robot around without collision.
+
+Synchronous and Asynchronous Modes. The SAPIEN Engine (see Figure 2 middle) can support both synchronous and asynchronous simulation modes. In synchronous mode, the simulation step is controlled by the client, which is com
+
+mon in training reinforcement learning algorithm [2]. For example, the agent receives observations from simulated environments and uses a customized policy model, often a neural network, to generate the corresponding action. Then the simulation runs forward for a step. In this synchronous mode, the simulation and client algorithms are integrated together.
+
+However, for real-world robotics, the simulation and client response need to be asynchronous [24] and separated. The simulation should run independently, like the real world, while the client uses the same API as a real robot to interact with the simulation backend. To build such a framework, we create multiple sensors and controllers following the ROS API. After simulation starts, the client receives information from sensors and uses the controller interface (see Figure 2) to command robots via TCP/IP communication. The timestamp is synchronized from simulation to the client side, acting as a proxy for the real-world clock time. Under the framework, the simulated robots can use the same code as their real counterparts because most real robot controllers and sensors have exactly the same interface as our simulator API. This provides one important advantage: it enables robot researchers to migrate between simulated robots and real robots without any extra setup.
+
+# 3.2. SAPIEN Asset
+
+SAPIEN Asset is our simulation content, shown in the right box in Figure 2. It contains the large-scale ready-to-simulate PartNet-Mobility dataset, the simulated robot models and scene layouts.
+
+PartNet-Mobility Dataset. We propose a large-scale 3D interactive model dataset that contains over 14K articulated parts over 2,346 object models from 46 common indoor object categories. All models are collected from
+
+
+Figure 3: SAPIEN Enables Many Robotic Interaction Tasks. From left to right, we show five examples: faucet manipulation, object fetching, object lifting, chair folding, and object placing.
+
+ | All | Bottle | Box | Bucket | Cabinet | Camera | Cart | Chair | Clock | Coffee | DishWsh. | Dispenser | Door | Eyegls | Fan | Faucet |
| #M | 2,346 | 57 | 28 | 36 | 345 | 37 | 61 | 80 | 31 | 55 | 48 | 57 | 36 | 65 | 81 | 84 |
| #P | 14,068 | 114 | 94 | 74 | 1,174 | 341 | 232 | 1,235 | 106 | 374 | 112 | 162 | 103 | 195 | 172 | 228 |
| Chair | Fridge | Globe | Kettle | Keybrd | Knife | Lamp | Laptop | Lighter | MicWav | Monitor | Mouse | Oven | Pen | Phone | Pliers |
| #M | 26 | 44 | 61 | 29 | 37 | 44 | 45 | 56 | 28 | 16 | 37 | 14 | 30 | 48 | 17 | 25 |
| #P | 58 | 118 | 130 | 66 | 3,593 | 149 | 165 | 112 | 86 | 85 | 93 | 61 | 214 | 97 | 271 | 59 |
| Pot | Printer | Remote | Safe | Scissors | Stapler | Stcase | Switch | Table | Toaster | Toilet | TrashCan | USB | Washer Window |
| #M | 25 | 29 | 49 | 30 | 47 | 23 | 24 | 70 | 101 | 25 | 69 | 70 | 51 | 17 | 58 | |
| #P | 53 | 376 | 1,490 | 202 | 94 | 69 | 101 | 195 | 420 | 116 | 229 | 208 | 103 | 144 | 195 | |
+
+Table 3: Statistics of PartNet-Mobility Dataset. #M and #P shows the number of models and movable parts respectively.
+
+3D Warehouse* and organized as in ShapeNet [7] and PartNet [33]. We annotate 3 types of motions: hinge, slider, and screw, where hinge indicates rotation around an axis (e.g. doors); slider indicates translation along an axis (e.g. drawers), and screw indicates a combined hinge and slider (e.g. bottle caps, swivel chairs). For hinge and slider joints, we annotate the motion limit (i.e. angles, lengths). For screw, we annotate the motion limits and whether the 2 degrees of freedom are coupled. Each joint has a parent and a child, and the collection of connected bodies and joints is called an articulation. We require the joints of an articulation to follow a tree structure with a single root, since most physical simulator handles tree-structured joint system well. Next, for each movable part, we assign a category-specific semantic label. Table 3 summarizes the dataset statistics. Please see the supplementary for more details about the data annotation pipeline.
+
+SAPIEN Asset Loader Unified Robot Description Format (URDF) is a common format for representing a physical model. For each object in the SAPIEN Asset, including PartNet-Mobility models and robot models, we provide an associated URDF file, which can be loaded in simulation. For accurate simulation of contact, we decompose meshes into convex parts [29, 19]. We randomize or manually set the physical properties, e.g. friction, damping, density, to appropriate ranges. For robot models, we also provide C++/Python APIs to create a robot piece by piece to avoid complications introduced by URDF.
+
+# 3.3. SAPIEN Renderer
+
+SAPIEN Renderer, shown in the left box of Figure 2, renders simulated scenes with OpenGL 4.5 and GLSL shaders, which are exposed to the client application for maximal customizability. By default, the rendering module uses a deferred lighting pipeline to provide RGB, albedo, normal, depth, and segmentation from camera space, where lighting is computed with OrenNayar diffuse model [55] and GGX specular model [52]. Our customizable rendering interface can suit special rendering needs, and even allow completely different rendering pipelines. We demonstrate this by replacing the fast OpenGL framework with our ray tracer coded with Nvidia OptiX [37] to produce physically accurate images at the cost of rendering time (see Figure 1).
+
+# 3.4. Profiling Analysis
+
+The SAPIEN engine can run at about $5000\mathrm{Hz}$ on the manipulation task we will describe in Sec. 4.2 and can render at about $700\mathrm{Hz}$ with OpenGL mode. Tests were performed on a laptop with Ubuntu 18.04, on 2.2 GHz Intel i7-8750 CPU and an Nvidia GeForce RTX 2070 GPU.
+
+# 4. Tasks and Benchmarks
+
+We demonstrate the versatile abilities of our simulator by demonstrating robotic perception and interaction tasks.
+
+# 4.1. Robotic Perception
+
+SAPIEN simulator, equipped with the PartNet-Mobility dataset, provides a platform for several robotic perception tasks. In this paper, we study the tasks of movable part de
+
+
+Figure 4: Movable Part Detection Results. The left column shows the results of Mask R-CNN [16], where each bounding box indicates a detected movable part. The middle and the right columns show the results of PartNet InsSeg [33] and the ground truth point clouds respectively, where different parts are in different color.
+
+tection and part motion estimation, which are two important vision tasks supporting downstream robotic interaction.
+
+Movable Part Detection Before interacting with objects by parts, robotic agents need to first detect the parts of interest. Therefore, we define the task of movable part detection as follows. Given a single 2D image snapshot or 3D RGB-D partial scan of an object as input, an algorithm should produce several disjoint part masks associated with their semantic labels, each of which corresponds to an individual movable part of the object.
+
+Leveraging the rich assets from the PartNet-Mobility dataset and the SAPIEN rendering pipeline, we evaluate two state-of-the-art perception algorithms for object or part detection. Mask R-CNN [16] takes a 2D image as input and uses a region proposal network to detect a set of 2D part mask candidates. PartNet-InsSeg [33] is a 3D shape part instance segmentation approach that uses PointNet++ [39] to extract geometric features and proposes panoptic segmentation over shape point clouds.
+
+We render each object in the PartNet-Mobility dataset into RGB and RGB-D images from 20 randomly sampled views, with resolution $512 \times 512$ . The camera positions are randomly sampled over the upper hemisphere to ensure space coverage. Simple ambient and directional lighting without shadows are provided for RGB rendering. With known camera intrinsics, we lift the 2.5D RGB-D images into 3D partial scans for PartNet-InsSeg experiments. We use all 2,346 objects over 46 categories from the PartNet-Mobility dataset for this task. We use $75\%$ of data (1,772 shapes) for training and $25\%$ (574 shapes) for testing. For
+
+quantitative evaluation, we report per-part-category Average Precision (AP) scores as commonly used for object detection tasks and average across all part categories to compute mAP for each algorithm.
+
+Table 4 shows the quantitative results of Mask R-CNN on RGB and RGB-D settings and PartNet-InsSeg on the XYZ (depth-only) and XYZRGB (RGB-D images) settings. We observe that both methods perform poorly on detecting small parts (e.g., table wheel and table caster), and the phenomenon is less severe for object categories that have relatively balanced sizes (e.g., fan and faucet). Small movable parts (e.g., button, switch, and handle) often play critical roles in robot-object interaction, and will demand more well-designed algorithms in the future. Figure 4 visualizes the Mask-RCNN and PartNet-InsSeg part detection results on two example RGB-D partial scans.
+
+Motion Attributes Estimation Estimating motion attributes for articulated parts gives strong priors for robots before interacting with objects. In this section, we perform the motion attributes estimation task that jointly predicts the motion type, motion axis, and part state for articulated parts.
+
+We consider two types of rigid part motions: 3D rotation and translation. Some parts, such as bottle cap, may have both rotation and translation motions. For translation motions, we use a 3-dim vector to represent the direction. For rotation motions, we parameterize the outputs as two 3-dim vectors to specify rotation axis direction and a pivot point on the axis. We define relative positions of the articulated part with respect to its semantic rest positions as part states. For example, the rest position for drawers and doors is when they are closed. However, defining part rest states has intrinsic ambiguities. For example, round knobs with rotation symmetry do not present a detectable rest position. Thus, we use a subset of 640 models over 10 categories, which consists of 779 doors and 529 drawers for this task, following the same train and test splits used in the previous section.
+
+We evaluate two baseline algorithms, ResNet-50 [17] and PointNet++ [39], that deals with the input RGB-D partial scans using either 2D or 3D formats. For ResNet-50, we input RGB-D images augmented with target part mask (5-channel in total). For PointNet++, we substitute the 5-channel image with its camera-space RGB point cloud. We train both networks to output a 14-dim motion vector $m = (T_r, T_t, p_1^r, p_2^r, p_3^r, d_1^r, d_2^r, d_3^r, d_1^t, d_2^t, d_3^t, x_{\mathrm{door}}, x_{\mathrm{drawer}})$ , where $T_r$ and $T_t$ respectively output the probability of this joint being rotational and translational, $(p_1^r, p_2^r, p_3^r)$ and $(d_1^r, d_2^r, d_3^r)$ indicate pivot point and rotation axis for hinge joints, $(d_1^t, d_2^t, d_3^t)$ represents the direction of a proposed slider axis, and finally, $x_{\mathrm{door}}$ and $x_{\mathrm{drawer}}$ regress the part poses for doors and drawers respectively. The part pose is a number normalized within [0, 1] indicating the current joint position. See supplementary for more details about network
+
+ | Cabinet | Table | Faucet | Fan | All | |
| Algorithm | Inputs | rot. door body drawer trans. door | drawer body wheel door caster | switch base spout | rotor frame | mAP | |
| Mask- RCNN [16] | 2D (RGB) | 62.0 94.2 | 66.4 | 27.7 | 54.3 | 88.0 | 3.4 | 6.3 | 0.0 | 52.5 | 47.9 99.7 | 54.4 67.5 | 53.0 |
| 2D (RGB-D) | 61.7 93.0 | 63.0 | 26.3 | 58.6 | 89.9 | 1.4 | 13.2 | 0.0 | 52.1 | 55.8 98.9 | 39.4 67.4 | 52.8 |
| PartNet | PC (XYZ) | 20.6 65.9 | 35.1 | 9.8 | 15.7 | 71.3 | 1.7 | 1.0 | 0.0 | 34.4 | 55.9 64.2 | 50.9 74.8 | 36.1 |
| InsSeg [33] | PC (XYZRGB) | 17.4 64.3 | 23.6 | 5.0 | 16.4 | 81.8 | 1.3 | 2.0 | 1.0 | 29.9 | 64.1 78.0 | 42.0 63.5 | 37.1 |
+
+Table 4: Movable Part Detection Results. (AP% with IoU threshold 0.5) 2D and PC denote 2D images and point clouds as different input modalities for the two algorithms. We show the detailed results for four objects categories and summarize the mAP over all categories. See supplementary for the full table.
+
+| Setting | Algorithm | Hacc. | Sacc. | Hoerr(m) | Haerr(°) | Saerr.(°) | door err.(°) | drawer err.(m) |
| RGB-D | ResNet50 | 95.5% | 95.5% | 0.168 | 18.9 | 6.35 | 14.4 | 0.0645 |
| RGB-pc | PointNet++ | 95.4% | 95.5% | 0.195 | 18.5 | 7.75 | 20.8 | 0.0918 |
+
+Table 5: Motion recognition results. $H$ acc. and $S$ acc. denotes classification accuracy for hinge and slider respectively. ${H}_{o}$ err. denotes average distance from predicted hinge origin to ground truth axis. ${H}_{a}/{S}_{a}$ denotes average hinge/slider angle difference from predicted axis to ground truth. door err. is average angle difference from predicted door pose to ground truth. drawer err. is average length difference from predicted drawer pose to ground truth.
+
+
+Figure 5: Robotic Interaction tasks. We study two robotic interaction tasks: door-opening and drawer-pulling.
+
+architectures, loss designs, and training protocols.
+
+We summarize the experimental results in Table 5. The classification of different motion types achieves quite high accuracy, and the axis prediction for sliders (translational joints) achieves lower error than for hinges (rotational joints). In our experiments, ResNet50 achieves better performance than PointNet++. This could be explained by the much higher number of network parameters in ResNet. However, intuition suggests that such 3D information should be more easily predicted directly on 3D data. Future research should focus more on how to improve 3D axis prediction with 3D grounding.
+
+# 4.2. Robotic Interaction
+
+With the large-scale PartNet-Mobility dataset, SAPIEN also supports various robotic interaction tasks, including solving low-level control tasks, such as button pushing,
+
+handle grasping, and drawer pulling, and planning tasks that require long-horizon logical planning and low-level controls, e.g., removing the mug from a microwave oven and then putting it on a table. Having both diverse object categories and rich intra-class instance variations allows us to perform such tasks on multiple object instances at category levels. Figure 3 shows a rich variety of robotic interaction tasks that SAPIEN enables.
+
+In SAPIEN, we enable two modes for robotic interaction tasks: 1) using perception ground-truth (e.g., part mask, part motion information, and 3D locations) to accomplish the task. In this way, we factor out the perception module and allow algorithms to focus on robotic control and interaction tasks; 2) using the raw image/point-cloud as inputs, the method needs to develop its own perception, planning and control modules, which is our end-goal for the homeassistant robot to achieve. Also, this mode enables end-to-end learning for perception and interactions (e.g., learning perception with a specific interaction target).
+
+Door-opening and Painter-pulling. We perform two manipulation tasks: door-opening and painter-pulling, as shown in Figure 5. We use a flying gripper (Kinova Gripper 3 [5]) that can move freely in the workspace. All dynamics properties except gravity, (e.g. contact, friction, and damping) are simulated in our environment. We perform our painter-pulling tasks on 108 cabinet instances and door-opening tasks on 77 cabinet instances.
+
+In our tasks, if the gripper can move a given joint (e.g. slider joint for drawer, hinge joint for door) through $90\%$ of its motion range, then it will be regarded as a success. If the agent cannot move the joint to the given threshold or move
+
+in the opposite direction, then it fails. The input of the agent consists of point clouds, normal maps and segmentation masks captured by three fixed cameras mounted on the left, right and front of the arena respectively. The agent can also access all information about its self (e.g. 6 DoF pose).
+
+Heuristic Based Manipulation. To demonstrate our simulator in manipulation tasks, we first use manually designed heuristic pipelines to solve the tasks. For drawer-pulling, we use point cloud with ground-truth segmentation to detect a valid grasp pose for drawer handle. Then we use velocity controller to pull it to the joint limit. Using ground-truth visual information, we can achieve a $95.3\%$ success rate. As for the door-opening task, we first open the door with a small angle using a similar approach (grasp a handle at first). Then we use Position Based Visual Servoing (PBVS) [21] to track and clamp the edge of the door. Finally, the door is opened by rotating the edge. This method (PBVS) achieves an $81.8\%$ success rate for door opening. A more detailed illustration of this heuristic-based pipeline can be found in our supplementary video.
+
+Learning Based Manipulation. We also demonstrate the above two tasks using reinforcement learning. We test the generalizability of the RL agent by training on limited objects and testing on unseen objects with different size, density, and motion properties. We adopt Soft Actor-Critic(SAC) [15], which is one of the SOTA reinforcement learning algorithms, trained on 2, 4, 8, 16 doors or drawers, and test on the rest unseen models.
+
+We provide three different state representations: 1) raw state of the whole scene (raw-exp), consisting of current positions and velocities of all the parts; 2) mobility-based representation (mobility-exp), with 6D pose of motion axis and average normal, and current joint angles and velocities of the target part; 3) visual inputs (visual-exp), where we set a front-view camera capturing RGB-D images for the object every time step, augmented with segmentation mask for the target part.
+
+We use the same flying gripper and initialize it on the handle. The grasp pose is generated by the heuristic method as described in the above section. During training, agents receive positive rewards when the target part approaches the joint limit with the opening door/drawer, while obtaining negative rewards when the gripper falls off the handle. We interact with multiple objects simultaneously during training, and use a shared replay buffer to collect experiences to train SAC. After 1M interaction steps, we evaluate the performance on the unseen objects, each for 20 episodes.
+
+For doors, the evaluation metric is the average achieved degree. For drawers, we report the success rate of opening $80\%$ of joint limits. Table 6 shows our experimental results. For door-opening, the RL agent tends to overfit the training objects, as when the number of training objects
+
+| Tasks | Door(Final Angle Degree) | Drawer(Success Rate) | | |
| 2 | 4 | 8 | 16 | 2 | 4 | 8 | 16 |
| raw-exp | train | 85.4 | 70.5 | 50.5 | 38.4 | 0.84 | 0.82 | 0.77 | 0.75 |
| test | 14.7 | 18.7 | 21.2 | 27.3 | 0.61 | 0.63 | 0.66 | 0.66 |
| mobility-exp | train | 88.7 | 78.6 | 59.2 | 41.1 | 0.83 | 0.81 | 0.79 | 0.78 |
| test | 22.9 | 27.3 | 27.5 | 32.8 | 0.65 | 0.65 | 0.69 | 0.68 |
| visual-exp | train | 90.2 | 65.2 | 56.7 | 32.1 | 0.80 | 0.72 | 0.69 | 0.63 |
| test | 21.7 | 24.5 | 28.1 | 29.6 | 0.59 | 0.60 | 0.61 | 0.60 |
+
+Table 6: SAC results on door and drawer opening.
+
+grows, the performance drops. However, training on more scenarios will improve the generalization capability with increased test performance. For drawer-pulling, although the performance follows the same pattern as the door, it is relatively stable across the number of training objects. This is because drawers are relatively easier to pull out, as the movement for the gripper almost follows the same pattern every time step.
+
+Among all the representations, mobility-exp gives the best performance. For doors, visual-exp representation also performs close to mobility-exp; however for drawers, raw-exp is better than visual-exp. This is because the camera is fixed during the interaction. For drawer-opening, the visual features remain almost the same every time step from the front view, so it provides little information about state changing. These observations lead us to some interesting future work. First, we need proper vision methods to encode the geometric information of the scene, which may change during interaction procedures. Second, although these tasks are not hard for heuristic algorithms, RL-based approaches fail to perform well on all the objects. Future works may study how to enhance the transferability and efficiency of RL on the tasks.
+
+# 5. Conclusion
+
+We present SAPIEN, a simulation environment for robotic vision and interaction tasks, which provides detailed part-level physical simulation, hierarchical robotics controllers and versatile rendering options. We demonstrate that SAPIEN enables a large variety of robotic perception and interaction tasks.
+
+# Acknowledgements
+
+This research was supported by NSF grant IIS-1764078, NSF grant IIS-1763268, a Vannevar Bush Faculty Fellowship, the Canada CIFAR AI Chair program, gifts from Qualcomm, Adobe, and Kuaishou Technology, and grants from the Samsung GRO program and the SAIL Toyota Research Center.
+
+# References
+
+[1] 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 (CVPR), 2018. 1, 2
+[2] Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. OpenAI Gym. arXiv preprint arXiv:1606.01540, 2016. 2, 3, 4
+[3] Simon Brodeur, Ethan Perez, Ankesh Anand, Florian Golemo, Luca Celotti, Florian Strub, Jean Rouat, Hugo Larochelle, and Aaron Courville. HoME: A household multimodal environment. arXiv preprint arXiv:1711.11017, 2017. 1, 2, 3
+[4] Berk Calli, Arjun Singh, James Bruce, Aaron Walsman, Kurt Konolige, Siddhartha Srinivasa, Pieter Abbeel, and Aaron M Dollar. Yale-CMU-Berkeley dataset for robotic manipulation research. The International Journal of Robotics Research, 36(3):261-268, 2017. 1
+[5] Alexandre Campeau-Lecours, Hugo Lamontagne, Simon Latour, Philippe Fauteux, Véronique Maheu, François Boucher, Charles Deguire, and Louis-Joseph Caron L'Ecuyer. Kinova modular robot arms for service robotics applications. In Rapid Automation: Concepts, Methodologies, Tools, and Applications, pages 693-719. IGI Global, 2019. 7
+[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. International Conference on 3D Vision (3DV), 2017. 3
+[7] Angel X. Chang, Thomas A. Funkhouser, Leonidas J. Guibas, Pat Hanrahan, Qi-Xing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, Jianxiong Xiao, Li Yi, and Fisher Yu. ShapeNet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. 3, 5
+[8] Sachin Chitta, Eitan Marder-Eppstein, Wim Meeussen, Vijay Pradeep, Adolfo Tsouroukdissian, Jonathan Bohren, David Coleman, Bence Magyar, Gennaro Raiola, Mathias Ldtke, and Enrique Perdomo. ros_control: A generic and simple control framework for ROS. Journal of Open Source Software, 2(20):456, 2017. 4
+[9] Sachin Chitta, Loan Sucan, and Steve Cousins. Moveit! [ROS Topics]. IEEE Robotics & Automation Magazine, 19(1):18-19, 2012. 4
+[10] Erwin Coumans and Yunfei Bai. PyBullet, a python module for physics simulation for games, robotics and machine learning. *GitHub repository*, 2016. 1, 3
+[11] Abhishek Das, Samyak Datta, Georgia Gkioxari, Stefan Lee, Devi Parikh, and Dhruv Batra. Embodied question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 2054–2063, 2018. 1
+
+[12] Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In International Conference on Machine Learning, pages 1329-1338, 2016. 3
+[13] Xiaofeng Gao, Ran Gong, Tianmin Shu, Xu Xie, Shu Wang, and Song-Chun Zhu. VRKitchen: an interactive 3D virtual environment for task-oriented learning. arXiv, abs/1903.05757, 2019. 2, 3
+[14] 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. 1
+[15] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018. 8
+[16] Kaiming He, Georgia Gkioxari, Piotr Dálár, and Ross Girshick. Mask R-CNN. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 6, 7
+[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 6
+[18] Ruizhen Hu, Wenchao Li, Oliver Van Kaick, Ariel Shamir, Hao Zhang, and Hui Huang. Learning to predict part mobility from a single static snapshot. ACM Transactions on Graphics (TOG), 36(6):227, 2017. 3
+[19] Jingwei Huang, Hao Su, and Leonidas Guibas. Robust watertight manifold surface generation method for shapenet models. arXiv preprint arXiv:1802.01698, 2018. 5
+[20] Louis Hugues and Nicolas Bredeche. Simbad: an autonomous robot simulation package for education and research. In International Conference on Simulation of Adaptive Behavior, pages 831-842. Springer, 2006. 3
+[21] Seth Hutchinson, Gregory D Hager, and Peter I Corke. A tutorial on visual servo control. IEEE transactions on robotics and automation, 12(5):651-670, 1996. 8
+[22] Stephen James, Zicong Ma, David Rovick Arrojo, and Andrew J Davison. RLBench: The robot learning benchmark & learning environment. arXiv preprint arXiv:1909.12271, 2019.2,3
+[23] Arthur Juliani, Vincent-Pierre Berges, Esh Vckay, Yuan Gao, Hunter Henry, Marwan Mattar, and Danny Lange. Unity: A general platform for intelligent agents. arXiv preprint arXiv:1809.02627, 2018. 3
+[24] Nathan Koenig and Andrew Howard. Design and use paradigms for Gazebo, an open-source multi-robot simulator. In 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)(IEEE Cat. No. 04CH37566), volume 3, pages 2149–2154. IEEE, 2004. 1, 3, 4
+[25] Eric Kolve, Roozbeh Mottaghi, Winson Han, Eli VanderBilt, Luca Weihs, Alvaro Herrasti, Daniel Gordon, Yuke Zhu, Abhinav Gupta, and Ali Farhadi. AI2-THOR: An interactive 3D environment for visual AI. arXiv:1712.05474, 2017. 2, 3
+
+[26] Youngwoon Lee, Edward S Hu, Zhengyu Yang, Alex Yin, and Joseph J Lim. IKEA furniture assembly environment for long-horizon complex manipulation tasks. arXiv preprint arXiv:1911.07246, 2019. 2
+[27] Sergey Levine, Peter Pastor, Alex Krizhevsky, Julian Ibarz, and Deirdre Quillen. Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection. The International Journal of Robotics Research, 37(4-5):421-436, 2018. 1
+[28] Michael Lutter, Christian Ritter, and Jan Peters. Deep lagrangian networks: Using physics as model prior for deep learning. arXiv preprint arXiv:1907.04490, 2019. 3
+[29] Khaled Mamou, E Lengyel, and Ed AK Peters. Volumetric hierarchical approximate convex decomposition. Game Engine Gems 3, pages 141-158, 2016. 5
+[30] Ajay Mandlekar, Yuke Zhu, Animesh Garg, Jonathan Booher, Max Spero, Albert Tung, Julian Gao, John Emmons, Anchit Gupta, Emre Orbay, Silvio Savarese, and Li Fei-Fei. ROBOTURK: A crowdsourcing platform for robotic skill learning through imitation. In 2nd Annual Conference on Robot Learning, CoRL 2018, Zürich, Switzerland, 29-31 October 2018, Proceedings, volume 87 of Proceedings of Machine Learning Research, pages 879-893. PMLR, 2018. 1
+[31] Roberto Martín-Martín, Clemens Eppner, and Oliver Brock. The RBO dataset of articulated objects and interactions. The International Journal of Robotics Research, 38(9):1013-1019, 2019. 3
+[32] Johannes Meyer, Alexander Sendobry, Stefan Kohlbrecher, Uwe Klingauf, and Oskar Von Stryk. Comprehensive simulation of quadrotor UAVs using ROS and Gazebo. In International conference on simulation, modeling, and programming for autonomous robots, pages 400-411. Springer, 2012. 3
+[33] 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 The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 3, 5, 6, 7
+[34] Matthias Müller, Vincent Casser, Jean Lahoud, Neil Smith, and Bernard Ghanem. Sim4CV: A photo-realistic simulator for computer vision applications. International Journal of Computer Vision, 126(9):902-919, 2018. 2, 3
+[35] Adithyavairavan Murali, Tao Chen, Kalyan Vasudev Alwala, Dhiraj Gandhi, Lerrel Pinto, Saurabh Gupta, and Abhinav Gupta. PyRobot: An open-source robotics framework for research and benchmarking. arXiv preprint arXiv:1906.08236, 2019. 1
+[36] Nvidia. PhysX physics engine. https://www.geforce.com/hardware/technology/physx. 1, 3
+[37] Steven G Parker, James Bigler, Andreas Dietrich, Heiko Friedrich, Jared Hoberock, David Luebke, David McAllister, Morgan McGuire, Keith Morley, Austin Robison, and Martin Stich. OptiX: a general purpose ray tracing engine. In ACM transactions on graphics (tog), volume 29, page 66. ACM, 2010. 5
+
+[38] Xavier Puig, Kevin Ra, Marko Boben, Jiaman Li, Tingwu Wang, Sanja Fidler, and Antonio Torralba. VirtualHome: Simulating household activities via programs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
+[39] 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. 6
+[40] Yuzhe Qin, Rui Chen, Hao Zhu, Meng Song, Jing Xu, and Hao Su. S4G: Amodal single-view single-shot SE (3) grasp detection in cluttered scenes. arXiv preprint arXiv:1910.14218, 2019. 1
+[41] Morgan Quigley, Ken Conley, Brian Gerkey, Josh Faust, Tully Foote, Jeremy Leibs, Rob Wheeler, and Andrew Y Ng. ROS: an open-source robot operating system. In ICRA workshop on open source software, volume 3, page 5. Kobe, Japan, 2009. 4
+[42] Eric Rohmer, Surya PN Singh, and Marc Freese. V-REP: A versatile and scalable robot simulation framework. In 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 1321-1326. IEEE, 2013. 1, 3
+[43] Manolis Savva, Angel X. Chang, Alexey Dosovitskiy, Thomas Funkhouser, and Vladlen Koltun. MINOS: Multimodal indoor simulator for navigation in complex environments. arXiv:1712.03931, 2017. 1, 2
+[44] Manolis Savva, Abhishek Kadian, Oleksandr Maksymets, Yili Zhao, Erik Wijmans, Bhavana Jain, Julian Straub, Jia Liu, Vladlen Koltun, Jitendra Malik, Devi Parikh, and Dhruv Batra. Habitat: A Platform for Embodied AI Research. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2019. 1, 2
+[45] Connor Schenck and Dieter Fox. Spnets: Differentiable fluid dynamics for deep neural networks. arXiv preprint arXiv:1806.06094, 2018. 1
+[46] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 3
+[47] Yuhang Song, Jianyi Wang, Thomas Lukasiewicz, Zhenghua Xu, Mai Xu, Zihan Ding, and Lianlong Wu. Arena: A general evaluation platform and building toolkit for multiagent intelligence. arXiv preprint arXiv:1905.08085, 2019.3
+[48] Julian Straub, Thomas Whelan, Lingni Ma, Yufan Chen, Erik Wijmans, Simon Green, Jakob J. Engel, Raul Mur-Artal, Carl Ren, Shobhit Verma, Anton Clarkson, Mingfei Yan, Brian Budge, Yajie Yan, Xiaqing Pan, June Yon, Yuyang Zou, Kimberly Leon, Nigel Carter, Jesus Briales, Tyler Gillingham, Elias Mueggler, Luis Pesqueira, Manolis Savva, Dhruv Batra, Hauke M. Strasdat, Renzo De Nardi, Michael Goesele, Steven Lovegrove, and Richard Newcombe. The Replica dataset: A digital replica of indoor spaces. arXiv preprint arXiv:1906.05797, 2019. 3
+[49] Yuval Tassa, Yotam Doron, Alistair Muldal, Tom Erez, Yazhe Li, Diego de Las Casas, David Budden, Abbas Abdelmaleki, Josh Merel, Andrew Lefrancq, Timothy Lillicrap,
+
+and Martin Riedmiller. DeepMind control suite. Technical report, DeepMind, Jan. 2018. 3
+[50] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5026-5033. IEEE, 2012. 1
+[51] Yusuke Urakami, Alec Hodgkinson, Casey Carlin, Randall Leu, Luca Rigazio, and Pieter Abbeel. DoorGym: A scalable door opening environment and baseline agent. arXiv preprint arXiv:1908.01887, 2019. 3
+[52] Bruce Walter, Stephen R Marschner, Hongsong Li, and Kenneth E Torrance. Microfacet models for refraction through rough surfaces. In Proceedings of the 18th Eurographics conference on Rendering Techniques, pages 195-206. Eurographics Association, 2007. 5
+[53] Xiaogang Wang, Bin Zhou, Yahao Shi, Xiaowu Chen, Qinping Zhao, and Kai Xu. Shape2Motion: Joint analysis of motion parts and attributes from 3D shapes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8876-8884, 2019. 3
+[54] Yi Zhang Siyuan Qiao Zihao Xiao Tae Soo Kim Yizhou Wang Alan Yuille Weichao Qiu, Fangwei Zhong. UnrealCV: Virtual worlds for computer vision. ACM Multimedia Open Source Software Competition, 2017. 2, 3
+[55] Lawrence B Wolff, Shree K Nayar, and Michael Oren. Improved diffuse reflection models for computer vision. International Journal of Computer Vision, 30(1):55-71, 1998. 5
+[56] Yi Wu, Yuxin Wu, Georgia Gkioxari, and Yuandong Tian. Building generalizable agents with a realistic and rich 3D environment. arXiv preprint arXiv:1801.02209, 2018. 1, 2
+[57] Fei Xia, William B Shen, Chengshu Li, Priya Kasimbeg, Micael Tchapmi, Alexander Toshev, Roberto Martín-Martín, and Silvio Savarese. Interactive Gibson: A benchmark for interactive navigation in cluttered environments. arXiv preprint arXiv:1910.14442, 2019. 2
+[58] Fei Xia, Amir R Zamir, Zhiyang He, Alexander Sax, Jitendra Malik, and Silvio Savarese. Gibson Env: Real-world perception for embodied agents. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9068-9079, 2018. 1, 2, 3
+[59] Claudia Yan, Dipendra Misra, Andrew Bennnett, Aaron Walsman, Yonatan Bisk, and Yoav Artzi. CHALET: Cornell house agent learning environment. arXiv:1801.07357, 2018. 2
+[60] Zihao Yan, Ruizhen Hu, Xingguang Yan, Luanmin Chen, Oliver van Kaick, Hao Zhang, and Hui Huang. RPM-Net: recurrent prediction of motion and parts from point cloud. ACM Trans. on Graphics (Proc. SIGGRAPH Asia), 2019. 3
+[61] Jianwei Yang, Zhile Ren, Mingze Xu, Xinlei Chen, David J Crandall, Devi Parikh, and Dhruv Batra. Embodied amodal recognition: Learning to move to perceive objects. In Proceedings of the IEEE International Conference on Computer Vision, pages 2040-2050, 2019. 1
+[62] Andy Zeng, Shuran Song, Johnny Lee, Alberto Rodriguez, and Thomas Funkhouser. TossingBot: Learning to throw arbitrary objects with residual physics. arXiv preprint arXiv:1903.11239, 2019. 3
\ No newline at end of file
diff --git a/sapienasimulatedpartbasedinteractiveenvironment/images.zip b/sapienasimulatedpartbasedinteractiveenvironment/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f2161618e57a2a5f8c2e6091a7b6b1229171ae48
--- /dev/null
+++ b/sapienasimulatedpartbasedinteractiveenvironment/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2fcd1c581471c18ad2a8d66cf38a639c2a983f5e5c1f1922ce6f588f5d26abab
+size 503016
diff --git a/sapienasimulatedpartbasedinteractiveenvironment/layout.json b/sapienasimulatedpartbasedinteractiveenvironment/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ff24659b616afded52642cd943ab344a9d4bfc30
--- /dev/null
+++ b/sapienasimulatedpartbasedinteractiveenvironment/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93b350b375b0bb5d91f8d8797881d4453c15bfb1b0bb3569756fe33c91f93fd4
+size 317497
diff --git a/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_content_list.json b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..993f98c0bff98e0d4af4c122ad3b206de0eb4123
--- /dev/null
+++ b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cad7a75a6576321712a6ad4299dea2808ef42e5f4ef7423313131c5688e23ce5
+size 74050
diff --git a/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_model.json b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..506f364185ef27f88a1e8525035c82258a3ced9e
--- /dev/null
+++ b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2277c83e446f4df81713b25248ec2412ba67eaff57345fd83244b3e17cdfc703
+size 92624
diff --git a/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_origin.pdf b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..96ed207deb2a10e3589435ea4a5d8cf2c38f6040
--- /dev/null
+++ b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/4c576d67-2ef6-491b-bf0a-67a018881893_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6343093ba531d11c603b09a8cb207ac892fb6153f4089bc8854fd1517e157260
+size 541444
diff --git a/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/full.md b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0cd69d71cdd8a85893c955507d8b415394ed0c92
--- /dev/null
+++ b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/full.md
@@ -0,0 +1,303 @@
+# Satellite Image Time Series Classification with Pixel-Set Encoders and Temporal Self-Attention
+
+V. Sainte Fare Garnot1, L. Landrieu1, S. Giordano1, N. Chehata1,2
+
+1 LASTIG, Univ Gustave Eiffel, ENSG, IGN, F-94160 Saint-Mande, France
+2 EA G&E Bordeaux INP, Université Bordeaux Montaigne, France
+
+# Abstract
+
+Satellite image time series, bolstered by their growing availability, are at the forefront of an extensive effort towards automated Earth monitoring by international institutions. In particular, large-scale control of agricultural parcels is an issue of major political and economic importance. In this regard, hybrid convolutional-recurrent neural architectures have shown promising results for the automated classification of satellite image time series.
+
+We propose an alternative approach in which the convolutional layers are advantageously replaced with encoders operating on unordered sets of pixels to exploit the typically coarse resolution of publicly available satellite images. We also propose to extract temporal features using a bespoke neural architecture based on self-attention instead of recurrent networks. We demonstrate experimentally that our method not only outperforms previous state-of-the-art approaches in terms of precision, but also significantly decreases processing time and memory requirements. Lastly, we release a large open-access annotated dataset as a benchmark for future work on satellite image time series.
+
+# 1. Introduction
+
+The rising availability of high quality satellite data by both state [43, 10] and private actors [37] opens up numerous high-impact applications for machine learning methods. Among these, crop type classification is a major challenge for agricultural and environmental policy makers. In the European Union (EU), yearly crop maps are needed to grant the Common Agricultural Policy subsidies, an endowment of over 50 billion euros each year [1]. Currently, European farmers declare the cultivated species manually on a yearly basis. The EU's Joint Research Center has thus called for the development of efficient tools to achieve automated monitoring [2]. This push to automation is motivated in part by the launch of the Sentinel-2 satellite—which became fully operational in mid-2017—by the Eu
+
+ropean Space Agency [10], and whose settings are particularly valuable for crop classification. Indeed, its high spectral resolution (13 bands) and short revisit time of 5 days are well-suited to analysing crop phenology, i.e. the cyclical evolution of vegetation [40]. Additionally, the farmers' yearly manual declarations provide a considerable amount of annotated data (10 million parcels labelled each year in France alone) to train learning algorithms. Such models would have a wide array of applications beyond crop monitoring, for both public and private entities.
+
+Practitioners mainly rely on traditional methods such as Random Forest (RF) and Support Vector Machine (SVM), which operate on handcrafted features for automated crop classification [15, 47]. Recently, the gradual adoption of deep learning methods such as Convolutional Neural Networks (CNN) and Recurrent Neural Networks (RNN) for learning spatial and temporal attributes has brought significant improvements in classification performance. More specifically, hybrid neural architectures combining convolutions and recurrent units in a single architecture are the current state-of-the-art for crop type classification [31, 34].
+
+In this paper, we argue that such hybrid recurrent-convolutional architectures fail to adapt to some key characteristics of the problem under consideration.
+
+Spatial Encoding of Parcels: Sensors typically used for crop classification, such as the Sentinel-2 satellites, have a coarser spatial resolution (10m per pixel) than the typical agricultural textural information such as furrows or tree rows. However, CNNs rely heavily on texture to extract spatial features [12]. Given this limitation, we propose to view medium-resolution images of agricultural parcels as unordered sets of pixels. Indeed, recent advances in 3D point cloud processing have spurred the development of powerful encoders for data comprised of sets of unordered elements [29, 45]. We show in this paper that set-based encoders can successfully extract learned statistics of the distribution of spectra across the spatial extent of the parcels. Furthermore, we show that this approach handles the highly-variable size of parcels in a more efficient way than CNNs.
+
+
+Figure 1: Example of Sentinel-2 time series (shown: RGB bands, $10\mathrm{m}$ per pixel) for two parcels of the Winter cereal and Spring cereal classes. The dots on the horizontal axis represent the unevenly distributed acquisition dates over the period of interest. Note the importance of the temporal evolution of the parcels to discriminate between the classes.
+
+Temporal Encoding of Satellite Time Series: Earlier work in crop classification has shown the importance of the temporal dimension when classifying crop types [34]. While RNNs have been widely used to analyse temporal sequences, recent work in Natural Language Processing (NLP) has introduced a promising new approach based on attention mechanisms [39]. The improved parallelism brought by this approach is particularly valuable for automated crop monitoring, as its typical scale spans entire continents: one year of Sentinel-2 observations amounts to 25Tb of data for agricultural areas in the EU. Therefore, we propose an adapted attention-based approach for the classification of time series.
+
+The key contributions of this paper are as follows:
+
+- Inspired by Qi et al. [29], we introduce the pixel-set encoder as an efficient alternative to convolutional neural networks for medium-resolution satellite images.
+- We adapted the work of Vaswani et al. [39] to an end-to-end, sequence-to-embedding setting for time series.
+- We establish a new state-of-the-art for the task of large-scale agricultural parcel classification. Moreover, our method not only improves the classification precision by a significant margin, but simultaneously boasts a acceleration of over 4 times and a memory imprint reduced by over $70\%$ compared to the best-performing approaches in the literature.
+- We release the first open-access dataset of Sentinel-2 images for crop classification with ground truth labels.
+
+# 2. Related Work
+
+The problem of satellite image time series classification can be addressed at pixel level or object level. Pixel-based
+
+approaches do not require a priori knowledge of the borders of parcels, but cannot leverage the spatial homogeneity of class labels within the object's extent. Conversely, in the case of crop classification, object-based approaches can leverage the parcels' shape to extract helpful spatial information for achieving better classifications [9].
+
+Traditional Machine Learning: Until recently, the common approach for crop classification has been to use traditional discriminative models with handcrafted features [41, 15, 42]. For instance, the Normalized Difference Vegetation Index (NDVI) combining the red and near-infrared spectral bands has been widely used as it relates to crop photosynthetic activity [38]. Certain work also includes phenological features derived from the study of the NDVI as well as external meteorological information [48]. Although robust and easily interpretable, such handcrafted indices do not compare favorably to end-to-end learned features.
+
+In such work, the prevalent approach to represent temporal evolution is to concatenate each date's spatial and spectral features. This is not well-suited to application over large geographical areas, in which the acquisition dates vary depending on the satellite orbit, and in which cloud cover and meteorological condition can be heterogeneous, resulting in sequences of variable length and temporal sampling. Consequently, other work oriented their efforts towards a better modeling of time using Hidden Markov Models [36], Conditional Random Fields [3], or Dynamic Time Warping [4].
+
+**Convolutional and Recurrent Approaches:** More recently, the successful advances in the deep learning literature have provided efficient tools for both spatial and temporal feature extraction. Although some work only uses these tools as feature extractors [26], or combine them with feature engineering [46], most current work follows the deep learning paradigm of end-to-end trainable architec
+
+tures. More specifically, Kussul et al. [20] proposed to use a Multi Layer Perceptron (MLP) on raw observation data instead of traditional RF of SVM. Further work sets out to leverage the spatial and temporal structures of time series of satellite images. CNNs [21] appeared to be a natural choice to address the spatial dimensions of the data [19, 32]. Similarly, Long-Short Term Memory (LSTM) networks [13] were successfully applied to model the temporal dimension of the data [30, 25], outperforming RF and SVM [14].
+
+Furthermore, Rußwurm et al. [31] first proposed to use hybrid recurrent convolutional approach by applying the ConvLSTM architecture [44] to parcel classification. This work yielded state-of-the-art results and also showed that ConvLSTMs are able to learn to detect and ignore cloud obstruction. A similar approach was successfully used for automated change detection from Sentinel-2 data as well [27]. Finally, Garnot et al. showed in [34] that higher classification performance can be obtained by implementing such a hybrid model but with two dedicated modules for spatial and temporal feature extraction respectively: the series of images is first embedded by a shared CNN and the resulting embedding sequence is fed to a Gate Recurrent Unit (GRU) [8]. The use of a GRU is motivated by the smaller number of parameters required to achieve similar performance as LSTM, as corroborated in [32]. Additionally, Garnot et al. show that the relatively low spatial resolution of multi-temporal satellite images may question the relevance of CNNs since handcrafted descriptors of spectral distribution performed nearly as well as trainable spatial encoders when used in combination to the recurrent units. This is one of the issues we propose to address in the present study.
+
+Attention-Based Approach: Following the adoption of self-attention in the NLP literature as an efficient alternative to RNNs, RuBwurm et al. proposed in [33] to apply the Transformer architecture [39]—a self-attention based network—to pixel-based classification. Their extensive experiments show that the Transformer yields classification performance that is on par with RNN-based models and present the same robustness to cloud-obstructed observations. Likewise, we propose to extend self-attention mechanisms to end-to-end sequence-to-embedding learning on images for object-level classification.
+
+Purely Convolutional Approach: Multiple papers propose to address the temporal dimension with convolutions. Ji et al. present in [17] a spatio-temporal 3D-CNN for parcel-based classification, and spectro-temporal convolutions are found to outperform LSTMs for pixel-based segmentation on temporal profiles in [28], and outperform an MLP in [19]. Similar results are found in [49], where temporal convolutions yield better results than an LSTM network for classification based on NDVI temporal profiles. In addition, temporal convolutions have significantly lower
+
+processing times than RNNs. Yet, the ability to account for long-term dependencies requires deeper architectures. Furthermore, the fixed architecture of temporal CNN prevents the same network from being used on sequences of different lengths or with different acquisition dates.
+
+Lastly, 2D and 3D convolutions have been extensively used in video analysis for object segmentation [5, 35] or action recognition [6, 11]. However, specificities of satellite time series such as their different time-scale and resolution prevents the direct application of such networks.
+
+# 3. Methods
+
+In this section, we present the different components of our proposed architecture for encoding time series of medium-resolution multi-spectral images. We denote the observations of a given parcel by a spatio-spectro-temporal tensor $[x^{(0)},\dots ,x^{(T)}]_{t = 1}^{T}$ of size $T\times C\times H\times W$ with $T$ the number of temporal observations, $C$ the number of spectral channels, and $H$ and $W$ the dimension in pixels of a tight bounding box containing the spatial extent of the parcel. All values are set to 0 outside the parcel's borders, as shown in Figure 1.
+
+# 3.1. Spatial Encoder
+
+In recent years, CNNs have become the established approach to extract spatial features from images. However, our analysis suggests that convolutions may not be well-suited for the analysis of medium-resolution satellite images of agricultural parcels. Indeed, as mentioned above, the typical spatial resolution of satellites with high revisit frequency struggles to capture textural information. Second, efficiently training CNNs requires organizing the data into batches of images of identical dimensions. The irregular size of the parcels makes this process very memory intensive. Indeed, to limit textural information loss for large parcels, this amounts to oversampling most smaller parcels several times over.
+
+To circumvent both these issues, we propose an alternative architecture called Pixel-Set Encoder (PSE) and inspired by the point-set encoder PointNet [29] and the DeepSet architecture [45] commonly used for 3D point cloud processing. The motivation behind this design is that, instead of textural information, the network computes learned statistical descriptors of the spectral distribution of the parcel's observations.
+
+The network proceeds as follows to embed an input observation $x^{(t)}$ :
+
+i) A set $S \subset [1, \dots, N]$ of $S$ pixels is randomly drawn from the $N$ pixels within the parcel, as described in Equation 1. When the total number of pixels in the image is smaller than $S$ , an arbitrary pixel is repeated
+
+
+Figure 2: Schematic view of our spatio-temporal encoder. Variables in bold are tensors concatenated along the temporal dimension, e.g. $\mathbf{e} = [e^{(0)},\dots ,e^{(T)}]$ .
+
+to match this fixed size. The same set $\mathcal{S}$ is used for sampling all $T$ acquisitions of a given parcel.
+
+ii) Each sampled pixel $s$ is processed by a shared multilayer perceptron $\mathrm{MLP}_1$ , as seen in Equation 2, composed of a succession of fully-connected layers, batch-norms [16], and Rectified Linear Units [24].
+iii) The resulting set of values is pooled along the pixel axis—of dimension $S$ —to obtain a vector capturing the statistics of the whole parcel and which is invariant by permutation of the pixels' indices. We concatenate to this learned feature a vector of pre-computed geometric features $f$ : perimeter, pixel count $N$ , cover ratio $(N$ divided by the number of pixels in the bounding box) and the ratio between perimeter and surface of the parcel.
+iv) This vector is processed by another perceptron $\mathrm{MLP}_2$ , as shown in Equation 3, to yield $e^{(t)}$ the parcel's spatio-spectral embedding at time $t$ .
+
+The PSE architecture is represented in Figure 2, and can be summarized by the following equations:
+
+$$
+\mathcal {S} = \text {s a m p l e} (S, N) \tag {1}
+$$
+
+$$
+\hat {e} _ {s} ^ {(t)} = \operatorname {M L P} _ {1} \left(x _ {s} ^ {(t)}\right), \forall s \in \mathcal {S} \tag {2}
+$$
+
+$$
+e ^ {(t)} = \operatorname {M L P} _ {2} \left(\left[ \text {p o o l i n g} \left(\left\{\hat {e} _ {s} ^ {(t)} \right\} _ {s \in \mathcal {S}}\right), f \right]\right). \tag {3}
+$$
+
+Among possible pooling operations, we had the best results for the concatenation of the mean and the standard deviation across the sampled pixel dimension $S$ . For parcels smaller than $S$ , repeated pixels should be removed before pooling to obtain unbiased estimates.
+
+Although only a limited amount of information per parcel is used by this encoder, the sampling being different at each training step ensures the learning of robust embeddings exploiting all the available information.
+
+# 3.2. Temporal Attention Encoder
+
+RNNs have proven efficient for encoding sequential information [23]. However, since RNNs process the elements of the sequence successively, they prevent parallelization and incur long training times. In [39], Vaswani et al. introduce the Transformer architecture, an attention-based network achieving equal or better performance than RNNs on text translation tasks, while being completely parallelizable and thus faster. We propose to adapt their ideas to the encoding of satellite image time series.
+
+Transformer Network: In the original Transformer model a query-key-value triplet $\left(q^{(t)},k^{(t)},v^{(t)}\right)$ is computed simultaneously for each element of the input sequence by three fully-connected layers. For a given element of a sequence, the key $k^{(t)}$ conveys information about the nature of its content, while the value $v^{(t)}$ encodes the content itself. The output of a given element is defined as the sum of the values of previous elements weighted by an attention mask. This mask is defined as the compatibility (dot product) of the keys of the previous elements with the query $q^{(t)}$ , re-scaled through a modified softmax layer. In other words, each element indicates which kind of information it needs through its query, and what sort of information it contains through its key.
+
+Since the computation of the triplets $\left(q^{(t)},k^{(t)},v^{(t)}\right)$ and their multiplications can be performed in parallel, the Transformer takes full advantage of modern GPU architecture and yields a significant speed increase compared to recurrent architectures. This procedure can be computed several
+
+times in parallel with different set of independent parameters, or heads. This approach, called multi-head attention, allows for the specialization of different set of query-key compatibility.
+
+Positional Encoding: In their paper on text translation, Vaswani et al. add order information to elements of the input sequence by adding a positional encoding tensor to each element. Equation 4 describes this positional encoding of the observation $t$ , with $d_{e}$ the dimension of the input, and $i$ the coordinates of the positional encoding. Since our considered sequences are typically shorter than the ones considered in NLP, we chose $\tau = 1000$ instead of 10000. Additionally, $\mathrm{day}(t)$ is the number of days since the first observation for observation $t$ instead of its index. This helps to account for inconsistent temporal sampling (see Figure 1).
+
+$$
+[ p ^ {(t)} ] _ {i = 1} ^ {d _ {e}} = \sin \left(\mathrm {d a y} (t) \backslash \tau^ {\frac {2 i}{d _ {e}}} + \frac {\pi}{2} \bmod (i, 2)\right) \tag {4}
+$$
+
+End-to-End Encoding: The original Transformer network takes pretrained word embeddings as inputs. In our setting however, the parameters of the network producing the inputs are learnt simultaneously to the attention parameters. Therefore, we propose that each head only computes key-query pairs from the spatial embeddings (5) since these embeddings can directly serve as values: $v^{(t)} = e^{(t)} + p^{(t)}$ . This removes needless computations, and avoids a potential information bottleneck when computing the values.
+
+Sequence-to-Embedding Attention: While the original Transformer produces an output for each element of a sequence, our goal is to encode an entire time series into a single embedding. Consequently, we only retain the encoder part of the Transformer and define a single master query $\hat{q}_h$ for each head $h$ . Such a query, in combination with the keys of the elements of the sequence, determines which dates contain the most useful information. A first approach would be to select the query of a given date, such as the last one. However, the selected element of the sequence may not contain enough information to produce a meaningful query. Instead, we propose to construct the master query as a temporal average of the queries of all dates and processed by a single fully-connected layer (6). As shown in Equation 7, this query is then multiplied with the keys of all elements of the sequence to determine a single attention mask $a^{(h)} \in [0,1]^T$ , in turn weighting the input sequence of embeddings (8).
+
+Multi-Head Self-Attention: We concatenate the output $o_h$ of each head $h$ for the $H$ different heads and process the resulting tensor with $\mathrm{MLP}_3$ , to obtain the final output $\hat{o}$ of the Temporal Attention Encoder (TAE), as shown in Equation 9. Note that unlike the Transformer network, we directly use $\hat{o}$ as the spatio-temporal embedding instead
+
+
+
+
+(a) Spring Cereal
+(b) Summer Cereal
+Figure 3: Average attention masks of the TAE heads, obtained from 128 samples of spring (a), and summer (b) cereal parcels.
+
+of using residual connections. We show an illustration of head specialization on Figure 3 plotting the average attention masks for two classes of cereal parcels, after training a TAE on the dataset described in Section 4. We can see that each of the four heads specializes on a specific portion of the time series. Additionally, the dependency of the attention mask to the input is especially clear for head 4 which focuses on late spring for Spring Cereal samples and late summer for Summer Cereal samples.
+
+Temporal Attention Encoder: For each head $h$ , we denote by $\mathrm{FC}_1^{(h)}$ the fully-connected layer generating the key-query pairs, $\mathrm{FC}_2^{(h)}$ the fully-connected layer yielding the master query, and $d_k$ the shared dimensions of keys and queries. Our attention mechanism can be summarized by the following equations for all $t \in [1,\dots,T]$ and $h \in [1,\dots,H]$ :
+
+$$
+k _ {h} ^ {(t)}, q _ {h} ^ {(t)} = \mathrm {F C} _ {1} ^ {(h)} \left(e ^ {(t)} + p ^ {(t)}\right) \tag {5}
+$$
+
+$$
+\hat {q} _ {h} = \mathrm {F C} _ {2} ^ {(h)} \left(\operatorname {m e a n} \left(\left\{q _ {h} ^ {(t)} \right\} _ {t = 1} ^ {T}\right)\right) \tag {6}
+$$
+
+$$
+a _ {h} = \operatorname {s o f t m a x} \left(\frac {1}{\sqrt {d _ {k}}} \left[ \hat {q} _ {h} \cdot k _ {h} ^ {(t)} \right] _ {t = 1} ^ {T}\right) \tag {7}
+$$
+
+$$
+o _ {h} = \sum_ {t = 1} ^ {T} a _ {h} [ t ] \left(e ^ {(t)} + p ^ {(t)}\right) \tag {8}
+$$
+
+$$
+\hat {o} = \operatorname {M L P} _ {3} ([ o _ {1}, \dots , o _ {H} ]). \tag {9}
+$$
+
+# 3.3. Spatio-Temporal Classifier
+
+Our spatio-temporal classifier architecture combines the two components presented in the previous sections: all input images of the time series are embedded in parallel by
+
+| Modules | Hyperparameters | Number of parameters |
| PSE | | 19936 |
| S | 64 | |
| MLP1 | 10 → 32 → 64 | |
| MLP2 | 132 → 128 | |
| TAE | | 136192 |
| de, dk, H | 128, 32, 4 | |
| FC1 | 128 → (32 × 2) | |
| FC2 | 32 → 32 | |
| MLP3 | 512 → 128 → 128 | |
| Decoder | | 11188 |
| MLP4 | 128 → 64 → 32 → 20 | |
| Total | | 164116 |
+
+Table 1: Configuration of our model chosen for the numerical experiments. The dimension of each successive feature space is given for MLPs and fully connected layers.
+
+a shared PSE, and the resulting sequence of embeddings is processed by the temporal encoder, as illustrated in Figure 2. Finally, the resulting embedding is processed by an MLP decoder to produce class logits: $y = \mathrm{MLP}_4(\hat{o})$ .
+
+# 3.4. Implementation details
+
+All the architectures presented here are implemented in PyTorch, and released on GitHub upon publication1. We trained all models on a machine with a single GPU (Nvidia 1080Ti) and an 8-core Intel i7 CPU for data loading from an SSD hard drive. The exact configuration of our network is displayed in Table 1. We chose the hyperparameters of each architecture presented in the numerical experiments such that they all have approximately 160k trainable parameters (see appendix). We use the Adam optimizer [18] with its default values $(lr = 10^{-3}$ , $\beta = (0.9, 0.999)$ ) and a batch size of 128 parcels. We train the models with focal loss [22] ( $\gamma = 1$ ) and implement a 5-fold cross-validation scheme: for each fold the dataset is split into train, validation, and test set with a 3:1:1 ratio. The networks are trained for 100 epochs, which is sufficient for all models to achieve convergence. We use the validation step to select the best-performing epoch, and evaluate it on the test set. For augmentation purpose, we add a random Gaussian noise to $x^{(t)}$ with standard deviation $10^{-2}$ and clipped to $5 \cdot 10^{-2}$ on the values of the pixels. Lastly, the image time series are normalized channel-wise and for each date individually.
+
+# 4. Numerical Experiments
+
+# 4.1. Dataset
+
+We evaluate our models using Sentinel-2 multi-spectral image sequences in top-of-canopy reflectance. We leave out
+
+the atmospheric bands (bands 1, 9, and 10), keeping $C = 10$ spectral bands. The six $20\mathrm{m}$ -resolution bands are resampled to the maximum spatial resolution of $10\mathrm{m}$ .
+
+The area of interest (AOI) corresponds to a single tile of the Sentinel-2 tiling grid (T31TFM) in southern France. This tile provides a challenging use case with a high diversity of crop types and different terrain conditions. The AOI spans a surface of $12100\mathrm{km}^2$ and contains 191703 individual parcels, all observed on 24 dates from January to October 2017. The values of cloudy pixels are linearly interpolated from the first previous and next available pixel using Orfeo Toolbox [7].
+
+We retrieve the geo-referenced polygon and class label of each parcel from the French Land Parcel Identification System records2. We crop the satellite images using this polygon to constitute the image time series.
+
+Data Preparation: In order to evaluate both ours and convolution-based methods, we organize the parcels into two different formats: patches and pixel sets.
+
+In the patch format, we resize each parcel into a tensor of size $T \times C \times 32 \times 32$ by interpolating each spectral channel and temporal acquisition independently into patches of fixed size $32 \times 32$ . We use nearest neighbor interpolation, and both the horizontal and vertical axes are rescaled so that the overall shape of the parcel may be altered. We use zero-padding outside the extent of the parcel (see Figure 1). This same size of 32 pixels was used in [34], while a larger $48 \times 48$ patch size was used in [31], albeit for a pixel-wise classification task.
+
+For the pixel-set format, the pixels of each parcel are stored in arbitrary order into a tensor of size $T \times C \times N$ , with $N$ the total number of pixels in a given parcel. Note that this format neither lose nor create information, regardless of parcel size. Hence, this setup saves up to 70% disk space compared to the patch format (28.6Gb vs. 98.1Gb). Note that the geometric features $f$ must be computed and saved before preparing the dataset, as all spatial structure is henceforth lost.
+
+The classification labels are defined with respect to a 20 class nomenclature designed by the subsidy allocation authority of France. The dataset is highly imbalanced: four classes cover $90\%$ of the samples (see Figure 3 in the appendix). This motivated the use of the focal loss to train our models.
+
+Both datasets will be released upon publication1. To the best of our knowledge, no benchmark dataset currently exists for object-based agricultural parcel classification. Our datasets are a first step towards more reproducible and comparable methodological work in this field.
+
+ | OA | mIoU | Training (s/epoch) | Inference (s/dataset) | Disk Size Gb |
| PSE+TAE (ours) | 94.2 ±0.1 | 50.9 ±0.8 | 158 | 149 | 28.6 / 12.31 |
| CNN+GRU [34] | 93.8 ±0.3 | 48.1 ±0.6 | 656 | 633 | 98.1 |
| CNN+TempCNN [28] | 93.3 ±0.2 | 47.5 ±1.0 | 635 | 608 | 98.1 |
| Transformer [33] | 92.2 ±0.3 | 42.8 ±1.1 | 13 | 420 + 43 | 28.6 / 0.224 |
| ConvLSTM [31] | 92.5 ±0.5 | 42.1 ±1.2 | 1283 | 666 | 98.1 |
| Random Forest [3] | 91.6 ±1.7 | 32.5 ±1.4 | 2932 | 420 + 43 | 28.6 / 0.444 |
+
+Table 2: Classification metrics and time benchmark of the different architectures. The inter-fold standard deviation of the OA and mIoU is given in smaller font. Additionally, the total time for one epoch of training, and for inference on the complete dataset are given on the third and fourth columns. ${}^{1}$ disk space required for training and pure inference, ${}^{2}$ time for the entire training step, ${}^{3}$ preprocessing and inference time, ${}^{4}$ dataset before and after preprocessing.
+
+# 4.2. Comparison with State-of-the-Art Methods
+
+Competing Methods: We compare our approach to recent algorithms operating on similar datasets, which we have re-implemented. The different hyperparameters chosen for each model are shown in the appendix. All share the same decoding layer configuration $\mathrm{MLP}_4$ .
+
+CNN+GRU In [34], Garnot et al. propose a similar approach to ours, but with CNNs instead of PSE, and GRUs instead of our proposed temporal encoder. The last hidden state of the recurrent unit is used as input to $\mathrm{MLP}_4$ for classification.
+
+CNN+TempCNN In [28], Pelletier et al. propose to use one-dimensional temporal convolution to address the sequential nature of the observations. While their approach is applied on a per-pixel classification task and therefore not comparable, we have implemented a variation of CNN+GRU in which the GRUs are replaced with one-dimensional convolutions as the closest translation of their ideas.
+
+Transformer In [33], RuBwurm et al. perform object-based classification with the encoder part of the Transformer network. They do not use a spatial encoder and compute average values of the different spectral bands over each parcel. Furthermore they produce a single embedding for the whole sequence with a global maximum pooling through the temporal dimension of the output sequence. We re-implemented the same pipeline and simply modified the hyperparameters to match the 150k parameters constraint.
+
+ConvLSTM In [31], RuBwurm et al. process the time series of patch images with a ConvLSTM network [44] for pixel-based classification. We adapt the architecture to the parcel-based setting by using the spatially-averaged last hidden state of the ConvLSTM cell to be processed by $\mathrm{MLP}_4$ .
+
+Random Forest Lastly, we use a Random Forest classifier with 100 trees as a non-deep learning baseline. The classifier operates on handcrafted features comprised of the mean and standard deviation of each band within the parcel, and concatenated along the temporal axis, as described by [3].
+
+We present the results of our experiments in Table 2. Our proposed architecture outperforms the other deep learning models in Overall Accuracy (OA) by 0.4 points, and mean per-class Intersect over Union (mIoU) by 3 to 9 points. It also provides a four-fold speed up over convolution-based methods, and a decrease in disk usage of over $70\%$ for training, and close to $90\%$ when considering the inference task alone (i.e. when only $S$ pixels per parcels are kept). This speed-up is due both to improved loading time as the pixel set dataset is smaller, but also inference and backpropagation time, as detailed in Table 2 of the appendix. While the temporal convolutions of TempCNN are faster to train, they yield worse performance and suffer from the limitations discussed in section 2. The Transformer method, which processes pre-computed parcel means, is also faster to train, but only achieves a $42.8\mathrm{mIoU}$ score.
+
+Beyond its poor precision, the RF classifier has a significant speed and memory advantage. This can explain its persisting popularity among practitioners. However, our approach bridges in part this performance gap and provides much higher classification rates, making it a compelling strategy for large-scale object-based crop type mapping.
+
+# 4.3. Ablation Studies
+
+In order to independently assess the contribution of the spatial and temporal components of our proposed architecture, we present in Table 3 the results obtained when alternatively replacing the PSE by a CNN (CNN+TAE) or the TAE by a GRU (PSE+GRU).
+
+Contribution of the PSE: As seen in Table 3, the PSE accounts for an increase of 1.7 points of mIoU compared to the CNN-based model (CNN+TAE). This supports both the
+
+ | O.A. | mIoU |
| PSE+TAE (ours) | 94.2 | ±0.1 | 50.9 | ±0.8 |
| ˆq=q(T) | 94.2 | ±0.1 | 50.7 | ±0.5 |
| S=16 | 94.3 | ±0.2 | 50.5 | ±0.8 |
| ˆq=maxt q(t) | 94.2 | ±0.2 | 50.3 | ±0.7 |
| S=32 | 94.2 | ±0.1 | 50.1 | ±0.5 |
| No geometric features | 93.9 | ±0.1 | 50.0 | ±0.7 |
| PSE+Transformer+ˆq | 94.1 | ±0.2 | 49.5 | ±0.7 |
| CNN+TAE | 94.0 | ±0.1 | 49.2 | ±1.1 |
| MS+TAE | 93.7 | ±0.1 | 48.9 | ±0.9 |
| PSE+GRU+p | 93.6 | ±0.2 | 48.7 | ±0.3 |
| PSE+GRU | 93.6 | ±0.2 | 47.3 | ±0.3 |
| PSE+Transformer | 93.4 | ±0.2 | 46.6 | ±0.9 |
+
+Table 3: Ablation study of our different design choices, sorted by decreasing mIoU.
+
+hypothesis that CNNs are only partly relevant on medium-resolution images, and that considering the image as an unordered set of pixels is a valid alternative. Not only does this approach yield better classification performance, but it also circumvents the problem of image batching, which leads to faster data loading. Additionally, we train a TAE on pre-computed means and standard deviations of the spectral channels over the parcels (MS+TAE), which achieves a $48.9\mathrm{mIoU}$ score. We can thus conclude that the PSE learns statistical descriptors of the acquisitions' spectra which are more meaningful than simple means and variances or convolutional features.
+
+Design of the PSE: We show in Table 3, the performance of our architecture without geometric features $f$ . The resulting 0.9 point decrease in mIoU confirms that geometric information plays a role in the classification process. We note that, even without such features, our proposed approach outperforms the convolution-based model (CNN+TAE).
+
+We have tried replacing the handcrafted geometric features $f$ with a CNN operating on the binary mask of the parcel. However, the gains were minimal, and we removed this extra step for simplicity's sake.
+
+Lastly, we tried training our architecture with a reduced number of sampled pixels ( $S = 16$ , and $S = 32$ ). The model maintains a good performance with an mIoU over 50 points. This indicates that the decrease in processing time and memory could be further improved at the cost of a minor drop in precision.
+
+Contribution of the TAE: Replacing the temporal attention encoder with a GRU (PSE+GRU) decreases the performance by 3.6 points of mIoU (Table 3). The TAE not only produces a better classification but also trains faster thanks to parallelization. Unlike the comparison between Transformer and RNNs architectures in [33], our modified self-attention mechanism extracts more expressive features than the RNN-based approach.
+
+We also evaluate the influence of the positional encoding $p$ of the Transformer by adding $p$ to the input tensors of the GRU unit (PSE+GRU+p). This reduces the gap with our method to 2.2 points of mIoU. This shows that the improvement brought by the TAE is due to both its structure and the use of a positional encoding.
+
+Design of the TAE: In order to evaluate the benefits of our different contributions over the Transformer, we adapted the architecture presented in [33] to use a PSE network instead of spectral means for embedding parcels (PSE+Transformer), for a performance 4.3 points below our TAE. By replacing the proposed temporal max-pooling by our master query forming scheme (PSE+Transformer+q), we observed an increase of 2.9 points of mIoU. The remaining 1.4 mIoU points between this implementation and ours can thus be attributed to our direct use of inputs to compute the TAE's output instead of a smaller intermediary value tensor.
+
+Finally, we compare our mean-pooling strategy with max-pooling $(\hat{q} = \max_t q^{(t)})$ and computing the master query from the last element of the sequence $(\hat{q} = q^{(T)})$ . While the mean query approach yields the best performance, the last element of the sequence in our dataset produces a meaningful query as well. However, this may not be the case for other regions or acquisition years.
+
+# 5. Conclusion
+
+In this paper, we considered the problem of object-based classification from time series of satellite images. We proposed to view such images as unordered sets of pixels to reflect the typical coarseness of their spatial resolution, and introduced a fitting encoder. To exploit the temporal dimension of such series, we adapted the Transformer architecture [39] for embedding time-sequences. We introduced a master query forming strategy, and exploited that our network learns end-to-end to simplify some operations.
+
+Evaluated on our new open-access annotated benchmark of agricultural parcels, our method produces a better classification than all other re-implemented methods. Furthermore, our network is several times faster and more parsimonious in memory than other state-of-the-art methods such as convolutional-recurrent hybrid networks. We hope that by mitigating some of the limitations of deep learning methods such as processing time and memory requirement, our approach would accelerate their adoption in real-life, large-scale Earth observation applications.
+
+Our results suggest that attention-based models are an interesting venue to explore for analysing the temporal profiles of satellite time series, as well as other analogous vision tasks such as action recognition in videos. Likewise, set-based encoders are a promising and overlooked paradigm for working with the coarser resolutions of remote sensing applications.
+
+# References
+
+[1] The common agricultural policy at a glance, accessed nov. 2019. https://ec.europa.eu/info/food-farming-fiseries/ key-policies/common-agricultural-policy/cap-glance_en, 2017.
+[2] Concept note: Towards future copernicus service components in support to agriculture, accessed nov. 2019. https://www.copernicus.eu/sites/default/files/2018-10/AGRI_Conceptnote.pdf, 2018.
+[3] Simon Bailly, Sebastien Giordano, Loic Landrieu, and Nesrine Chehata. Crop-rotation structured classification using multi-source Sentinel images and lpis for crop type mapping. IGARSS, 2018.
+[4] Mariana Belgiu and Ovidiu Csillik. Sentinel-2 cropland mapping using pixel-based and object-based time-weighted dynamic time warping analysis. Remote Sensing of Environment, 2018.
+[5] Sergi Caelles, Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. One-shot video object segmentation. CVPR, 2017.
+[6] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. ICCV, 2017.
+[7] Emmanuel Christophe, Jordi Inglada, and Alain Giros. Orfeo toolbox: a complete solution for mapping from high resolution satellite images. ISPRS, 2008.
+[8] Junyoung Chung, Caglar Gulcehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. CoRR, 2014.
+[9] R Devadas, RJ Denham, and M Pringle. Support vector machine classification of object-based data for crop mapping, using multi-temporal landsat imagery. International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, 2012.
+[10] Matthias Drusch, Umberto Del Bello, Sébastien Carlier, Olivier Colin, Veronica Fernandez, Ferran Gascon, Bianca Hoersch, Claudia Isola, Paolo Laberinti, Philippe Martimort, et al. Sentinel-2: Esa's optical high-resolution mission for gmes operational services. Remote Sensing of Environment, 2012.
+[11] Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. CVPR, 2016.
+[12] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. *ICLR*, 2019.
+[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 1997.
+[14] Dino Iencó, Raffaele Gaetano, Claire Dupaquier, and Pierre Maurel. Land cover classification via multitemporal spatial data by deep recurrent neural networks. IEEE Geoscience and Remote Sensing Letters, 2017.
+[15] Jordi Inglada, Marcela Arias, Benjamin Tardy, Olivier Hagolle, Silvia Valero, David Morin, Gérard Dedieu, Guadalupe Sepulcre, Sophie Bontemps, Pierre Defourny,
+
+et al. Assessment of an operational system for crop type map production using high temporal and spatial resolution satellite optical imagery. Remote Sensing, 2015.
+[16] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. ICML, 2015.
+[17] Shunping Ji, Chi Zhang, Anjian Xu, Yun Shi, and Yulin Duan. 3d convolutional neural networks for crop classification with multi-temporal remote sensing images. Remote Sensing, 2018.
+[18] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, 2014.
+[19] Nataliia Kussul, Mykola Lavreniuk, Sergii Skakun, and Andrii Shelestov. Deep learning classification of land cover and crop types using remote sensing data. IEEE Geoscience and Remote Sensing Letters, 2017.
+[20] Nataliia Kussul, Guido Lemoine, Javier Gallego, Sergii Skakun, and Mykola Lavreniuk. Parcel based classification for agricultural mapping and monitoring using multitemporal satellite image sequences. IGARSS, 2015.
+[21] Yann LeCun, *Yoshua Bengio*, et al. Convolutional networks for images, speech, and time series. *The Handbook of Brain Theory and Neural Networks*, 1995.
+[22] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. ICCV, 2017.
+[23] Zachary C Lipton, John Berkowitz, and Charles Elkan. A critical review of recurrent neural networks for sequence learning. arXiv preprint arXiv:1506.00019, 2015.
+[24] Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted Boltzmann machines. ICML, 2010.
+[25] Emile Ndikumana, Dinh Ho Tong Minh, Nicolas Baghdadi, Dominique Courault, and Laure Hossard. Deep recurrent neural network for agricultural classification using multitemporal sar Sentinel-1 for camargue, france. Remote Sensing, 2018.
+[26] Rahul Nijhawan, Himanshu Sharma, Harshita Sahni, and Ashita Batra. A deep learning hybrid CNN framework approach for vegetation cover mapping using deep features. SITIS, 2017.
+[27] Maria Papadomanolaki, Sagar Verma, Maria Vakalopoulou, Siddharth Gupta, and Konstantinos Karantzalos. Detecting urban changes with recurrent neural networks from multitemporal sentinel-2 data. IGARSS, 2019.
+[28] Charlotte Pelletier, Geoffrey I Webb, and François Petitjean. Temporal convolutional neural network for the classification of satellite image time series. Remote Sensing, 2019.
+[29] Charles R Qi, Hao Su, et al. Pointnet: Deep learning on point sets for 3D classification and segmentation. CVPR, 2017.
+[30] Marc Rußwurm and Marco Körner. Temporal vegetation modelling using long short-term memory networks for crop identification from medium-resolution multi-spectral satellite images. CVPR Workshop, 2017.
+[31] Marc Rußwurm and Marco Körner. Convolutional LSTMs for cloud-robust segmentation of remote sensing imagery. NIPS Workshop, 2018.
+
+[32] Marc Rußwurm and Marco Körner. Multi-temporal land cover classification with sequential recurrent encoders. IS-PRS International Journal of Geo-Information, 2018.
+[33] Marc Rußwurm and Marco Körner. Self-attention for raw optical satellite time series classification. arXiv preprint arXiv:1910.10536, 2019.
+[34] Vivien Sainte Fare Garnot, Loic Landrieu, Sebastien Giordano, and Nesrine Chehata. Time-space tradeoff in deep learning models for crop classification on satellite multispectral image time series. IGARSS, 2019.
+[35] Jae Shin Yoon, Francois Rameau, Junsik Kim, Seokju Lee, Seunghak Shin, and In So Kweon. Pixel-level matching for video object segmentation using convolutional neural networks. CVPR, 2017.
+[36] Sofia Siachalou, Giorgos Mallinis, and Maria Tsakiri-Strati. A hidden markov models approach for crop classification: Linking crop phenology to time series of multi-sensor remote sensing data. Remote Sensing, 2015.
+[37] Maxar Technologies. Helping facebook connect the world with deep learning, accessed nov. 2019. http://blog.digital globe.com/news/helping/facebook-connect-the-world-with-deep-learning/, 2016.
+[38] Compton J Tucker. Red and photographic infrared linear combinations for monitoring vegetation. Remote Sensing of Environment, 1979.
+[39] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. NIPS, 2017.
+[40] Anton Vrieling, Michele Meroni, Roshanak Darvishzadeh, Andrew K Skidmore, Tiejun Wang, Raul Zurita-Milla, Kees Oosterbeek, Brian O'Connor, and Marc Paganini. Vegetation phenology from Sentinel-2 and field cameras for a dutch barrier island. Remote Sensing of Environment, 2018.
+[41] Francesco Vuolo, Martin Neuwirth, Markus Immitzer, Clement Atzberger, and Wai-Tim Ng. How much does
+
+multi-temporal Sentinel-2 data improve crop type classification? International Journal of Applied Earth Observation and Geoinformation, 2018.
+[42] Brian D Wardlow and Stephen L Egbert. Large-area crop mapping using time-series modis 250m NDV data: An assessment for the us central great plains. Remote Sensing of Environment, 2008.
+[43] Darrel L Williams, Samuel Goward, and Terry Arvidson. Landsat. Photogrammetric Engineering & Remote Sensing, 2006.
+[44] SHI Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. NIPS, 2015.
+[45] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. NIPS, 2017.
+[46] Meng Zhang, Hui Lin, Guangxing Wang, Hua Sun, and Jing Fu. Mapping paddy rice using a convolutional neural network (CNN) with landsat 8 datasets in the dongting lake area, china. Remote Sensing, 2018.
+[47] Baojuan Zheng, Soe W Myint, Prasad S Thenkabail, and Rimjhim M Aggarwal. A support vector machine to identify irrigated crop types using time-series landsat NDVI data. International Journal of Applied Earth Observation and Geoinformation, 2015.
+[48] Liheng Zhong, Peng Gong, and Gregory S Biging. Efficient corn and soybean mapping with temporal extendability: A multi-year experiment using landsat imagery. Remote Sensing of Environment, 2014.
+[49] Liheng Zhong, Lina Hu, and Hang Zhou. Deep learning based multi-temporal crop classification. Remote Sensing of Environment, 2019.
\ No newline at end of file
diff --git a/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/images.zip b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ed15ab372040c63d96530d53eb20d2c20f626f36
--- /dev/null
+++ b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a9df204d87ed771740d5b99e28bceef78b2c62583fd38ca1c6e372a192b9682
+size 261088
diff --git a/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/layout.json b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..deefa0e7ea92f6aa9073a83dec891ca37c0b5bba
--- /dev/null
+++ b/satelliteimagetimeseriesclassificationwithpixelsetencodersandtemporalselfattention/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c5c1c9d9227e35cb2e4f63e5e0fbbcee6731fa7ec6744f1eae87d307c10e6a7f
+size 368395
diff --git a/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_content_list.json b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6741c831fbfb21cd5759c22bddbe55c112bcb98b
--- /dev/null
+++ b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:32e97be7f2b83c622a4488b2bd28c7634a9ca4f0b37c80c74dab8e2a00f06477
+size 87129
diff --git a/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_model.json b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1fcc25cb8df842992b97f43294637bebfe474e19
--- /dev/null
+++ b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:87c9fcad44b6ab44a7cd92a50675f292f7e2cdca5568aeac4b8b4c83183f1aa9
+size 107601
diff --git a/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_origin.pdf b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b3c06f58be04f6d181555924140c1e3006d67f8f
--- /dev/null
+++ b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/f0ed443f-f383-494b-a33a-3314ab0dda79_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d4a355b4a440f0d33c28656819cb13929734518e4bf665272ef69714638ecbd
+size 1281160
diff --git a/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/full.md b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f2d132bdadf0e73742471c35d6bc461771bf99d2
--- /dev/null
+++ b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/full.md
@@ -0,0 +1,381 @@
+# Say As You Wish: Fine-grained Control of Image Caption Generation with Abstract Scene Graphs
+
+Shizhe Chen $^{1*}$ , Qin Jin $^{1\dagger}$ , Peng Wang $^{2}$ , Qi Wu $^{3}$
+
+1Renmin University of China, 2Northwestern Polytechnical University, 3University of Adelaide
+
+{czhe1, qjin}@ruc.edu.cn, peng.wang@nwpu.edu.cn, qi.wu01@adelaide.edu.au
+
+# Abstract
+
+Humans are able to describe image contents with coarse to fine details as they wish. However, most image captioning models are intention-agnostic which cannot generate diverse descriptions according to different user intentions initiaitatively. In this work, we propose the Abstract Scene Graph (ASG) structure to represent user intention in fine-grained level and control what and how detailed the generated description should be. The ASG is a directed graph consisting of three types of abstract nodes (object, attribute, relationship) grounded in the image without any concrete semantic labels. Thus it is easy to obtain either manually or automatically. From the ASG, we propose a novel ASG2Caption model, which is able to recognise user intentions and semantics in the graph, and therefore generate desired captions following the graph structure. Our model achieves better controllability conditioning on ASGs than carefully designed baselines on both VisualGenome and MSCOCO datasets. It also significantly improves the caption diversity via automatically sampling diverse ASGs as control signals. Code will be released at https://github.com/cshizhe/seg2cap.
+
+# 1. Introduction
+
+Image captioning is a complex problem since it requires a machine to complete several computer vision tasks, such as object recognition, scene classification, attributes and relationship detection simultaneously, and then summarize in a sentence. Thanks to the rapid development of deep learning [12, 13], recent image captioning models [3, 31, 40] have made substantial progress and even outperform humans in terms of several accuracy-based evaluation metrics [5, 27, 36].
+
+However, most image captioning models are intention
+
+
+Intention-agnostic Captions
+
+
+Figure 1: Although intention-agnostic captions can correctly describe image contents, they fail to realise what a user wants to describe and lack diversity. Therefore, we propose Abstract Scene Graphs (ASG) to control the generation of user desired and diverse image captions in fine-grained level. The corresponding region, ASG node and generated phrase are labelled with the same colour.
+
+- A couple of chairs sitting next to a table with flowers.
+- A couple of chairs sitting next to each other on a table.
+- A couple of white chairs sitting on top of a wooden table.
+
+
+
+agnostic and only passively generate image descriptions, which do not care about what contents users are interested in, and how detailed the description should be. On the contrary, we humans are able to describe image contents from coarse to fine details as we wish. For example, we can describe more discriminative details (such as the quantity and colour) of flowers in Figure 1 if we are asked to do so, but current systems fail to realise such user intention. What is worse, such passive caption generation can greatly hinder diversity and tend to generate mediocre descriptions [34, 38]. Despite achieving high accuracy, these descriptions mainly capture frequent descriptive patterns and cannot represent holistic image understanding, which is supposed to recognize different aspects in the image and thus be able to produce more diverse descriptions.
+
+In order to address aforementioned limitations, few previous endeavours have proposed to actively control image captioning process. One type of works [8, 11, 25] focuses
+
+on controlling expressive styles of image descriptions such as factual, romantic, humorous styles etc., while the other type aims to control the description contents such as different image regions [15], objects [6, 48], and part-of-speech tags [7], so that the model is able to describe user interested contents in the image. However, all of the above works can only handle a coarse-grained control signal such as one-hot labels or a set of image regions, which are hard to realise user desired control at a fine-grained level, for instance describing various objects in different level of details as well as their relationships.
+
+In this work, we propose a more fine-grained control signal, Abstract Scene Graph (ASG), to represent different intentions for controllable image caption generation. As shown in Figure 1, the ASG is a directed graph consisting of three types of abstract nodes grounded in the image, namely object, attribute and relationship, while no concrete semantic label is necessary for each node. Therefore, such graph structure is easy to obtain either manually or automatically since it does not require semantic recognition. More importantly, the ASG is capable of reflecting user's fine-grained intention on what to describe and how detailed to describe.
+
+In order to generate captions with respect to designated ASGs, we then propose an ASG2Caption model based on an encoder-decoder framework. The model tackles three main challenges in ASG controlled image caption generation. Firstly, notice that our ASG only contains an abstract scene layout without any semantic labels, it is necessary to capture both intentions and semantics in the graph. Therefore, we propose a role-aware graph encoder to differentiate fine-grained intention roles of nodes and enhance each node with graph contexts to improve semantic representation. Secondly, the ASG not only controls what contents to describe via different nodes, but also implicitly decides the descriptive order via how nodes are connected. Our proposed decoder thus considers both content and structure of nodes for attention to generate desired content in graph flow order. Last but not least, it is important to fully cover information in ASG without omission or repetition. For this purpose, our model gradually updates the graph representation during decoding to keep tracking of graph access status.
+
+Since there are no available datasets with ASG annotations, we automatically construct ASGs for training and evaluation on two widely used image captioning datasets, VisualGenome and MSCOCO. Extensive experiments demonstrate that our approach can achieve better controllability given designated ASGs than carefully designed baselines. Furthermore, our model is capable of generating more diverse captions based on automatically sampled ASGs to describe various aspects in the image.
+
+The contributions of our work are three-fold:
+
+- To the best of our knowledge, we are the first to propose Abstract Scene Graph for fine-grained control
+
+lable image captioning. It is able to control the level of details (such as, whether attributes, relationships should be included) in caption generation process.
+
+- The proposed ASG2Caption model consists of a role-aware graph encoder and language decoder for graphs to automatically recognize abstract graph nodes and generate captions with intended contents and orders.
+- We achieve state-of-the-art controllability given designated ASGs on two datasets. Our approach can also be easily extended to automatically generated ASGs, which is able to generate diverse image descriptions.
+
+# 2. Related Work
+
+# 2.1. Image Captioning
+
+Image captioning [3, 9, 37, 39, 40] has achieved significant improvements based on neural encoder-decoder framework [35]. The Show-Tell model [37] employs convolutional neural networks (CNNs) [12] to encode image into fixed-length vector, and recurrent neural networks (RNNs) [13] as decoder to sequentially generate words. To capture fine-grained visual details, attentive image captioning models [3, 23, 40] are proposed to dynamically ground words with relevant image parts in generation. To reduce exposure bias and metric mismatching in sequential training [29], notable efforts are made to optimise non-differentiable metrics using reinforcement learning [22, 31, 41]. To further boost accuracy, detected semantic concepts [9, 39, 45] are adopted in captioning framework. The visual concepts learned from large-scale external datasets also enable the model to generate captions with novel objects beyond paired image captioning datasets [1, 24]. A more structured representation over concepts, scene graph [16], is further explored [43, 44] in image captioning which can take advantage of detected objects and their relationships. In this work, instead of using a fully detected scene graph (which is already a challenging enough task [46, 47]) to improve captioning accuracy, we propose to employ Abstract Scene Graph (ASG) as control signal to generate intention-aware and diverse image captions. The ASG is convenient to interact with users to control captioning in fine-grained level, and easier to be obtained automatically than fully detected scene graphs.
+
+# 2.2. Controllable Image Caption Generation
+
+Controllable text generation [14, 18] aims to generate sentences following designated control signals, which can be more interactive and interpretable to humans. There are broadly two types of control for image captioning, namely style control and content control. Style control [8, 11, 25, 26] aims to describe global image content in different styles. Since paired stylised texts are scarce in training, recent works [8, 11, 25] mainly disentangle style codes from semantic contents and apply unpaired style transfer.
+
+
+Figure 2: The proposed ASG2Caption model consists of a role-aware graph encoder and a language decoder for graphs. Given an image $\mathcal{I}$ and ASG $\mathcal{G}$ , our encoder first initializes each node as role-aware embedding, and employs a multi-layer MR-GCN to encode graph contexts in $\mathcal{G}_m$ . Then the decoder dynamically incorporates graph content and graph flow attentions for ASG-controlled captioning. After generating a word, we update the graph $\mathcal{X}_{t-1}$ into $\mathcal{X}_t$ to record graph access status.
+
+The content control works [6, 15, 42, 48] instead aim to generate captions capturing different aspects in the image such as different regions, objects and so on, which are more relevant to holistic visual understanding. Johnson et al. [15] is the first to propose the dense captioning task, which detects and describes diverse regions in the image. Zheng et al. [48] constrain the model to involve a human concerned object. Cornia et al. [6] further control multiple objects and their orders in the generated description. Besides manipulating on object-level, Deshpande et al. [7] employ Part-of-Speech (POS) syntax to guide caption generation, which however mainly focus on improving diversity rather than POS control. Beyond single image, Park et al. [28] propose to only describe semantic differences between two images.
+
+However, none of above works can control caption generation at more fine-grained level. For instance, whether (and how many) associative attributes should be used? Should other objects (and its associated relationships) be included and what is the description order? In this paper, we propose to utilize fine-grained ASG to control designated structure of objects, attributes and relationships at the same time, and enable generating more diverse captions that reflect different intentions.
+
+# 3. Abstract Scene Graph
+
+In order to represent user intentions at fine-grained level, we first propose an Abstract Scene Graph (ASG) as the control signal for generating customized image captions. An ASG for image $\mathcal{I}$ is denoted as $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , where $\mathcal{V}$ and $\mathcal{E}$ are the sets of nodes and edges respectively. As illustrated in the top left of Figure 2, the nodes can be classified into three types according to their intention roles: object node $o$ , attribute node $a$ and relationship node $r$ . The user intention is constructed into $\mathcal{G}$ as follows:
+
+- add user interested object $o_i$ to $\mathcal{G}$ , where object $o_i$ is grounded in $\mathcal{I}$ with a corresponding bounding box;
+- if the user wants to know more descriptive details of $o_i$ , add an attribute node $a_{i,l}$ to $\mathcal{G}$ and assign a directed edge from $o_i$ to $a_{i,l}$ . $|l|$ is the number of associative attributes since multiple $a_{i,l}$ for $o_i$ are allowed;
+- if the user wants to describe relationship between $o_i$ and $o_j$ , where $o_i$ is the subject and $o_j$ is the object, add relationship node $r_{i,j}$ to $\mathcal{G}$ and assign directed edges from $o_i$ to $r_{i,j}$ and from $r_{i,j}$ to $o_j$ respectively.
+
+It is convenient to construct ASGs automatically or manually. Notice that our ASG is only a graph layout without any semantic labels, a full ASG of image can be accurately generated based on off-the-shelf object proposal network and binary relationship classifier to tell whether two objects contain any relationship. Then users can easily select subgraphs from the full ASG or automatic sampling can be applied to generate diverse ASGs capturing different aspects in the image. The details of automatic ASG generation are provided in the supplementary material.
+
+# 4. The ASG2Caption Model
+
+Given an image $\mathcal{I}$ and a designated ASG $\mathcal{G}$ , the goal is to generate a fluent sentence $y = \{y_{1},\dots ,y_{T}\}$ that strictly aligns with $\mathcal{G}$ to satisfy user's intention. In this section, we present the proposed ASG2Caption model which is illustrated in Figure 2. We will describe the proposed encoder and decoder in Section 4.1 and 4.2 respectively, followed by its training and inference strategies in Section 4.3.
+
+# 4.1. Role-aware Graph Encoder
+
+The encoder is proposed to encode ASG $\mathcal{G}$ grounded in image $\mathcal{I}$ as a set of node embeddings $\mathcal{X} = \{x_1,\dots ,x_{|\mathcal{V}|}\}$ .
+
+Firstly, $x_{i}$ is supposed to reflect its intention role besides the visual appearance, which is especially important to differentiate object and connected attribute nodes since they are grounded in the same region. Secondly, since nodes are not isolated, contextual information from neighbour nodes is beneficial for recognizing the semantic meaning of the node. Therefore, we propose a role-aware graph encoder, which contains a role-aware node embedding to distinguish node intentions and a multi-relational graph convolutional network (MR-GCN) [32] for contextual encoding.
+
+Role-aware Node Embedding. For the $i$ -th node in $\mathcal{G}$ , we firstly initialize it as its corresponding visual feature $v_{i}$ . Specifically, the feature of object node is extracted from the grounded bounding box in the image; the feature of attribute node is the same as its connected object; and the feature of relationship node is extracted from the union bounding box of the two involved objects. Since visual features alone cannot distinguish intention roles of different nodes, we further enhance each node with role embedding to obtain a role-aware node embedding $x_{i}^{(0)}$ as follows:
+
+$$
+x _ {i} ^ {(0)} = \left\{ \begin{array}{r l} & v _ {i} \odot W _ {r} [ 0 ], \quad \text {i f} i \in o; \\ & v _ {i} \odot (W _ {r} [ 1 ] + \mathrm {p o s} [ i]), \quad \text {i f} i \in a; \\ & v _ {i} \odot W _ {r} [ 2 ], \quad \text {i f} i \in r. \end{array} \right. \tag {1}
+$$
+
+where $W_{r} \in \mathbb{R}^{3 \times d}$ is the role embedding matrix, $d$ is the feature dimension, $W_{r}[k]$ denotes the $k$ -th row of $W_{r}$ , and $\mathrm{pos}[i]$ is a positional embedding to distinguish the order of different attribute nodes connected with the same object.
+
+Multi-relational Graph Convolutional Network. Though edges in ASG are uni-directional, the influence between connected nodes is mutual. Furthermore, since nodes are of different types, how the message passing from one type of node to another is different from its inverse direction. Therefore, we extend the original ASG with different bidirectional edges, which leads to a multi-relational graph $\mathcal{G}_m = \{\mathcal{V},\mathcal{E}_m,\mathcal{R}\}$ for contextual encoding.
+
+Specifically, there are six types of edges in $\mathcal{R}$ to capture mutual relations between neighboured nodes, which are: object to attribute, subject to relationship, relationship to object and their inverse directions respectively. We employ a MR-GCN to encode graph context in $\mathcal{G}_m$ as follows:
+
+$$
+x _ {i} ^ {(l + 1)} = \sigma \left(W _ {0} ^ {(l)} x _ {i} ^ {(l)} + \sum_ {\tilde {r} \in \mathcal {R}} \sum_ {j \in \mathcal {N} _ {i} ^ {\tilde {r}}} \frac {1}{\left| \mathcal {N} _ {i} ^ {\tilde {r}} \right|} W _ {\tilde {r}} ^ {(l)} x _ {j} ^ {(l)}\right) \tag {2}
+$$
+
+where $\mathcal{N}_i^{\tilde{r}}$ denotes neighbours of $i$ -th node under relation $\tilde{r} \in \mathcal{R}$ , $\sigma$ is the ReLU activation function, and $W_{*}^{(l)}$ are parameters to be learned at $l$ -th MR-GCN layer. Utilizing one layer brings contexts for each node from its direct neighbour nodes, while stacking multiple layers enables to encode broader contexts in the graph. We stack $L$ layers and then the outputs of the final $L$ -th layer are employed as our
+
+final node embeddings $\mathcal{X}$ . We take an average of $\mathcal{X}$ and fuse it with global image feature via linear transformation to obtain global encoded graph embedding $\bar{g}$ .
+
+# 4.2. Language Decoder for Graphs
+
+The decoder aims to convert the encoded $\mathcal{G}$ into an image caption. Unlike previous works that attend on a set of unrelated vectors [23, 40], our node embeddings $\mathcal{X}$ contain structured connections from $\mathcal{G}$ , which reflects user designated order that should not be ignored. Furthermore, in order to fully satisfy user intention, it is important to express all the nodes in $\mathcal{G}$ without omission or repetition, while previous attention methods [23, 40] hardly consider the access status of attended vectors. Therefore, in order to improve graph-to-sentence quality, we propose a language decoder specifically for graphs, which includes a graph-based attention mechanism that considers both graph semantics and structures, and a graph updating mechanism that keeps a record of what has been described or not.
+
+Overview of the Decoder. The decoder employs a two-layer LSTM structure [3], including an attention LSTM and a language LSTM. The attention LSTM takes the global encoded embedding $\bar{g}$ , previous word embedding $w_{t-1}$ and previous output from language LSTM $h_{t-1}^{l}$ as input to compute an attentive query $h_t^a$ :
+
+$$
+h _ {t} ^ {a} = \operatorname {L S T M} ([ \bar {g}; w _ {t - 1}; h _ {t - 1} ^ {l} ], h _ {t - 1} ^ {a}; \theta^ {a}) \tag {3}
+$$
+
+where $[\cdot ]$ is vector concatenation and $\theta^a$ are parameters.
+
+We denote node embeddings at $t$ -th step as $\mathcal{X}_t = \{x_{t,1},\dots ,x_{t,|\mathcal{V}|}\}$ where $\mathcal{X}_1$ is the output of encoder $\mathcal{X}$ . The $h_t^a$ is used to retrieve a context vector $z_{t}$ from $\mathcal{X}_t$ via the proposed graph-based attention mechanism. Then language LSTM is fed with $z_{t}$ and $h_t^a$ to generate word sequentially:
+
+$$
+h _ {t} ^ {l} = \operatorname {L S T M} \left(\left[ z _ {t}; h _ {t} ^ {a} \right], h _ {t - 1} ^ {l}; \theta^ {l}\right) \tag {4}
+$$
+
+$$
+p \left(y _ {t} \mid y _ {< t}\right) = \operatorname {s o f t m a x} \left(W _ {p} h _ {t} ^ {l} + b _ {p}\right) \tag {5}
+$$
+
+where $\theta^l, W_p, b_p$ are parameters. After generating word $y_t$ , we update node embeddings $\mathcal{X}_t$ into $\mathcal{X}_{t+1}$ via the proposed graph updating mechanism to record new graph access status. We will explain the graph-based attention and graph updating mechanisms in details in the following sections.
+
+Graph-based Attention Mechanism. In order to take into account both semantic content and graph structure, we combine two types of attentions called graph content attention and graph flow attention respectively.
+
+The graph content attention considers semantic relevancy between node embeddings $\mathcal{X}_t$ and the query $h_t^a$ to compute an attention score vector $\alpha_{t}^{c}$ , which is:
+
+$$
+\tilde {\alpha} _ {t, i} ^ {c} = w _ {c} ^ {T} \operatorname {t a n h} \left(W _ {x c} x _ {t, i} + W _ {h c} h _ {t} ^ {a}\right) \tag {6}
+$$
+
+$$
+\boldsymbol {\alpha} _ {t} ^ {c} = \operatorname {s o f t m a x} \left(\tilde {\boldsymbol {\alpha}} _ {t} ^ {c}\right) \tag {7}
+$$
+
+
+Figure 3: Graph flow attention employs graph flow order to select relevant nodes to generate the next word.
+
+where $W_{xc}, W_{hc}, w_{c}$ are parameters in content attention and we omit the bias term for simplicity. Since connections between nodes are ignored, the content attention is similar to teleport which can transfer from one node to another node in far distance in $\mathcal{G}$ at different decoding timesteps.
+
+However, the structure of ASG implicitly reflects user desired orders on caption generation. For example, if the current attended node is a relationship node, then the next node to be accessed is most likely to be the following object node according to the graph flow. Therefore, we further propose a graph flow attention to capture the graph structure. The flow graph $\mathcal{G}_f$ is illustrated in Figure 2, which is different from the original ASG in three ways. The first is that a start symbol $S$ should be assigned and the second difference lies in the bidirectional connection between object node and attribute node since in general the order of objects and their attributes are not compulsive and should be decided by sentence fluency. Finally, a self-loop edge will be constructed for a node if there exists no output edge of the node, which ensures the attention on the graph doesn't vanish. Suppose $M_f$ is the adjacent matrix of the flow graph $\mathcal{G}_f$ , where the $i$ -th row denotes the normalized in-degree of the $i$ -th node. The graph flow attention transfers attention score vector in previous decoding step $\alpha_{t-1}$ in three ways:
+
+1) stay at the same node $\alpha_{t,0}^{f} = \alpha_{t - 1}$ . For example, the model might express one node with multiple words;
+2) move one step $\alpha_{t,1}^{f} = M_{f}\alpha_{t - 1}$ , for instance transferring from a relationship node to its object node;
+3) move two steps $\alpha_{t,2}^{f} = (M_{f})^{2}\alpha_{t - 1}$ such as transferring from a relationship node to an attribute node.
+
+The final flow attention is a soft interpolation of the three flow scores controlled by a dynamic gate as follows:
+
+$$
+\boldsymbol {s} _ {t} = \operatorname {s o f t m a x} \left(W _ {s} \sigma \left(W _ {s h} h _ {t} ^ {a} + W _ {s z} z _ {t - 1}\right)\right) \tag {8}
+$$
+
+$$
+\boldsymbol {\alpha} _ {t} ^ {f} = \sum_ {k = 0} ^ {2} s _ {t, k} \boldsymbol {\alpha} _ {t, k} ^ {f} \tag {9}
+$$
+
+where $W_{s}, W_{sh}, W_{sz}$ are parameters and $s_t \in \mathbb{R}^3$ . Figure 3
+
+presents the process of graph flow attention.
+
+Our graph-based attention dynamically fuses the graph content attention $\alpha_{t}^{c}$ and the graph flow attention $\alpha_{t}^{f}$ with learnable parameters $w_{g}, W_{gh}, W_{gz}$ , which is:
+
+$$
+\beta_ {t} = \operatorname {s i g m o i d} \left(w _ {g} \sigma \left(W _ {g h} h _ {t} ^ {a} + W _ {g z} z _ {t - 1}\right)\right) \tag {10}
+$$
+
+$$
+\boldsymbol {\alpha} _ {t} = \beta_ {t} \boldsymbol {\alpha} _ {t} ^ {c} + (1 - \beta_ {t}) \boldsymbol {\alpha} _ {t} ^ {f} \tag {11}
+$$
+
+Therefore, the context vector for predicting word at the $t$ -th step is $z_{t} = \sum_{i=1}^{|\mathcal{V}|} \alpha_{t,i} x_{t,i}$ , which is a weighted sum of graph node features.
+
+Graph Updating Mechanism. We update the graph representation to keep a record of the access status for different nodes in each decoding step. The attention score $\alpha_{t}$ indicates accessed intensity of each node so that highly attended node is supposed to be updated more. However, when generating some non-visual words such as "the" and "of", though graph nodes are accessed, they are not expressed by the generated word and thus should not be updated. Therefore, we propose a visual sentinel gate as [23] to adaptively modify the attention intensity as follows:
+
+$$
+\boldsymbol {u} _ {t} = \operatorname {s i g m o i d} \left(f _ {v s} \left(h _ {t} ^ {l}; \theta_ {v s}\right)\right) \boldsymbol {\alpha} _ {t} \tag {12}
+$$
+
+where we implement $f_{vs}$ as a fully connected network parametrized by $\theta_{vs}$ which outputs a scalar to indicate whether the attended node is expressed by the generated word.
+
+The updating mechanism for each node is decomposed into two parts: an erase followed by an add operation inspired by NTM [10]. Firstly, the $i$ -th graph node representation $x_{t,i}$ is erased according to its update intensity $u_{t,i}$ in a fine-grained way for each feature dimension:
+
+$$
+e _ {t, i} = \operatorname {s i g m o i d} \left(f _ {e r s} \left(\left[ h _ {t} ^ {l}; x _ {t, i} \right]; \theta_ {e r s}\right)\right) \tag {13}
+$$
+
+$$
+\hat {x} _ {t + 1, i} = x _ {t, i} \left(1 - u _ {t, i} e _ {t, i}\right) \tag {14}
+$$
+
+Therefore, a node can be set as zero if it no longer needs to be accessed. In case a node might need multiple access and track its status, we also employ an add update operation:
+
+$$
+a _ {t, i} = \sigma \left(f _ {a d d} \left(\left[ h _ {t} ^ {l}; x _ {t, i} \right]; \theta_ {a d d}\right)\right) \tag {15}
+$$
+
+$$
+x _ {t + 1, i} = \hat {x} _ {t + 1, i} + u _ {t, i} a _ {t, i} \tag {16}
+$$
+
+where $f_{ers}$ and $f_{add}$ are fully connected networks with different parameters. In this way, we update the graph embeddings $\mathcal{X}_t$ into $\mathcal{X}_{t + 1}$ for the next decoding step.
+
+# 4.3. Training and Inference
+
+We utilize the standard cross entropy loss to train our ASG2Caption model. The loss for a single pair $(\mathcal{I},\mathcal{G},y)$ is:
+
+$$
+L = - \log \sum_ {t = 1} ^ {T} p \left(y _ {t} \mid y _ {< t}, \mathcal {G}, \mathcal {I}\right) \tag {17}
+$$
+
+Table 1: Statistics of VisualGenome and MSCOCO datasets for controllable image captioning with ASGs.
+
+| dataset | train | validation | test | #objs per sent | #rels per sent | #attrs per obj | #words per sent |
| #imgs | #sents | #imgs | #sents | #imgs | #sents |
| VisualGenome | 96,738 | 3,397,459 | 4,925 | 172,290 | 4,941 | 171,759 | 2.09 | 0.95 | 0.47 | 5.30 |
| MSCOCO | 112,742 | 475,117 | 4,970 | 20,851 | 4,979 | 20,825 | 2.93 | 1.56 | 0.51 | 10.28 |
+
+Table 2: Comparison with carefully designed baselines for controllable image caption generation conditioning on ASGs.
+
+| Method | VisualGenome | MSCOCO | | |
| B4 | M | R | C | S | G | \( G_o \) | \( G_a \) | \( G_r \) | B4 | M | R | C | S | G | \( G_o \) | \( G_a \) | \( G_r \) |
| ST [37] | 11.1 | 17.0 | 34.5 | 139.9 | 31.1 | 1.2 | 0.5 | 0.7 | 0.5 | 10.5 | 16.8 | 36.2 | 100.6 | 24.1 | 1.8 | 0.8 | 1.1 | 1.0 |
| BUTD [3] | 10.9 | 16.9 | 34.5 | 139.4 | 31.4 | 1.2 | 0.5 | 0.7 | 0.5 | 11.5 | 17.9 | 37.9 | 111.2 | 26.4 | 1.8 | 0.8 | 1.1 | 1.0 |
| C-ST | 12.8 | 19.0 | 37.6 | 157.6 | 36.6 | 1.1 | 0.4 | 0.7 | 0.4 | 14.4 | 20.1 | 41.4 | 135.6 | 32.9 | 1.6 | 0.6 | 1.0 | 0.8 |
| C-BUTD | 12.7 | 19.0 | 37.9 | 159.5 | 36.8 | 1.1 | 0.4 | 0.7 | 0.4 | 15.5 | 20.9 | 42.6 | 143.8 | 34.9 | 1.5 | 0.6 | 1.0 | 0.8 |
| Ours | 17.6 | 22.1 | 44.7 | 202.4 | 40.6 | 0.7 | 0.3 | 0.3 | 0.3 | 23.0 | 24.5 | 50.1 | 204.2 | 42.1 | 0.7 | 0.4 | 0.3 | 0.3 |
+
+After training, our model can generate controllable image captions given the image and a designated ASG obtained manually or automatically as described in Section 3.
+
+# 5. Experiments
+
+# 5.1. Datasets and Experimental Settings
+
+We automatically construct triplets of (image $\mathcal{I}$ , ASG $\mathcal{G}$ , caption $y$ ) based on annotations of two widely used image captioning datasets, VisualGenome [19] and MSCOCO [21]. Table 1 presents statistics of the two datasets.
+
+VisualGenome contains object annotations and dense regions descriptions. To obtain ASG for corresponding caption and region, we firstly use a Stanford sentence scene graph parser [33] to parse groundtruth region caption to a scene graph. We then ground objects from the scene graph to object regions according to their locations and semantic labels. After aligning objects, we remove all the semantic labels from the scene graph, and only keep the graph layout and nodes type. More details can be found in the supplementary material. We follow the data split setting in [3].
+
+MSCOCO dataset contains more than 120,000 images and each image is annotated with around five descriptions. We use the same way as for VisualGenome to get ASGs for training. We adopt the 'Karpathy' splits setting [17]. As shown in Table 1, the ASGs in MSCOCO are more complex than those in VisualGenome dataset since they contain more relationships and the captions are longer.
+
+Evaluation Metrics. We evaluate caption qualities in terms of two aspects, controllability and diversity respectively. To evaluate the controllability given ASG, we utilize ASG aligned with groundtruth image caption as control signal. The generated caption is evaluated against groundtruth via five automatic metrics including BLEU [27], METEOR [5],
+
+ROUGE [20], CIDEr [36] and SPICE [2]. Generally, those scores are higher if semantic recognition is correct and sentence structure aligns better with the ASG. We also propose a Graph Structure metric $G$ based on SPICE [2] to purely evaluate whether the structure is faithful to ASG. It measures difference of numbers for $(o), (o, a)$ and $(o, r, o)$ pairs respectively between generated and groundtruch captions, where the lower the better. We also break down the overall score $G$ for each type of pairs as $G_{o}, G_{a}, G_{r}$ respectively. More details can be found in the supplementary material.
+
+For the diversity measurement, we sample the same number of image captions for each model, and evaluate the diversity of sampled captions using two types of metrics: 1) $n$ -gram diversity (Div- $n$ ): a widely used metric [4, 7] which is the ratio of distinct $n$ -grams to the total number of words in the best 5 sampled captions; 2) SelfCIDEr [38]: a recent metric to evaluate semantic diversity derived from latent semantic analysis and kernelised to use CIDEr similarity. The higher scores the more diverse captions are.
+
+Implementation Details. We employ Faster-RCNN [30] pretrained on VisualGenome to extract grounded region features and ResNet101 [12] pretrained on ImageNet to extract the global image feature. For role-aware graph encoder, we set the feature dimensionality $d$ as 512 and $L$ as 2. For language decoder, the word embedding and hidden size of LSTM are set to be 512. During training, the learning rate is 0.0001 with batch size of 128. In the inference phrase, we utilize beam search with beam size of 5 if not specified.
+
+# 5.2. Evaluation on Controllability
+
+We compare the proposed approach with two groups of carefully designed baselines. The first group contains traditional intention-agnostic image captioning models, including: 1) Show-Tell (ST) [37] which employs a pretrained ResNet101 as encoder to extract global image representa
+
+Table 3: Ablation study to demonstrate contributions from different proposed components. (role: role-aware node embedding; rgcn: MR-GCN; ctn: graph content attention; flow: graph flow attention; gupdt: graph updating; bs: beam search)
+
+| # | Enc | Dec | VisualGenome | MSCOCO |
| role | rgcn | ctn | flow | gupdt | bs | B4 | M | R | C | S | B4 | M | R | C | S |
| 1 | | | | | | | 11.2 | 18.3 | 36.7 | 146.9 | 35.6 | 13.6 | 19.7 | 41.3 | 130.2 | 32.6 |
| 2 | | | ✓ | | | | 10.7 | 18.2 | 36.9 | 146.3 | 35.5 | 14.5 | 20.4 | 42.2 | 135.7 | 34.6 |
| 3 | ✓ | | ✓ | | | | 14.2 | 20.5 | 40.9 | 176.9 | 38.1 | 18.2 | 22.5 | 44.9 | 166.9 | 37.8 |
| 4 | ✓ | ✓ | ✓ | | | | 15.7 | 21.4 | 43.6 | 191.7 | 40.0 | 21.6 | 23.7 | 48.6 | 190.5 | 40.9 |
| 5 | ✓ | ✓ | ✓ | ✓ | | | 15.9 | 21.5 | 44.0 | 193.1 | 40.1 | 22.3 | 24.0 | 49.4 | 196.2 | 41.5 |
| 6 | ✓ | ✓ | ✓ | | ✓ | | 15.8 | 21.4 | 43.5 | 191.6 | 39.9 | 21.8 | 24.1 | 49.1 | 194.2 | 41.4 |
| 7 | ✓ | ✓ | ✓ | ✓ | ✓ | | 16.1 | 21.6 | 44.1 | 194.4 | 40.1 | 22.6 | 24.4 | 50.0 | 199.8 | 41.8 |
| 8 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 17.6 | 22.1 | 44.7 | 202.4 | 40.6 | 23.0 | 24.5 | 50.1 | 204.2 | 42.1 |
+
+tion and an LSTM as decoder; and 2) state-of-the-art BottomUpTopDown (BUTD) model [3] which dynamically attends on relevant image regions when generating different words. The second group of models extend the above approaches for ASG-controlled image captioning. For the non-attentive model (C-ST), we use global encoded graph embedding $\bar{g}$ instead of original image feature; while for the attentive model (C-BUTD), we make the model attend to graph nodes in ASG instead of all detected image regions.
+
+Table 2 presents the comparison result. It is worth noting that controllable baselines outperform non-controllable baselines due to the awareness of control signal ASG. Our proposed model achieves further improvements than controllable baselines which utilize the same ASGs control signal inputs in terms of both overall caption quality and alignment with graph structure. According to detailed graph structure metrics, we can see that controllable baselines are struggling to generate designated attributes compared to objects and relationships. On the challenging fine-grained attribute control, our model reduces more than half of misalignment on VisualGenome $(0.7\rightarrow 0.3)$ and MSCOCO $(1.0\to 0.3)$ dataset. In Figure 4, we visualise some examples of our ASR2Caption model and the best baseline model C-BUTD. Our model is more effective to follow designated ASGs for caption generation than C-BUTD model. In the bottom image of Figure 4, though both models fail to recognize the correct concept "umbrella", our model still successfully aligns with the graph structure.
+
+In order to demonstrate contributions from different components in our model, we provide an extensive ablation study in Table 3. We begin with baselines (Row 1 and 2) which are C-ST and C-BUTD model respectively. Then in Row 3, we add the role-aware node embedding in the encoder and the performance is largely improved, which indicates that it is important to distinguish different intention roles in the graph. Comparing Row 4 against Row 3 where the MR-GCN is employed for contextual graph
+
+
+GT: large office desk with computers near a window.
+C-BUTD: a desk with two monitors and a window.
+
+
+Ours: a wooden computer desk with computers sitting next to a window.
+<----attr----> <----attr----> <----obj----> <----rel----> <----obj---->
+GT: two small children with umbrellas in a field near the shore.
+C-BUTD: a couple of kids holding a kite on a beach.
+Ours: two small children playing with kites in a field near the ocean.
+<-obj-><-----rel----> <-obj-><----obj-->
+Figure 4: Generated image captions using ASG corresponding to the groundtruth caption.
+
+encoding, we see that graph context is beneficial for the graph node encoding. Row 5 and 6 enhance the decoder with graph flow attention and graph updating respectively. The graph flow attention shows complementarity with the graph content attention via capturing the structure information in the graph, and outperforms Row 4 on two datasets. However, the graph updating mechanism is more effective on MSCOCO dataset where the number of graph nodes are larger than on VisualGenome dataset. Since the graph updating module explicitly records the status of graph nodes, the effectiveness might be more apparent when generating longer sentences for larger graphs. In Row 7, we incorporate all the proposed components which obtains further gains. Finally, we apply beam search on the proposed model and achieves the best performance.
+
+
+Figure 5: Generated image captions using user created ASGs for the leftmost image. Even subtle changes in the ASG represent different user intentions and lead to different descriptions. Best viewed in colour.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6: Examples for diverse image caption generation conditioning on sampled ASGs. Our generated captions are different from each other while the comparison baseline (dense-cap) generates repeated captions. Best viewed in colour.
+
+
+
+
+
+
+
+
+
+
+
+Table 4: Comparison with state-of-the-art approaches for diverse image caption generation.
+
+ | Method | Div-1 | Div-2 | SelfCIDEr |
| Visual Genome | Region | 0.41 | 0.43 | 0.47 |
| Ours | 0.54 | 0.63 | 0.75 |
| MS COCO | BS [4] | 0.21 | 0.29 | - |
| POS [7] | 0.24 | 0.35 | - |
| SeqCVAE [4] | 0.25 | 0.54 | - |
| BUTD-BS | 0.29 | 0.39 | 0.58 |
| Ours | 0.43 | 0.56 | 0.76 |
+
+Besides ASGs corresponding to groundtruth captions, in Figure 5 we show an example of user created ASGs which represent different user intentions in a fine-grained level. For example, ASG0 and ASG1 care about different level of details about the woman, while ASG2 and ASG5 intends to know relationships between various number of objects. Subtle differences such as directions of edges also influence the captioning order as shown in ASG3 and ASG4. Even for large complex graphs like ASG6, our model still successfully generates desired image captions.
+
+# 5.3. Evaluation on Diversity
+
+The bonus of our ASG-controlled image captioning is the ability to generate diverse image descriptions that capture different aspects of the image at different level of details given diverse ASGs. We first automatically obtain a global ASG for the image (Section 3), and then sample subgraphs from the ASG. For simplicity, we randomly select connected subject-relationship-object nodes as subgraph and randomly add one attribute node to subject and object nodes. On VisualGenome dataset, we compare with dense image captioning approach which generates diverse captions to describe different image regions. For fair
+
+comparison, we employ the same regions as our sampled ASGs. On MSCOCO dataset, since there are only global image descriptions for images, we utilise beam search of BUTD model to produce diverse captions as baseline. We also compare with other state-of-the-art methods [4, 7] on MSCOCO dataset that strive for diversity.
+
+As shown in Table 4, the generated captions of our approach are more diverse than compared methods especially on the SelfCider score [38] which focuses on semantic similarity. We illustrate an example image with different ASGs in Figure 6. The generated caption effectively respects the given ASG, and the diversity of ASGs leads to significant diverse image descriptions.
+
+# 6. Conclusion
+
+In this work, we focus on controllable image caption generation which actively considers user intentions to generate desired image descriptions. In order to provide a fine-grained control on what and how detailed to describe, we propose a novel control signal called Abstract Scene Graph (ASG), which is composed of three types of abstract nodes (object, attribute and relationship) grounded in the image without any semantic labels. An ASG2Caption model is then proposed with a role-aware graph encoder and a language decoder specifically for graphs to follow structures of the ASG for caption generation. Our model achieves state-of-the-art controllability conditioning on user desired ASGs on two datasets. It also significantly improves diversity of captions given automatically sampled ASGs.
+
+# 7. Acknowledgement
+
+This work was supported by National Natural Science Foundation of China (No. 61772535), Beijing Natural Science Foundation (No. 4192028), and National Key Research and Development Plan (No. 2016YFB1001202). Qi Wu is funded by DE190100539 and NSFC 61877038.
+
+# References
+
+[1] Harsh Agrawal, Karan Desai, Xinlei Chen, Rishabh Jain, Dhruv Batra, Devi Parikh, Stefan Lee, and Peter Anderson. nocaps: novel object captioning at scale. In Proceedings of the IEEE International Conference on Computer Vision, 2019. 2
+[2] Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. Spice: Semantic propositional image caption evaluation. In Proceedings of the European Conference on Computer Vision, pages 382-398. Springer, 2016. 6
+[3] 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 visual question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6077-6086, 2018. 1, 2, 4, 6, 7
+[4] Jyoti Aneja, Harsh Agrawal, Dhruv Batra, and Alexander Schwing. Sequential latent spaces for modeling the intention during diverse image captioning. In Proceedings of the IEEE International Conference on Computer Vision, 2019. 6, 8
+[5] Satanjeev Banerjee and Alon Lavie. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceedings of the ACL workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, pages 65-72, 2005. 1, 6
+[6] Marcella Cornia, Lorenzo Baraldi, and Rita Cucchiara. Show, control and tell: A framework for generating controllable and grounded captions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, June 2019. 2, 3
+[7] Aditya Deshpande, Jyoti Aneja, Liwei Wang, Alexander G. Schwing, and David Forsyth. Fast, diverse and accurate image captioning guided by part-of-speech. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, June 2019. 2, 3, 6, 8
+[8] Chuang Gan, Zhe Gan, Xiaodong He, Jianfeng Gao, and Li Deng. Stylenet: Generating attractive visual captions with styles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3137-3146, 2017. 1, 2
+[9] Zhe Gan, Chuang Gan, Xiaodong He, Yunchen Pu, Kenneth Tran, Jianfeng Gao, Lawrence Carin, and Li Deng. Semantic compositional networks for visual captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5630-5639, 2017. 2
+[10] Alex Graves, Greg Wayne, and Ivo Danihelka. Neural Turing machines. arXiv preprint arXiv:1410.5401, 2014. 5
+[11] Longteng Guo, Jing Liu, Peng Yao, Jiangwei Li, and Hanqing Lu. Mscap: Multi-style image captioning with unpaired stylized text. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4204-4213, 2019. 1, 2
+[12] 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, 6
+
+[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997. 1, 2
+[14] Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1587-1596. JMLR.org, 2017. 2
+[15] Justin Johnson, Andrej Karpathy, and Li Fei-Fei. Densecap: Fully convolutional localization networks for dense captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4565–4574, 2016. 2, 3
+[16] Justin Johnson, Ranjay Krishna, Michael Stark, Li-Jia Li, David Shamma, Michael Bernstein, and Li Fei-Fei. Image retrieval using scene graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3668–3678, 2015. 2
+[17] Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3128–3137, 2015. 6
+[18] Nitish Shirish Keskar, Bryan McCann, Lav Varshney, Caiming Xiong, and Richard Socher. CTRL - A Conditional Transformer Language Model for Controllable Generation. arXiv preprint arXiv:1909, 2019. 2
+[19] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision, 123(1):32-73, 2017. 6
+[20] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81, 2004. 6
+[21] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Proceedings of the European Conference on Computer Vision, pages 740-755. Springer, 2014. 6
+[22] Siqi Liu, Zhenhai Zhu, Ning Ye, Sergio Guadarrama, and Kevin Murphy. Improved image captioning via policy gradient optimization of spider. In Proceedings of the IEEE international conference on computer vision, pages 873-881, 2017. 2
+[23] Jiasen Lu, Caiming Xiong, Devi Parikh, and Richard Socher. Knowing when to look: Adaptive attention via a visual sentinel for image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 375-383, 2017. 2, 4, 5
+[24] Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Neural baby talk. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7219-7228, 2018. 2
+[25] Alexander Mathews, Lexing Xie, and Xuming He. Semstyle: Learning to generate stylised image captions using unaligned text. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8591-8600, 2018. 1, 2
+
+[26] Alexander Patrick Mathews, Lexing Xie, and Xuming He. Senticap: Generating image descriptions with sentiments. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. 2
+[27] 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 on Association for Computational Linguistics, pages 311-318. Association for Computational Linguistics, 2002. 1, 6
+[28] Dong Huk Park, Trevor Darrell, and Anna Rohrbach. Robust change captioning. In Proceedings of the IEEE international conference on computer vision, October 2019. 3
+[29] Marc'Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. Sequence level training with recurrent neural networks. In Proceedings of the International Conference on Learning Representations, 2016. 2
+[30] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in Neural Information Processing Systems, pages 91-99, 2015. 6
+[31] Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jerret Ross, and Vaibhava Goel. Self-critical sequence training for image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7008-7024, 2017. 1, 2
+[32] 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. 4
+[33] Sebastian Schuster, Ranjay Krishna, Angel Chang, Li Fei-Fei, and Christopher D Manning. Generating semantically precise scene graphs from textual descriptions for improved image retrieval. In Proceedings of the Fourth Workshop on Vision and Language, pages 70–80, 2015. 6
+[34] Rakshith Shetty, Marcus Rohrbach, Lisa Anne Hendricks, Mario Fritz, and Bernt Schiele. Speaking the same language: Matching machine to human captions by adversarial training. In Proceedings of the IEEE International Conference on Computer Vision, pages 4135-4144, 2017. 1
+[35] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104-3112, 2014. 2
+[36] Ramakrishna Vedantam, C Lawrence Zitnick, and Devi Parikh. Cider: Consensus-based image description evaluation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4566-4575, 2015. 1, 6
+[37] Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3156-3164, 2015. 2, 6
+[38] Qingzhong Wang and Antoni B Chan. Describing like humans: on diversity in image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4195-4203, 2019. 1, 6, 8
+
+[39] Qi Wu, Chunhua Shen, Lingqiao Liu, Anthony Dick, and Anton Van Den Hengel. What value do explicit high level concepts have in vision to language problems? In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 203-212, 2016. 2
+[40] Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In Proceedings of the International Conference on Machine Learning, pages 2048-2057, 2015. 1, 2, 4
+[41] Ning Xu, Hanwang Zhang, An-An Liu, Weizhi Nie, Yuting Su, Jie Nie, and Yongdong Zhang. Multi-level policy and reward-based deep reinforcement learning framework for image captioning. IEEE Transactions on Multimedia, 2019. 2
+[42] Linjie Yang, Kevin Tang, Jianchao Yang, and Li-Jia Li. Dense captioning with joint inference and visual context. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2193-2202, 2017. 3
+[43] 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. 2
+[44] Ting Yao, Yingwei Pan, Yehao Li, and Tao Mei. Exploring visual relationship for image captioning. In Proceedings of the European Conference on Computer Vision, pages 684-699, 2018. 2
+[45] Quanzeng You, Hailin Jin, Zhaowen Wang, Chen Fang, and Jiebo Luo. Image captioning with semantic attention. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4651-4659, 2016. 2
+[46] Rowan Zellers, Mark Yatskar, Sam Thomson, and Yejin Choi. Neural motifs: Scene graph parsing with global context. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5831-5840, 2018. 2
+[47] Ji Zhang, Kevin J. Shih, Ahmed Elgammal, Andrew Tao, and Bryan Catanzaro. Graphical contrastive losses for scene graph parsing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2
+[48] Yue Zheng, Yali Li, and Shengjin Wang. Intention oriented image captions with guiding objects. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, June 2019. 2, 3
\ No newline at end of file
diff --git a/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/images.zip b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f61aa9d992de9c15f12accf153abbc29d6e04e06
--- /dev/null
+++ b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af6e3108a7f023e761fb4b385507ddbe639772add23721dab0e9a48fdb1d62b4
+size 563644
diff --git a/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/layout.json b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..dff0e74a32e7ae54f848e9bd76d31405409faba5
--- /dev/null
+++ b/sayasyouwishfinegrainedcontrolofimagecaptiongenerationwithabstractscenegraphs/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67a28c21dacfb9f12c1e574e460e73fb223dbc15b648e940257be1b19aecdf3e
+size 481419
diff --git a/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_content_list.json b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..cb0fee95c7fca3744f35a8b54ab1333ae431de1c
--- /dev/null
+++ b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d7761414f9074ef20b37b9402829521892ff042eb588bf07312dd7483406666
+size 73698
diff --git a/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_model.json b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..67117c85e01291700ecb3b625a8866abb682c588
--- /dev/null
+++ b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ade4ba126bf721087930d2186e54d319187f149e63ad255f82ef1340b046c0be
+size 86821
diff --git a/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_origin.pdf b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bc09d7e50bc37006f08122b6674c742066f368e8
--- /dev/null
+++ b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/0fb8344f-9ce5-4779-9d47-c2c8a33608fc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54429cfdef208f7551f52dea30b685b17b4d60c606b105c897e95a7ca9d98b99
+size 867948
diff --git a/scalabilityinperceptionforautonomousdrivingwaymoopendataset/full.md b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..4f913eecb2bf1ee794d7e30c3847d14e910b1639
--- /dev/null
+++ b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/full.md
@@ -0,0 +1,322 @@
+# Scalability in Perception for Autonomous Driving: Waymo Open Dataset
+
+Pei Sun $^{1}$ , Henrik Kretzschmar $^{1}$ , Xerxes Dotiwalla $^{1}$ , Aurélien Chouard $^{1}$ , Vijaysai Patnaik $^{1}$ , Paul Tsui $^{1}$ , James Guo $^{1}$ , Yin Zhou $^{1}$ , Yuning Chai $^{1}$ , Benjamin Caine $^{2}$ , Vijay Vasudevan $^{2}$ , Wei Han $^{2}$ , Jiquan Ngiam $^{2}$ , Hang Zhao $^{1}$ , Aleksei Timofeev $^{1}$ , Scott Ettinger $^{1}$ , Maxim Krivokon $^{1}$ , Amy Gao $^{1}$ , Aditya Joshi $^{1}$ , Yu Zhang $^{*1}$ , Jonathon Shlens $^{2}$ , Zhifeng Chen $^{2}$ , and Dragomir Anguelov $^{1}$
+
+$^{1}$ Waymo LLC $^{2}$ Google LLC
+
+# Abstract
+
+The research community has increasing interest in autonomous driving research, despite the resource intensity of obtaining representative real world data. Existing self-driving datasets are limited in the scale and variation of the environments they capture, even though generalization within and between operating regions is crucial to the overall viability of the technology. In an effort to help align the research community's contributions with real-world self-driving problems, we introduce a new large-scale, high quality, diverse dataset. Our new dataset consists of 1150 scenes that each span 20 seconds, consisting of well synchronized and calibrated high quality LiDAR and camera data captured across a range of urban and suburban geographies. It is $15x$ more diverse than the largest camera+LiDAR dataset available based on our proposed geographical coverage metric. We exhaustively annotated this data with 2D (camera image) and 3D (LiDAR) bounding boxes, with consistent identifiers across frames. Finally, we provide strong baselines for 2D as well as 3D detection and tracking tasks. We further study the effects of dataset size and generalization across geographies on 3D detection methods. Find data, code and more up-to-date information at http://www.waymo.com/open.
+
+# 1. Introduction
+
+Autonomous driving technology is expected to enable a wide range of applications that have the potential to save many human lives, ranging from robotaxis to self-driving trucks. The availability of public large-scale datasets and benchmarks has greatly accelerated progress in machine perception tasks, including image classification, object detection, object tracking, semantic segmentation as well as
+
+instance segmentation [7, 17, 23, 10].
+
+To further accelerate the development of autonomous driving technology, we present the largest and most diverse multimodal autonomous driving dataset to date, comprising of images recorded by multiple high-resolution cameras and sensor readings from multiple high-quality LiDAR scanners mounted on a fleet of self-driving vehicles. The geographical area captured by our dataset is substantially larger than the area covered by any other comparable autonomous driving dataset, both in terms of absolute area coverage, and in distribution of that coverage across geographies. Data was recorded across a range of conditions in multiple cities, namely San Francisco, Phoenix, and Mountain View, with large geographic coverage within each city. We demonstrate that the differences in these geographies lead to a pronounced domain gap, enabling exciting research opportunities in the field of domain adaptation.
+
+Our proposed dataset contains a large number of high-quality, manually annotated 3D ground truth bounding boxes for the LiDAR data, and 2D tightly fitting bounding boxes for the camera images. All ground truth boxes contain track identifiers to support object tracking. In addition, researchers can extract 2D amodal camera boxes from the 3D LiDAR boxes using our provided rolling shutter aware projection library. The multimodal ground truth facilitates research in sensor fusion that leverages both the LiDAR and the camera annotations. Our dataset contains around 12 million LiDAR box annotations and around 12 million camera box annotations, giving rise to around 113k LiDAR object tracks and around 250k camera image tracks. All annotations were created and subsequently reviewed by trained labelers using production-level labeling tools.
+
+We recorded all the sensor data of our dataset using an industrial-strength sensor suite consisting of multiple high-resolution cameras and multiple high-quality LiDAR sensors. Furthermore, we offer synchronization between the camera and the LiDAR readings, which offers interesting opportu
+
+nities for cross-domain learning and transfer. We release our LiDAR sensor readings in the form of range images. In addition to sensor features such as elongation, we provide each range image pixel with an accurate vehicle pose. This is the first dataset with such low-level, synchronized information available, making it easier to conduct research on LiDAR input representations other than the popular 3D point set format.
+
+Our dataset currently consists of 1000 scenes for training and validation, and 150 scenes for testing, where each scene spans 20 s. Selecting the test set scenes from a geographical holdout area allows us to evaluate how well models that were trained on our dataset generalize to previously unseen areas.
+
+We present benchmark results of several state-of-the-art 2D-and 3D object detection and tracking methods on the dataset.
+
+# 2. Related Work
+
+High-quality, large-scale datasets are crucial for autonomous driving research. There have been an increasing number of efforts in releasing datasets to the community in recent years.
+
+Most autonomous driving systems fuse sensor readings from multiple sensors, including cameras, LiDAR, radar, GPS, wheel odometry, and IMUs. Recently released autonomous driving datasets have included sensor readings obtained by multiple sensors. Geiger et al. introduced the multi-sensor KITTI Dataset [9, 8] in 2012, which provides synchronized stereo camera as well as LiDAR sensor data for 22 sequences, enabling tasks such as 3D object detection and tracking, visual odometry, and scene flow estimation. The SemanticKITTI Dataset [2] provides annotations that associate each LiDAR point with one of 28 semantic classes in all 22 sequences of the KITTI Dataset.
+
+The ApolloScape Dataset [12], released in 2017, provides per-pixel semantic annotations for $140\mathrm{k}$ camera images captured in various traffic conditions, ranging from simple scenes to more challenging scenes with many objects. The dataset further provides pose information with respect to static background point clouds. The KAIST Multi-Spectral Dataset [6] groups scenes recorded by multiple sensors, including a thermal imaging camera, by time slot, such as daytime, nighttime, dusk, and dawn. The Honda Research Institute 3D Dataset (H3D) [19] is a 3D object detection and tracking dataset that provides 3D LiDAR sensor readings recorded in 160 crowded urban scenes.
+
+Some recently published datasets also include map information about the environment. For instance, in addition to multiple sensors such as cameras, LiDAR, and radar, the nuScenes Dataset [4] provides rasterized top-down semantic maps of the relevant areas that encode information about drivable areas and sidewalks for 1k scenes. This dataset has limited LiDAR sensor quality with 34K points per frame,
+
+ | KITTI | NuScenes | Argo | Ours |
| Scenes | 22 | 1000 | 113 | 1150 |
| Ann. Lidar Fr. | 15K | 40K | 22K | 230K |
| Hours | 1.5 | 5.5 | 1 | 6.4 |
| 3D Boxes | 80K | 1.4M | 993k | 12M |
| 2D Boxes | 80K | - | - | 9.9M |
| Lidars | 1 | 1 | 2 | 5 |
| Cameras | 4 | 6 | 9 | 5 |
| Avg Points/Frame | 120K | 34K | 107K | 177K |
| LiDAR Features | 1 | 1 | 1 | 2 |
| Maps | No | Yes | Yes | No |
| Visited Area (km2) | - | 5 | 1.6 | 76 |
+
+Table 1. Comparison of some popular datasets. The Argo Dataset refers to their Tracking dataset only, not the Motion Forecasting dataset. 3D labels projected to 2D are not counted in the 2D Boxes. Avg Points/Frame is the number of points from all LiDAR returns computed on the released data. Visited area is measured by diluting trajectories by 75 meters in radius and union all the diluted areas. Key observations: 1. Our dataset has $15.2\mathrm{x}$ effective geographical coverage defined by the diversity area metric in Section 3.5. 2. Our dataset is larger than other camera+LiDAR datasets by different metrics. (Section 2)
+
+ | TOP | F,SL,SR,R |
| VFOV | [-17.6°, +2.4°] | [-90°, 30°] |
| Range (restricted) | 75 meters | 20 meters |
| Returns/shot | 2 | 2 |
+
+Table 2. LiDAR Data Specifications for Front (F), Right (R), Side-Left (SL), Side-Right (SR), and Top (TOP) sensors. The vertical field of view (VFOV) is specified based on inclination (Section 3.2).
+
+limited geographical diversity covering an effective area of $5\mathrm{km}^2$ (Table 1).
+
+In addition to rasterized maps, the Argoverse Dataset [5] contributes detailed geometric and semantic maps of the environment comprising information about the ground height together with a vector representation of road lanes and their connectivity. They further study the influence of the provided map context on autonomous driving tasks, including 3D tracking and trajectory prediction. Argoverse has a very limited amount raw sensor data released.
+
+See Table 1 for a comparison of different datasets.
+
+# 3. Waymo Open Dataset
+
+# 3.1. Sensor Specifications
+
+The data collection was conducted using five LiDAR sensors and five high-resolution pinhole cameras. We restrict the range of the LiDAR data, and provide data for the first two returns of each laser pulse. Table 2 contains detailed specifications of our LiDAR data. The camera images are captured with rolling shutter scanning, where the exact scan
+
+ | F | FL,FR | SL,SR |
| Size | 1920x1280 | 1920x1280 | 1920x1040 |
| HFOV | ±25.2° | ±25.2° | ±25.2° |
+
+Table 3. Camera Specifications for Front (F), Front-Left (FL), Front-Right (FR), Side-Left (SL), Side-Right (SR) cameras. The image sizes reflect the results of both cropping and downsampling the original sensor data. The camera horizontal field of view (HFOV) is provided as an angle range in the x-axis in the x-y plane of camera sensor frame (Figure 1).
+
+
+Figure 1. Sensor layout and coordinate systems.
+
+ning mode can vary from scene to scene. All camera images are downsampled and cropped from the raw images; Table 3 provides specifications of the camera images. See Figure 1 for the layout of sensors relevant to the dataset.
+
+# 3.2. Coordinate Systems
+
+This section describes the coordinate systems used in the dataset. All of the coordinate systems follow the right hand rule, and the dataset contains all information needed to transform data between any two frames within a run segment.
+
+The Global frame is set prior to vehicle motion. It is an East-North-Up coordinate system: Up (z) is aligned with the gravity vector, positive upwards; East (x) points directly east along the line of latitude; North (y) points towards the north pole.
+
+The Vehicle frame moves with the vehicle. Its x-axis is positive forwards, y-axis is positive to the left, z-axis is positive upwards. A vehicle pose is defined as a 4x4 transform matrix from the vehicle frame to the global frame. Global frame can be used as the proxy to transform between different vehicle frames. Transform among close frames is very accurate in this dataset.
+
+A Sensor frame is defined for each sensor. It is denoted as a 4x4 transformation matrix that maps data from sensor frame to vehicle frame. This is also known as the "extrinsics" matrix.
+
+The LiDAR sensor frame has z pointing upward. The x-y
+
+
+Figure 2. LiDAR label example. Yellow = vehicle. Red = pedestrian. Blue = sign. Pink = cyclist.
+
+axes depends on the LiDAR.
+
+The camera sensor frame is placed at the center of the lens. The x axis points down the lens barrel out of the lens. The z axis points up. The y/z plane is parallel to the image plane.
+
+The Image frame is a 2D coordinate system defined for each camera image, where $+\mathbf{x}$ is along the image width (i.e. column index starting from the left), and $+\mathbf{y}$ is along the image height (i.e. row index starting from the top). The origin is the top-left corner.
+
+The LiDAR Spherical coordinate system is based on the Cartesian coordinate system in the LiDAR sensor frame. A point $(x, y, z)$ in the LiDAR Cartesian coordinate system can be uniquely transformed to a (range, azimuth, inclination) tuple in the LiDAR Spherical coordinate system by the following equations:
+
+$$
+\operatorname {r a n g e} = \sqrt {x ^ {2} + y ^ {2} + z ^ {2}} \tag {1}
+$$
+
+$$
+\operatorname {a z i m u t h} = \operatorname {a t a n 2} (y, x) \tag {2}
+$$
+
+$$
+\text {i n c l i n a t i o n} = \operatorname {a t a n 2} \left(z, \sqrt {x ^ {2} + y ^ {2}}\right). \tag {3}
+$$
+
+# 3.3. Ground Truth Labels
+
+We provide high-quality ground truth annotations, both for the LiDAR sensor readings as well as the camera images. Separate annotations in LiDAR and camera data opens up exciting research avenues in sensor fusion. For any label, we define length, width, height to be the sizes along x-axis, y-axis and z-axis respectively.
+
+We exhaustively annotated vehicles, pedestrians, signs and cyclists in the LiDAR sensor readings. We labeled each object as a 7-DOF 3D upright bounding box (cx, cy, cz, l, w, h, $\theta$ ) with a unique tracking ID, where $cx$ , $cy$ , $cz$ represent the center coordinates, $l$ , $w$ , $h$ are the length, width, height, and $\alpha$ denotes the heading angle in radians of the bounding box. Figure 2 illustrates an annotated scene as an example.
+
+In addition to the LiDAR labels, we separately exhaustively annotated vehicles, pedestrians and cyclists in all camera images. We annotated each object with a tightly fitting 4-DOF image axis-aligned 2D bounding box which is complementary to the 3D boxes and their amodal 2D projections. The label is encoded as $(cx, cy, l, w)$ with a unique tracking ID, where $cx$ and $cy$ represent the center pixel of the box, $l$
+
+represents the length of the box along the horizontal (x) axis in the image frame, and $w$ represent the width of the box along the vertical (y) axis in the image frame. We use this convention for length and width to be consistent with 3D boxes. One interesting possibility that can be explored using the dataset is the prediction of 3D boxes using camera only.
+
+We use two levels for difficulty ratings, similar to KITTI, where the metrics for LEVEL_2 are cumulative and thus include LEVEL_1. The criteria for an example to be in a specific difficulty level can depend on both the human labelers and the object statistics.
+
+We emphasize that all LiDAR and all camera groundtruth labels were manually created by highly experienced human annotators using industrial-strength labeling tools. We have performed multiple phases of label verification to ensure a high labeling quality.
+
+# 3.4. Sensor Data
+
+LiDAR data is encoded in this dataset as range images, one for each LiDAR return; data for the first two returns is provided. The range image format is similar to the rolling shutter camera image in that it is filled in column-by-column from left to right. Each range image pixel corresponds to a LiDAR return. The height and width are determined by the resolution of the inclination and azimuth in the LiDAR sensor frame. Each inclination for each range image row is provided. Row 0 (the top row of the image) corresponds to the maximum inclination. Column 0 (left most column of the image) corresponds to the negative x-axis (i.e., the backward direction). The center of the image corresponds to the positive x-axis (i.e., the forward direction). An azimuth correction is needed to make sure the center of the range image corresponds to the positive x-axis.
+
+Each pixel in the range image includes the following properties. Figure 4 demonstrates an example range image.
+
+- Range: The distance between the LiDAR point and the origin in LiDAR sensor frame.
+- Intensity: A measurement indicating the return strength of the laser pulse that generated the LiDAR point, partly based on the reflectivity of the object struck by the laser pulse.
+- Elongation: The elongation of the laser pulse beyond its nominal width. Elongation in conjunction with intensity is useful for classifying spurious objects, such as dust, fog, rain. Our experiments suggest that a highly elongated low-intensity return is a strong indicator for a spurious object, while low intensity alone is not a sufficient signal.
+- No label zone: This field indicates whether the LiDAR point falls into a no label zone, i.e., an area that is ignored for labeling.
+- Vehicle pose: The pose at the time the LiDAR point is captured.
+
+
+Figure 3. Camera LiDAR synchronization accuracy in milliseconds. The number in x-axis is in milli-seconds. The y-axis denotes the percentage of data frames.
+
+
+Figure 4. A range image example. It is cropped to only show the front $90^{\circ}$ . The first three rows are range, intensity, and elongation from the first LiDAR return. The last three are range, intensity, and elongation from the second LiDAR return.
+
+- Camera projection: We provide accurate LiDAR point to camera image projections with rolling shutter effect compensated. Figure 5 demonstrates that LiDAR points can be accurately mapped to image pixels via the projections.
+
+Our cameras and LiDARs data are well-synchronized. The synchronization accuracy is computed as
+
+$$
+\begin{array}{c} \text {c a m e r a c e n t e r t i m e - f r a m e s t a r t t i m e -} \\ \text {c a m e r a c e n t e r o f f s e t / 3 6 0 ^ {\circ} * 0 . 1 s} \end{array} \tag {4}
+$$
+
+The camera_center_time is the exposure time of the image's center pixel. The frame_start_time is the start time of this data frame. The camera_center_offset is the offset of the $+\mathrm{x}$ axis of each camera sensor frame w.r.t. the backward direction of the vehicle. The camera_center_offset is $90^{\circ}$ for SIDE_LEFT camera, $90^{\circ} + 45^{\circ}$ for FRONT_LEFT camera etc. See Figure 3 for the synchronization accuracy for all the cameras. The synchronization error is bounded in [-6ms, 7ms] with $99.7\%$ confidence, [-6ms, 8ms] with $99.9995\%$ confidence.
+
+Camera images are JPEG compressed images. Rolling shutter timing information is provided with each image.
+
+Rolling shutter projection. For any given point $p$ in the
+
+
+
+Figure 5. An example image overlaid with LiDAR point projections.
+
+ | PHX | MTV | SF | Day | Night | Dawn |
| Train | 286 | 103 | 409 | 646 | 79 | 73 |
| Validation | 93 | 21 | 88 | 160 | 23 | 19 |
+
+Table 4. Scene counts for Phoenix (PHX), Mountain View (MTV), and San Francisco (SF) and different time of the day for training and validation set.
+
+global frame, the rolling shutter camera captures the point at an unknown time $t$ . We can estimate the vehicle pose at $t$ assuming a constant velocity $v$ and angular velocity $\omega$ . Using the pose at $t$ , we can project $p$ to the image and get an image point $q$ , which uniquely defines a pixel capture time $\tilde{t}$ . We minimize the difference between $t$ and $\tilde{t}$ by solving a single variable $(t)$ convex quadratic optimization. The algorithm is efficient and can be used in real time as it usually converges in 2 or 3 iterations. See Figure 5 for an example output of the projection algorithm.
+
+# 3.5. Dataset Analysis
+
+The dataset has scenes selected from both suburban and urban areas, from different times of the day. See Table 4 for the distribution. In addition to the urban/suburban and time of day diversity, scenes in the dataset are selected from many different parts within the cities. We define a geographical coverage metric as the area of the union of all 150-meter diluted ego-poses in the dataset. By this definition, our dataset covers an area of $40\mathrm{km}^2$ in Phoenix, and $36\mathrm{km}^2$ combined in San Francisco and Mountain View. See Figure 6 for the parallelogram cover of all level 13 S2 cells [1] touched by all ego poses from all scenes.
+
+The dataset has around 12M labeled 3D LiDAR objects, around 113k unique LiDAR tracking IDs, around 12M labeled 2D image objects and around 254k unique image tracking IDs. See Table 5 for counts of each category.
+
+# 4. Tasks
+
+We define 2D and 3D object detection and tracking tasks for the dataset. We anticipate adding other tasks such as segmentation, domain adaptation, behavior prediction, and imitative planning in the future.
+
+For consistent reporting of results, we provide pre-defined
+
+ | Vehicle | Pedestrian | Cyclist | Sign |
| 3D Object | 6.1M | 2.8M | 67k | 3.2M |
| 3D TrackID | 60k | 23k | 620 | 23k |
| 2D Object | 9.0M | 2.7M | 81k | - |
| 2D TrackID | 194k | 58k | 1.7k | - |
+
+Table 5. Labeled object and tracking ID counts for different object types. 3D labels are LiDAR labels. 2D labels are camera image labels.
+
+training (798 scenes), validation (202 scenes), and test set splits (150 scenes). See Table 5 for the number of objects in each labeled category. The LiDAR annotations capture all objects within a radius of $75\mathrm{m}$ . The camera image annotations capture all objects that are visible in the camera images, independent of the LiDAR data.
+
+# 4.1. Object Detection
+
+# 4.1.1 3D Detection
+
+For a given frame, the 3D detection task involves predicting 3D upright boxes for vehicles, pedestrians, signs, and cyclists. Detection methods may use data from any of the Li-DAR and camera sensors; they may also choose to leverage sensor inputs from preceding frames.
+
+Accurate heading prediction is critical for autonomous driving, including tracking and behavior prediction tasks. Average precision (AP), commonly used for object detection, does not have a notion of heading. Our proposed metric, APH, incorporates heading information into a familiar object detection metric with minimal changes.
+
+$$
+\mathrm {A P} = 1 0 0 \int_ {0} ^ {1} \max \left\{p \left(r ^ {\prime}\right) \mid r ^ {\prime} > = r \right\} d r, \tag {5}
+$$
+
+$$
+\mathrm {A P H} = 1 0 0 \int_ {0} ^ {1} \max \left\{h \left(r ^ {\prime}\right) \mid r ^ {\prime} > = r \right\} d r, \tag {6}
+$$
+
+where $p(r)$ is the P/R curve. Further, $h(r)$ is computed similar to $p(r)$ , but each true positive is weighted by heading accuracy defined as $\min(|\tilde{\theta} - \theta|, 2\pi - |\tilde{\theta} - \theta|)/\pi$ , where $\tilde{\theta}$ and $\theta$ are the predicted heading and the ground truth heading in radians within $[-\pi, \pi]$ . The metrics implementation takes a set of predictions with scores normalized to $[0,1]$ , and samples a fixed number of score thresholds uniformly in this interval. For each score threshold sampled, it does a Hungarian matching between the predictions with score above the threshold and ground truths to maximize the overall IoU between matched pairs. It computes precision and recall based on the matching result. If the gap between recall values of two consecutive operating points on the PR curve is larger than a preset threshold (set to 0.05), more $p/r$ points are explicitly inserted between with conservative precisions. Example: $p(r): p(0) = 1.0, p(1) = 0.0, \delta = 0.05$ . We add $p(0.95) = 0.0, p(0.90) = 0.0, \dots, p(0.05) = 0.0$ . The
+
+
+Figure 6. Parallelogram cover of all level 13 S2 cells touched by all ego poses in San Francisco, Mountain View, and Phoenix.
+
+
+
+
+
+$\mathrm{AP} = 0.05$ after this augmentation. This avoids producing an over-estimated AP with very sparse $p / r$ curve sampling. This implementation can be easily parallelized, which makes it more efficient when evaluating on a large dataset. IoU is used to decide true positives for vehicle, pedestrian and cyclist. Box center distances are used to decide true positives for sign.
+
+# 4.1.2 2D Object Detection in Camera Images
+
+In contrast to the 3D detection task, the 2D camera image detection task restricts the input data to camera images, excluding LiDAR data. The task is to produce 2D axis-aligned bounding boxes in the camera images based on a single camera image. For this task, we consider the AP metric for the object classes of vehicles, pedestrians, and cyclists. We use the same AP metric implementation as described in Section 4.1.1 except that 2D IoU is used for matching.
+
+# 4.2. Object Tracking
+
+Multi-Object Tracking involves accurately tracking of the identity, location, and optionally properties (e.g. shape or box dimensions) of objects in a scene over time.
+
+Our dataset is organized into sequences, each 20 seconds long with multiple sensors producing data sampled at $10\mathrm{Hz}$ . Additionally, every object in the dataset is annotated with a unique identifier that is consistent across each sequence. We support evaluation of tracking results in both 2D image view, and 3D vehicle centric coordinates.
+
+To evaluate the tracking performance, we use the multiple object tracking (MOT) metric [3]. This metric aims to consolidate several different characteristics of tracking systems - namely the ability of the tracker to detect, localize, and track the identities of objects over time - into a single metric to
+
+aid in direct comparison of method quality:
+
+$$
+\mathrm {M O T A} = 1 0 0 - 1 0 0 \frac {\sum_ {t} \left(m _ {t} + \mathrm {f p} _ {t} + \mathrm {m m e} _ {t}\right)}{\sum_ {t} g _ {t}} \tag {7}
+$$
+
+$$
+\mathrm {M O T P} = 1 0 0 \frac {\sum_ {i , t} d _ {t} ^ {i}}{\sum_ {t} c _ {t}}. \tag {8}
+$$
+
+Let $m_t$ , $\mathrm{fp}_t$ and $\mathrm{mme}_t$ represent the number of misses, false positives and mismatches. Let $g_t$ be the ground truth count. A mismatch is counted if a ground truth target is matched to a track and the last known assignment was not the track. In MOTP, let $d_t^i$ represent the distance between a detection and its corresponding ground truth match, and $c_t$ be the number of matches found. The distance function used to calculate $d_t^i$ is 1 - IoU for a matched pair of boxes. See [3] for the full procedure.
+
+Similar to the detection metrics implementation described in 4.1, we sample scores directly and compute an MOTA for each score cutoff. We pick the highest MOTA among all the score cutoffs as the final metric.
+
+# 5. Experiments
+
+We provide baselines on our datasets based on recent approaches for detection and tracking for vehicles and pedestrians. The same method can be applied to other object types in the dataset. We use 0.7 IoU for vehicles and 0.5 IoU for pedestrians when computing metrics for all tasks.
+
+# 5.1. Baselines for Object Detection
+
+3D LiDAR Detection To establish a 3D Object Detection baseline, we reimplemented PointPillars [16], which is a simple and efficient LiDAR-based 3D detector that first uses a single layer PointNet [20] to voxelize the point cloud into the Birds Eye View, followed by a CNN region proposal network [24]. We trained the model on single frame of sensor data with all LiDARs included.
+
+For vehicles and pedestrians we set the voxel size to $0.33\mathrm{m}$ , the grid range to $[-85\mathrm{m}, 85\mathrm{m}]$ along the X and
+
+Y axes, and $[-3\mathrm{m}, 3\mathrm{m}]$ along the Z axis. This gives us a $512 \times 512$ pixel Birds Eye View (BEV) pseudo-image. We use the same convolutional backbone architecture as the original paper [16], with the slight exception that our Vehicle model matches our Pedestrian model in having a stride of 1 for the first convolutional block. This decision means both the input and output spatial resolutions of the models are $512 \times 512$ pixels, which increases accuracy at the cost of a more expensive model. We define anchor sizes $(l, w, h)$ as $(4.73\mathrm{m}, 2.08\mathrm{m}, 1.77\mathrm{m})$ for vehicles and $(0.9\mathrm{m}, 0.86\mathrm{m}, 1.71\mathrm{m})$ for pedestrians. Both vehicles and pedestrians have anchors oriented to 0 and $\pi/2$ radians. To achieve good heading prediction, we used a different rotation loss formulation, using a smooth-L1 loss of the heading residual error, wrapping the result between $[- \pi, \pi]$ with a huber delta $\delta = \frac{1}{9}$ .
+
+In reference to the LEVEL definition in section 3.3, we define the difficulty for the single frame 3D object detection task as follows. We first ignore all 3D labels without any LiDAR points. Next, we assign LEVEL_2 to examples where either the labeler annotates as hard or if the example has $\leq 5$ LiDAR points. Finally, the rest of the examples are assigned to LEVEL_1.
+
+We evaluate models on the proposed 3D detection metrics for both 7-degree-of-freedom 3D boxes and 5-degree-of-freedom BEV boxes on the 150-scene hidden test set. For our 3D tasks, we use 0.7 IoU for vehicles and 0.5 IoU for pedestrians. Table 6 shows detailed results;
+
+2D Object Detection in Camera Images We use the Faster R-CNN object detection architecture [21], with ResNet-101 [11] as the feature extractor. We pre-trained the model on the COCO Dataset [17] before fine-tuning the model on our dataset. We then run the detector on all 5 camera images, and aggregate the results for evaluation. The resulting model achieved an AP of 63.7 at LEVEL_1 and 53.3 at LEVEL_2 on vehicles, and an AP of 55.8 at LEVEL_1 and 52.7 at LEVEL_2 on pedestrians.
+
+# 5.2. Baselines for Multi-Object Tracking
+
+3D Tracking We provide an online 3D multi-object tracking baseline following the common tracking-by-detection paradigm, leaning heavily on the above PointPillars [16] models. Our method is similar in spirit to [22]. In this paradigm, tracking at each timestep $t$ consists of running a detector to generate detections $d_t^n = \{d_t^1, d_t^2, \dots, d_t^n\}$ with $n$ being the total number of detections, associating these detections to our tracks $t_t^m = \{t_t^1, t_t^2, \dots, t_t^m\}$ with $m$ being the current number of tracks, and updating the state of these tracks $t_t^m$ given the new information from detects $d_t^n$ . Additionally, we need to provide a birth and death process to determine when a given track is Dead (not to be matched with), Pending (not confident enough yet), and Live (being
+
+returned from the tracker).
+
+For our baseline, we use our already trained PointPillars [16] models from above, $1 - IOU$ as our cost function, the Hungarian method [15] as our assignment function, and a Kalman Filter [13] as our state update function. We ignore detections with lower than a 0.2 class score, and set a minimum threshold of 0.5 IoU for a track and a detect to be considered a match. Our tracked state consists of a 10 parameter state $t_t^m = \{cx, cy, cz, w, l, h, \alpha, vx, vy, vz\}$ with a constant velocity model. For our birth and death process, we simply increment the score of the track with the associated detection score if seen, decrement by a fixed cost (0.3) if the track is unmatched, and provide a floor and ceiling of the score [0, 3]. Both vehicle and pedestrian results can be seen in Table 7. For both vehicles and pedestrians the mismatch percentage is quite low, indicating IoU with a Hungarian algorithm [15] is a reasonable assignment method. Most of the loss of MOTA appears to be due to misses that could either be due to localization, recall, or box shape prediction issues.
+
+2D Tracking We use the visual multi-object tracking method Tracktor [14] based on a Faster R-CNN object detector that we pre-trained on the COCO Dataset [17] and then fine-tuned on our dataset. We optimized the parameters of the Tracktor method on our dataset and set $\sigma_{\mathrm{active}} = 0.4$ , $\lambda_{\mathrm{active}} = 0.6$ , and $\lambda_{\mathrm{new}} = 0.3$ . The resulting Tracktor model achieved a MOTA of 34.8 at LEVEL_1 and 28.3 at LEVEL_2 when tracking vehicles.
+
+# 5.3. Domain Gap
+
+The majority of the scenes in our dataset were recorded in three distinct cities (Table 4), namely San Francisco, Phoenix, Mountain View. We treat Phoenix and Mountain View as one domain called Suburban (SUB) in this experiment. SF and SUB have similar number of scenes per (Table 4) and different number of objects in total (Table 8). As these two domains differ from each other in fascinating ways, the resulting domain gap in our dataset opens up exciting research avenues in the field of domain adaptation. We studied the effects of this domain gap by evaluating the performance of object detectors trained on data recorded in one domain on the training set and evaluated in another domain on the validation set.
+
+We used the object detectors described in Section 5.1. We filter the training and validation datasets to only contain frames from a specific geographic subset referred to as SF (San Francisco), SUB (MTV + Phoenix), or ALL (all data), and retrain and reevaluate models on the permutation of these splits. Table 9 summarizes our results. For the 3D LiDAR-based vehicle object detector, we observed an APH reduction of 8.0 when training on SF and evaluating on SUB compared with training on SUB and evaluating on SUB, and an APH
+
+| Metric | BEV (LEVEL_1/LEVEL_2) | 3D (LEVEL_1/LEVEL_2) |
| Overall | 0 - 30m | 30 - 50m | 50m - Inf | Overall | 0 - 30m | 30 - 50m | 50m - Inf |
| Vehicle APH | 79.1/71.0 | 90.2/87.7 | 77.3/71.1 | 62.8/49.9 | 62.8/55.1 | 81.9/80.8 | 58.5/52.3 | 34.9/26.7 |
| Vehicle AP | 80.1/71.9 | 90.8/88.3 | 78.4/72.2 | 64.8/51.6 | 63.3/55.6 | 82.3/81.2 | 59.2/52.9 | 35.7/27.2 |
| Pedestrian APH | 56.1/51.1 | 63.2/61.1 | 54.6/50.5 | 43.9/36.0 | 50.2/45.1 | 59.0/56.7 | 48.3/44.3 | 35.8/28.8 |
| Pedestrian AP | 70.0/63.8 | 76.9/74.5 | 68.5/63.4 | 58.1/47.9 | 62.1/55.9 | 71.3/68.6 | 60.1/55.2 | 47.0/37.9 |
+
+Table 6. Baseline APH and AP for vehicles and pedestrians.
+
+| Metric | Overall (LEVEL_1/LEVEL_2) | MOTA by Range (LEVEL_1/LEVEL_2) |
| MOTA | MOTP | Miss | Mismatch | FP | 0 - 30m | 30 - 50m | 50m - Inf |
| Vehicle 3D | 42.5/40.1 | 18.6/18.6 | 40.0/43.4 | 0.14/0.13 | 17.3/16.4 | 70.6/69.9 | 39.7/37.5 | 12.5/11.2 |
| Pedestrian 3D | 38.9/37.7 | 34.0/34.0 | 48.6/50.2 | 0.49/0.47 | 12.0/11.6 | 52.5/51.4 | 37.6/36.5 | 22.3/21.3 |
+
+reduction of 7.6 when training on SUB and evaluating on SF compared with training on SF and evaluating on SF. For 3D object detection of pedestrians, the results are interesting. When evaluating on SUB, training on either SF or SUB yield similar APH, while training on all data yields a $7+$ APH improvement. This result does not hold when evaluating on SF. Training just on SF when evaluating on SF yields a 2.4 APH improvement as compared to training on the larger combined dataset, while training on SUB only and evaluating on SF leads to a 19.8 APH loss. This interesting behavior on pedestrian might be due to the limited amount pedestrians available in SUB (MTV + Phoenix). Overall, these results suggest a pronounced domain gap between San Francisco and Phoenix in terms of 3D object detection, which opens up exciting research opportunities to close the gap by utilizing semi-supervised or unsupervised domain adaptation algorithms.
+
+Table 7. Baseline multi-object tracking metrics for vehicles and pedestrians.
+
+ | SF(Tra) | SUB(Tra) | SF(Val) | SUB(Val) |
| Vehicle | 2.9M | 1.9M | 691K | 555K |
| Pedestrian | 2.0M | 210K | 435K | 103K |
+
+Table 8. 3D LiDAR object counts for each domain in training (Tra) and Validation (Val) sets.
+
+ | ALL/SUB/SF→SUB | ALL/SF/SUB→SF |
| Vehicle | 45.3/44.0/36.7 | 50.3/49.2/42.5 |
| Pedestrian | 25.7/20.6/19.9 | 46.0/47.6/29.7 |
+
+# 5.4. Dataset Size
+
+A larger dataset enables research on data intensive algorithms such as Lasernet[18]. For methods that work well on small datasets such as PointPillars [16], more data can
+
+achieve better results without requiring data augmentation: we trained the same PointPillars model [16] from Section 5.1 on subsets of the training sequences and evaluated these models on the test set. To have meaningful results, these subsets are cumulative, meaning that the larger subsets of sequences contain the smaller subsets. The results for these experiments can be found in Table 10.
+
+Table 9. 3D object detection baseline LEVEL_2 APH results for domain shift on 3D vehicles and pedestrians on the Validation set. IoU thresholds: Vehicle 0.7, Pedestrian 0.5.
+
+| Dataset %-age | 10% | 30% | 50% | 100% |
| Vehicle | 29.7/28.9 | 41.4/41.0 | 46.3/45.8 | 49.8/49.4 |
| Pedestrian | 39.5/27.7 | 45.7/35.7 | 50.3/40.4 | 53.0/43.0 |
+
+Table 10. The AP/APH at LEVEL_2 difficulty on the Validation set of Vehicles and Pedestrians as the dataset size grows. Each column uses a cumulative random slice of the training set with size determined by the percentage in the first row.
+
+# 6. Conclusion
+
+We presented a large-scale multimodal camera-LiDAR dataset that is significantly larger, higher quality, more geographically diverse than any existing similar dataset. It covers $76\mathrm{km}^2$ when considering the diluted ego poses at a visibility of 150 meters. We demonstrated domain diversity among Phoenix, Mountain View and San Francisco data in this dataset, which opens exciting research opportunities for domain adaptation. We evaluated the performance of 2D and 3D object detectors and trackers on the dataset. The dataset and the corresponding code are publicly available; we will maintain a public leaderboard to keep track of progress in the tasks. In the future, we plan to add map information, more labeled and unlabeled data with more diversity focused on different driving behaviors and different weather conditions to enable exciting research on other self-driving related tasks, such as behavior prediction, planning and more diverse domain adaptation.
+
+# References
+
+[1] S2 geometry. http://s2geometry.io/.5
+[2] Jens Behley, Martin Garbade, Andres Milioto, Jan Quenzel, Sven Behnke, Cyril Stachniss, and Juergen Gall. Semantickitti: A dataset for semantic scene understanding of lidar sequences. In Proc. of the IEEE/CVF International Conf. on Computer Vision (ICCV), 2019. 2
+[3] Keni Bernstein and Rainer Stiefelhagen. Evaluating multiple object tracking performance: The clear mot metrics. 2008. 6
+[4] 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. CoRR, abs/1903.11027, 2019. 2
+[5] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, and James Hays. Argoverse: 3d tracking and forecasting with rich maps. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[6] Yukyung Choi, Namil Kim, Soonmin Hwang, Kibaek Park, Jae Shin Yoon, Kyounghwan An, and In So Kweon. Kaist multi-spectral day/night data set for autonomous and assisted driving. IEEE Transactions on Intelligent Transportation Systems, 19(3). 2
+[7] 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. 1
+[8] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. International Journal of Robotics Research (IJRR), 2013. 2
+[9] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2012. 2
+[10] Agrim Gupta, Piotr Dollar, and Ross Girshick. Lvis: A dataset for large vocabulary instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 1
+[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. 7
+[12] Xinyu Huang, Xinjing Cheng, Qichuan Geng, Binbin Cao, Dingfu Zhou, Peng Wang, Yuanqing Lin, and Ruigang Yang. The apolloscape dataset for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops. 2
+[13] Rudolph Emil Kalman. A new approach to linear filtering and prediction problems. Transactions of the ASME-Journal of Basic Engineering, 82(Series D). 7
+[14] Chanho Kim, Fuxin Li, and James M Rehg. Multi-object tracking with neural gating using bilinear LSTM. In ECCV, 2018. 7
+[15] Harold W. Kuhn and Bryn Yaw. The hungarian method for the assignment problem. Naval Res. Logist. Quart, 1955. 7
+
+[16] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. CVPR, 2019. 6, 7, 8
+[17] 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. 1, 7
+[18] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 8
+[19] Abhishek Patil, Srikanth Malla, Haiming Gang, and Yi-Ting Chen. The h3d dataset for full-surround 3d multi-object detection and tracking in crowded urban scenes. In Proceedings of IEEE Conference on Robotics and Automation (ICRA). 2
+[20] Charles Ruizhongtai Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 6
+[21] 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. 7
+[22] Xinshuo Weng and Kris Kitani. A baseline for 3d multi-object tracking. arXiv:1907.03961, 2019. 7
+[23] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition. 1
+[24] 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, 2018. 6
\ No newline at end of file
diff --git a/scalabilityinperceptionforautonomousdrivingwaymoopendataset/images.zip b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bc44484ce4e791b4a15e1f1d250419d63f7f4ceb
--- /dev/null
+++ b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1060045a784b33cacb8187374a1358eed2fd78a328dfb6c4e7150d133ae038a
+size 477555
diff --git a/scalabilityinperceptionforautonomousdrivingwaymoopendataset/layout.json b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ee4dee7dd575ff6811beb4c5d91d34309025c0b2
--- /dev/null
+++ b/scalabilityinperceptionforautonomousdrivingwaymoopendataset/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:92672bc9a818ba1bb2546f337cf3dfbaa854d1ad49ff0466026c3249d6cd9925
+size 374339
diff --git a/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_content_list.json b/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6e969dca31ae308a8155ea0b5e77e910ebd275bb
--- /dev/null
+++ b/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cbeab0b3103caa3976d208046fe5c3ce4977f89f6e4561b334f74a550367e54d
+size 81830
diff --git a/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_model.json b/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d8f28f485c5ef51a7bfe576f9aa091850aa9d31d
--- /dev/null
+++ b/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d5ffc3ef997192816666e909c9d9b725b2d7739729ab19767b010188388ef423
+size 101190
diff --git a/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_origin.pdf b/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ce8425ac04ae248eaff304aa5224c41d98d15bd0
--- /dev/null
+++ b/scatterselectivecontextattentionalscenetextrecognizer/b439738c-f867-4a08-8511-fd48b828e970_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:888babdffb0f5b35e3c3f65c18751ec5a248951cf6f2ad1dcb16818bfb21b6f0
+size 716103
diff --git a/scatterselectivecontextattentionalscenetextrecognizer/full.md b/scatterselectivecontextattentionalscenetextrecognizer/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3e7e79ae73edad20f95ad0689b16a1ca1fefc403
--- /dev/null
+++ b/scatterselectivecontextattentionalscenetextrecognizer/full.md
@@ -0,0 +1,344 @@
+# SCATTER: Selective Context Attentional Scene Text Recognizer
+
+Ron Litman*, Oron Anschel*, Shahar Tsiper, Roee Litman, Shai Mazor and R. Manmatha
+Amazon Web Services
+
+{litmanr, oronans, tsiper, rlit, smazor, manmatha}@amazon.com
+
+# Abstract
+
+Scene Text Recognition (STR), the task of recognizing text against complex image backgrounds, is an active area of research. Current state-of-the-art (SOTA) methods still struggle to recognize text written in arbitrary shapes. In this paper, we introduce a novel architecture for STR, named Selective Context ATtential Text Recognizer (SCATTER). SCATTER utilizes a stacked block architecture with intermediate supervision during training, that paves the way to successfully train a deep BiLSTM encoder, thus improving the encoding of contextual dependencies. Decoding is done using a two-step 1D attention mechanism. The first attention step re-weights visual features from a CNN backbone together with contextual features computed by a BiLSTM layer. The second attention step, similar to previous papers, treats the features as a sequence and attends to the intra-sequence relationships. Experiments show that the proposed approach surpasses SOTA performance on irregular text recognition benchmarks by $3.7\%$ on average.
+
+# 1. Introduction
+
+We address the task of reading text in natural scenes, commonly referred to as Scene Text Recognition (STR). Although STR has been active since the late 90's, only recently accuracy reached a level that enables commercial applications, this is mostly due to advances in deep neural networks research for computer vision tasks. Applications for STR include, among others, recognizing street signs in autonomous driving, company logos, assistive technology for the blind and translation apps in mixed reality.
+
+Text in natural scenes is characterised by a large variety of backgrounds, and arbitrary imaging conditions that can lead to low contrast, blur, distortion, low resolution, uneven illumination and other phenomena and artifacts. In addition, the sheer magnitude of possible font types and sizes add another layer of difficulty that STR algorithms must overcome. Generally, recognizing scene text can be divided into two main tasks - text detection and text recognition. Text
+
+
+Figure 1: The proposed SCATTER training and inference architecture. We introduce intermediate supervision combined with selective-decoding to stabilize the training of a deep BiLSTM encoder (The circle represents where a loss function is applied). Decoding is done using a selective-decoder that operates on visual features from the CNN backbone and contextual features from the BiLSTM encoder, while employing a two-step attention.
+
+detection is the task of identifying the regions in a natural image, that contain arbitrary shapes of text. Text recognition deals with the task of decoding a cropped image that contains one or more words into a digital string of its contents.
+
+In this paper, we propose a method for text recognition; we assume the input is a cropped image of text taken from a natural image, and the output is the recognized text string within the cropped image. As categorized by previous works [1, 16], text images can be divided into two categories: Irregular text for arbitrarily shaped text (e.g. curved text), as seen in Fig. 1, and regular text for text with nearly horizontally aligned characters (examples are provided in the supplementary material).
+
+Traditional text recognition methods [37, 38, 42] detect and recognize text character by character, however, these methods have an inherent limitation - they do not utilize
+
+sequential modeling and contextual dependencies between characters.
+
+Modern methods treat STR as a sequence prediction problem. This technique alleviates the need for character-level annotations (per-character bounding box) while achieving superior accuracy. The majority of these sequence-based methods rely on Connectionist Temporal Classification (CTC) [31, 7], or attention-based mechanisms [33, 16]. Recently, Baek et al. [1] proposed a modular four-step STR framework, where the individual components are interchangeable allowing for different algorithms. This modular framework, along with its best performing component configuration, is depicted in Fig. 1 (a). In this work, we build upon this framework and extend it.
+
+While accurately recognizing regular scene text remains an open problem, recent irregular STR benchmarks (e.g., ICD15, SVTP) have shifted research focus to the problem of recognizing text in arbitrary shapes. For instance, Sheng et al. [30] adopted the Transformer [35] model for STR, leveraging the transformers ability to capture long-range contextual dependencies. The authors in [16] passed the visual features from the CNN backbone through a 2D attention module down to their decoder. Mask TextSpotter [17] unified the detection and the recognition tasks with a shared backbone architecture. For the recognition stage, two types of prediction branches are used, and the final prediction is selected based on the output of the more confident branch. The first branch uses semantic segmentation of characters, and requires additional character-level annotations. The second branch employs a 2D spatial attention-decoder.
+
+Most of the aforementioned STR methods perform a sequential modeling step using a recursive neural network (RNN) or other sequential modeling layers (e.g., multi-head attention [30]), usually in the encoder and/or the decoder. This step is performed to convert the visual feature map into a contextual feature map, which better captures long-term dependencies. In this work, we propose using a stacked block architecture for repeated feature processing, a concept similar to that used in other computer-vision tasks such as in [40] and later in [27, 26]. The authors above showed that repeated processing used in conjunction with intermediate supervision could be used to increasingly refine predictions.
+
+In this paper, we propose the Selective Context ATtential TExt Recognizer (SCATTER) architecture. Our method, as depicted in Fig. 1, utilize a stacked block architecture for repetitive processing with intermediate supervision in training, and a novel selective-decoder. The selective-decoder receives features from two different layers of the network, namely, visual features from a CNN backbone and contextual features computed by a BiLSTM layer, while using a two-step 1D attention mechanism. Fig-
+
+
+Figure 2: Average test accuracy (IIT5K, SVT, IC03, IC13,IC15, SVTP, CUTE) at intermediate decoding steps, compared across different network depths used in training. Given a computation budget, improved results can be obtained by first training a deeper network, and then running only the first decoder(s) during inference.
+
+
+
+ure 2 shows the accuracy levels computed at the intermediate auxiliary decoders, for different stacking arrangements, thus demonstrating the increase in performance as additional blocks are added in succession. Interestingly, training with additional blocks in sequence leads to an improvement in the accuracy of the intermediate decoders as well (compared to training with a shallower stacking arrangement).
+
+This paper presents two main contributions:
+
+1. We propose a repetitive processing architecture for text recognition, trained with intermediate selective decoders as supervision. Using this architecture we train a deep BiLSTM encoder, leading to SOTA results on irregular text.
+2. A selective attention decoder, that simultaneously decodes both visual and contextual features by employing a two-step attention mechanism. The first attention step figures out which visual and contextual features to attend to. The second step treats the features as a sequence and attends the intra-sequence relations.
+
+# 2. Related Work
+
+STR has attracted considerable attention over the past few years [34, 36, 3, 20]. Comprehensive surveys for scene text detection and recognition may be found in [43, 1, 21]. As mentioned above, STR may be divided into two categories: regular and irregular texts (further examples are provided in the supplementary material). Earlier papers [37, 38, 42], focused on regular text and used a bottom-up approach, which involved segmenting individual characters with a sliding window, and then recognizing the characters using hand-crafted features. A notable issue with the bottom-up approaches above, is that they struggle to use contextual information; instead they rely on accurate character classifiers. Shi et al. 2015 [31] and He et al. [11] considered words as sequences of varying lengths, and employed RNNs to model the sequences without explicit char
+
+acter separation. Shi et al. 2016 [32] presented a successful end-to-end trainable architecture using the sequence approach, without relying on character level annotations. Their solution employed a BiLSTM layer to extract the sequential feature vectors from the input feature maps, these vectors are then fed into an attention-Gated Recurrent Unit (GRU) module for decoding.
+
+The methods mentioned above introduced significant improvements in STR accuracy on public benchmarks. Therefore, recent work has shifted focus to the more challenging problem of recognizing irregularly shaped text, hence promoting new lines of research. Topics such as input rectification, character-level segmentation, 2D attentional feature maps and self attention have emerged, pushing the envelope on irregular STR. Shi et al. 2018 [33] rectified oriented or curved text based on a Spatial Transformer Network (STN). Liu et al. 2018 [19] introduced a Character-Aware Neural Network (Char-Net) to detect and rectify individual characters. A combination of a CTC-Attention mechanism within an encoder-decoder framework, that was used for speech recognition tasks, was used for STR in [45], showing the benefits of joint CTC-Attention learning. The authors in [7] proposed two supervision branches to tackle explicit and implicit semantic information. In [4] a gate was inserted to the recurrent decoder, for controlling the transmission-weight of the previous embedded vector, demonstrating that context is not always needed for decoding. The authors of Mask TextSpotter [17] unified text detection and text recognition in an end-to-end fashion. For recognition they used two separate branches, a branch that uses visual (local) features and a branch which utilizes contextual information in the form of 2D attention.
+
+More recent approaches have proposed leveraging various attention mechanisms for improved results. Li et al. [16] combined both visual and contextual features while utilizing a 2D attention within the encoder-decoder. Other researchers borrowed ideas from the Natural Language Processing (NLP) domain and adopted a transformer-based architecture [35]. One of them is Sheng et al. [30], that used a self-attention mechanism for both the encoder and the decoder.
+
+Our method differs from above approaches, by being the first to utilize a stacked block architecture for text recognition. Namely, we show that repetitive processing for text recognition, trained with intermediate selective decoders as supervision (similar to [40, 27, 26]), increasingly refines text predictions.
+
+# 3. Methodology
+
+As presented in Fig. 3, our proposed architecture consists of four main components:
+
+1. Transformation: the input text image is normalized using a Spatial Transformer Network (STN) [13].
+
+2. Feature Extraction: maps the input image to a feature map representation while using a text attention module [7].
+3. Visual Feature Refinement: provides direct supervision for each column in the visual features. This part refines the representation in each of the feature columns, by classifying them into individual symbols.
+4. Selective-Contextual Refinement Block: Each block consists of a two-layer BiLSTM encoder that outputs contextual features. The contextual features are concatenated to the visual features computed by the CNN backbone. This concatenated feature map is then fed into the selective-decoder, which employs a two-step 1D attention mechanism, as illustrated in Fig. 4.
+
+In this section we describe the training architecture of SCATTER, while addressing the differences between training and inference.
+
+# 3.1. Transformation
+
+The transformation step operates on the cropped text image $X$ , and transforms it into a normalized image $X'$ . We use a Thin Plate Spline (TPS) transformation, a variant of the STN, as used in [1]. TPS employs a smooth spline interpolation between a set of fiducial points. Specifically, it detects a pre-defined number of fiducial points at the top and bottom of the text region, and normalizes the predicted region to a constant predefined size.
+
+# 3.2. Feature Extraction
+
+In this step a convolutional neural network (CNN) extracts features from the input image. We use a 29-layer ResNet as the CNN's backbone, as used in [5]. The output of the feature encoder is 512 channels by $N$ columns. Specifically, the feature encoder gets an input image $X^{\prime}$ and outputs a feature map $F = [f_{1},f_{2},\dots,f_{N}]$ . Following the feature map extraction, we use a text attention module, similar to [7]. The attentional feature map can be regarded as a visual feature sequence of length $N$ , denoted as $V = [v_{1},v_{2},\dots,v_{N}]$ , where each column represents a frame in the sequence.
+
+# 3.3. Visual Feature Refinement
+
+Here, the visual feature sequence $V$ is used for intermediate decoding. This intermediate supervision is aimed at refining the character embedding (representations) in each of the columns of $V$ , and is done using CTC based decoding. We feed $V$ through a fully connected layer that outputs a sequence $H$ of length $N$ . The output sequence is fed into a CTC [8] decoder to generate the final output. The CTC decoder transforms the output sequence tensor into a conditional probability distribution over the label sequences, and then selects the most probable label. The transcription pro
+
+
+Figure 3: The proposed SCATTER architecture introduces, context refinement, intermediate supervision (additional decoders), and a novel selective-decoder.
+
+cEDURE is given by
+
+$$
+l = B \left(\underset {\pi} {\arg \max } p (\pi | H)\right), \tag {1}
+$$
+
+where the probability of $\pi$ is defined as
+
+$$
+p (\pi | H) = \prod_ {t = 1} ^ {N} y _ {\pi_ {t}} ^ {t}. \tag {2}
+$$
+
+Here $y_{\pi_t}^t$ is the probability of generating the character $\pi_t$ at time stamp $t$ , and $B$ is a mapping function that removes all repeated characters and blanks. The CTC algorithm assumes that the columns are conditionally independent, and at each time stamp the output is a single character probability score. The loss for this branch, denoted by $L_{\mathrm{CTC}}$ , is the negative log-likelihood of the ground-truth conditional probability, as in [31].
+
+# 3.4. Selective-Contextual Refinement Block
+
+The features extracted by the CNN are limited to its receptive field, and may suffer due to the lack of contextual information. To mitigate this drawback, we employ a two-layer BiLSTM [9] network over the feature map $V$ , outputting $H = [h_1, h_2, \dots, h_n]$ . We concatenate the BiLSTM output with the visual feature map, yielding $D = (V, H)$ , a new feature space.
+
+The feature space $D$ is used both for selective decoding, and as an input to the next Selective-Contextual Refinement block. Specifically, the concatenated output of the $j$ th block can be written as $D_{j} = (V,H_{j})$ . The next $j + 1$ block uses $H_{j}$ as input to the two-layer BiLSTM, yielding $H_{j + 1}$ , and the $j + 1$ feature space is updated such that $D_{j + 1} = (V,H_{j + 1})$ . The visual feature map $V$ does not undergo any further updates in the Selective-Contextual Refinement blocks, however we note that the CNN backbone is updated with back-propagated gradients from all of the selective-decoders. These blocks can be stacked together as many times as needed, according to the task or accuracy
+
+
+Figure 4: Architecture of the Two-Step Attention Selective-Decoder.
+
+levels required, and the final prediction is provided by the decoder from the last block.
+
+# 3.4.1 Selective-Decoder
+
+We employ a two-step attention mechanism, as illustrated in Fig. 4. First, we use a 1D self attention operating on the features $D$ . A fully connected layer is used to compute an attention map from these features. Next, an element-wise product is computed between the attention map and $D$ , yielding the attentional features $D'$ . The decoding of $D'$ is done with a separate attention-decoder, such that for each $t$ -time-step the decoder outputs $y_{t}$ , similar to [5, 2].
+
+Decoding starts by computing the vector of attentional weights, $\alpha_{t} \in R^{N}$ :
+
+$$
+e _ {t, i} = w ^ {T} \tanh \left(W s _ {t - 1} + V d _ {i} ^ {\prime} + b\right) \tag {3}
+$$
+
+$$
+\alpha_ {t, i} = \exp \left(e _ {t, i}\right) / \sum_ {i ^ {*} = 1} ^ {n} e _ {t, i ^ {*}}, \tag {4}
+$$
+
+where $b, w, W, V$ are trainable parameters, $s_{t-1}$ is the hidden state of the recurrent cell within the decoder at time $t$ , and $d^t$ is a column of $D^t$ . The decoder linearly combines the
+
+columns of $D^{\prime}$ into a vector $G$ , which is called a glimpse:
+
+$$
+g _ {t} = \sum_ {i = 1} ^ {n} \alpha_ {t, i} d _ {i} ^ {\prime}. \tag {5}
+$$
+
+Next, a recurrent cell of the decoder is fed with
+
+$$
+\left(x _ {t}, s _ {t}\right) = \operatorname {R N N} \left(s _ {t - 1}, \left(g _ {t}, f \left(y _ {t - 1}\right)\right)\right), \tag {6}
+$$
+
+where $(g_t, f(y_{t-1}))$ denotes the concatenation between $g_t$ and the one-hot embedding of $y_{t-1}$ .
+
+The probability for a given character $p(y_{t})$ can now be recovered by:
+
+$$
+p \left(y _ {t}\right) = \operatorname {s o f t m a x} \left(W _ {o} x _ {t} + b _ {o}\right). \tag {7}
+$$
+
+The loss for the $j$ th block is the negative log-likelihood, denoted as $L_{\mathrm{Attn},j}$ , as in [5, 2].
+
+# 3.5. Training Losses
+
+The objective function is given by
+
+$$
+L = \lambda_ {\mathrm {C T C}} \cdot L _ {\mathrm {C T C}} + \sum_ {j = 1} \lambda_ {j} L _ {\mathrm {A t t n}, j}, \tag {8}
+$$
+
+where $L_{\mathrm{CTC}}$ is the loss function of the CTC decoder and $\sum_{j=1} \lambda_j L_{\mathrm{Attn},j}$ is the sum of the losses from all of the Selective-Contextual Refinement blocks, as defined above. The $\lambda$ notation depicts a hyper-parameter used to balance the trade-off between the different supervisions, and specifically, $\lambda_{CTC}, \lambda_j$ are empirically set to 0.1, 1.0 respectively for all $j$ .
+
+# 3.6. Inference
+
+Once training is done, for test time we remove all of the intermediate decoders, as they are used only for additional supervision and refinement of intermediate feature. The visual features $V$ are processed by the BiLSTM layers in all blocks, and are also fed directly, via a skip connection, to the final selective-decoder. The final selective decoder is used to predict the output sequence of characters. A visualization of these changes can be seen in Fig. 3, where all the green colored operations are disabled during inference, and in Fig. 1 (b).
+
+# 4. Experiments
+
+In this section we empirically demonstrate the effectiveness of our proposed framework. We begin with a brief discussion regarding the datasets used for training and testing, and then describe our implementation and evaluation setup. Next, we compare our model against state-of-the-art methods on public benchmark datasets, including both regular and irregular text. Finally, we address the computational cost of our method.
+
+# 4.1. Datasets
+
+In this work, all SCATTER models are trained on three synthetic datasets. The model is evaluated on four regular scene-text datasets: ICDAR2003, ICDAR2013, IIIT5K, SVT, and three irregular text datasets: ICDAR2015, SVTP and CUTE.
+
+The training dataset is a union of three datasets:
+
+MJSynth (MJ) [12] is a synthetic text in image dataset which contains 9 million word box images, generated from a lexicon of 90K English words.
+
+SynthText (ST) [10] is a synthetic text in image dataset, designed for scene-text detection, and recognition. We use a variant of the SynthText dataset composed of 5.5M samples, as used in [1]. This variant does not include any non-alphanumeric characters.
+
+SynthAdd (SA) [16] is a synthetic text in image dataset, that contains 1.2 million word box images. This dataset was generated using the same synthetic engine as in ST, aiming to mitigate the lack of non-alphanumeric characters (e.g., punctuation marks) in the other datasets.
+
+All experiments are evaluated on the seven real-word STR benchmark datasets described below. As in many STR manuscripts (e.g., [33, 1, 16]) the benchmark datasets are commonly divided into regular and irregular text, according to the text layout.
+
+Regular text datasets include the following: IIIT5K [25] consists of 2000 training and 3000 testing images that are cropped from Google image searches. SVT [37] is a dataset collected from Google Street View images and contains 257 training and 647 testing word-box cropped images. ICDAR2003 [23] contains 867 word-box cropped images for testing. ICDAR2013 [15] contains 848 training and 1,015 testing word-box cropped images.
+
+Irregular text datasets include the following: IC-DAR2015 [14] contains 4,468 training and 2,077 testing word-box cropped images, all captured by Google Glass, without careful positioning or focusing. SVTP [28] is a dataset collected from Google Street View images and consists of 645 cropped word-box images for testing. CUTE 80 [29] contains 288 cropped word-box images for testing, many of which are curved text images.
+
+# 4.2. Implementation Details
+
+As baseline, we use the code of Baek et al. [1], and our architectural changes are implemented on top of it. All experiments are trained and tested using the PyTorch framework on a Tesla V100 GPU with 16GB memory. As for the training details, we do not perform any type of pre-training. We train using the AdaDelta optimizer, and the following training parameters are used: a decay rate of 0.95, gradient clipping with a magnitude of 5, a batch size of 128 (with a
+
+Table 1: Scene text recognition accuracies (%) over seven public benchmark test datasets (number of words in each dataset are shown below the title). No lexicon is used. In each column, the best performing result is shown in bold font, and the second best result is shown with an underline. Average columns are weighted (by size) average results on the regular and irregular datasets. *** indicates using both word-level and character-level annotations for training.
+
+| Method | Regular test dataset | Irregular test dataset |
| IIIT5K 3000 | SVT 647 | IC03 867 | IC13 1015 | Average 5529 | IC15 2077 | SVTP 645 | CUTE 288 | Average 3010 |
| CRNN (2015) [31] | 78.2 | 80.8 | 89.4 | 86.7 | 81.8 | - | - | - | - |
| FAN (2017) [5]* | 87.4 | 85.9 | 94.2 | 93.3 | 89.4 | 70.6 | - | - | - |
| Char-Net (2018) [19]* | 83.6 | 84.4 | 91.5 | 90.8 | 86.2 | 60.0 | 73.5 | - | - |
| AON (2018) [6] | 87.0 | 82.8 | 91.5 | - | - | 68.2 | 73.0 | 76.8 | 70.0 |
| EP (2018) [2]* | 88.3 | 87.5 | 94.6 | 94.4 | 90.3 | 73.9 | - | - | - |
| NRTR (2018) [33] | 86.5 | 88.3 | 95.4 | 94.7 | 89.6 | - | - | - | - |
| Liao et al. (2019) [18] | 91.9 | 86.4 | - | 86.4 | - | - | - | 79.9 | - |
| Baek et al. (2019) [1] | 87.9 | 87.5 | 94.9 | 92.3 | 89.8 | 71.8 | 79.2 | 74.0 | 73.6 |
| ASTER (2019) [33] | 93.4 | 89.5 | 94.5 | 91.8 | 92.8 | 76.1 | 78.5 | 79.5 | 76.9 |
| SAR (2019) [16] | 91.5 | 84.5 | - | 91.0 | - | 69.2 | 76.4 | 83.3 | 72.1 |
| ESIR (2019) [44] | 93.3 | 90.2 | - | 91.3 | - | 76.9 | 79.6 | 83.3 | 78.1 |
| MORAN (2019) [24] | 91.2 | 88.3 | 95.0 | 92.4 | 91.7 | 68.8 | 76.1 | 77.4 | 71.2 |
| Yang et al. (2019) [41] | 94.4 | 88.9 | 95.0 | 93.9 | 93.7 | 78.7 | 80.8 | 87.5 | 79.9 |
| Mask TextSpotter (2019) [17]* | 95.3 | 91.8 | 95.0 | 95.3 | 94.8 | 78.2 | 83.6 | 88.5 | 80.0 |
| SCATTER (1 Block) | 92.9 | 89.2 | 96.5 | 93.8 | 93.2 | 81.8 | 84.5 | 85.1 | 82.7 |
| SCATTER (2 Block) | 93.5 | 89.2 | 95.9 | 94.7 | 93.6 | 81.5 | 86.2 | 86.8 | 83.0 |
| SCATTER (3 Block) | 93.9 | 89.3 | 96.1 | 94.6 | 93.7 | 82.8 | 85.7 | 83.7 | 83.4 |
| SCATTER (4 Block) | 93.4 | 90.3 | 96.6 | 94.3 | 93.7 | 82.0 | 87.0 | 86.5 | 83.5 |
| SCATTER (5 Block) | 93.7 | 92.7 | 96.3 | 93.9 | 94.0 | 82.2 | 86.9 | 87.5 | 83.7 |
+
+sampling ratio of $40\%$ , $40\%$ , $20\%$ between MJ, ST and SA respectively). We use data augmentation during training, and augment $40\%$ of the input images, by randomly resizing them and adding extra distortion. Each model is trained for 6 epochs on the unified training set. For our internal validation dataset, we use the union of the IC13, IC15, IIIT, and SVT training splits, to select our best model, as done in [1]. All images are resized to $32 \times 100$ during both training and testing, following common practice. In this paper, we use 36 symbol classes: 10 digits and 26 case-insensitive letters. As for special symbols for CTC decoding, an additional “[UNK]” and a “[blank)” token are added to the label set. For the selective-decoders three special punctuation characters are added: “[GO]”, “[S]” and “[UNK]” which indicate the start of the sequence, the end of the sequence and unknown characters (that are not alpha-numeric), respectively.
+
+At inference, we employ a similar mechanism to [16, 39, 22], where images with a height larger than their width, are rotated by 90 degrees clockwise and counter-clockwise respectively. The rotated versions are recognized alongside the original image. A prediction confidence score is calculated as the average decoder probabilities until the '[S]' token. We then choose the prediction with the highest confidence score as the final prediction. Unlike [33, 16, 30], we do not use beam-search for decoding, although the authors
+
+in [16] have reported it improves accuracy by approximately $0.5\%$ , due to the added latency it incurs.
+
+# 4.3. Comparison to State-of-the-art
+
+In this section, we measure the accuracy of our proposed framework on several regular and irregular scene text benchmarks while comparing the results to the latest SOTA recognition methods. As seen in Table 1, our SCATTER architecture with 5 blocks outperforms the current SOTA, the Mask TextSpotter [17] algorithm, on irregular scene text benchmarks (i.e., IC15, SVTP, CUTE) by an absolute margin of $3.7\%$ on average. Our approach provides an accuracy increase of $+4.0$ pp $(78.2\%$ vs. $82.2\%)$ on IC15, $+3.3$ pp $(83.6\%$ vs. $86.9\%)$ on SVTP, and is the second best to Mask TextSpotter [17] on the CUTE $(88.5\%$ vs. $87.5\%)$ dataset. Additionally, the proposed method outperforms the other methods both on SVT and IC03 regular scene text datasets, and achieves comparable SOTA performance on the other regular scene text datasets (i.e., IIIT5K and IC13).
+
+To summarize, our model achieves the highest recognition score on 4 out of 7 benchmarks, and the second best score on 2 more benchmarks. Unlike other methods, which perform well on either regular or irregular scene text benchmarks, our approach is a top performer on all benchmarks.
+
+We would like to briefly discuss key differences between Mask TextSpotter [17] and this work. The algorithm
+
+Table 2: Ablation studies by changing the model hyper-parameters. We refer to our re-trained model using the code of Baek et al. 2019 as Baseline. Using intermediate supervision helps to boost results and enables stacking more blocks. Increasing the number of blocks has positive impacts on the recognition performance. * Regular Text and Irregular Text columns are weighted (by size) average results on the regular and irregular datasets respectively.
+
+| Sec | Method | CTC Decoder | Attention Decoders | Selective Decoders | LSTM Layers | N Blocks | Regular test dataset | Irregular test dataset | Regular Text* | Irregular Text* |
| IIIT5K | SVT | IC03 | IC13 | IC15 | SVTP | CUTE |
| (a) | [1] | 0 | 1 | - | 2 | - | 87.9 | 87.5 | 94.9 | 92.3 | 71.8 | 79.2 | 74.0 | 89.8 | 73.7 |
| Baseline | 0 | 1 | - | 2 | - | 93.0 | 88.6 | 94.3 | 92.9 | 78.0 | 81.5 | 80.1 | 92.7 | 79.1 |
| Baseline | 1 | 1 | - | 2 | - | 92.7 | 90.0 | 95.0 | 93.4 | 78.3 | 83.4 | 80.0 | 92.9 | 79.5 |
| SCATTER | 0 | - | 1 | 2 | 1 | 93.1 | 89.3 | 95.7 | 93.7 | 80.6 | 84.0 | 86.5 | 93.1 | 81.8 |
| SCATTER | 1 | - | 1 | 2 | 1 | 92.9 | 89.2 | 96.5 | 93.8 | 81.8 | 84.5 | 85.1 | 93.2 | 82.7 |
| (b) | SCATTER | 0 | - | 1 | 4 | 2 | 92.9 | 89.6 | 95.3 | 93.2 | 79.3 | 84.2 | 83.7 | 92.9 | 80.1 |
| SCATTER | 0 | - | 2 | 4 | 2 | 93.1 | 90.7 | 94.9 | 93.6 | 81.6 | 84.7 | 85.8 | 93.2 | 82.6 |
| SCATTER | 1 | - | 1 | 4 | 2 | 93.0 | 90.6 | 95.5 | 92.8 | 82.0 | 84.0 | 86.8 | 93.1 | 82.9 |
| SCATTER | 1 | - | 2 | 4 | 2 | 93.5 | 89.2 | 95.9 | 94.7 | 81.5 | 86.2 | 86.8 | 93.6 | 83.0 |
| (c) | SCATTER | 1 | - | 3 | 6 | 3 | 93.9 | 89.3 | 96.1 | 94.6 | 82.8 | 85.7 | 83.7 | 93.7 | 83.4 |
| SCATTER | 1 | - | 4 | 8 | 4 | 93.4 | 90.3 | 96.6 | 94.3 | 82.0 | 87.0 | 86.5 | 93.7 | 83.5 |
| SCATTER | 1 | - | 5 | 10 | 5 | 93.7 | 92.7 | 96.3 | 93.9 | 82.2 | 86.9 | 87.5 | 94.0 | 83.7 |
| SCATTER | 1 | - | 6 | 12 | 6 | 93.2 | 90.9 | 96.2 | 94.1 | 82.0 | 86.2 | 84.8 | 93.6 | 83.2 |
+
+
+GT: enterprise Pred: enterprise
+
+
+
+
+
+
+GT:avis Pred:cavis
+Figure 5: Failure cases of our model. "GT" stands for the ground-truth annotation, and "Pred" is the predicted result.
+
+
+GT: chanterelle
+Pred: shanterelle
+GT: tv
+Pred: tsp
+
+
+GT: celebrating Pred: celebrating
+go GT:uturn
+gol Pred:uturn
+
+
+GT: barbeque
+Pred: barbecue
+
+in [17] relies on annotations that contain character level annotations, information that our algorithm does not require. These annotations contribute an average increase of $0.9\mathrm{pp}$ , and $0.6\mathrm{pp}$ on regular and irregular text datasets as reported in the original paper. Hence, without the character level annotations, our model achieves slightly better results on regular text ( $93.9\%$ vs. $94\%$ ) and significantly better results on irregular text ( $79.4\%$ vs. $83.7\%$ ). Our approach, on the other hand, does not require these annotations, which are expensive and hard to annotate, especially for real-world data.
+
+In Fig. 5 we display failure cases of our method. The failure cases are mostly composed of blurry images, partial character occlusions, difficult lighting conditions, and missrecognition of punctuation marks.
+
+# 4.4. Computational Costs
+
+During inference, only the selective decoder of the final block is kept active, as shown in Fig. 1. The total computational cost of our proposed architecture with a single
+
+block is $20.1\mathrm{ms}$ . The additional computational cost of each intermediate contextual refinement block during inference translates to a $3.2\mathrm{ms}$ per block. For a 5 block architecture (our best setup) this translates to a total increase of $12.8\mathrm{ms}$ and a total forward pass of $32.9\mathrm{ms}$ .
+
+Furthermore, given a computational budget on inference time, performance can be improved by training the system with a large number of blocks and pruning them for inference. For example, an architecture trained with five blocks, and then pruned to a single block, is capable of outperforming an architecture solely trained with a single block. Figure 2(2c) demonstrates a network trained with five blocks and the average test accuracy of intermediate decoders. This showcases that pruning leads to an increase of $+0.4$ pp and $+1.3$ pp on regular an irregular datasets respectively (under the same computational budget). This novel feature of SCATTER allows for faster inference if needed and in some cases pruning can even boost results.
+
+# 5. Ablation Experiments
+
+In this section, we perform a series of experiments to better understand the performance improvements and analyze the impact of our key contributions. Throughout this section, we use a weighted-average (by the number of samples) of the results on the regular and irregular test datasets. For completeness, the first and second rows in Table 2 show the reported results in [1], and the improved results of our re-trained model of [1] with our custom training settings.
+
+# 5.1. Intermediate Supervision & Selective Decoding
+
+Section (a) of Table 2 shows an improvement in accuracy by adding the intermediate CTC supervision and the pro
+
+posed selective-decoder. Between row two and three of section (a) we add a CTC decoder for intermediate supervision which improves the baseline results by $+0.2$ pp and $+0.4$ pp on regular and irregular text respectively. The fourth row demonstrates the improvement compared to the baseline results by replacing the standard attentional decoder with the proposed selective-decoder, $(+0.4$ pp and $+2.7$ pp on regular and irregular text respectively).
+
+Section (b) of Table 2 shows a monotonic increase in the accuracy using the SCATTER architecture with 4 BiLSTM layers by changing the number of intermediate supervisions (ranging from 1 to 3). The relative increase in accuracy of section (b) is $+0.7$ pp and $+2.9$ pp on regular and irregular text respectively.
+
+# 5.2. Stable Training of a Deep BiLSTM Encoder
+
+As mentioned in the introduction, previous papers use only a 2-layer BiLSTM encoder. The authors in [45] report a decrease in accuracy when increasing the number of layers in the BiLSTM encoder. We reproduce the experiment reported in [45] of training a baseline architecture with an increasing number of BiLSTM layers in the encoder (results are in the supplementary material). We observe a similar phenomena as in [45], i.e a reduction in accuracy when using more than two BiLSTM layers. Contrary to this discovery, Table 2 shows that the overall trend of increasing the number of BiLSTM layers in SCATTER, while increasing the number of intermediate supervisions improves accuracy. Recognition accuracy improves monotonically up to 10 BiLSTM layers, both for regular and irregular text datasets.
+
+As evident from Table 2 (c), when training with more than 10 BiLSTM layers in the encoder, accuracy results slightly $(-0.4\mathrm{pp}$ and $-0.5\mathrm{pp}$ on regular and irregular text respectively) decrease on both regular and irregular text (similar phenomena was observed on the validation set). It is expected that increasing the network capacity leads to more challenging training procedures. Other training approaches might need to be considered to successfully train to convergence a very deep encoder. Such approaches may include incremental training, where we first train with a shallower network using a small number of blocks and incrementally stack more blocks during training.
+
+Examples of intermediate predictions are seen in Table 3, showcasing SCATTER ability to increasingly refine text prediction.
+
+# 5.3. Oracle Decoder Voting
+
+In Table 4 the test accuracy is shown for the intermediate decoders on a SCATTER architecture trained with 5 blocks. The last row summarizes the potential results of an oracle, that for every test image chooses the correct prediction, if one exists in any of the decoders. If an optimal
+
+Table 3: The table shows example for when repeated processing used in conjunction with intermediate supervision increasingly refines text predictions.
+
+| Test Image | Intermediate Decoder | Final Decoder | Ground Truth |
| 1 | 2 | 3 | 4 |
| LUTES | goptes | coptes | copies | copies | copies | copies |
| BMN | bm_ | bn_ | bmy | bmy | bmw | bmw |
| 0000 | o0______ | 100______ | 100______ | 1000_ | 10000 | 10000 |
+
+Table 4: Performance of each decoder and the oracle. The oracle performance is calculated given the ground truth.
+
+| Decoder | IIIT5K | SVT | IC03 | IC13 | IC15 | SVTP | CUTE |
| CTC | 89.6 | 84.6 | 93.5 | 90.9 | 69.9 | 77.4 | 77.8 |
| Attn1 | 93.5 | 90.3 | 95.9 | 93.9 | 82.9 | 86.4 | 87.5 |
| Attn2 | 93.5 | 90.4 | 96.3 | 94.1 | 82.6 | 86.0 | 86.8 |
| Attn3 | 93.7 | 91.0 | 95.7 | 94.3 | 82.7 | 85.1 | 87.2 |
| Attn4 | 93.7 | 91.2 | 96.5 | 94.4 | 83.3 | 85.8 | 86.8 |
| Final | 93.7 | 92.7 | 96.3 | 93.9 | 82.2 | 86.9 | 87.5 |
| Oracle | 96.3 | 95.1 | 97.1 | 95.5 | 87.1 | 89.9 | 90.3 |
+
+strategy to select between the different decoders predictions exists, the results on all datasets achieve a new state-of-the-art. The possible improvement in accuracy achievable by such an oracle ranges between $+0.8$ pp, and up to $+5$ pp across the datasets. A possible prediction selection strategy might be based on ensemble techniques, or a meta model that predicts which decoder to use for each specific image.
+
+# 6. Conclusions and Future Work
+
+In this work we propose a stacked block architecture named SCATTER, which achieves SOTA recognition accuracy and enables stable, more robust training for STR networks that use deep BiLSTM encoders. This is achieved by adding intermediate supervisions along the network layers, and by relying on a novel selective decoder.
+
+We also demonstrate that a repetitive processing architecture for text recognition, trained with intermediate selective decoders as supervision, increasingly refines text predictions. In addition, other approaches of attention could also benefit from stacked attention decoders, as our proposed novelty is not limited to our formulation of attention.
+
+We consider two promising directions for future work. First, in Fig. 2 we show that training deeper networks and then pruning the last decoders (and layers) is preferable over training a shallower network. This could lead to an increase in performance given a constraint on computational budget. Finally, we see potential in developing an optimal selection strategy between the predictions of the different decoders for each image.
+
+# 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. arXiv preprint arXiv:1904.01906, 2019. 1, 2, 3, 5, 6, 7
+[2] Fan Bai, Zhanzhan Cheng, Yi Niu, Shiliang Pu, and Shuigeng Zhou. Edit probability for scene text recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1508-1516, 2018. 4, 5, 6
+[3] Fedor Borisyuk, Albert Gordo, and Viswanath Sivakumar. Rosetta: Large scale system for text detection and recognition in images. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 71-79. ACM, 2018. 2
+[4] Xiaoxue Chen, Tianwei Wang, Yuanzhi Zhu, Lianwen Jin, and Canjie Luo. Adaptive embedding gate for attention-based scene text recognition. arXiv preprint arXiv:1908.09475, 2019. 3
+[5] Zhanzhan Cheng, Fan Bai, Yunlu Xu, Gang Zheng, Shiliang Pu, and Shuigeng Zhou. Focusing attention: Towards accurate text recognition in natural images. In Proceedings of the IEEE International Conference on Computer Vision, pages 5076-5084, 2017. 3, 4, 5, 6
+[6] Zhanzhan Cheng, Yangliu Xu, Fan Bai, Yi Niu, Shiliang Pu, and Shuigeng Zhou. Aon: Towards arbitrarily-oriented text recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5571-5579, 2018. 6
+[7] Yuting Gao, Zheng Huang, and Yuchen Dai. Double supervised network with attention mechanism for scene text recognition. arXiv preprint arXiv:1808.00677, 2018. 2, 3
+[8] 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. ACM, 2006. 3
+[9] Alex Graves, Marcus Liwicki, Santiago Fernández, Roman Bertolami, Horst Bunke, and Jürgen Schmidhuber. A novel connectionist system for unconstrained handwriting recognition. IEEE transactions on pattern analysis and machine intelligence, 31(5):855-868, 2008. 4
+[10] Ankush Gupta, Andrea Vedaldi, and Andrew Zisserman. Synthetic data for text localisation in natural images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2315-2324, 2016. 5
+
+[11] Pan He, Weilin Huang, Yu Qiao, Chen Change Loy, and Xiaou Tang. Reading scene text in deep convolutional sequences. In Thirtieth AAAI conference on artificial intelligence, 2016. 2
+[12] Max Jaderberg, Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Synthetic data and artificial neural networks for natural scene text recognition. arXiv preprint arXiv:1406.2227, 2014. 5
+[13] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in neural information processing systems, pages 2017-2025, 2015. 3
+[14] Dimosthenis Karatzas, Lluis Gomez-Bigorda, Anguellos Nicolaou, Suman Ghosh, Andrew Bagdanov, Masakazu Iwamura, Jiri Matas, Lukas Neumann, Vijay Ramaseshan Chandrasekhar, Shijian Lu, et al. Icedar 2015 competition on robust reading. In 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pages 1156-1160. IEEE, 2015. 5
+[15] 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. Icedar 2013 robust reading competition. In 2013 12th International Conference on Document Analysis and Recognition, pages 1484-1493. IEEE, 2013. 5
+[16] Hui Li, Peng Wang, Chunhua Shen, and Guyu Zhang. Show, attend and read: A simple and strong baseline for irregular text recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8610-8617, 2019. 1, 2, 3, 5, 6
+[17] 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. 2, 3, 6, 7
+[18] Minghui Liao, Jian Zhang, Zhaoyi Wan, Fengming Xie, Jiajun Liang, Pengyuan Lyu, Cong Yao, and Xi-ang Bai. Scene text recognition from two-dimensional perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8714-8721, 2019. 6
+[19] Wei Liu, Chaofeng Chen, and Kwan-Yee K Wong. Char-net: A character-aware neural network for distorted scene text recognition. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 3, 6
+[20] Wei Liu, Chaofeng Chen, Kwan-Yee K Wong, Zhizhong Su, and Junyu Han. Star-net: a spatial attention residue network for scene text recognition. In BMVC, volume 2, page 7, 2016. 2
+[21] Shangbang Long, Xin He, and Cong Ya. Scene text
+
+detection and recognition: The deep learning era. arXiv preprint arXiv:1811.04256, 2018. 2
+[22] Ning Lu, Wenwen Yu, Xianbiao Qi, Yihao Chen, Ping Gong, and Rong Xiao. Master: Multi-aspect non-local network for scene text recognition. arXiv preprint arXiv:1910.02562, 2019. 6
+[23] Simon M Lucas, Alex Panaretos, Luis Sosa, Anthony Tang, Shirley Wong, and Robert Young. Icdar 2003 robust reading competitions. In Seventh International Conference on Document Analysis and Recognition, 2003. Proceedings., pages 682-687. CiteSeer, 2003. 5
+[24] Canjie Luo, Lianwen Jin, and Zenghui Sun. Moran: A multi-object rectified attention network for scene text recognition. Pattern Recognition, 90:109-118, 2019. 6
+[25] Anand Mishra, Karteek Alahari, and CV Jawahar. Scene text recognition using higher order language priors. 2012. 5
+[26] Alejandro Newell, Zhiao Huang, and Jia Deng. Associative embedding: End-to-end learning for joint detection and grouping. In Advances in Neural Information Processing Systems, pages 2277-2287, 2017. 2, 3
+[27] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In European conference on computer vision, pages 483-499. Springer, 2016. 2, 3
+[28] Trung Quy Phan, Palaiahnakote Shivakumara, Shangxuan Tian, and Chew Lim Tan. Recognizing text with perspective distortion in natural scenes. In Proceedings of the IEEE International Conference on Computer Vision, pages 569-576, 2013. 5
+[29] Anhar Risnumawan, Palaiahankote Shivakumara, Chee Seng Chan, and Chew Lim Tan. A robust arbitrary text detection system for natural scene images. Expert Systems with Applications, 41(18):8027-8048, 2014. 5
+[30] Fenfen Sheng, Zhineng Chen, and Bo Xu. Ntrr: A no-recurrence sequence-to-sequence model for scene text recognition. arXiv preprint arXiv:1806.00926, 2018. 2, 3, 6
+[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. IEEE transactions on pattern analysis and machine intelligence, 39(11):2298-2304, 2016. 2, 4, 6
+[32] Baoguang Shi, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Robust scene text recognition with automatic rectification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4168-4176, 2016. 3
+[33] Baoguang Shi, Mingkun Yang, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Aster: An
+
+attentional scene text recognizer with flexible rectification. IEEE transactions on pattern analysis and machine intelligence, 2018. 2, 3, 5, 6
+[34] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 2
+[35] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008, 2017. 2, 3
+[36] Jianfeng Wang and Xiaolin Hu. Gated recurrent convolution neural network forOCR. In Advances in Neural Information Processing Systems, pages 335-344, 2017. 2
+[37] Kai Wang, Boris Babenko, and Serge Belongie. End-to-end scene text recognition. In 2011 International Conference on Computer Vision, pages 1457-1464. IEEE, 2011. 1, 2, 5
+[38] Kai Wang and Serge Belongie. Word spotting in the wild. In European Conference on Computer Vision, pages 591-604. Springer, 2010. 1, 2
+[39] Peng Wang, Lu Yang, Hui Li, Yuyan Deng, Chunhua Shen, and Yanning Zhang. A simple and robust convolutional-attention network for irregular text recognition. arXiv preprint arXiv:1904.01375, 2019. 6
+[40] Shih-En Wei, Varun Ramakrishna, Takeo Kanade, and Yaser Sheikh. Convolutional pose machines. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4724–4732, 2016. 2, 3
+[41] Mingkun Yang, Yushuo Guan, Minghui Liao, Xin He, Kaigui Bian, Song Bai, Cong Yao, and Xiang Bai. Symmetry-constrained rectification network for scene text recognition. In Proceedings of the IEEE International Conference on Computer Vision, pages 9147-9156, 2019. 6
+[42] Cong Yao, Xiang Bai, Baoguang Shi, and Wenyu Liu. Strokelets: A learned multi-scale representation for scene text recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4042-4049, 2014. 1, 2
+[43] 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. 2
+[44] Fangneng Zhan and Shijian Lu. Esir: End-to-end scene text recognition via iterative image rectification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2059-2068, 2019. 6
+[45] Ling-Qun Zuo, Hong-Mei Sun, Qi-Chao Mao, Rong Qi, and Rui-Sheng Jia. Natural scene text recognition
\ No newline at end of file
diff --git a/scatterselectivecontextattentionalscenetextrecognizer/images.zip b/scatterselectivecontextattentionalscenetextrecognizer/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c6e63a93328abb0341ea7b06252757f4a9a12d67
--- /dev/null
+++ b/scatterselectivecontextattentionalscenetextrecognizer/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb3c82dd095ccfc070c04f572a07eb0321993722594053273f57b85820fcc4bf
+size 527248
diff --git a/scatterselectivecontextattentionalscenetextrecognizer/layout.json b/scatterselectivecontextattentionalscenetextrecognizer/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..35959d0d557596a4230d0aab7c4dd8c0f54e6f1a
--- /dev/null
+++ b/scatterselectivecontextattentionalscenetextrecognizer/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c7357fd3d8e8f0387db079ae45af0cabbff8afb7015d574ad160a7eeb930bea
+size 404688
diff --git a/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_content_list.json b/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0b88247dbe7f39f96f8b3cd3facb4e9b72ff4dc3
--- /dev/null
+++ b/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d6113e09fe4026ef8a6f96605744df6686700f7905860c83048f1f3cb5e2ba90
+size 85447
diff --git a/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_model.json b/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8514893ce77e19139e3aa9d3300febba94d4bb8b
--- /dev/null
+++ b/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9b19554b4183bc0435a1ec897d8b6e92ba1dfb80dec2a9d3c31581798cfac773
+size 104146
diff --git a/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_origin.pdf b/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0045451f6c2a8ef5f62ccc7b2cfe077a2b0b2fe9
--- /dev/null
+++ b/scoutselfawarediscriminantcounterfactualexplanations/f493774a-fcf7-4780-9bdf-fc7c48a681bd_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b9d1ee0688d13ef43a88205c8c496edcdb5f63dadf73ac7bf437229aaf98d4ce
+size 737517
diff --git a/scoutselfawarediscriminantcounterfactualexplanations/full.md b/scoutselfawarediscriminantcounterfactualexplanations/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5ff825c1ef3a8549798f5c78c1b27f31da2935ae
--- /dev/null
+++ b/scoutselfawarediscriminantcounterfactualexplanations/full.md
@@ -0,0 +1,362 @@
+# SCOUT: Self-aware Discriminant Counterfactual Explanations
+
+Pei Wang Nuno Vasconcelos
+Department of Electrical and Computer Engineering
+University of California, San Diego
+
+{pew062,nuno}@ucsd.edu
+
+# Abstract
+
+The problem of counterfactual visual explanations is considered. A new family of discriminant explanations is introduced. These produce heatmaps that attribute high scores to image regions informative of a classifier prediction but not of a counter class. They connect attributive explanations, which are based on a single heat map, to counterfactual explanations, which account for both predicted class and counter class. The latter are shown to be computable by combination of two discriminant explanations, with reversed class pairs. It is argued that self-awareness, namely the ability to produce classification confidence scores, is important for the computation of discriminant explanations, which seek to identify regions where it is easy to discriminate between prediction and counter class. This suggests the computation of discriminant explanations by the combination of three attribution maps. The resulting counterfactual explanations are optimization free and thus much faster than previous methods. To address the difficulty of their evaluation, a proxy task and set of quantitative metrics are also proposed. Experiments under this protocol show that the proposed counterfactual explanations outperform the state of the art while achieving much higher speeds, for popular networks. In a human-learning machine teaching experiment, they are also shown to improve mean student accuracy from chance level to $95\%$ .
+
+# 1. Introduction
+
+Deep learning (DL) systems are difficult to deploy in specialized domains, such as medical diagnosis or biology, requiring very fine-grained distinctions between visual features unnoticeable to the untrained eye. Two main difficulties arise. The first is the black-box nature of DL. When high-stakes decisions are involved, e.g. a tumor diagnosis, the system users, e.g. physicians, require a justification for its predictions. The second is the large data labeling requirements of DL. Since supervised training is usually needed for optimal classification, modern networks are
+
+
+Figure 1: Given a query image (Cardinal) and a counterfactual class (Summer Tanager), discriminant explanations bridge the gap between attributions and counterfactual explanations. This enables a fast optimization-free computation of the latter.
+
+trained with large datasets, manually annotated on Amazon MTurk. However, because MTurk annotators lack domain expertise, the approach does not scale to specialized domains.
+
+Both problems can be addressed by explainable AI (XAI) techniques, which complement network predictions with human-understandable explanations. These can both circumvent the black-box nature of DL and enable the design of machine teaching systems that provide feedback to annotators when they make mistakes [43]. In computer vision, the dominant XAI paradigm is attribution, which consists of computing a heatmap of how strongly each image pixel [31, 3, 29, 1] or region [41, 28] contributes to a network prediction. For example, when asked "why is this a truck?" an attributive system would answer or visualize something like "because it has wheels, a hood, seats, a steering wheel, a flatbed, head and tail lights, and rearview mirrors."
+
+While useful to a naive user, this explanation is less useful to an expert in the domain. The latter is likely to be interested in more precise feedback, asking instead the question
+
+"Why is it not a car?" The answer "because it has a flatbed. If it did not have a flatbed it would be a car," is known as a counterfactual or contrastive explanation [36, 8, 24]. Such explanations are more desirable in expert domains. When faced with a prediction of lesion $A$ , a doctor would naturally ask "why $A$ but not $B$ ?" The same question would be posed by a student that incorrectly assigned an image to class $B$ upon receiving feedback that it belongs to class $A$ . By supporting a specific query with respect to a counterfactual class $(B)$ , these explanations allow expert users to zero-in on a specific ambiguity between two classes, which they already know to be plausible prediction outcomes. Unlike attributions, counterfactual explanations scale naturally with user expertise. As the latter increases, the class and counterfactual class simply become more fine-grained.
+
+In computer vision, counterfactual explanations have only recently received attention. They are usually implemented as "correct class is $A$ . Class $B$ would require changing the image as follows," where "as follows" is some visual transformations. Possible transformations include image perturbations [8], synthesis [36] or the exhaustive search of a large feature pool, to find replacement features that map the image from class $A$ to $B$ [12]. However, image perturbations and synthesis frequently leave the space of natural images only working on simple non-expert domains, and feature search is too complex for interactive applications.
+
+In this work, a new procedure is proposed to generate Self-aware disCriminant cOUnterfactual explanations (SCOUT). We show that counterfactual explanations can be much more efficiently generated by a combination of attributive explanations and self-awareness mechanisms, which quantify the confidence of the predictions of a DL system. For this, we start by introducing discriminant explanations that, as shown in Figure 1, connect attributive to counterfactual explanations. Like attributive explanations, they consist of a single heatmap. This, however, is an attribution map for the discrimination of classes $A$ and $B$ , attributing high scores to image regions that are informative of $A$ but not of $B$ . In this sense, discriminant explanations are similar to counterfactual explanations and more precise than attributive explanations (see Figure 1). A counterfactual explanation can then be produced by the computation of two discriminant explanations, with the roles of $A$ and $B$ reversed.
+
+We next consider how to compute discriminant explanations and argue for the importance of self-awareness. A system is self-aware if it can quantify the confidence with which it classifies an image. This is generally true for DL systems, which complement a class prediction with an estimate of the posterior class distribution, from which a confidence score can be derived [10, 39]. The attribution map of this score is an indicator of the image regions where the classification is easy. This fits nicely in the discriminant
+
+explanation framework, where the goal is to find the spatial regions predictive of class A but unpredictable of class B. It leads to the definition of discriminant explanations as image regions that simultaneously: 1) have high attribution for class $A$ , 2) have low attribution for class $B$ , and 3) are classified with high confidence. It follows that, as shown in Figure 1, discriminant explanations can be computed by combination of three attribution maps. This, in turn, shows that counterfactual explanations can be seen as a generalization of attributive explanations and computed by a combination of attribution [31, 3, 29, 34, 1] and confidence prediction methods [10, 39, 37] that is much more efficient to compute than previous methods.
+
+Beyond explanations, a significant challenge to XAI is the lack of explanation ground truth for performance evaluation. Besides user-based evaluations [12], whose results are difficult to replicate, we propose a quantitative metric based on a proxy localization task. To the best of our knowledge, this is the first proposal for semantically quantitative evaluation of counterfactual visual explanations independently of human experiments. Compared to the latter, the proposed proxy evaluation is substantially easier to replicate. This evaluation shows that SCOUT both outperforms the state of the art [12] and is $50 \times$ to $1000 \times$ faster for popular networks. This is quite important for applications such as machine teaching, where explanation algorithms should operate in real-time, and ideally in low-complexity platforms such as mobile devices.
+
+Overall, the paper makes five contributions. First, a new family of discriminant explanations, which are substantially more precise than attributive explanations. Second, the use of self-awareness to improve the accuracy of attributive explanations. Third, the derivation of counterfactual explanations by combination of discriminant explanations, making them more efficient to compute. Fourth, a new experimental protocol for quantitative evaluation of counterfactual explanations. Fifth, experimental results using both this protocol and machine teaching experiments, showing that the proposed SCOUT outperforms previous methods and is substantially faster.
+
+# 2. Related work
+
+In this section we review the literature on explanations, self-awareness, and machine teaching.
+
+Explanations: Two main approaches to explainable AI (XAI) have emerged in computer vision. Natural language (NL) systems attempt to produce a textual explanation understandable to humans [13, 2, 26]. Since image to text translation is still a difficult problem, full blown NL explanations tend to target specific applications, like self driving [6]. More robust systems tend to use a limited vocabulary, e.g., a set of image attributes [2, 13]. For example, [2] proposed counterfactual NL image descriptions
+
+and [13] produces counterfactual explanations by extracting noun phrases from the counter-class, which are filtered with an evidence checker. Since phrases are defined by attributes, this boils down to detecting presence/absence of attributes in the query image. These methods require a priori definition of a vocabulary (e.g. attributes), training data for each vocabulary term, and training of the classifier to produce this side information. Due to these difficulties, most explanation methods rely instead on visualizations. While the ideas proposed in this work could be extended to NL systems, we consider only visual explanations.
+
+Attributive explanations: The most popular approach to visual explanations is to rely on attributions [3, 29, 34]. These methods produce a heatmap that encodes how much the classifier prediction can be attributed to each pixel or image region. Many attribution functions have been proposed [31, 3, 29, 34, 1]. The most popular framework is to compute some variant of the gradient of the classifier prediction with respect to a chosen layer of the network and then backproject to the input [28, 41]. These techniques tend to work well when the object of the predicted class is immersed in a large background (as in object detection), but are less useful when the image contains the object alone (as in recognition). In this setting, the most suitable for the close inspection required in expert domains, the heat map frequently covers the whole object. This is illustrated in Figure 1. Counterfactual explanations, which involve differences with respect to a counterfactual class, tend not to suffer from this problem.
+
+Counterfactual explanations: Given an image of class $A$ and a counterfactual class $B$ , counterfactual explanations (also known as contrastive [8]) produce an image transformation that elicits the classification as $B$ [35, 36, 21, 44]. The simplest example are adversarial attacks [8, 35, 43], which optimize perturbations to map an image of class $A$ into class $B$ . However, adversarial perturbations usually push the perturbed image outside the boundaries of the space of natural images. Generative methods have been proposed to address this problem, computing large perturbations that generate realistic images [21, 23]. This is guaranteed by the introduction of regularization constraints, autoencoders, or GANs [11]. However, because realistic images are difficult to synthesize, these approaches have only been applied to simple MNIST or CelebA [22] style datasets, not expert domains. A more plausible alternative is to exhaustively search the space of features extracted from a large collection of images, to find replacement features that map the image from class $A$ to $B$ [12]. While this has been shown to perform well on fine-grained datasets, exhaustive search is too complex for interactive applications.
+
+Evaluation: The performance of explanation algorithms is frequently only illustrated by the display of visualizations. In some cases, explanations are evaluated quantita
+
+tively with recourse to human experiments. This involves the design of a system to elicit user feedback on how trustful a deep learning system is [28, 12, 8, 38] or evaluate if explanations improve user performance on some tasks [12]. While we present results of this type, they have several limitations: it can be difficult to replicate system design, conclusions can be affected by the users that participate in the experiments, and the experiments can be cumbersome to both set up and perform. In result, the experimental results are rarely replicable or even comparable. This hampers the scalable evaluation of algorithms. In this work, we introduce a quantitative protocol for the evaluation of counterfactual explanations, which overcomes these problems.
+
+Self-awareness: Self-aware systems are systems with some abilities to measure their limitations or predict failures. This includes topics such as out-of-distribution detection [14, 20, 7, 18, 19] or open set recognition [27, 5], where classifiers are trained to reject non-sensical images, adversarial attacks, or images from classes on which they were not trained. All these problems require the classifier to produce a confidence score for image rejection. The most popular solution is to guarantee that the posterior class distribution is uniform, or has high entropy, outside the space covered by training images [18, 15]. This, however, is not sufficient for counterfactual explanations, which require more precise confidence scores explicitly addressing class $A$ or $B$ . In this sense, the latter are more closely related to realistic classification [37], where a classifier must identify and reject examples that it deems too difficult to classify.
+
+Machine teaching: Machine teaching systems [43] are usually designed to teach some tasks to human learners, e.g. image labeling. These systems usually leverage a model of student learning to optimize teaching performance [33, 4, 17, 25]. Counterfactual explanations are naturally suited for machine teaching, because they provide feedback on why a mistake (the choice of the counterfactual class $B$ ) was made. While the goal of this work is not to design a full blown machine teaching system, we investigate if counterfactual explanations can improve human labeling performance. This follows the protocol introduced by [12], which highlights matching bounding boxes on paired images (what part of $A$ should be replaced by what part of $B$ ) to provide feedback to students. Besides improved labeling performance, the proposed explanations are orders of magnitude faster than the exhaustive search of [12].
+
+# 3. Discriminant Counterfactual Explanations
+
+In this section, we briefly review the main ideas behind previous explanation approaches and introduce the proposed explanation technique.
+
+Counterfactual explanations: Consider a recognition problem, mapping images $\mathbf{x} \in \mathcal{X}$ into classes $y \in \mathcal{Y} = \{1, \ldots, C\}$ . Images are classified by an object recognition
+
+system $\mathcal{H}:\mathcal{X}\to \mathcal{Y}$ of the form
+
+$$
+y ^ {*} = \arg \max _ {y} h _ {y} (\mathbf {x}), \tag {1}
+$$
+
+where $\mathbf{h}(\mathbf{x}): \mathcal{X} \to [0,1]^C$ is a C-dimensional probability distribution with $\sum_{y=1}^{C} h_y(\mathbf{x}) = 1$ , usually computed by a convolutional neural network (CNN). The classifier is learned on a training set $\mathcal{D}$ of $N$ i.i.d. samples $\mathcal{D} = \{(\mathbf{x}_i, y_i)\}_{i=1}^N$ , where $y_i \in \mathcal{V}$ is the label of image $\mathbf{x}_i \in \mathcal{X}$ , and its performance evaluated on a test set $\mathcal{T} = \{(\mathbf{x}_j, y_j)\}_{j=1}^M$ . Given an image $\mathbf{x}$ , for which the classifier predicts class $y^*$ , counterfactual explanations answer the question of why the image does not belong to a counterfactual class (also denoted counter class) $y^c \neq y^*$ , chosen by the user who receives the explanation.
+
+Visual explanations: Counterfactual explanations for vision systems are usually based on visualizations. Two possibilities exist. The first is to explicitly transform the image $\mathbf{x}$ into an image $\mathbf{x}^c$ of class $y^c$ , by replacing some of its pixel values. The transformation can consist of applying an image perturbation akin to those used in adversarial attacks [8], or replacing regions of $\mathbf{x}$ by regions of some images in the counter class $y^c$ [12]. Due to the difficulties of realistic image synthesis, these methods are only feasible when $\mathbf{x}$ is relatively simple, e.g. an MNIST digit.
+
+A more plausible alternative is to use an already available image $\mathbf{x}^c$ from class $y^{c}$ and highlight the differences between $\mathbf{x}$ and $\mathbf{x}^c$ . [12] proposed to do this by displaying matched bounding boxes on the two images, and showed that explanation performance is nearly independent of the choice of $\mathbf{x}^c$ , i.e. it suffices to use a random image $\mathbf{x}^c$ from class $y^{c}$ . We adopt a similar strategy in this work. For these approaches, the explanation consists of
+
+$$
+\mathcal {C} (\mathbf {x}, y ^ {*}, y ^ {c}, \mathbf {x} ^ {c}) = \left(\mathbf {c} ^ {*} (\mathbf {x}), \mathbf {c} ^ {c} \left(\mathbf {x} ^ {c}\right)\right), \tag {2}
+$$
+
+where $\mathbf{c}^{*}(\mathbf{x})$ and $\mathbf{c}^c (\mathbf{x}^c)$ are counterfactual heatmaps for images $\mathbf{x}$ and $\mathbf{x}^c$ , respectively, from which region segments $\mathbf{r}^{*}(\mathbf{x})$ and $\mathbf{r}^c (\mathbf{x}^c)$ can be obtained, usually by thresholding. The question is how to compute these heatmaps. [12] proposed to search by exhaustively matching all combinations of features in $\mathbf{x}$ and $\mathbf{x}^c$ , which is expensive. In this work, we propose a much simpler and more effective procedure that leverages a large literature on attributive explanations.
+
+Attributive explanations: Attributive explanations are a family of explanations based on the attribution of the prediction $y^{*}$ to regions of $\mathbf{x}$ [31, 3, 29, 34, 1]. They are usually produced by applying an attribution function to a tensor of activations $\mathbf{F} \in \mathbb{R}^{W \times H \times D}$ of spatial dimensions $W \times H$ and $D$ channels, extracted at any layer of a deep network. While many attribution functions have been proposed, they are usually some variant of the gradient of $h_{y^{*}}(\mathbf{x})$ with respect to $\mathbf{F}$ . This results in an attribution map $a_{i,j}(\mathbf{x})$ whose amplitude encodes the attribution of the prediction to each
+
+entry $i,j$ along the spatial dimensions of $\mathbf{F}$ . Attributive explanations produce heat maps of the form
+
+$$
+\mathcal {A} (\mathbf {x}, y ^ {*}) = \mathbf {a} \left(h _ {y ^ {*}} (\mathbf {x})\right) \tag {3}
+$$
+
+for some attribution function $\mathbf{a}(.)$ . Two examples of attributive heatmaps of an image of a "Cardinal," with respect to predictions "Cardinal" and "Summer Tanager," are shown in the top row of Figure 1.
+
+Discriminant explanations: In this work, we propose a new class of explanations, which is denoted as discriminant and defined as
+
+$$
+\mathcal {D} (\mathbf {x}, y ^ {*}, y ^ {c}) = \mathbf {d} \left(h _ {y ^ {*}} (\mathbf {x}), h _ {y ^ {c}} (\mathbf {x})\right), \tag {4}
+$$
+
+which have commonalities with both attributive and counterfactual explanations. Like counterfactual explanations, they consider both the prediction $y^{*}$ and a counterfactual class $y^{c}$ . Like attributive explanations, they compute a single attribution map through $\mathbf{d}(.,.)$ . The difference is that this map attributes the discrimination between the prediction $y^{*}$ and counter $y^{c}$ class to regions of $\mathbf{x}$ . While $\mathbf{a}(h_{y^{*}}(\mathbf{x}))$ assigns large attribution to pixels that are strongly informative of class $y^{*}$ , $\mathbf{d}(h_{y^{*}}(\mathbf{x}), h_{y^{c}}(\mathbf{x}))$ does the same to pixels that are strongly informative of class $y^{*}$ but uninformative of class $y^{c}$ .
+
+Discriminant explanations can be used to compute counterfactual explanations by implementing (2) with
+
+$$
+\mathcal {C} (\mathbf {x}, y ^ {*}, y ^ {c}, \mathbf {x} ^ {c}) = \left(\mathcal {D} (\mathbf {x}, y ^ {*}, y ^ {c}), \mathcal {D} \left(\mathbf {x} ^ {c}, y ^ {c}, y ^ {*}\right)\right). \tag {5}
+$$
+
+The first map identifies the regions of $\mathbf{x}$ that are informative of the predicted class but not the counter class while the second identifies the regions of $\mathbf{x}^c$ informative of the counter class but not of the predicted class. Altogether, the explanation shows that the regions highlighted in the two images are matched: the region of the first image depicts features that only appear in the predicted class while that of the second depicts features that only appear in the counterfactual class. Figure 1 illustrates the construction of a counterfactual explanation with two discriminant explanations.
+
+Self-awareness: Discriminant maps could be computed by combining attributive explanations with respect to the predicted and counter class. Assuming that binary ground truth segmentation maps $s_{i,j}^{*}$ and $s_{i,j}^{c}$ are available for the attributions of the predicted and counter classes, respectively, this could be done with the segmentation map $s_{i,j} = s_{i,j}^{*}(1 - s_{i,j}^{c})$ . This map would identify image regions attributable to the predicted class $y^{*}$ but not the counter class $y^{c}$ . In practice, segmentation maps are not available and can only be estimated from attribution maps $a_{i,j}^{*}$ and $a_{i,j}^{c}$ . While this could work well when the two classes are very different, it is not likely to work when they are similar. This is because, as shown in Figure 1, attribution maps usually cover substantial parts of the object. When the two classes
+
+
+Figure 2: Discriminant explanation architecture (x: Cardinal, $\mathbf{x}^c$ : Summer Tanager.). Feature activations $\mathbf{F}_h$ and $\mathbf{F}_s$ are computed for some layers of the classifier (upper branch) and confidence predictor (lower branch), respectively. Attributions for prediction $h_{y^*}$ , counter class $h_{y^c}$ , and confidence score $s$ are computed by attribution functions $q(.,.)$ according to (10) and then combined with (6) to obtain the discriminant map. Counterfactual explanations are obtained by reversing the roles of $\mathbf{x}$ and $\mathbf{x}^c$ and thresholding the discriminant heat maps.
+
+differ only in small parts or details, they lack the precision to allow the identification of the associated regions. This is critical for expert domains, where users are likely to ask questions involving very similar classes.
+
+Addressing this problem requires some ways to sharpen attribution maps. In this work, we advocate for the use of self-awareness. We assume that the classifier produces a confidence score $s(\mathbf{x}) \in [0,1]$ , which encodes the strength of its belief that the image belongs to the predicted class. Regions that clearly belong to the predicted class $y^{*}$ render a score close to 1 while regions that clearly do not render a score close to 0. This score is self-referential if generated by the classifier itself and not self-referential if generated by a separate network. The discriminant maps of (4) are then implemented as
+
+$$
+\mathbf {d} \left(h _ {y ^ {*}} (\mathbf {x}), h _ {y ^ {c}} (\mathbf {x})\right) = \mathbf {a} \left(h _ {y ^ {*}} (\mathbf {x})\right) \cdot \overline {{\mathbf {a}}} \left(h _ {y ^ {c}} (\mathbf {x})\right) \cdot \mathbf {a} (s (\mathbf {x})) \tag {6}
+$$
+
+where $\overline{\mathbf{a}}(.)$ is the complement of $\mathbf{a}(.)$ , i.e.
+
+$$
+\overline {{\mathbf {a}}} _ {i, j} = \max _ {i, j} \mathbf {a} _ {i, j} - \mathbf {a} _ {i, j}. \tag {7}
+$$
+
+The discriminant map $\mathbf{d}$ is large only at locations $(i,j)$ that contribute strongly to the prediction of class $y^{*}$ but little to that of class $y^{c}$ , and where the discrimination between the two classes is easy, i.e. the classifier is confident. This, in turn, implies that location $(i,j)$ is strongly specific to class $y^{*}$ but non-specific to class $y^{c}$ , which is the essence of the counterfactual explanation. Figure 1 shows how the self-awareness attribution map is usually much sharper than the other two maps.
+
+Segmentations: For discriminant explanations, the discriminant map of $\mathbf{x}$ is thresholded to obtain the segmentation mask
+
+$$
+\mathbf {r} \left\{y ^ {*}, y ^ {c} \right\} (\mathbf {x}) = \mathbb {1} _ {\mathbf {d} \left(h _ {y ^ {*}} (\mathbf {x}), h _ {y ^ {c}} (\mathbf {x})\right) > T}, \tag {8}
+$$
+
+where $\mathbb{1}_{\mathcal{S}}$ is the indicator function of set $S$ and $T$ a threshold. For counterfactual explanations, segmentation masks
+
+are also generated for $\mathbf{x}^c$ , using
+
+$$
+\mathbf {r} \left\{y ^ {c}, y ^ {*} \right\} \left(\mathbf {x} ^ {c}\right) = \mathbb {1} _ {\mathbf {d} \left(h _ {y ^ {c}} \left(\mathbf {x} ^ {c}\right), h _ {y ^ {*}} \left(\mathbf {x} ^ {c}\right)\right) > T}. \tag {9}
+$$
+
+Attribution maps: The attribution maps of (6) can be computed with any attribution function $\mathbf{a}(.)$ in the literature [34, 29, 3]. In our implementation, we use the gradient-based function of [30]. This calculates the dot-product of the partial derivatives of the prediction $p$ with respect to the activations $\mathbf{F}(\mathbf{x})$ of a CNN layer and the activations, i.e.
+
+$$
+a _ {i, j} \left(h _ {p}\right) = q \left(\mathbf {f} _ {i, j}, \frac {\partial h _ {p} (\mathbf {F})}{\partial \mathbf {f} _ {i , j}}\right) = \left\langle \frac {\partial h _ {p} (\mathbf {F})}{\partial \mathbf {f} _ {i , j}}, \mathbf {f} _ {i, j} \right\rangle , \tag {10}
+$$
+
+where we omit the dependency on $\mathbf{x}$ for simplicity.
+
+Confidence scores: Like attribution maps, many existing confidence or hardness scores can be leveraged. We considered three scores of different characteristics. The softmax score [10] is the largest class posterior probability
+
+$$
+s ^ {s} (\mathbf {x}) = \max _ {y} h _ {y} (\mathbf {x}). \tag {11}
+$$
+
+It is computed by adding a max pooling layer to the network output. The certainty score is the complement of the normalized entropy of the softmax distribution [39],
+
+$$
+s ^ {c} (\mathbf {x}) = 1 + \frac {1}{\log C} \sum_ {y} h _ {y} (\mathbf {x}) \log h _ {y} (\mathbf {x}). \tag {12}
+$$
+
+Its computation requires an additional layer of log nonlinearities and average pooling. These two scores are self-referential. We also consider the non-self-referential easiness score of [37],
+
+$$
+s ^ {e} (\mathbf {x}) = 1 - s ^ {h p} (\mathbf {x}) \tag {13}
+$$
+
+where $s^{hp}(\mathbf{x})$ is computed by an external hardness predictor $S$ , which is jointly trained with the classifier. $S$ is implemented with a network $s^{hp}(\mathbf{x}): \mathcal{X} \to [0,1]$ whose output is a sigmoid unit.
+
+Network implementation: Figure 2 shows a network implementation of (6). Given a query image $\mathbf{x}$ of class $y^{*}$ , a user-chosen counter class $y^{c} \neq y^{*}$ , a predictor $h_{y}(\mathbf{x})$ , and a confidence predictor $s(\mathbf{x})$ are used to produce the explanation. Note that $s(\mathbf{x})$ can share weights with $h_{y}(\mathbf{x})$ (self-referential) or be separate (non-self-referential). $\mathbf{x}$ is forwarded through the network, generating activation tensors $\mathbf{F}_{h}(\mathbf{x}), \mathbf{F}_{s}(\mathbf{x})$ in pre-chosen network layers and predictions $h_{y^{*}}(\mathbf{x}), h_{y^{c}}(\mathbf{x}), s(\mathbf{x})$ . The attributions of $y^{*}, y^{c}$ and $s(\mathbf{x})$ to $\mathbf{x}$ , i.e. $\mathcal{A}(\mathbf{x}, y^{*}), \mathcal{A}(\mathbf{x}, y^{c}), \mathcal{A}(\mathbf{x}, s(\mathbf{x}))$ are then computed with (10), which reduce to a backpropagation step with respect to the desired layer activations and a few additional operations. Finally, the three attributions are combined with (6). Thresholding the resulting heatmap with (8) produces the discriminant explanation $\mathbf{r}\{y^{*}, y^{c}\}(\mathbf{x})$ . To further obtain a counterfactual explanation, the network is simply applied to $\mathbf{x}^{c}$ and $\mathbf{r}\{y^{c}, y^{*}\}(\mathbf{x}^{c})$ computed.
+
+# 4. Evaluation
+
+Challenges: Explanations are difficult to evaluate because ground truth is unavailable. Previous works mainly presented qualitative results [13, 12]. [12] also performed a human evaluation on MTurk, using a machine teaching task. However, this evaluation had a few flaws, which are discussed in Section 5.4. In any case, human evaluation is cumbersome and difficult to replicate. To avoid this, we introduce an alternative evaluation strategy based on the proxy task of localization. Because this leverages datasets with annotations for part locations and attributes1, we sometimes refer to image regions (segments or keypoints) as parts.
+
+Ground-truth: The goal of counterfactual explanations is to localize a region predictive of class $A$ but unpredictive of class $B$ . Hence, parts with attributes specific to $A$ and that do not appear in $B$ can be seen as ground truth counterfactual regions. This enables the evaluation of counterfactual explanations as a part localization problem. To synthesize ground truth, the $k^{th}$ part of an object of class $c$ is represented by a semantic descriptor $\phi_c^k$ containing the attributes present in this class. For example, an "eye" part can have color attributes "red", "blue", "grey", etc. The descriptor is a probability distribution over these attributes, characterizing the attribute variability of the part under each class.
+
+The dissimilarity between classes $a$ and $b$ , according to part $k$ , is defined as $\alpha_{a,b}^{k} = \gamma (\phi_{a}^{k},\phi_{b}^{k})$ , where $\gamma (.,.)$ is a dataset dependent function. Large dissimilarities indicate that part $k$ is a discriminant for classes $a$ and $b$ . The values of $\alpha_{a,b}^{k}$ are computed for all class pairs $(a,b)$ and parts $\mathbf{p}_k$ . The $M$ triplets $\mathcal{G} = \{(\mathbf{p}_i,a_i,b_i)\}_{i = 1}^M$ of largest dissimilarity are selected as counterfactual ground-truth.
+
+Evaluation metrics: The metrics of explanation performance depend on the nature of part annotations. On datasets where part locations are labelled with a single point, i.e. $\mathbf{p}_i$ is a point (usually the geometric center of the part), the quality of region $\mathbf{r}\{a,b\} (\mathbf{x})$ is calculated by precision (P) and recall (R), where $P = \frac{J}{|\{k|\mathbf{p}_k\in\mathbf{r}\}|}$ , $R = \frac{J}{|\{i|(\mathbf{p}_i,a_i,b_i)\in\mathcal{G},a_i = a,b_i = b)|}$ , and $J = |\{i|\mathbf{p}_i\in \mathbf{r},a_i = a,b_i = b\}|$ is the number of included ground truth parts of generated regions. Precision-recall curves are produced by varying the threshold $T$ used in (8). For datasets where parts are annotated with segmentation masks, the quality of $\mathbf{r}\{a,b\} (\mathbf{x})$ is evaluated using the intersection over union (IoU) metric IoU = $\frac{\left[\mathbf{r}\cap\mathbf{p}\right]}{\left|\mathbf{r}\cup\mathbf{p}\right|}$ , where $\mathbf{p} = \{\mathbf{p}_i|(\mathbf{p}_i,a_i,b_i)\in \mathcal{G},a_i = a,b_i = b\}$ .
+
+For counterfactual explanations, we define a measure of the semantic consistency of two segments, $\mathbf{r}\{a,b\} (\mathbf{x})$ and $\mathbf{r}\{b,a\} (\mathbf{x}^c)$ , by calculating the consistency of the parts included in them. This is denoted as the part IoU (PIoU),
+
+$$
+\mathrm {P I o U} = \frac {\left| \left\{k \mid (\mathbf {p} _ {k} , a , b) \in \mathbf {r} \left\{a , b \right\} (\mathbf {x}) \right\} \cap \left\{k \mid (\mathbf {p} _ {k} , b , a) \in \mathbf {r} \left\{b , a \right\} (\mathbf {x} ^ {c}) \right\} \right|}{\left| \left\{k \mid (\mathbf {p} _ {k} , a , b) \in \mathbf {r} \left\{a , b \right\} (\mathbf {x}) \right\} \cup \left\{k \mid (\mathbf {p} _ {k} , b , a) \in \mathbf {r} \left\{b , a \right\} (\mathbf {x} ^ {c}) \right\} \right|}. \tag {14}
+$$
+
+These metrics allow the quantitative comparison of different counterfactual explanation methods. On datasets with point-based ground truth, this is based on precision and recall of the generated counterfactual regions. On datasets with mask-based ground truth, the IoU is used. After conducting the whole process on both $\mathbf{x}$ and $\mathbf{x}^c$ , PIoU can be computed to further measure the semantic matching between the highlighted regions in the two images. As long as the compared counterfactual regions of different methods have the same size, the comparison is fair. For SCOUT, region size can be controlled by manipulating $T$ in (8) and (9).
+
+User expertise has an impact on counterfactual explanations. Beginner users tend to choose random counterfactual classes, while experts tend to pick counterfactual classes similar to the true class. Hence, explanation performance should be measured over the two user types. In this paper, users are simulated by choosing a random counterfactual class $b$ for beginners and the class predicted by a small CNN for advanced users. Class $a$ is the prediction of the classifier used to generate the explanation, which is a larger CNN.
+
+# 5. Experiments
+
+All experiments are performed on two datasets. CUB200 [40] consists of 200 fine-grained bird classes, annotated with 15 part locations (points) including back, beak, belly, breast, crown, forehead, left/right eye, left/right leg, left/right wing, nape, tail and throat. Each part is associated with attribute information [40] and dissimilarities $\alpha_{a,b}^{k}$ are computed with $\gamma (\phi_a^k,\phi_b^k) = e^{\{\mathrm{KL}(\phi_a^k ||\phi_b^k) + \mathrm{KL}(\phi_b^k ||\phi_a^k)\}}$ [9], where $\phi_c^k$ is a probability distribution over all attributes of
+
+
+Figure 3: Comparison to attributive explanations. Left: beginners, right: advanced users.
+
+
+
+the $k^{th}$ part under class $c$ and KL is the Kullback-Leibler divergence. $M$ is chosen to leave $80\%$ largest triplets $(\mathbf{p}_i,a_i,b_i)$ as ground truth. The majority of $(\mathbf{p}_i,a_i,b_i)$ are selected because dissimilar parts dominate in $\alpha_{a,b}^k$ space.
+
+The second dataset is ADE20K [42] with more than 1000 fine-grained scene categories. Segmentation masks are given for 150 objects. In this case, objects are seen as scene parts and each object has a single attribute, i.e. $\phi_c^k$ is scalar (where $k\in \{1,\dots,150\}$ ), which is the probability of occurrence of the object in a scene of class $c$ . This is estimated by the relative frequency with which the part appears in scenes of class $c$ . Ground truth consists of the triplets $(\mathbf{p}_i,a_i,b_i)$ with $\phi_a^k >0$ and $\phi_b^k = 0$ , i.e. where object $k$ appears in class $a$ but not in class $b$ .
+
+In the discussion below, results are obtained on CUB200, except as otherwise stated. ADE20K results are presented in the supplementary materials. Unless otherwise noted, visualizations are based on the last convolutional layer output of VGG16 [32], a widely used network in visualization papers. All counterfactual explanation results are presented for two types of virtual users. Randomly chosen labels mimic beginners while AlexNet predictions [16] mimic advanced users.
+
+# 5.1. Comparison to attributive explanations
+
+Figure 3 compares the discriminant explanations of (6), to attributive explanations $\mathbf{a}(h_{y^*}(\mathbf{x}))$ , for the two user types. Several conclusions are possible: 1) discriminant maps significantly outperform attributions for both user types, independently of the confidence score used; 2) best performance is achieved with the easiness score of (13); 3) the gains are larger for expert users than beginners. This is because the counter and predicted classes tend to be more similar for the former and the corresponding attribution maps overlap. In this case, pure attributive explanations are very uninformative. The result also shows that self-awareness is most useful in expert domains.
+
+# 5.2. Comparison to state of the art
+
+Table 1 presents a comparison between SCOUT and the method of [12] which obtained the best results by exhaustive search, for the two user types. For fair comparison, these experiments use the softmax score of (11), so that
+
+ | Beginner User | Advanced User |
| Arch. | Metric | Goyal [12] | SCOUT | Goyal [12] | SCOUT |
| VGG16 | R | 0.02 (0.01) | 0.05 (0.01) | 0.05 (0.00) | 0.05 (0.00) |
| P | 0.76 (0.01) | 0.84 (0.01) | 0.56 (0.01) | 0.64 (0.01) |
| PIoU | 0.13 (0.00) | 0.15 (0.00) | 0.09 (0.00) | 0.14 (0.02) |
| IPS | 0.02 (0.00) | 26.51 (0.71) | | |
| ResNet-50 | R | 0.03 (0.01) | 0.09 (0.02) | 0.12 (0.01) | 0.16 (0.00) |
| P | 0.77 (0.01) | 0.81 (0.01) | 0.57 (0.02) | 0.60 (0.01) |
| PIoU | 0.18 (0.01) | 0.16 (0.01) | 0.15 (0.00) | 0.15 (0.01) |
| IPS | 1.13 (0.07) | 78.54 (11.87) | | |
+
+Table 1: Comparison to the state of the art. (IPS: images per second, implemented on NVIDIA TITAN Xp. Results are shown as mean(stddev))
+
+
+Figure 4: PIOU of SCOUT as a function of the segmentation threshold on CUB200. Left: VGG16, right: ResNet-50.
+
+
+
+model sizes are equal for both approaches. The size of the counterfactual region is the receptive field size of one unit $(\frac{1}{14*14} \approx 0.005$ of image size on VGG16 and $\frac{1}{7*7} \approx 0.02$ on ResNet-50). This was constrained by the speed of the algorithm of [12], where the counterfactual region is detected by exhaustive feature matching.
+
+Several conclusions could be drawn from the table. First, SCOUT outperforms [12] in almost all cases. Second, SCOUT is much faster, improving the speed of [12] by $1000+$ times on VGG and $50+$ times on ResNet. This is because it does not require exhaustive feature matching. These gains increase with the size of the counterfactual region, since computation time is constant for the proposed approach but exponential on region size for [12]. Third, due to the small size used in these experiments, PIoU is relatively low for both methods. It is, however, larger for the proposed explanations with large gains in some cases (VGG & advanced). Figure 4 shows that the PIoU can raise up to 0.5 for regions of $10\%$ image size (VGG) or $20\%$ (ResNet). This suggests that, for regions of this size, the region pairs have matching semantics.
+
+# 5.3. Visualizations
+
+Figure 5 shows three examples of counterfactual visualizations derived from the ResNet50 on CUB200. The regions selected in the query and counter class image are shown in red. The true $y^{*}$ and counter $y^{c}$ class are shown below the images and followed by the ground truth discriminative attributes for the image pair. Note how the proposed explanations identify semantically matched and class-specific bird parts on both images. For example, the throat and bill that distinguish Laysan from Sooty Albatrosses. This feedback enables a user to learn that Laysans
+
+
+$\mathbf{r}\{y^{*},y^{c}\} (\mathbf{x})$ $\mathbf{r}\{y^c,y^*\} (\mathbf{x}^c)$
+True: Laysan Albatross (white throat, yellow bill)
+
+
+
+
+$\mathbf{r}\{y^{*},y^{c}\} (\mathbf{x})$
+
+
+$\mathbf{r}\{y^c,y^*\} (\mathbf{x}^c)$
+
+
+Counter: Sooty Albatross (black throat, black bill)
+True: Green Violetear (needle bill shape, black bill color)
+Counter: Indigo Bunting (cone bill shape, grey bill color)
+
+
+
+
+
+
+
+# Ours
+
+
+Figure 5: Comparison of counterfactual explanations (true and counter classes shown below each example, and ground truth class-specific part attributes in parenthesis).
+
+
+
+
+$\mathbf{r}\{y^{*},y^{c}\} (\mathbf{x})$
+True: Promenade deck (floor, ceiling, sea)
+
+
+
+
+$\mathbf{r}\{y^{*},y^{c}\} (\mathbf{x})$
+True:Playroom (desk,ceiling)
+
+
+
+
+Counter: Bridge (tree, river, bridge)
+True: Bus interior (pole)
+Counter: Storage room (box, closet)
+Figure 6: Counterfactual explanations on ADE20K.
+
+
+
+
+Counter: Playground (tree, sky)
+
+
+
+have white throats and yellow bills, while Sootys have black throats and bills. This is unlike the regions produced by [12], which sometimes highlight irrelevant cues, such as the background. Figure 6 presents similar figures for ADE20K, where the proposed explanations tend to identify scene-discriminative objects. For example, that a promenade deck contains objects 'floor', 'ceiling', 'sea,' while a bridge scene includes 'tree', 'river' and 'bridge'.
+
+# 5.4. Application to machine teaching
+
+[12] used counterfactual explanations to design an experiment to teach humans distinguish two bird classes. During a training stage, learners are asked to classify birds. When they make a mistake, they are shown counterfactual feedback of the type of Figure 5, using the true class as $y^{*}$ and the class they chose as $y^{c}$ . This helps them understand why they chose the wrong label, and learn how to better distinguish the classes. In a test stage, learners are then asked to classify a bird without visual aids. Experiments reported in [12] show that this is much more effective than simply telling them whether their answer is correct/incorrect, or other simple training strategies. We made two modifica
+
+
+Kentucky Warbler
+Figure 7: Visualization of machine teaching experiment.
+
+
+Setophaga Citrina
+
+tions to this set-up. The first was to replace bounding boxes with highlighting of the counterfactual reasons, as shown in Figure 7. We also instructed learners not to be distracted by the darkened regions. Unlike the set-up of [12], this guarantees that they do not exploit cues outside the counterfactual regions to learn bird differences. Second, to check this, we added two contrast experiments where 1) highlighted regions are generated randomly (without telling the learners); 2) the entire images are lighted. If these produce the same results, one can conclude that the explanations do not promote learning.
+
+We also chose two more difficult birds, the Setophaga Citrina and the Kentucky Warbler (see Figure 7), than those used in [12]. This is because these classes have large intraclass diversity. The two classes also cannot be distinguished by color alone, unlike those used in [12]. The experiment has three steps. The first is a pre-learning test, where students are asked to classify 20 examples of the two classes, or choose a 'Don't know' option. The second is a learning stage, where counterfactual explanations are provided for 10 bird pairs. The third is a post-learning test, where students are asked to answer 20 binary classification questions. In this experiment, all students chose 'Don't know' in the pre-learning test. However, after the learning step, they achieved $95\%$ mean accuracy, compared to $60\%$ (random highlighted regions) and $77\%$ (entire images lighted) in the contrast settings. These results suggest that SCOUT can help teach non-expert humans distinguish categories from an expert domain.
+
+# 6. Conclusion
+
+In this work, we proposed a new family of discriminant explanations, which leverage self-awareness and bridge the gap between attributions and counterfactuals. A quantitative evaluation protocol was also proposed. Experiments under both this protocol and machine teaching experiments show that both the proposed discriminant and counterfactual explanations achieve much better performance than existing attributive and counterfactual methods.
+
+Acknowledgements This work was partially funded by NSF awards IIS-1637941, IIS-1924937, and NVIDIA GPU donations.
+
+# References
+
+[1] Marco Ancona, Enea Ceolini, Cengiz Öztireli, and Markus Gross. A unified view of gradient-based attribution methods for deep neural networks. In NIPS 2017-Workshop on Interpreting, Explaining and Visualizing Deep Learning. ETH Zurich, 2017.
+[2] Lisa Anne Hendricks, Ronghang Hu, Trevor Darrell, and Zeynep Akata. Grounding visual explanations. In The European Conference on Computer Vision (ECCV), September 2018.
+[3] Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. *PloS one*, 10(7):e0130140, 2015.
+[4] Sumit Basu and Janara Christensen. Teaching classification boundaries to humans. In Twenty-Seventh AAAI Conference on Artificial Intelligence, 2013.
+[5] Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1563-1572, 2016.
+[6] Thierry Deruyttere, Simon Vandenhende, Dusan Grujicic, Luc Van Gool, and Marie-Francine Moens. Talk2car: Taking control of your self-driving car. arXiv preprint arXiv:1909.10838, 2019.
+[7] Terrance DeVries and Graham W Taylor. Learning confidence for out-of-distribution detection in neural networks. arXiv preprint arXiv:1802.04865, 2018.
+[8] Amit Dhurandhar, Pin-Yu Chen, Ronny Luss, Chun-Chen Tu, Paishun Ting, Karthikeyan Shanmugam, and Payel Das. Explanations based on the missing: Towards contrastive explanations with pertinent negatives. In Advances in Neural Information Processing Systems, pages 592-603, 2018.
+[9] Dominik Maria Endres and Johannes E Schindelin. A new metric for probability distributions. IEEE Transactions on Information theory, 2003.
+[10] Yonatan Geifman and Ran El-Yaniv. Selective classification for deep neural networks. In Advances in neural information processing systems, pages 4878-4887, 2017.
+[11] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014.
+[12] Yash Goyal, Ziyan Wu, Jan Ernst, Dhruv Batra, Devi Parikh, and Stefan Lee. Counterfactual visual explanations. 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 2376-2384, 2019.
+[13] Lisa Anne Hendricks, Ronghang Hu, Trevor Darrell, and Zeynep Akata. Generating counterfactual explanations with natural language. arXiv preprint arXiv:1806.09809, 2018.
+[14] Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural net
+
+works. Proceedings of International Conference on Learning Representations, 2017.
+[15] Dan Hendrycks, Mantas Mazeika, and Thomas G Dietterich. Deep anomaly detection with outlier exposure. Proceedings of International Conference on Learning Representations, 2019.
+[16] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Cite-seer, 2009.
+[17] Ronan Le Hy, Anthony Arrigoni, Pierre Bessière, and Olivier Lebeltel. Teaching bayesian behaviours to video game characters. Robotics and Autonomous Systems, 47(2-3):177-185, 2004.
+[18] Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. Proceedings of International Conference on Learning Representations, 2018.
+[19] Yi Li and Nuno Vasconcelos. Background data resampling for outlier-aware classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2020.
+[20] Shiyu Liang, Yixuan Li, and R Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. Proceedings of International Conference on Learning Representations, 2018.
+[21] Shusen Liu, Bhavya Kailkhura, Donald Loveland, and Yong Han. Generative counterfactual introspection for explainable deep learning. arXiv preprint arXiv:1907.03077, 2019.
+[22] 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.
+[23] Ronny Luss, Pin-Yu Chen, Amit Dhurandhar, Prasanna Sattigeri, Karthikeyan Shanmugam, and Chun-Chen Tu. Generating contrastive explanations with monotonic attribute functions. arXiv preprint arXiv:1905.12698, 2019.
+[24] Tim Miller. Contrastive explanation: A structural-model approach. arXiv preprint arXiv:1811.03163, 2018.
+[25] Chris Piech, Jonathan Bassen, Jonathan Huang, Surya Ganguli, Mehran Sahami, Leonidas J Guibas, and Jascha Sohl-Dickstein. Deep knowledge tracing. In Advances in neural information processing systems, pages 505-513, 2015.
+[26] Shubham Rathi. Generating counterfactual and contrastive explanations using shap. arXiv preprint arXiv:1906.09293, 2019.
+[27] Walter J Scheirer, Anderson de Rezende Rocha, Archana Sapkota, and Terrance E Boult. Toward open set recognition. IEEE transactions on pattern analysis and machine intelligence, 35(7):1757-1772, 2012.
+[28] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, pages 618-626, 2017.
+[29] Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation
+
+differences. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3145-3153. JMLR.org, 2017.
+[30] Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, and Anshul Kundaje. Not just a black box: Learning important features through propagating activation differences. arXiv preprint arXiv:1605.01713, 2016.
+[31] Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. Workshop at International Conference on Learning Representations, 2014.
+[32] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[33] Adish Singla, Ilija Bogunovic, Gábor Bartók, Amin Karbasi, and Andreas Krause. Near-optimally teaching the crowd to classify. In ICML, page 3, 2014.
+[34] Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3319-3328. JMLR.org, 2017.
+[35] Arnaud Van Looveren and Janis Klaise. Interpretable counterfactual explanations guided by prototypes. arXiv preprint arXiv:1907.02584, 2019.
+[36] Sandra Wachter, Brent Mittelstadt, and Chris Russell. Counterfactual explanations without opening the black box: Automated decisions and the gpdr. Harv. JL & Tech., 31:841, 2017.
+[37] Pei Wang and Nuno Vasconcelos. Towards realistic predictors. In The European Conference on Computer Vision, 2018.
+[38] Pei Wang and Nuno Vasconcelos. Deliberative explanations: visualizing network insecurities. In Advances in Neural Information Processing Systems 32, pages 1374-1385, 2019.
+[39] Xin Wang, Yujia Luo, Daniel Crankshaw, Alexey Tumanov, Fisher Yu, and Joseph E Gonzalez. Idk cascades: Fast deep learning by learning not to overthink. arXiv preprint arXiv:1706.00885, 2017.
+[40] P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona. Caltech-UCSD Birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010.
+[41] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2921-2929, 2016.
+[42] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017.
+[43] Xiaojin Zhu, Adish Singla, Sandra Zilles, and Anna N. Rafferty. An overview of machine teaching. arXiv preprint arXiv:1801.05927, 2018.
+[44] Luisa M Zintgraf, Taco S Cohen, Tameem Adel, and Max Welling. Visualizing deep neural network decisions: Prediction difference analysis. *ICLR*, 2017.
\ No newline at end of file
diff --git a/scoutselfawarediscriminantcounterfactualexplanations/images.zip b/scoutselfawarediscriminantcounterfactualexplanations/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2f8213936e1ed3085986d783102adbea43a8e9dd
--- /dev/null
+++ b/scoutselfawarediscriminantcounterfactualexplanations/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84d7a1353a8ffef528b6a4f2891a325e0f9cf9eb99bb92249742b0501154f0d0
+size 365704
diff --git a/scoutselfawarediscriminantcounterfactualexplanations/layout.json b/scoutselfawarediscriminantcounterfactualexplanations/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..df31d6ec77bd94da66103f85d8ab6b5cff3b52b2
--- /dev/null
+++ b/scoutselfawarediscriminantcounterfactualexplanations/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e6f305b9129c5ea2d2312e7916b799c92182ca6148d2959705c0da45664ba5e8
+size 530279
diff --git a/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_content_list.json b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..152eb1bb0078667eb898ad9aa802f7325ff7e5cf
--- /dev/null
+++ b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc986c96c601e9dd892f0eb5faa5cd23080c4551f21baf219e4fe028c0bc4857
+size 78481
diff --git a/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_model.json b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..34deb93c7fea0397f8cfed4630b11c86f3d9043d
--- /dev/null
+++ b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12d921f5acc319dd13e795247baac731da115680bc0f35a5b78301fab68cf057
+size 94566
diff --git a/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_origin.pdf b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..153b8b29249ec988adf5f1f915c1fec834d9c6e8
--- /dev/null
+++ b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/237f6e54-2d97-4096-9fc5-7d5ae8f1138f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f9099193b8e006e1e06de8c304ddb67e9977d7c571e5b64f9e99a2a988a188dd
+size 684680
diff --git a/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/full.md b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e7d287d43a5edace6267a4a0558c71c2bdc0bd8e
--- /dev/null
+++ b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/full.md
@@ -0,0 +1,362 @@
+# SCT: Set Constrained Temporal Transformer for Set Supervised Action Segmentation
+
+Mohsen Fayyaz and Juergen Gall
+
+University of Bonn
+
+Bonn, Germany
+
+{fayyaz, gall}@iai.uni-bonn.de
+
+# Abstract
+
+Temporal action segmentation is a topic of increasing interest, however, annotating each frame in a video is cumbersome and costly. Weakly supervised approaches therefore aim at learning temporal action segmentation from videos that are only weakly labeled. In this work, we assume that for each training video only the list of actions is given that occur in the video, but not when, how often, and in which order they occur. In order to address this task, we propose an approach that can be trained end-to-end on such data. The approach divides the video into smaller temporal regions and predicts for each region the action label and its length. In addition, the network estimates the action labels for each frame. By measuring how consistent the frame-wise predictions are with respect to the temporal regions and the annotated action labels, the network learns to divide a video into class-consistent regions. We evaluate our approach on three datasets where the approach achieves state-of-the-art results.
+
+# 1. Introduction
+
+For many applications large amount of video data needs to be analyzed. This includes temporal action segmentation, which requires to label each frame in a long video by an action class. In the last years, several strong models for temporal action segmentation have been proposed [17, 22, 10]. These models are, however, trained in a fully supervised setting, i.e., each training video needs to be fully annotated by frame-wise labels. Since acquiring such annotations is very expensive, several works investigated methods to learn the models with less supervision. An example of weakly annotated training data are videos where only transcripts are provided [20, 12, 27, 29, 8, 4, 34, 24]. While transcripts of videos can be obtained from scripts or subtitles, they are still costly to obtain. In [28] it was therefore proposed to learn temporal action segmentation only from a set of ac
+
+tion labels that are provided for a complete video of several minutes. In this case, it is only known which actions occur, but not when, in which order, or how often. This makes the task much more challenging compared to learning from transcripts or fully supervised learning.
+
+In the work [28], the problem has been addressed by hypothesizing transcripts that contain each action label of a video at least once and then infer a frame-wise labeling of the video by aligning the hypothesized transcripts. While the approach showed that it is possible to learn from such weak annotation even for long videos, the approach does not solve the problem directly but converts it into a weakly supervised learning problem where multiple hypothesized transcripts per video are given. This is, however, ineffective since it is infeasible to align all transcripts that can be generated from a set of action labels and it uses the provided annotations not directly for learning.
+
+In this work, we propose a method that uses the action labels that are given for each training video directly for the loss function. In this way, we can train the model in an end-to-end fashion. The main idea is to divide a video into smaller temporal regions as illustrated in Figure 1. For each region, we estimate its length and the corresponding action label. Since for each training video the set of actions is known, we can directly apply a set loss to the predicted action labels of the temporal regions, which penalizes the network if it predicts actions that are not present in the video or if it misses an action. The problem, however, is that we cannot directly apply a loss to the prediction of the region lengths. While a regularizer for the predicted length that penalizes if the lengths of the regions get too large improves the results, it is insufficient as we show in our experiments. We therefore introduce a second branch to make frame-wise predictions and measure how consistent the frame-wise predictions are with respect to the temporal regions and the annotated action labels. Using our differentiable Set Constrained Temporal Transformation (SCT), this loss affects the lengths of the regions, which substantially improves the accuracy of the model.
+
+In our experimental evaluation on three datasets, we show that the proposed approach achieves state-of-the-art results. We furthermore thoroughly evaluate the impact of each component.
+
+# 2. Related Work
+
+Researchers in the field of action recognition have made significant advances in recent years. Methods for action recognition on trimmed video clips have acquired prominent achievements in recent years [3, 6, 5, 7, 38, 11, 35]. Although current methods achieve high accuracies on large datasets such as Kinetics [15], HMDB-51 [19], and UCF-101 [33], in realistic problems videos are not temporally trimmed.
+
+Using the publicly available untrimmed video action segmentation datasets such as Breakfast [16] or ActivityNet [2], several works address action segmentation in videos [17, 22, 39, 10]. Early action segmentation methods utilized Markov models on top of temporal models [23, 17] or sliding window processing [30, 14]. [26] models context and length information. They show that length and context information significantly improve action segmentation. There are also other fully supervised methods that use grammars [25, 37, 18]. Recent methods try to capture the long range temporal dependencies using temporal convolutions with large receptive fields [22, 10].
+
+The existing methods in weakly supervised action segmentation use ordered action sequences as annotation. The early works tried to get ordered sequences of actions from movie scripts [21, 9]. Bojanowski et al. [1] introduced the Hollywood extended dataset. They also proposed a method for action alignment based on discriminative clustering. Huang et al. [12] proposed to use an extended version of the CTC loss. Kuehne et al. [20] proposed a HMM-GMM based system that iteratively generates pseudo ground truth for videos during training. Richard et al. [27] use an RNN for short range temporal modeling. Most of these methods rely on iterative pseudo ground-truth generation approaches which does not allow for end-to-end training. Richard et al. [29] introduced the Neural Network Viterbi (NNV) method. They use a global length model for actions, which is updated during training. Souri et al. [34] introduce an end-to-end method which does not use any decoding during training. They use a combination of a sequence-to-sequence model on top of a temporal convolutional network to learn the given transcript of actions while learning to temporally segment the video. Li et al. [24] build upon NNV which achieves state-of-the-art results in weakly supervised action segmentation with ordering constraints.
+
+When working with weak supervision without ordering constraints, only the set of actions is given during training. Richard et al. [28] address the problem by hypothesizing transcripts that contain each action label of a video at least
+
+
+Figure 1. Our model estimates for $K$ temporal regions the actions probabilities $A_{1:K} = (a_1, \ldots, a_K), a_k \in \mathbb{R}^C$ , and the temporal lengths of the regions $L_{1:K} = (\ell_1, \ldots, \ell_K), \ell_k \in \mathbb{R}$ . In this example, $K = 10$ . Since temporal regions are not aligned with the action segments, the model estimates the temporal lengths to refine the corresponding temporal region of the predicted action.
+
+once and then infer a frame-wise labeling of the video by aligning the hypothesized transcripts. They showed that it is possible to learn from such weak annotation even for long videos, but they do not solve the problem directly. They convert the problem into a weakly supervised learning problem where multiple hypothesized transcripts per video are given. This is, however, ineffective since it is infeasible to align all transcripts that can be generated from a set of action labels and it uses the provided annotations not directly for learning.
+
+# 3. Weakly Supervised Action Segmentation
+
+Action segmentation requires to temporally segment all frames of a given video, i.e., predicting the action in each frame of a video. The task can be formulated as follows. Given an input sequence of $D$ -dimensional features $X_{1:T} = (x_1,\ldots ,x_T)$ , $x_{t}\in \mathbb{R}^{D}$ , the task is to infer the sequence of framewise action labels $\hat{Y}_{1:T} = (\hat{y}_1,\dots ,\hat{y}_T)$ where there are $C$ classes $\mathcal{C} = \{1,\dots,C\}$ and $\hat{y}_t\in \mathcal{C}$ .
+
+In the case of fully supervised learning, the labels $\hat{Y}_{1:T}$ are provided for each training sequence. In this work, we investigate a weakly supervised setting as in [28]. In this setting, only the actions $\hat{A} = \{\hat{a}_1,\dots ,\hat{a}_M\}$ that occur in a long video are given where $\hat{a}_m\in \mathcal{C}$ and $M\leq C$ . In contrast to other weakly supervised settings where transcripts are given, this is a much more difficult task since not only the lengths of the actions are unknown for the training sequences, but also the order of the actions and the number of the occurrences of each action.
+
+# 4. Proposed Method
+
+In order to address weakly supervised action segmentation, we propose a network that divides a temporal sequence into temporal regions and that estimates for each region the action and the length as illustrated in Figure 1. This representation is between a frame-wise representation where the length of each region is just one frame and an action
+
+
+Figure 2. Overview of the proposed network with loss functions. The network gets a sequence of features $X_{1:T}$ as input. A temporal model $f_{e}(X)$ maps these features to a latent space $Z$ with lower temporal resolution. The lower branch $f_{r}(Z)$ divides the temporal sequence into temporal regions $Z_{1:K}^{\prime}$ and estimates for each region the action probabilities $a_{k}$ and the length $l_{k}$ . Since the temporal resolution has been decreased, the upsampling module $f_{u}(A,L)$ uses the lengths $L_{1:K}$ and the action probabilities $A_{1:K}$ of all regions to obtain estimates of the framewise probabilities $Y_{1:T}$ . While $L_{1:K}$ is regularized by the length regularizer $\mathcal{R}_{\mathcal{L}}$ , $A_{1:K}$ is trained to minimize $\mathcal{L}_S$ , $\mathcal{L}_{\mathcal{R}}$ , $\mathcal{L}_{\mathcal{C}}$ , and $\mathcal{R}_{\mathcal{I}}$ . Since besides of the regularizer $\mathcal{R}_{\mathcal{L}}$ , there is no loss term that provides supervision for $L$ , we use a second branch $f_{s}(Z)$ to provide an additional supervisory signal. Using SCT, we transform the temporal representations $Y_{1:T}$ and $S_{1:T}$ to a set representation $V_{1:M}$ for the self supervision loss $\mathcal{L}_{\mathcal{T}}$ .
+
+segment representation where a region contains all neighboring frames that have the same action label.
+
+Figure 2 illustrates our proposed network, which consists of three components. The first component $f_{e}(X)$ , which is described in Section 4.1, maps the input video features $X \in \mathbb{R}^{T \times D}$ to a temporal embedding $Z \in \mathbb{R}^{T' \times D'}$ where $T' < T$ and $D' < D$ . The second component $f_{r}(Z)$ , which is described in Section 4.2, takes $Z$ as input and estimates for $K$ temporal regions the actions probabilities $A_{1:K} = (a_1, \ldots, a_K), a_k \in \mathbb{R}^C$ , and the temporal lengths of the regions $L_{1:K} = (\ell_1, \ldots, \ell_K), \ell_k \in \mathbb{R}$ . In order to obtain the frame-wise class probabilities $Y \in \mathbb{R}^{T \times C}$ from $L$ and $A$ , the third component $f_{u}(A, L)$ , which is discussed in Section 4.3, upsamples the estimated regions such that there are $T$ regions of length 1.
+
+# 4.1. Temporal Embedding
+
+Given the input video features $X \in \mathbb{R}^{T \times D}$ the temporal embedding component $f_{e}(X)$ outputs the hidden video representation $Z \in \mathbb{R}^{T' \times D'}$ . Our temporal embedding is a fully convolutional network. In this network we first apply a 1-d convolution with kernel size 1 to reduce the in
+
+put feature dimension from $D$ to $D'$ . On top of this layer we have used $B$ temporal convolution blocks (TCB) with $B = 6$ . Each TCB contains a dilated 1-d convolution layer with kernel size 3 for conducting the temporal structure. We increase the dilation rates as $\{2^b | b \in \mathbb{Z}^+, 0 \leq b \leq B\}$ where $b$ is the index of the TCBs. Then a ReLU activation function is applied on top of the convolutional layer. On top of this combination, a 1-d convolution layer with kernel size 1 and a residual connection is used. Finally, a dropout with a probability of 0.25 is applied on top. The TCB is modeled after the WaveNet architecture [36]. To reduce the temporal dimension of the representation, we perform temporal max poolings with a kernel size of 2 on top of the TCBs with $b = \{1, 2, 4\}$ . Using the TCBs and max poolings, we get large receptive fields on the input data $X$ . Having such large receptive fields provides the capability of modeling long and short range temporal relations between the input frames.
+
+# 4.2. Temporal Regions
+
+On top of the temporal embedding, we use the temporal region estimator network $f_{r}(Z)$ to estimate the action
+
+probabilities and the temporal lengths for $K$ temporal regions. $f_{r}(Z)$ outputs the hidden representation $Z_{1:K}^{\prime} = (z_{1}^{\prime},\ldots ,z_{K}^{\prime}),z_{k}^{\prime}\in \mathbb{R}^{D^{\prime}}$ , for the temporal regions. To have a better representation for estimating the actions probabilities $A$ and region lengths $L$ , we increase the receptive field size and decrease the temporal dimension. This network mostly follows the same architecture design as $f_{e}(X)$ . It has $B^{\prime}$ TCBs with $B^{\prime} = 4$ . The dilation rates of the TCBs are set as $\{2^{b^{\prime}}|b^{\prime}\in \mathbb{Z}^{+},B < b^{\prime}\leq B + B^{\prime}\}$ . To reduce the temporal dimension of the representation, we perform temporal max poolings with kernel size 2 on top of the TCBs with indices 2 and 4. On top of the final TCB, we have two different heads $f_{c}$ and $f_{l}$ . $f_{c}(Z^{\prime})$ predicts the class probabilities $A$ . It consists of a 1-d convolution layer with a kernel size of 1 and an output channel size of $C$ . A softmax function is applied on top of the convolution layer to get the action probabilities $A$ . $f_{l}(Z^{\prime})$ predicts the lengths $L$ for the corresponding temporal regions. It consists of two 1-d convolution layers with kernel sizes 1 and output channels $D^{\prime} / 2$ and 1, respectively.
+
+# 4.3. Region Upsampling
+
+$f_{c}(Z^{\prime})$ estimates the action probabilities $A_{1:K}$ for temporal regions. To get probabilities for temporal action segmentation, we need to upsample $A_{1:K}$ to $Y_{1:T}$ . Since $f_{l}(Z^{\prime})$ predicts the corresponding lengths $L_{1:K}$ , we can use theses lengths to upsample the probabilities $A$ . To do so, we first project the predicted lengths $L_{1:K}$ to absolute lengths $L_{1:K}^{\prime} = (\ell_1^{\prime}, \dots, \ell_K^{\prime}), \ell_k^{\prime} \in \mathbb{Z}^{+}$ , by:
+
+$$
+\ell_ {k} ^ {\prime} = T \frac {e ^ {\ell_ {k}}}{\sum_ {i = 1} ^ {K} e ^ {\ell_ {i}}}. \tag {1}
+$$
+
+In other words, we apply the softmax function on $L$ to get the relative lengths, which sum up to 1 and then multiply them by $T$ to get the absolute lengths. Therefore, the absolute lengths sum up to $T$ , which is our desired final temporal size for $Y$ . Given the absolute lengths $L'$ , we upsample $A$ in a differentiable way such that $a_k \in \mathbb{R}^C$ becomes $a_k' \in \mathbb{R}^{\ell_k' \times C}$ .
+
+# 4.3.1 Temporal Sampling
+
+Although it is possible to obtain $a_{k}^{\prime}$ by just copying $\ell_{k}^{\prime}$ times the probabilities $a_{k}$ , this operation is not differentiable with respect to $\ell_{k}^{\prime}$ . However, we need a differentiable operation in order to update the parameters of $f_{l}$ , which predicts $L$ , during training.
+
+We first generate our target matrix $a_{k}^{\prime}\in \mathbb{R}^{H\times C}$ where $H = \max_k\ell_k^\prime$ , i.e., the matrix is set such that the size is constant for all $k$ . For a better temporal sampling, we also expand the source by copying $j$ times $a_{k}$ , where $J$ is a canonical value equal to 100. Although $a_{k}$ has been expanded to $\mathbb{R}^{J\times C}$ , we still keep the notation $a_{k}$
+
+The idea is to fill the matrix $a_{k}^{\prime}$ by backward warping and a bilinear kernel. Similar to [13], we use normalized element indices, such that $-1 \leq i_{a}[j] \leq 1$ when $j \in [1 \dots J]$ and $-1 \leq i_{a'}[h] \leq 1$ when $h \in [1 \dots H]$ . This means if we just interpolate the values for each column $c$ , the operation is defined by
+
+$$
+a _ {k} ^ {\prime} [ h, c ] = \sum_ {j = 1} ^ {J} a _ {k} [ j, c ] \max \left(0, 1 - \left| i _ {a ^ {\prime}} [ h ] - i _ {a} [ j ] \right|\right) \tag {2}
+$$
+
+for $h\in [1\dots H]$
+
+However, we do not want to fill the entire row but only until $\ell_k^\prime$ . We therefore apply a 1D affine transformation to the index function
+
+$$
+T _ {\ell_ {k} ^ {\prime}} \left(i _ {a ^ {\prime}} [ h ]\right) = \frac {H}{\ell_ {k} ^ {\prime}} i _ {a ^ {\prime}} [ h ] + \frac {H}{\ell_ {k} ^ {\prime}} - 1. \tag {3}
+$$
+
+This means that $T_{\ell_k'}(i_{a'}[1]) = -1$ and $T_{\ell_k'}(i_{a'}[\ell_k']) = 1$ . By integrating (3) into (2), we obtain the upsample operation
+
+$$
+a _ {k} ^ {\prime} [ h, c ] = \sum_ {j = 1} ^ {J} a _ {k} [ j, c ] \max \left(0, 1 - \left| T _ {\ell_ {k} ^ {\prime}} \left(i _ {a ^ {\prime}} [ h ]\right) - i _ {a} [ j ] \right|\right) \tag {4}
+$$
+
+that is differentiable with respect to $\ell_k^{\prime}$
+
+Finally, the matrix is cropped to $a_{k}^{\prime}\in \mathbb{R}^{\ell_{k}^{\prime}\times C}$ and we obtain $Y\in \mathbb{R}^{T\times C}$ by concatenating the $a_{k}^{\prime}\mathrm{s}$ for $k = 1,\ldots ,K$
+
+# 5. Training
+
+In Section 4 we proposed a model that is capable of dividing a temporal sequence into temporal regions and predicting corresponding action probabilities $A$ and lengths $L$ . We now discuss the loss functions and regularizers for training the model.
+
+# 5.1. Set Loss
+
+In a set supervised problem we already have the set supervision. So we use a simple set prediction loss $\mathcal{L}_{\mathcal{S}}$ to use the given set of actions $\hat{A}$ . We apply a global max pooling over the temporal dimension of $A$ to output $a^{mc} \in \mathbb{R}^C$ . Then we use the binary cross entropy loss for multiclass classification as
+
+$$
+\mathcal {L} _ {\mathcal {S}} = - \frac {1}{C} \left(\sum_ {m \in \hat {A}} \log \left(a ^ {m c} [ m ]\right) + \sum_ {m \notin \hat {A}} \log \left(1 - a ^ {m c} [ m ]\right)\right). \tag {5}
+$$
+
+This loss encourages the model to assign at least one region to one of the classes in $\hat{A}$ and none to the other classes.
+
+# 5.2. Region Loss
+
+The set loss only enforces that there is one region with a high probability for each class. It can, however, happen that
+
+the other regions have a uniform distribution for the classes in $\hat{A}$ . Since it is unlikely that all actions occur at the same time, we introduce the region loss, which encourages the model to predict only one action from $\hat{A}$ per region. Since we know that only actions from $\hat{A}$ can occur, we first discard the unrelated actions from $A \in \mathbb{R}^{K \times C}$ and denote it by $A^S \in \mathbb{R}^{K \times M}$ , where each column belongs to one of the given action set members $\hat{a}_m$ . We now prefer a prediction where for each $k$ the probability is close to 1 for one action $\hat{a}_m$ . Due to the softmax, this means that the probability is close to zero for the other actions.
+
+This is achieved by applying a global max pooling over the $m$ dimension of $A^S \in \mathbb{R}^{K \times M}$ to obtain $a^{mk} \in \mathbb{R}^K$ and using the cross entropy loss:
+
+$$
+\mathcal {L} _ {\mathcal {R}} = - \frac {1}{K} \sum_ {k = 1} ^ {K} \log (a ^ {m k} [ k ]). \tag {6}
+$$
+
+# 5.3. Inverse Sparsity Regularization
+
+The set loss and the region loss ensure that (i) all actions that are not in the set $\hat{A}$ have a low probability, (ii) for each temporal region there is exactly one action $\hat{a}_m \in \hat{A}$ with high probability, and (iii) for each action $\hat{a}_m$ there is at least one region $k$ where $a[k,m]$ is high. This, however, can result in unlikely solutions where for $M - 1$ actions there is only one region with high probability whereas the other regions are assigned to a single action class. To prevent such a sparse distribution of regions for some action classes, we introduce an inverse sparsity regularization term $\mathcal{R}_{\mathcal{I}}$ , which prefers a more balanced class distribution averaged over all regions:
+
+$$
+\mathcal {R} _ {\mathcal {I}} = \frac {1}{M} \sum_ {m \in \hat {A}} \left(1 - \frac {1}{K} \sum_ {k = 1} ^ {K} a [ k, m ]\right). \tag {7}
+$$
+
+This regularizer encourages that the action classes compete for maximizing the number of temporal regions they are being predicted for.
+
+# 5.4. Temporal Consistency Loss
+
+As illustrated in Figure 1, the temporal regions are usually smaller than the action segments in the video and a single action often spans several regions. The likelihood of observing the same action in the neighboring temporal regions is therefore usually higher than observing a different action. We therefore introduce the temporal consistency loss $\mathcal{L}_{\mathcal{C}}$ that encourages the model to predict similar action labels for neighboring temporal regions:
+
+$$
+\mathcal {L} _ {\mathcal {C}} = \frac {1}{M} \sum_ {m \in \hat {A}} \frac {1}{K} \sum_ {k = 2} ^ {K} | a [ k, m ] - a [ k - 1, m ] |. \tag {8}
+$$
+
+More precisely, $\mathcal{L}_{\mathcal{C}}$ encourages the model to have less prediction changes over the temporal dimension of $A^S$ .
+
+# 5.5. Self Supervision Loss
+
+The aforementioned losses and regularizers only affect the class probabilities $A$ of the temporal regions, but do not backpropagate gradients through the subnetwork $f_{l}$ . This means that the network does not learn the corresponding lengths of the regions during training. In order to provide an auxiliary supervision signal to train $L$ , we employ a self supervision technique which relies on using two different representations. The first representation $Y$ is obtained by estimating the actions probabilities $A$ and lengths $L$ for $K$ temporal regions as described in Section 4.2. Due to the temporal sampling, the representation $Y$ is differentiable with respect to $L$ .
+
+To have another representation, we use a second branch $f_{s}(Z)$ . This branch consists of a subnetwork that has a single 1-d convolution with kernel size 1 and output channel size $C$ . It predicts frame-wise class probabilities for the temporal size $T'$ . We linearly interpolate it to $S \in \mathbb{R}^{T \times C}$ along the temporal dimension, which corresponds to a setting where $K = T'$ and $\ell_{k} = \frac{T}{T'}$ , i.e., all regions have a constant length.
+
+Since we do not know the ground-truth lengths $L$ but only the set of present actions $\hat{A}$ , we combine $Y$ and $S$ to compute class probabilities $V_{1:M} = (v_1, \dots, v_M)$ , $v_m \in \mathbb{R}^C$ , for each element in the set $\hat{A}$ . This is done by the Set Constrained Temporal Transformer module (SCT).
+
+# 5.6. Set Constrained Temporal Transformer
+
+As it is illustrated in Figure 2, we produce for each action class $\hat{a}_m \in \hat{A}$ masks $w_m$ from $Y$ . The masks indicate the temporal locations where the action $\hat{a}_m$ occurs in the video. We use these masks to sample from $S$ :
+
+$$
+v _ {m} = \frac {1}{T} \sum_ {t = 1} ^ {T} w _ {m} [ t ] S [ t ]. \tag {9}
+$$
+
+If $S$ and $Y$ are consistent, $v_{m}[\hat{a}_{m}]$ should be high and $v_{m}[\hat{a}_{n}]$ should be close to zero for $n \neq m$ .
+
+To exploit this, we apply a softmax on $v_{m}$ to get the predicted probabilities for the given action and use the cross entropy loss:
+
+$$
+\mathcal {L} _ {\mathcal {T} _ {m}} \left(v _ {m}, \hat {a} _ {m}\right) = - \log \left(\frac {e ^ {v _ {m} \left[ \hat {a} _ {m} \right]}}{\sum_ {c = 1} ^ {C} e ^ {v _ {m} [ c ]}}\right). \tag {10}
+$$
+
+Since $w_{m}$ is differentiable with respect to $a_{m}$ and $l_{m}$ , the loss affects both.
+
+As a more efficient way, we can apply all of the masks $W$ on $S$ using:
+
+$$
+V = \frac {W ^ {T} S}{T} \tag {11}
+$$
+
+where $V \in \mathbb{R}^{M \times C}$ and $W^T \in \mathbb{R}^{M \times T}$ denotes the transposed version of $W$ . Therefore, we can define the loss for
+
+$V$ and the given actions set $\hat{A}$ as
+
+$$
+\mathcal {L} _ {\mathcal {T}} (V, \hat {A}) = - \frac {1}{M} \sum_ {m = 1} ^ {M} \log \left(\frac {e ^ {V [ m , \hat {a} _ {m} ]}}{\sum_ {c = 1} ^ {C} e ^ {V [ m , c ]}}\right). \tag {12}
+$$
+
+# 5.6.1 Backpropagation
+
+Using the $\mathcal{L}_{\mathcal{T}}$ loss, the gradient can backpropagate through both $S$ and $Y$ . $Y$ is the output of $f_{u}(A,L)$ which is a differential function over $L$ and $A$ . Therefore, we can update the $f_{l}$ weights using the backpropagated gradients. To be able to backpropagate through the $a_{k}^{\prime}s$ we define the gradients with respect to the sampling indices $T_{\ell_k^{\prime}}(i_{a^{\prime}}[h])$ as
+
+$$
+\begin{array}{l} \frac {\partial a _ {k} ^ {\prime} [ h , c ]}{\partial T _ {\ell_ {k} ^ {\prime}} \left(i _ {a ^ {\prime}} [ h ]\right)} = \\ \sum_ {j = 1} ^ {J} a _ {k} [ j, c ] \left\{ \begin{array}{l l} 0 & \left| i _ {a} [ j ] - T _ {\ell_ {k} ^ {\prime}} \left(i _ {a ^ {\prime}} [ h ]\right) \right| \geq 1 \\ 1 & i _ {a} [ j ] - 1 < T _ {\ell_ {k} ^ {\prime}} \left(i _ {a ^ {\prime}} [ h ]\right) \leq i _ {a} [ j ] \\ - 1 & i _ {a} [ j ] < T _ {\ell_ {k} ^ {\prime}} \left(i _ {a ^ {\prime}} [ h ]\right) < i _ {a} [ j ] + 1 \end{array} . \right. \tag {13} \\ \end{array}
+$$
+
+Since the sampling indices $T_{\ell_k'}(i_{a'}[h])$ are a function of the predicted lengths $L_{1:M}$ , the loss gradients are backpropagated to the predicted lengths
+
+# 5.6.2 Region Length Regularization
+
+Learning the lengths based on $\mathcal{L}_{\mathcal{T}}$ may result in degenerated lengths which are close to zero. Therefore, we use a length regularizer $\mathcal{R}_{\mathcal{L}}$ to prevent such circumstances. We define $\mathcal{R}_{\mathcal{L}}$ as
+
+$$
+\mathcal {R} _ {\mathcal {L}} = \frac {1}{K} \sum_ {t = 1} ^ {K} \left(R e L U \left(\ell_ {t} - \delta\right) + R e L U \left(- \ell_ {t} - \delta\right)\right) \tag {14}
+$$
+
+where $\delta$ is a canonical value equal to 1. This regularization term penalizes the lengths which are bigger or smaller than the length width of $\delta$ .
+
+# 5.7. Overall Loss
+
+All of the loss functions and regularizers that we mentioned in this section encourage the model to exploit the given weak supervision and also characteristics of actions to train the model for action segmentation. Therefore, the final loss function for the model is the weighted sum of the above mentioned losses and regularizers. In Section 6 we study the impact of all loss functions and regularizers.
+
+# 6. Experiments
+
+In this section, we analyze the components of our approach. We first analyze the model design. Then we evaluate the effect of using different loss functions and regularizers. Finally, we compare our method with the state-of-the-art.
+
+# 6.1. Setup
+
+Datasets. We evaluate our method on three popular datasets, namely the Breakfast dataset [16], Hollywood Extended [1], and MPI Cooking 2 [32].
+
+The Breakfast dataset contains 1,712 videos of different cooking activities, corresponding to about 67 hours of videos and 3.6 million frames. The videos belong to 10 different types of breakfast activities like fried egg or coffee which consist of 48 different fine-grained actions. The actions are densely annotated and only $7\%$ of the frames are background. We report the average frame accuracy (MoF) metric over the predefined train/test splits following [28].
+
+Hollywood Extended contains 937 video sequences with roughly 800,000 frames. About $61\%$ of the frames are background, which is comparably large compared to other datasets. The videos contain 16 different action classes. We report the Jaccard index (intersection over union) metric over the predefined train/test splits following [28].
+
+MPII 2 Cooking consists of 273 videos with about 2.8 million frames. We use the 67 action classes without object annotations. About $29\%$ of the frames of this dataset are background. The dataset provides a fixed split into a train and test set, separating 220 videos for training. For evaluation, we use the midpoint hit criterion following [31].
+
+Feature Extraction. We use RGB+flow I3D [3] features extracted from the I3D network pretrained on the Kinetics400 dataset [15]. The I3D features are extracted for each frame. Moreover, for a fair comparison we also use the same IDT features as [28] and evaluate the effect of using different features.
+
+Implementation Details. We train all modules of our network together. The hidden size of the temporal embedding module is 128. We use SGD optimizer with weight decay 0.005. The initial learning rate is set to 0.01. Additional details and code are available online. $^{1}$
+
+# 6.2. Ablation Experiments
+
+In this section we first analyze the model design. Then we analyze the effect of our loss functions and regularizers on training the model.
+
+# 6.2.1 Effect of different downsampling levels
+
+As mentioned in Section 4.1, we downsample the input by applying temporal max pooling with kernel size 2. We evaluate the effect of downsampling by changing the numbers of temporal max pooling operations in the temporal embedding module. It should be mentioned that we apply each max pooling on top of each temporal convolution block (TCB). As can be seen in Table 1, a small number of max
+
+
+Figure 3. Comparing the segmentation quality of our method to the ActionSet method. Our method has predicted the right order of actions occurring in this video. Our approach also estimates the actions lengths better.
+
+| #max poolings | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| MoF | 12.3 | 15.4 | 20.8 | 28.1 | 27.2 | 21.3 | 18.2 |
+
+Table 1. Evaluating the effect of changing the numbers of max pooling operations in the temporal embedding module. Experiments are run on Breakfast split 1.
+
+pooling operations results in a relatively low frame-wise accuracy. This is due to high number of temporal regions, which may result in an over-segmentation problem. Furthermore, a drop in performance can be observed when the number of max pooling operations is too large. In this case, there are not enough temporal regions and a temporal region covers multiple actions. For the rest of the experiments, we use 3 max pooling operations in our temporal modeling module. It should be noted that we use 3 max pooling operations after the TCBs with indices $\{1,2,4\}$ , while in this experiment 3 max pooling operations are applied after the TCBs with indices $\{1,2,3\}$ .
+
+# 6.2.2 Effect of using different loss functions and regularizers
+
+As mentioned in Section 5, we use different loss functions and regularizers to train our model. To quantify the effect of using these loss functions and regularizers, we train our model with different settings in which we can evaluate the effect of them for training. We train our model on split 1 of the Breakfast dataset and report the results in Table 2.
+
+As mentioned in Section 5.1, the Set Loss $\mathcal{L}_S$ encourages the model to have at least one temporal region with a high class probability for each action in the target action set. Therefore, this loss does not affect the frame-wise prediction performance of the model. As it can be seen in Table 2, using only $\mathcal{L}_S$ the model achieves MoF of $8.1\%$ .
+
+By adding the Region Loss $\mathcal{L}_{\mathcal{R}}$ , we encourage the model to only predict one action per temporal region. Using this
+
+auxiliary supervision, the MoF slightly improves to $9.9\%$ which is still relatively low.
+
+As mentioned in Section 5.3, adding the Inverse Sparsity Regularizer $\mathcal{R}_{\mathcal{I}}$ helps the method to prevent a sparse distribution of regions for some action classes. Therefore, by adding $\mathcal{R}_{\mathcal{I}}$ to the overall loss, the MoF improves to $19.2\%$ , which is significantly better than predicting every frame as background which covers about $7\%$ of the frames.
+
+We further add the Temporal Consistency Loss $\mathcal{L}_{\mathcal{C}}$ to encourage the model to predict similar actions for neighboring temporal regions. $\mathcal{L}_{\mathcal{C}}$ improves the result to $21.9\%$ .
+
+As mentioned in Section 5.5, all of the aforementioned losses and regularizers only affect the class probabilities $A$ of the temporal regions and do not backpropagate gradients through the length estimator head $f_{l}$ . We therefore add the Self Supervision Loss $\mathcal{L}_{\mathcal{T}}$ to evaluate the effect of learning lengths during training. Adding $\mathcal{L}_{\mathcal{T}}$ significantly improves the accuracy to $29.9\%$ . This improvement shows the effect of refining the temporal regions using the predicted lengths.
+
+We also evaluate the effect of using the Region Length Regularization $\mathcal{R}_{\mathcal{L}}$ . As mentioned in Section 5.6.2, learning the lengths only based on $\mathcal{L}_{\mathcal{T}}$ may result in too diverse estimated lengths for temporal regions. Therefore, we evaluate the effect of $\mathcal{R}_{\mathcal{L}}$ by adding it to the overall loss. By adding this regularizer the accuracy improves to $30.8\%$ . Since $\mathcal{L}_{\mathcal{T}}$ and $\mathcal{R}_{\mathcal{L}}$ are the only loss function and regularizer which affect the lengths $L$ , we also evaluate the effect of only using $\mathcal{R}_{\mathcal{L}}$ as an effective regularizer on the lengths without $\mathcal{L}_{\mathcal{T}}$ . This setting results in an MoF of $22.2\%$ . The reason for such a significant drop in performance is that $\mathcal{R}_{\mathcal{L}}$ only encourages the model to not estimate too diverse lengths. This shows that the proposed self supervision loss based on the set constrained temporal transformer is important to learn proper lengths for the temporal regions.
+
+To have a better understanding of the Self Supervision
+
+| \( \mathcal{L}_S \) | \( \mathcal{L}_{\mathcal{R}} \) | \( \mathcal{R}_{\mathcal{I}} \) | \( \mathcal{L}_{\mathcal{C}} \) | \( \mathcal{L}_{\mathcal{T}} \) | \( \mathcal{R}_{\mathcal{L}} \) | \( \mathcal{L}_{\mathcal{J}} \) | MoF |
| ✓ | - | - | - | - | - | - | 8.1 |
| ✓ | ✓ | - | - | - | - | - | 9.9 |
| ✓ | ✓ | ✓ | - | - | - | - | 19.2 |
| ✓ | ✓ | ✓ | ✓ | - | - | - | 21.9 |
| ✓ | ✓ | ✓ | ✓ | ✓ | - | - | 29.9 |
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | 30.8 |
| ✓ | ✓ | ✓ | ✓ | - | ✓ | - | 22.2 |
| ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | 25.3 |
+
+Table 2. Evaluating the effect of using different losses and regularizers. Experiments are run on Breakfast split 1.
+
+ | I3D | IDT |
| ActionSet [28] | 20.1* | 23.3 |
| Ours | 30.4 | 26.6 |
+
+Loss, we also try to train the temporal regions' length estimator head $f_{l}$ in a different way. Instead of using $\mathcal{L}_{\mathcal{T}}$ , we use the Jensen Shannon Divergence loss which is a symmetric and smoothed version of the Kullback-Leibler divergence to match both representations $Y$ and $S$ as follows:
+
+$$
+\mathcal {L} _ {\mathcal {I}} = \frac {1}{2} D (Y \| M) + D (S \| M), \tag {15}
+$$
+
+$$
+\mathcal {D} (\mathcal {P} \| \mathcal {Q}) = \sum_ {x \in X} P (x) \log \left(\frac {P (x)}{Q (x)}\right) \tag {16}
+$$
+
+where $M = \frac{1}{2} (Y + S)$ . Using $\mathcal{L}_{\mathcal{T}}$ instead of $\mathcal{L}_{\mathcal{T}}$ results in an MoF of 25.3%, which shows the superiority of our self supervision loss.
+
+# 6.2.3 Effect of using different features
+
+As mentioned before, we use I3D features [3] as input to our model. To evaluate the effect of the input video features, we train our model using IDT features as well and report the results in Table 3. To have a better comparison with the previous state-of-the-art method [28], we also train this method with I3D features using the publicly available code. We observe that our method achieves state-of-the-art results using both types of features. The ActionSet [28] method does not perform well on I3D features which may be due to the limitations in its temporal architecture design that is not capable of learning a proper temporal embedding over the I3D features.
+
+# 6.3. Comparison to State-of-the-Art
+
+The task of learning temporal action segmentation using action sets as weak supervision has been so far addressed only by [28]. We compare our approach to this
+
+Table 3. Comparison of our method to [28] for different features. Experiments are run on the Breakfast dataset and MoF is reported. Our method achieves state-of-the-art results using both types of features. *The source code of the paper has been used for this experiment.
+
+| Dataset | Break Fast MoF | Holl. Ext. jacc. idx | Cooking 2 midpoint hit |
| ActionSet-monte-carlo [28] | 23.3 | 9.3 | 9.8 |
| ActionSet-text-based [28] | 23.2 | 9.2 | 10.6 |
| Ours | 30.4 | 17.7 | 14.3 |
+
+Table 4. Comparison of our method to [28] for weakly supervised temporal segmentation.
+
+| cuts per video | 4 | 2 | - |
| avg. actions per video | 12.5 | 25 | 50 |
| ActionSet [28] | 17.4 | 12.1 | 9.8 |
| Ours | 19.8 | 16.1 | 14.3 |
+
+Table 5. Different levels of video trimming for Cooking 2. More videos and fewer actions per video result in better performance.
+
+method on three datasets. As it can be seen in Table 4, our method achieves state-of-the-art results on all three datasets. While the methods with only set supervision work well on Breakfast and Hollywood Extended, the performance on the Cooking 2 dataset is lower. The Cooking 2 dataset has a high number of classes (67) while having a low number of training samples (220). The other problem is that this dataset contains very long videos which on average contain 50 different actions. Therefore, learning a temporal action segmentation model on this dataset using only weak set supervision is very difficult. In order to get a better understanding of the effect of such characteristics of this dataset, we have evaluated the effect of cutting this dataset into different parts followed by [28]. As it can be seen in Table 5, having more videos for training and fewer actions per video on average improves the results. Figure 3 shows a qualitative result of our method for a video from the Breakfast dataset.
+
+# 7. Conclusion
+
+In this work we presented a network for temporal action segmentation. The network is trained on long videos which are only annotated by the set of present actions. The network is trained by dividing the videos into temporal regions that contain only one action class and are consistent with the set of annotated actions. We thoroughly evaluated the approach on three datasets. For all three datasets, the proposed network outperforms previous work.
+
+Acknowledgment The work has been funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) GA 1927/4-1 (FOR 2535 Anticipating Human Behavior) and the ERC Starting Grant ARCA (677650).
+
+# References
+
+[1] Piotr Bojanowski, Rémi Lajugie, Francis Bach, Ivan Laptev, Jean Ponce, Cordelia Schmid, and Josef Sivic. Weakly supervised action labeling in videos under ordering constraints. In ECCV, 2014.
+[2] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In CVPR, 2015.
+[3] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017.
+[4] Chien-Yi Chang, De-An Huang, Yanan Sui, Li Fei-Fei, and Juan Carlos Niebles. D3tw: Discriminative differentiable dynamic time warping for weakly supervised action alignment and segmentation. arXiv, 2019.
+[5] Ali Diba, Mohsen Fayyaz, Vivek Sharma, A. Hossein Karami, M. Mahdi Arzani, Rahman Yousefzadeh, and Luc Van Gool. Temporal 3d convnets using temporal transition layer. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, 2018.
+[6] Ali Diba, Mohsen Fayyaz, Vivek Sharma, M. Mahdi Arzani, Rahman Yousefzadeh, Juergen Gall, and Luc Van Gool. Spatio-temporal channel correlation networks for action classification. In ECCV, 2018.
+[7] Ali Diba, Mohsen Fayyaz, Vivek Sharma, Paluri. Manohar, Juergen Gall, Rainer Stiefelhagen, and Luc Van Gool. Large scale holistic video understanding. arXiv, 2019.
+[8] Li Ding and Chenliang Xu. Weakly-supervised action segmentation with iterative soft boundary assignment. In CVPR, 2018.
+[9] O. Duchenne, I. Laptev, J. Sivic, F. Bach, and J. Ponce. Automatic annotation of human actions in video. In 2009 IEEE 12th International Conference on Computer Vision, 2009.
+[10] Yazan Abu Farha and Juergen Gall. Ms-tn: Multi-stage temporal convolutional network for action segmentation. In CVPR, 2019.
+[11] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. In ICCV, 2019.
+[12] De-An Huang, Li Fei-Fei, and Juan Carlos Niebles. Connectionist temporal modeling for weakly supervised action labeling. In ECCV, 2016.
+[13] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NIPS, 2015.
+[14] Svebor Karaman, Lorenzo Seidenari, and Alberto Del Bimbo. Fast saliency based pooling of fisher encoded dense trajectories. In ECCV THUMOS Workshop, 2014.
+[15] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natev, Mustafa Suleyman, and Andrew Zisserman. The kinetics human action video dataset. arXiv:1705.06950, 2017.
+[16] Hilde Kuehne, Ali Arslan, and Thomas Serre. The language of actions: Recovering the syntax and semantics of goal-directed human activities. In CVPR, 2014.
+
+[17] Hilde Kuehne, Juergen Gall, and Thomas Serre. An end-to-end generative framework for video segmentation and recognition. In WACV, 2016.
+[18] H. Kuehne, J. Gall, and T. Serre. An end-to-end generative framework for video segmentation and recognition. In 2016 IEEE Winter Conference on Applications of Computer Vision (WACV), 2016.
+[19] Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In ICCV, 2011.
+[20] Hilde Kuehne, Alexander Richard, and Juergen Gall. Weakly supervised learning of actions from transcripts. CVIU, 2017.
+[21] I. Laptev, M. Marszalek, C. Schmid, and B. Rozenfeld. Learning realistic human actions from movies. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, 2008.
+[22] Colin Lea, Michael D Flynn, Rene Vidal, Austin Reiter, and Gregory D Hager. Temporal convolutional networks for action segmentation and detection. In CVPR, 2017.
+[23] Colin Lea, Austin Reiter, René Vidal, and Gregory D Hager. Segmental spatiotemporal cnns for fine-grained action segmentation. In ECCV, 2016.
+[24] Jun Li, Peng Lei, and Sinisa Todorovic. Weakly supervised energy-based learning for action segmentation. In ICCV, 2019.
+[25] H. Pirsiavash and D. Ramanan. Parsing videos of actions with segmental grammars. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, 2014.
+[26] Alexander Richard and Juergen Gall. Temporal action detection using a statistical language model. In CVPR, 2016.
+[27] Alexander Richard, Hilde Kuehne, and Juergen Gall. Weakly supervised action learning with rn based fine-to-coarse modeling. In CVPR, 2017.
+[28] Alexander Richard, Hilde Kuehne, and Juergen Gall. Action sets: Weakly supervised action segmentation without ordering constraints. In CVPR, 2018.
+[29] Alexander Richard, Hilde Kuehne, Ahsan Iqbal, and Juergen Gall. Neuralnetwork-viterbi: A framework for weakly supervised video learning. In CVPR, 2018.
+[30] Marcus Rohrbach, Sikandar Amin, Mykhaylo Andriluka, and Bernt Schiele. A database for fine grained activity detection of cooking activities. In CVPR, 2012.
+[31] M. Rohrbach, S. Amin, M. Andriluka, and B. Schiele. A database for fine grained activity detection of cooking activities. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, 2012.
+[32] Marcus Rohrbach, Anna Rohrbach, Michaela Regneri, Sikandar Amin, Mykhaylo Andriluka, Manfred Pinkal, and Bernt Schiele. Recognizing fine-grained and composite activities using hand-centric features and script data. Int. J. Comput. Vision, 2016.
+[33] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv:1212.0402, 2012.
+[34] Yasser Souri, Mohsen Fayyaz, and Juergen Gall. Weakly Supervised Action Segmentation Using Mutual Consistency. arXiv, 2019.
+
+[35] Du Tran, Heng Wang, Lorenzo Torresani, and Matt Feiszli. Video classification with channel-separated convolutional networks. In ICCV, 2019.
+[36] Aäron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In SSW, 2016.
+[37] N. N. Vo and A. F. Bobick. From stochastic grammar to bayes network: Probabilistic parsing of complex activity. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, 2014.
+[38] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018.
+[39] Yue Zhao, Yuanjun Xiong, Limin Wang, Zhirong Wu, Xiaou Tang, and Dahua Lin. Temporal action detection with structured segment networks. In ICCV, 2017.
\ No newline at end of file
diff --git a/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/images.zip b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..dc8993c54cf3d657e3e1acf522cff5dacd080a61
--- /dev/null
+++ b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d8cb7490192d56a852a0a413454cefc8b69e6bfbd1638d0dfc8923646f4fa9a
+size 314167
diff --git a/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/layout.json b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..03e1a0ea74cc5c69a2a8ba79e593a6d8f401029f
--- /dev/null
+++ b/sctsetconstrainedtemporaltransformerforsetsupervisedactionsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9cce9487a2af5ae508b87f98a7bea153c751886edc3b8e36461a7fb1224d06d9
+size 525084
diff --git a/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_content_list.json b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c918e09b7f5e783013305a3deb7760d9ecc05363
--- /dev/null
+++ b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d4eec5808e799ea1deea95752426b9cf81c5d5a32cdff1b8b4bc32a91a022a01
+size 71141
diff --git a/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_model.json b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..14902f91cb4c1ef6c0669131ba5c48052eb51051
--- /dev/null
+++ b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:904d7f61a37753837177e3c5612df9d9838cb1e68fb66c3c96160ac13096cc07
+size 88510
diff --git a/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_origin.pdf b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8afb7a13f5fdf0c71ac756cdb9981c68de844041
--- /dev/null
+++ b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/f9dd8afd-7777-4927-8e99-ba8b51eab1b2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:85aa61017f7701f4695ca5efacd2cfaaafccd89f7580477d1978695b05fdb814
+size 2007368
diff --git a/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/full.md b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..631b233955ea6d333a43e2b1d9b98b5d50c76ed4
--- /dev/null
+++ b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/full.md
@@ -0,0 +1,293 @@
+# SDC-Depth: Semantic Divide-and-Conquer Network for Monocular Depth Estimation
+
+Lijun Wang $^{1}$ , Jianming Zhang $^{2}$ , Oliver Wang $^{2}$ , Zhe Lin $^{2}$ , and Huchuan Lu $^{1,3}$ $^{1}$ Dalian University of Technology, $^{2}$ Adobe Research, $^{3}$ Peng Cheng Lab
+{ljwang, lhchuan}@dlut.edu.cn, {jianmzha, owang, zlin}@adobe.com
+
+# Abstract
+
+Monocular depth estimation is an ill-posed problem, and as such critically relies on scene priors and semantics. Due to its complexity, we propose a deep neural network model based on a semantic divide-and-conquer approach. Our model decomposes a scene into semantic segments, such as object instances and background stuff classes, and then predicts a scale and shift invariant depth map for each semantic segment in a canonical space. Semantic segments of the same category share the same depth decoder, so the global depth prediction task is decomposed into a series of category-specific ones, which are simpler to learn and easier to generalize to new scene types. Finally, our model stitches each local depth segment by predicting its scale and shift based on the global context of the image. The model is trained end-to-end using a multi-task loss for panoptic segmentation and depth prediction, and is therefore able to leverage large-scale panoptic segmentation datasets to boost its semantic understanding. We validate the effectiveness of our approach and show state-of-the-art performance on three benchmark datasets.
+
+# 1. Introduction
+
+Depth estimation is an important component of 3D perception. Compared to reconstruction techniques based on active sensors or multi-view geometry, monocular depth estimation is significantly more ill-posed, and is therefore critically reliant on learning strong scene priors and semantics.
+
+Recent works studying this problem [4, 14, 39] have achieved significant progresses using deep convolutional neural networks (CNNs) supervised by depth data, showing that they are able to capture complex high-level scene semantics. In addition, some works [39, 28] further feed semantic segmentation labels to their models to boost depth estimation accuracy in some specific domains. However, monocular depth estimation in the wild remains challenging
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 1: Our depth prediction method jointly decomposes an input image into both instance (a) and category segments (b). It then independently predicts depth in a canonical space for each segment and recomposes them into a final globally coherent depth map (c). Note that the depth maps are generated by our SDC-Depth Net trained with sparse point-level depth order supervision [2].
+
+ing due to the diversity of real world scenes.
+
+We propose a Semantic Divide-and-Conquer Network (SDC-Depth Net) for monocular depth estimation. We decompose a natural image into a number of semantic segments, and then predict, for each segment, a normalized depth map in the range [0, 1]. We refer to this normalized depth map as the canonical depth for a given segment. This decomposition simplifies the depth prediction problem, as semantic categories have much consistent depth structures when viewed in isolation, and training category-specific depth decoders makes it easier to learn these priors. For example, the sky region is always infinitely far away and depth in the ground region often varies smoothly along the vertical direction. For object categories like people, instance-level depth maps also have a high degree of similarity to each
+
+other. Once we predict the canonical depth for each semantic segment, we assemble the results together based on a global context derived from the input image. Specifically, our model predicts the scale and shift for each segment's depth using the global context. The model is trained fully end-to-end using a multi-task loss for segmentation and depth estimation, for which we can use separate datasets to increase the diversity of our supervision. Figure 1 demonstrates sampled results of our approach.
+
+Our approach is inspired by the classical divide-and-conquer algorithm [17], but relies on semantic and instance segmentation to divide the problem. Luckily, diverse panoptic segmentation annotations are relatively easy to collect compared to depth supervision, and we can leverage existing large-scale panoptic segmentation datasets such as COCO Panoptic Segmentation dataset [23] to complement the limited depth supervision. As an auxiliary task, semantic and instance segmentation not only helps split objects and categories for local depth prediction, but also necessitates the model's understanding of shape and contour regions. Thus, it can improve the model's generalization ability, and is also useful in cases where only sparse or low res depth annotations (e.g., depth order of point pairs as in [2, 37], or Kinect data as in [32]) are available.
+
+We show experiments on three benchmark datasets, demonstrating that our method can significantly improve the performance of depth estimation. Particularly, on the challenging "Depth in the Wild" (DIW) dataset [2], we achieve a new state-of-the-art error rate of $11.21\%$ improving upon the previous best result of $13.02\%$ [39].
+
+In summary, we present a novel framework for monocular depth estimation based on a semantic divide-and-conquer strategy. We present an implementation of this high-level framework through SDC-Depth Net, a carefully designed end-to-end trainable architecture. Experimental validation of our approach shows consistent improvements over the state-of-the-art on three benchmark datasets.
+
+# 2. Related Work
+
+Single Image Depth Prediction There has been a long history of methods that have attempted to predict depth from a single image [11, 31, 24, 26]. Recently monocular depth estimation has gained popularity due to the ability of CNNs to learn strong priors from images corresponding to geometric layout. Among others, Laina et al. [14] propose a fully convolutional architecture with up-projection blocks to handle high-dimensional depth regression. In [19], a two-stream convolutional network is proposed, which simultaneously predicts depth and depth gradients to preserve more depth details. Besides using deep networks alone, recent works have shown that the combination of deep networks and shallow models [18, 25, 36, 40, 30] can also deliver superior depth estimation performance. Meanwhile, different
+
+forms of supervision and learning techniques have also been explored in recent works to improve the generalization ability of depth estimation models, including self-supervised learning with photometric losses from stereo images [6, 8] or multiple views [43, 34, 7], transfer learning using synthetic images [42, 42, 1], and those using sparse [2, 37] or dense [21, 35, 33, 20] relative depth as supervisions.
+
+Augmenting Depth with Semantic Segmentation Some recent works [41, 39, 28] propose to improve monocular depth estimation with semantic segmentation annotations. For instance, Liu et al. [24] propose to guide single image depth estimation with semantic labels using Markov random fields. Xu et al. [39] develop a multi-modal distillation module, which can leverage intermediate depth and segmentation predictions to refine the final output. In [12] a synergy network together with an attention-driven loss is proposed to better propagate semantic information to depth prediction. In comparison, [41] presents a task-recursive learning strategy, which can refine both depth and segmentation predictions through task-level interactions. Another related work to ours is [28], where depth estimation is learned in a unsupervised manner by integrating both semantic segmentation and instance edges as input.
+
+Although improvement has been achieved, these approaches have their own drawbacks. For one, existing works estimate depth for different categories with a single model. We argue that the depth values of different categories may exhibit different properties and subject to a variety of data distributions. Covering all these variations with one model may be sub-optimal. In addition, besides semantic categories, object instance information may also play a crucial role in depth estimation. However, compared to semantic segmentation, instance detection/segmentation is less explored in monocular depth estimation. Compared to these existing works, our proposed method performs depth estimation for each segment independently by investigating their semantic and instance information. We disentangle canonical depth estimation and depth scale inference leading to more accurate depth prediction results.
+
+# 3. Semantic Divide-and-Conquer Network for Monocular Depth Estimation
+
+We present SDC-Depth Net, an end-to-end trainable depth prediction network based on the aforementioned Semantic Divide-and-Conquer strategy. Our SDC-Depth Net consists of four parts: a backbone network, a segmentation module, a depth prediction module, and a depth aggregation module. Figure 2 overviews the proposed method.
+
+The backbone network, shared by the segmentation and the depth prediction modules, extracts features of an input image. The segmentation module performs semantic and instance segmentation to divide the image into semantic
+
+
+Figure 2: Overview of the proposed SDC-Depth Net for depth prediction. Our method decomposes the input images into category and instance segments, predicts depth maps for each individual segments specifically, and stitches the segment-level depth into the final output.
+
+segments. For each semantic segment, the depth estimation module infers a category-specific depth map in a canonical space, as well as scale and shift parameters based on the global context. The aggregation module then stitches and aggregates the per-segment depth maps to generate a globally consistent depth map.
+
+In our experiments, we adopt a feature pyramid network (FPN) [22] with ResNet-50 [10] as the backbone network. We use a fully convolutional network (FCN) [22, 38] and a Mask R-CNN model [9] for semantic and instance segmentation respectively. The FCN network performs semantic segmentation for $C$ categories, where the first $K$ categories are object classes (e.g. person, car) and the rest belong to stuff classes (e.g. road, grass). The Mask R-CNN network detects object instance masks for the $K$ object classes. We now discuss each part in detail.
+
+# 3.1. Per-Segment Depth Estimation
+
+Given a semantic segment, such as a category mask or an instance mask, the depth prediction module predicts a segment-centered canonical depth map, as well as a transformation to convert the canonical depth to the global depth space. In this way, we decompose depth prediction into local segment depth prediction and global transformation estimation, which we will show to be beneficial compared to the direct prediction baseline.
+
+We use two depth prediction streams to handle semantic category segments and instance segments respectively. The category segment stream operates in the category-level by predicting depth for each entire category jointly, whereas
+
+for countable object classes, the absolute depth of an instance can vary a lot depending on its position in the scene. Therefore, the instance-wise depth stream is further designed to improve the depth map on a per instance basis.
+
+Category-wise Depth Estimation. Given a semantic category, we use a two-branch architecture to predict its canonical depth and global transformation. As shown in Figure 3, the local branch consists of a stack of convolutional layers, which takes as input the backbone image feature pyramid and predicts the canonical depth for each semantic category. We use the sigmoid function to normalize the output depth into the canonical space. The global depth decoding branch contains a Global Average Pooling (GAP) layer and a stack of fully connected layers. It maps the input feature pyramid to a vector characterizing the global context of the input image, which is used to infer the global transformation $\mathcal{T}_c(\cdot)$ for the $c$ -th semantic category. Then, the global depth for the $c$ -th category is computed as $\pmb{D}_{c} = \mathcal{T}_{c}(\tilde{\pmb{D}}_{c})$ . In our experiments, we adopt an affine transformation $\mathcal{T}_c(\tilde{\pmb{D}}_c) = w_c\cdot \tilde{\pmb{D}}_c + b_c$ for simplicity.
+
+Instance-wise Depth Estimation. For object classes, such as human, car, etc., we can borrow the ROIAign technique from Mask R-CNN [9] to extract features per object instance, and map these to a depth map. However, the resolution of the default ROIAign features is too low $(28 \times 28)$ for accurate depth prediction, especially for larger objects.
+
+To address this issue, we propose a new network architecture for high-resolution instance depth estimation (c.f. Figure 3). The instance stream consists of two branches, a
+
+
+Figure 3: Our two-stream depth prediction module for category and instance-wise depth estimation. Each stream contains a local depth representation branch to infer canonical depth (normalized to $[0,1]$ ) and a global decoding branch to estimate a scale-and-shift transformation based on global context (either GAP output or the combination of RoIAligned instance features and box positions).
+
+fully convolutional local branch and an instance depth decoding branch. The local branch operates in a fully convolutional manner, which takes the backbone image feature pyramid as input and predicts a category-agnostic depth representation map $\tilde{\pmb{F}}$ of size $H\times W\times Z$ for the entire input image ( $Z$ is set to 32 in our experiments). Given the bounding box location of the $i$ -th object instance, its instance level depth map representation $\tilde{\pmb{F}}^i\in \mathbb{R}^{H_i\times W_i\times Z}$ can be computed by cropping from $\tilde{\pmb{F}}$ , where $H_{i}\times W_{i}$ is the spatial size of its bounding box.
+
+To predict the depth for the $i$ -th instance, the depth decoding branch extracts a fixed-length feature vector from the instance region using ROIAign on the backbone feature. Given the category $c_{i} \in \{1,2,\dots,K\}$ of the instance inferred by the segmentation module, the depth decoding branch then takes as input the ROIAign feature vector as well as the normalized bounding box coordinates of the instance, and predicts a linear depth decoding function $\mathcal{H}^i(\cdot) = \mathcal{G}^i \circ \mathcal{C}^i(\cdot)$ corresponding to the $c_{i}$ -th object category. The function $\mathcal{C}^i$ is a $1 \times 1$ convolutional layer, which linearly combines the $Z$ channels of the instance depth representation map $\tilde{\pmb{F}}^i$ into a instance-centric canonical depth map. The function $\mathcal{G}^i$ is an affine transformation, which further transforms the canonical depth into the global depth $\pmb{F}_i \in \mathbb{R}^{H_i \times W_i}$ by adjusting its scale and shift. The parameters of the two functions for different object categories are produced by the depth decoding branch in a category-specific manner. Assume the total number of transformation parameters for each category is $n$ . The depth decoding
+
+branch predicts $K$ sets of parameters through an output vector of length $n \times K$ . We select the $c_{i}$ -th set of parameters for the $i$ -th instance.
+
+# 3.2. Segmentation Guided Depth Aggregation
+
+Now we have produced the category depth maps $\{D_c\in$ $\mathbb{R}^{H\times W}|c = 1,\dots ,C\}$ and a set of object instance depth maps $\{\pmb {F}_i\in \mathbb{R}^{H_i\times W_i}|i = 1,2,\dots ,N\}$ for a total number of $N$ object instances within the input image. To make the final depth prediction, a depth aggregation module combines per-segment depth maps based on the semantic segmentation and the instance segmentation results.
+
+Our depth aggregation module proceeds in two steps. Given instance depth maps $F_{i}$ and their category labels, the first step performs local updates to the region of each instance in its corresponding category depth map $\{D_c|c = 1,2,\dots ,K\}$ . To this end, we associate each object category depth map $D_{c}$ with an normalization mask $M_{c}$ with the same spatial size $H\times W$ , whose elements are all initialized to constant value 1. The normalization masks are used to record the update from each instance depth map, and normalize the final depth map accordingly. Given the category $c_{i}$ and bounding box location of the $i$ -th instance, we denote the instance region on the corresponding depth map $D_{c_i}$ and the normalization mask $M_{c_i}$ , as $D_{c_i}^i\in \mathbb{R}^{H_i\times W_i}$ and $M_{c_i}^i\in \mathbb{R}^{H_i\times W_i}$ , respectively. The depth map and the normalization mask can then be locally updated as follows:
+
+$$
+\begin{array}{l} \boldsymbol {D} _ {c _ {i}} ^ {i} \leftarrow \boldsymbol {D} _ {c _ {i}} ^ {i} + v \times p ^ {i} \odot \boldsymbol {S} ^ {i} \odot \boldsymbol {F} ^ {i}, \tag {1} \\ \boldsymbol {M} _ {c _ {i}} ^ {i} \leftarrow \boldsymbol {M} _ {c _ {i}} ^ {i} + v \times p ^ {i} \odot \boldsymbol {S} ^ {i}, \\ \end{array}
+$$
+
+where $v$ is a hyper-parameter to balance the weight of instance depth maps ( $v$ is set to 10 in our experiments); $\odot$ indicates the element-wise multiplication; $p^i$ denotes the probability of the $i$ -th instance belonging to category $c_i$ , and $S^i$ of spatial size $H_i \times W_i$ represents the upsampled segmentation mask of the $i$ -th instance. Both $p^i$ and $S^i$ are generated by the instance segmentation model of our segmentation module, and are used to measure the reliability of the $i$ -th instance prediction.
+
+After all instance regions have been updated, each category depth map $D_{c}$ is computed:
+
+$$
+\boldsymbol {D} _ {c} \leftarrow \boldsymbol {D} _ {c} / M _ {c} \tag {2}
+$$
+
+where the division is performed element-wisely. More details of the first step is summarized in Algorithm 1.
+
+The second step aggregates all of the updated category depth maps $D_{c}$ according to the semantic segmentation results. This can be performed through the following weighted combination:
+
+$$
+\boldsymbol {D} = \sum_ {c = 1} ^ {C} \boldsymbol {P} _ {c} \odot \boldsymbol {D} _ {c}, \tag {3}
+$$
+
+# Algorithm 1 Update category depth maps with instance depth maps.
+
+Input: Category-specific depth maps $\{D_c|c = 1,2,\dots ,K\}$ instance-specific depth maps $F^i$ , instance segmentation masks $S^i$ , instance category $C_i$ , instance classification probability $p_i,i = 1,2,\ldots ,N$
+Output: Updated category-specific depth maps $\{D_c|c = 1,2,\dots ,K\}$
+1: Initialize normalization mask $M_{c}$ for each category $c$
+2: for $i = 1, 2, \dots, N$ do
+3: Locate instance regions $D_{c_i}^i$ and $M_{c_i}^i$ on depth map and normalization masks.
+4: Locally update depth map by $D_{c_i}^i \gets D_{c_i}^i + v \times p^i \odot S^i \odot F^i$
+5: Locally update energy mask by $M_{c_i}^i \gets M_{c_i}^i + v \times p^i \odot S^i$
+6: end for
+7:Normalize each category depth map $D_{c}\gets D_{c} / M_{c}$
+
+where $D$ represents the final depth map. $P_{c}$ is the per-class, per-pixel segmentation result predicted by the semantic segmentation module, where for a class $c$ , an element located at $(x,y)$ represents the probability of the corresponding pixel belonging to that class.
+
+# 3.3. Network Training
+
+The whole system can be trained in an end-to-end manner using the following loss function:
+
+$$
+L = \alpha_ {I} L _ {I} + \alpha_ {S} L _ {S} + \alpha_ {D} L _ {D}, \tag {4}
+$$
+
+where we use standard implementations of the instance segmentation loss $L_{I}$ [9], and semantic segmentation losses $L_{S}$ [27]. The depth prediction loss $L_{D}$ varies depending on the depth supervision. On training datasets with dense depth annotations (e.g., NYU-Depth V2 [32] and Cityscapes [3]) we use a standard $L_{1}$ loss, and on datasets with relative depth annotations between pairs of random points (e.g., DIW dataset [2]), we use the ranking loss proposed in [2]. More details of the loss functions and their loss weights $\alpha_{I}, \alpha_{S}, \alpha_{D}$ are present in the supplementary materials. All four modules of our method can then be jointly trained by minimizing the overall loss function in (4).
+
+# 4. Experiments
+
+# 4.1. Implementation
+
+We adopt ResNet50 pre-trained on the ImageNet classification task to initialize our backbone network. Detailed architecture design for our depth prediction module can be found in the supplementary materials. We resize each input image to have a minimum side of 256 pixels while maintaining its aspect ratio. Data augmentation techniques including random flipping, scaling and color jitter have also been employed to avoid over-fitting. Our network is
+
+trained using Adam optimizer [13] with a mini-batch of 4 input images. Our whole network has $50.4\mathrm{M}$ parameters and runs at 10.23 FPS for 19 semantic categories on one NVIDIA GTX 1080 TI GPU. Source code is available at https://bit.ly/39oty26.
+
+We evaluate our method on three depth datasets, including Cityscapes [3], DIW [2] and NYU-Depth V2 [32], which involve either dense or sparse depth annotations, and contain diverse scenes. The performance of compared methods are measured by: RMSE in both linear and log space, absolute and squared relative error (Abs Rel and Sq Rel), depth accuracy (with thresholds 1.25, $1.25^{2}$ and $1.25^{3}$ ), and weighted human disagreement rate (WHDR) [4, 2]. We adopt the evaluation code of [5] to calculate the above metrics.
+
+# 4.2. Cityscapes Results
+
+Cityscapes [3] is a large dataset for urban scene understanding, containing both depth and panoptic segmentation annotations of 20 semantic categories. We train our model for 25 epochs on the training set of 2975 images with the initial learning rate of 5e-3. We evaluate the trained model on the validation (500 images) and test (1525 images) sets, and compare to 3 state-of-the-art methods including Laina et al. [14], Xu et al. [39], and Zhang et al. [41]. Among them, Xu et al. [39], and Zhang et al. [41] train their model on both depth estimation and semantic segmentation in a multi-task manner. Table 1 reports the results. Our method achieves higher performance than compared methods, particularly in terms of RMSE and depth accuracy. This should be mainly attributed to the fact that our method predicts each category and instance depth independently with specific depth decoders. Since Xu et al. and Zhang et al. also leverage semantic segmentation annotation, their performance is superior than Laina et al. Qualitative results are shown in Figure 4.
+
+# 4.3. DIW Results
+
+DIW [2] is a large-scale dataset containing images of diverse scenes in the wild, where each image is manually annotated with the relative depth order (either closer or further away from the camera) between one randomly sampled point pair. The whole dataset is split into 421K training images and 74K test images. Since DIW dataset does not contain segmentation annotations and the COCO panoptic segmentation dataset [23] also contains images of unconstrained scenes, we simultaneously train our model on DIW and COCO for relative depth estimation and segmentation, respectively. In order to reduce computational complexity, we adopt the super-class annotation of COCO dataset to train our segmentation module, containing 15 stuff and 12 object classes. During training, we sequentially feed training images from both datasets to the network in each itera
+
+| Method | Error | Accuracy |
| RMSE | RMSE (log) | Abs Rel | Sq Rel | δ < 1.25 | δ < 1.252 | δ < 1.253 |
| Laina et al. [14] | 7.273 | 0.448 | 0.257 | 4.238 | 0.765 | 0.893 | 0.940 |
| Xu et al. [39] | 7.117 | 0.428 | 0.246 | 4.060 | 0.786 | 0.905 | 0.945 |
| Zhang et al. [41] | 7.104 | 0.416 | 0.234 | 3.776 | 0.776 | 0.903 | 0.949 |
| Ours | 6.917 | 0.414 | 0.227 | 3.800 | 0.801 | 0.913 | 0.950 |
+
+
+Figure 4: Qualitative results on Cityscapes dataset. The first three rows are input images, ground truth, and our predicted depth maps, respectively. The last two rows are error map comparisons of our method against Xu et al. [39] and Zhang et al. [41], respectively, where dark red indicates our method achieves lower error and dark blue is the opposite.
+
+Table 1: Comparison with state-of-the-art methods on Cityscapes test set [3]. Best results are in bold font, second best are underlined.
+
+| Method | Chen et al. [2] | Xian et al. [37] | Xu et al. [39] | Ours |
| WHDR | 22.14% | 14.98% | 13.02% | 11.21% |
+
+Table 2: Comparison with state-of-the-art methods on DIW dataset [2]. The best result is in **bold** font.
+
+tion, and update network parameters using the accumulated gradients. Network training starts with an initial learning rate of 1e-3 and converges at around 45K iterations.
+
+We compare our method against three state-of-the-art approaches, including Chen et al. [2], Xian et al. [37], and Xu
+
+et al. [39], where Xu et al. [39] is trained on both DIW and COCO dataset using the same training strategy as ours. Table 2 shows the comparison results in terms of WHDR. Xian et al. achieves lower WHDR than Chen et al. Meanwhile, Xu et al. outperforms Xian et al. by exploring additional segmentation data. In comparison, our proposed method adopt a divide-and-conquer strategy to estimate depth for each segments independently, thus achieves the best performance. Figure 5 compares the predicted depth maps of Xu et al. [39] and our proposed method.
+
+| Method | Error | Accuracy |
| RMSE | RMSE (log) | Abs Rel | δ < 1.25 | δ < 1.252 | δ < 1.253 |
| Laina et al. [14] | 0.584 | 0.198 | 0.136 | 0.822 | 0.956 | 0.989 |
| Xu et al. [40] | 0.593 | - | 0.125 | 0.806 | 0.952 | 0.986 |
| Qi et al. [29] | 0.569 | - | 0.128 | 0.834 | 0.960 | 0.990 |
| Lee et al. [15] | 0.572 | 0.193 | 0.139 | 0.815 | 0.963 | 0.991 |
| Fu et al. [5] | 0.509 | 0.188 | 0.116 | 0.828 | 0.965 | 0.992 |
| Zhang et al. [41] | 0.501 | 0.181 | 0.144 | 0.815 | 0.962 | 0.992 |
| Xu et al. [39] | 0.582 | - | 0.120 | 0.817 | 0.954 | 0.987 |
| Ours | 0.497 | 0.174 | 0.128 | 0.845 | 0.966 | 0.990 |
+
+
+Figure 5: Qualitative results on DIW test set [2]. All methods are trained on sparse point-level supervision.
+
+# 4.4. NYU-Depth V2 Results
+
+The NYU-Depth V2 dataset contains 464 indoor scenes, where 249 of them are for training and the rest for testing. We train our networks by randomly sampling $40\mathrm{K}$ images from the 249 training scenes and following the multi-task training strategy introduced in Section 4.3. We adopt an initial learning rate of 1e-3 and train the network for 15 epochs.
+
+We compare our method to seven state-of-the-art methods. Among them, Lee et al. [16] and Fu et al. [5] use all the 120K training images, and Xu et al. [39] and Zhang et al. [39] also use the available segmentation supervision. As shown in Table 3, the proposed method performs favorably against state-of-the-art approaches, particularly in terms of depth accuracy by using a limited amount of segmentation annotations. We believe our performance can be
+
+Table 3: Comparison with state-of-the-art methods on NYU-Depth V2 dataset [32].
+
+ | SDC-A | SDC-B | SDC-C | SDC-D |
| Design Choice | Cat. | ✗ | ✓ | ✓ | ✓ |
| Ins. | ✗ | ✗ | ✓ | ✓ |
| DEnt. | ✗ | ✗ | ✗ | ✓ |
| Err. | RMSE | 7.203 | 6.962 | 6.958 | 6.917 |
| Abs Rel | 0.276 | 0.236 | 0.234 | 0.227 |
| Acc. | δ<1.25 | 0.767 | 0.794 | 0.797 | 0.801 |
| δ<1.252 | 0.895 | 0.911 | 0.911 | 0.913 |
| δ<1.253 | 0.941 | 0.949 | 0.951 | 0.950 |
+
+Table 4: Ablation study on Cityscapes dataset [3]. Components tested are category (Cat.) and instance (Ins.) depth estimation, and disentangling canonical depth and scale inference (DEnt). The best results are in bold font.
+
+further improved by using more segmentation data from indoor scenes.
+
+# 4.5. Ablation Study
+
+To achieve more comprehensive understanding of our method, we perform ablative study on Cityscapes [3] and DIW [2] datasets by adjusting different modules of our method. Unless otherwise stated, we follow the same experimental setup as described in Section 4.1.
+
+Effects of semantic divide-and-conquer. The proposed SDC-Depth Net learns category and instance aware depth estimation with disentangled canonical depth and scale inference mechanism. To investigate the impact of the above design choices, we compare the performance of baselines (SDC-A to SDC-D) containing different subsets of these choices on the Cityscapes dataset as shown in Table 4. It can be observed that category aware depth estimation plays a very important role in improving the depth accuracy. Instance aware depth estimation and disentangled depth prediction also yield a considerable performance gain. To further verify their effectiveness, Figure 6 compares the depth accuracy of baseline methods with respect to different categories on Cityscapes validation set. The performance gain
+
+
+Figure 6: Depth accuracy of our variants across semantic categories on Cityscapes validation set [3].
+
+
+Road
+
+
+
+
+
+
+Person
+
+
+Figure 7: Average canonical depth maps of stuff (top) and object (bottom) categories predicted by our SDC-Depth Net. For each object category (bottom), we present both its averaged depth map (left, red border) as well as one random instance depth map of that category (right, blue border).
+
+
+Sky
+Vehicle
+
+
+Building
+
+of the category-aware depth estimation is consistent cross all categories while instance-aware depth estimation is more effective for object categories.
+
+We also visualize the average canonical depth maps, for a number of different segments (Figure 7). We can see how by splitting the depth prediction at a segment level, the network can learn simpler category-specific depth priors.
+
+Benefits of segmentation annotation. To evaluate how much our method benefits from additional segmentation annotations, we train 4 instances of our SDC-Depth Net on DIW and COCO datasets using different portions (25%, 50%, 75%, and 100%, respectively) of the COCO dataset for training. In addition to this, we also train two baseline networks that are encoder-decoder architectures that directly predict depth maps with a similar parameter count to SDC-Depth Net. One of the baseline is trained only on DIW, named as BNet-DIW. The other one is trained on both
+
+
+Figure 8: WHDR on DIW test set [2] of SDC-Depth Net and baseline methods trained on different portions of COCO training data. As our method has access to more and more segmentation labels, we see that quality improves beyond that of baseline approaches (BNet is a standard U-Net [2] with similar parameter count).
+
+DIW and COCO datasets in a multi-task learning manner, named as BNet-DIW-COCO, as in [35]. The comparison results in terms of depth accuracy on DIw test set are shown in Figure 8. It can be observed that the performance can be consistently improved by using more segmentation training data, and when using all the COco training data, the proposed method outperforms BNet-DIW-COCO with a significant margin.
+
+# 5. Conclusion
+
+We present a semantic divide-and-conquer strategy to reduce monocular depth estimation into that of individual semantic segments. Based on this idea, the SDC-Depth Net is designed, which decomposes an input images into segments of different categories and instances, and infers the canonical depth as well as the scale-and-shift transformation for each segment using specifically trained parameters. An aggregation method is also developed to stitch the per-segment depth into the final depth map. The whole network can be trained fully end-to-end by leveraging additional segmentation annotations. Experiments on three popular benchmarks demonstrate the effectiveness of our method.
+
+Acknowledgments. This work is supported by National Key R&D Program of China (2018AAA0102001), National Natural Science Foundation of China (61725202, U1903215, 61829102, 91538201, 61751212, 61906031), Fundamental Research Funds for the Central Universities (DUT19GJ201), China Postdoctoral Science Foundation (2019M661095), National Postdoctoral Program for Innovative Talent (BX20190055), and Adobe Research.
+
+# References
+
+[1] 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, pages 2800–2810, 2018. 2
+[2] 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. 1, 2, 5, 6, 7, 8
+[3] 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. 5, 6, 7, 8
+[4] 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, 5
+[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. 5, 7
+[6] 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
+[7] Clément Godard, Oisin Mac Aodha, Michael Firman, and Gabriel J Brostow. Digging into self-supervised monocular depth estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3828-3838, 2019. 2
+[8] Clément Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estimation with left-right consistency. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 270-279, 2017. 2
+[9] 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. 3, 4, 5
+[10] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 3
+[11] Derek Hoiem, Alexei A Efros, and Martial Hebert. Geometric context from a single image. In Tenth IEEE International Conference on Computer Vision (ICCV'05) Volume 1, volume 1, pages 654-661. IEEE, 2005. 2
+[12] Jianbo Jiao, Ying Cao, Yibing Song, and Rynson Lau. Look deeper into depth: Monocular depth estimation with semantic booster and attention-driven loss. In Proceedings of the European Conference on Computer Vision (ECCV), pages 53-69, 2018. 2
+
+[13] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
+[14] 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, 5, 6, 7
+[15] Jae-Han Lee, Minhyeok Heo, Kyung-Rae Kim, and Chang-Su Kim. Single-image depth estimation based on fourier domain analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 330-339, 2018. 7
+[16] Jae-Han Lee and Chang-Su Kim. Monocular depth estimation using relative depth maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9729-9738, 2019. 7
+[17] Charles Eric Leiserson, Ronald L Rivest, Thomas H Cormen, and Clifford Stein. Introduction to algorithms, volume 6. MIT press Cambridge, MA, 2001. 2
+[18] Bo Li, Chunhua Shen, Yuchao Dai, Anton Van Den Hengel, and Mingyi He. Depth and surface normal estimation from monocular images using regression on deep features and hierarchical crfs. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1119-1127, 2015. 2
+[19] Jun Li, Reinhard Klein, and Angela Yao. A two-streamed network for estimating fine-scaled depth maps from single rgb images. In Proceedings of the IEEE International Conference on Computer Vision, pages 3372-3380, 2017. 2
+[20] 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. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4521-4530, 2019. 2
+[21] 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. 2
+[22] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2117-2125, 2017. 3
+[23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 2, 5
+[24] Beyang Liu, Stephen Gould, and Daphne Koller. Single image depth estimation from predicted semantic labels. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 1253-1260. IEEE, 2010. 2
+[25] Fayao Liu, Chunhua Shen, and Guosheng Lin. Deep convolutional neural fields for depth estimation from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5162-5170, 2015. 2
+
+[26] Miaomiao Liu, Mathieu Salzmann, and Xuming He. Discrete-continuous depth estimation from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 716–723, 2014. 2
+[27] 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. 5
+[28] Yue Meng, Yongxi Lu, Aman Raj, Samuel Sunarjo, Rui Guo, Tara Javidi, Gaurav Bansal, and Dinesh Bharadia. Signet: Semantic instance aided unsupervised 3d geometry perception. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9810–9820, 2019. 1, 2
+[29] 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. 7
+[30] Anirban Roy and Sinisa Todorovic. Monocular depth estimation using neural regression forest. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5506-5514, 2016. 2
+[31] 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. 2
+[32] 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. 2, 5, 7
+[33] Chaoyang Wang, Simon Lucey, Federico Perazzi, and Oliver Wang. Web stereo video supervision for depth prediction from dynamic scenes, 2019. 2
+[34] Chaoyang Wang, José Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from monocular videos using direct methods. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2022–2030, 2018. 2
+[35] Lijun Wang, Xiaohui Shen, Jianming Zhang, Oliver Wang, Zhe L. Lin, Chih-Yao Hsieh, Sarah Kong, and Hutchuan Lu. Deepplens: shallow depth of field from a single image. ACM Trans. Graph., 37(6):245:1-245:11, 2018. 2, 8
+[36] Peng Wang, Xiaohui Shen, Zhe Lin, Scott Cohen, Brian Price, and Alan L Yuille. Towards unified depth and semantic prediction from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2800-2809, 2015. 2
+[37] 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. 2, 6
+[38] 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
+
+[39] Dan Xu, Wanli Ouyang, Xiaogang Wang, and Nicu Sebe. Pad-net: Multi-tasks guided prediction-and-distillation network for simultaneous depth estimation and scene parsing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 675-684, 2018. 1, 2, 5, 6, 7
+[40] Dan Xu, Wei Wang, Hao Tang, Hong Liu, Nicu Sebe, and Elisa Ricci. Structured attention guided convolutional neural fields for monocular depth estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3917-3925, 2018. 2, 7
+[41] Zhenyu Zhang, Zhen Cui, Chunyan Xu, Zequn Jie, Xiang Li, and Jian Yang. Joint task-recursive learning for semantic segmentation and depth estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 235–251, 2018. 2, 5, 6, 7
+[42] Chuanxia Zheng, Tat-Jen Cham, and Jianfei Cai. T2net: Synthetic-to-realistic translation for solving single-image depth estimation tasks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 767-783, 2018. 2
+[43] Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1851-1858, 2017. 2
\ No newline at end of file
diff --git a/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/images.zip b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..670dadc0aae246c976662d5c444eddf2b5671e22
--- /dev/null
+++ b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbcfc9da8088a51db12a5dba147406db682fb47e5c719cc929119566b145effd
+size 587534
diff --git a/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/layout.json b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f26f04a56a48bb5878d71ffaa60da61e8942ab0a
--- /dev/null
+++ b/sdcdepthsemanticdivideandconquernetworkformonoculardepthestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:59a3755fc230982253afb302d0f7aa23584bcf517af713cafa8a20f35d0cf749
+size 381511
diff --git a/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_content_list.json b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..972842bbe90ab6489305a0b0ad0f70587ea55569
--- /dev/null
+++ b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a9147af9948d0edf5d25aa718bed33ef43d9c0a2e92c2e40e991ba698e18a14
+size 70536
diff --git a/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_model.json b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f29607e5e9f8e9c2fe2691b96b6e76858f646263
--- /dev/null
+++ b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:175e9e21cb3bdffc08f085575471bd265f4eabcd1c8daa83a0718c3b645f301c
+size 88400
diff --git a/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_origin.pdf b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..1ae5983c671ad9a64898bcea477e25be4471ea88
--- /dev/null
+++ b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/2c53509e-6f81-4bb7-ba86-321f3dae0b74_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13fb23e14e35237caa681598b09de05e28dcd5cfb593b88a3e163dd9e9af9f5b
+size 3531003
diff --git a/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/full.md b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0a38e744f39b1c8bbe57cc77c53d82b003367889
--- /dev/null
+++ b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/full.md
@@ -0,0 +1,263 @@
+# SDFDiff: Differentiable Rendering of Signed Distance Fields for 3D Shape Optimization
+
+Yue Jiang, Dantong Ji, Zhizhong Han, Matthias Zwicker
+University of Maryland, College Park
+
+{yuejiang, dji, h312h, zwicker}@cs.umd.edu
+
+# Abstract
+
+We propose SDFDiff, a novel approach for image-based shape optimization using differentiable rendering of 3D shapes represented by signed distance functions (SDFs). Compared to other representations, SDFs have the advantage that they can represent shapes with arbitrary topology, and that they guarantee watertight surfaces. We apply our approach to the problem of multi-view 3D reconstruction, where we achieve high reconstruction quality and can capture complex topology of 3D objects. In addition, we employ a multi-resolution strategy to obtain a robust optimization algorithm. We further demonstrate that our SDF-based differentiable renderer can be integrated with deep learning models, which opens up options for learning approaches on 3D objects without 3D supervision. In particular, we apply our method to single-view 3D reconstruction and achieve state-of-the-art results.
+
+# 1. Introduction
+
+The "vision as inverse graphics" or "inverse rendering" strategy has long been attractive as a conceptual framework to solve inverse problems such as recovering shape or appearance models from images. In this analysis-by-synthesis approach, the goal is to reproduce given input images by synthesizing them using an image formation model, possibly including shape, appearance, illumination, and camera parameters. Solving this problem implies finding suitable model parameters (shape, appearance, illumination, camera) that describe the underlying scene. While conceptually simple, this approach can be challenging to use in practice, because it requires a suitable parameterization of a powerful image formation model, and effective numerical techniques to solve the resulting optimization problem. Recently, automatic differentiation has attracted renewed attention to implement differentiable renderers or image formation models that can be used in gradient-based optimization techniques. In particular, it is attractive to combine differentiable ren
+
+dering with neural networks to solve highly ill-posed inverse problems, such as single-view 3D reconstruction.
+
+In this paper, we advocate using signed distance fields (SDFs) in a differentiable image formation model because they have several advantages over other geometry representations. In contrast to triangle meshes, the surface topology is not fixed in SDFs and can adapt to the actual scene topology during optimization. Point clouds can also represent arbitrary topologies but they do not provide continuous surface reconstructions. Instead, SDFs inherently represent continuous, watertight surfaces, which are required for downstream applications such as 3D printing and physics-based simulation. In addition, SDFs can easily be used in a multi-resolution framework, which is important to avoid undesired local minima during optimization.
+
+The main contribution of our paper is SDFDiff, a differentiable renderer based on ray-casting SDFs. Our renderer is integrated with a deep learning framework such that it can be combined with neural networks to learn how to solve highly ill-posed inverse problems. Finally, we provide an effective multi-resolution strategy to improve the robustness of gradient-based optimization. We demonstrate the usefulness of our approach using several application studies, including multi-view 3D reconstruction and learning-based single-view 3D reconstruction. Our results demonstrate the advantages of SDFs over other surface representations.
+
+In summary, we make the following contributions:
+
+- We introduce a differentiable renderer based on raycasting SDFs, and we describe an implementation that is integrated into a standard deep learning framework. Advantages of using SDFs for differentiable rendering and shape optimization include that we can adapt the topology freely, and that the resulting shapes are guaranteed to consist of watertight surfaces.
+- We present results of a multi-view 3D reconstruction approach using shape optimization via differentiable rendering. Using a multi-resolution approach, our gradient-descent optimization reliably converges
+
+to high quality solutions. Our approach is able to reconstruct geometry with high level of detail and complex topology, even with few input views.
+
+- We leverage the SDF-based differentiable renderer to train deep neural networks to perform single-view 3D shape reconstruction without 3D supervision. We demonstrate the advantages of our approach by recovering accurate 3D shapes with arbitrary topology.
+
+# 2. Related Work
+
+Signed Distance Functions. A distance function is a level set representation [39, 42] that, at each point in 3D, stores the distance to the closest point on the 3D surface. Signed distance fields (SDFs) [8] store a signed distance to distinguish between the inside and outside of objects. SDFs are often discretized using uniform voxel grids [35, 38]. Compared to meshes or parametric surfaces, the implicit surface representation [32, 6] of SDFs has the advantage that it can represent arbitrary topologies. In contrast to point clouds, SDFs always represent watertight surfaces. SDFs recently started attracting interest for shape analysis via deep learning. DeepSDF [41] was proposed to learn continuous SDF representation of a class of shapes. Similarly, deep level sets [33] were introduced as an end-to-end trainable model that directly predicts implicit surfaces of arbitrary topology. However, these methods require 3D supervision during training, such as pairs of 3D coordinates and their corresponding SDF values [41], or voxel occupancy maps [33].
+
+Learning-based 3D Reconstruction. Reconstructing 3D models from 2D images is a classic problem in computer vision. Compared to traditional multi-view stereo and shading-based approaches [46], learning-based 3D reconstruction can achieve impressive performance even with very few input views. Deep learning models for 3D shape understanding have been proposed for different kinds of 3D representations, including multiple views [13, 14], point clouds [52, 18], triangle meshes [27, 28], voxel grids [54, 50], and signed distance functions (SDFs) [41]. However, most learning-based methods [51, 49, 10, 1, 7, 19, 23] require 3D supervision. Although some methods [4, 16] do not require supervised learning, they are often limited by specific settings, such as restricted lighting conditions or annotation of object orientation. In contrast, predicting 3D shapes with differentiable renderers [25, 18, 19, 34, 29, 37] has recently attracted increasing attention as it enables 3D reconstruction without 3D supervision, that is, by optimizing neural networks only using images as training data.
+
+Differentiable Rendering Voxel-based differentiable renderers [50, 11, 17, 20, 54, 12, 55, 53, 36] first drew attention performing volumetric ray marching, however, they
+
+are limited to low-resolution voxel grids. To render SDFs we use sphere tracing, also used in scene representation networks (SRNs) [48]. SRNs learn how to sphere trace novel views, but cannot produce full 3D shapes in a single step. They do not reconstruct a view independent shape representation and focus more on novel view synthesis rather than 3D watertight surface reconstruction, which is our goal. Starting with Loper and Black's OpenDR [30], much recent work focused on mesh-based differentiable renderers [16, 40]. Kato et al. [21] proposed a neural 3D mesh renderer with hand-designed gradients. Paparazzi [27] employed analytically computed gradients to adjust the location of vertices. Similarly, SoftRas [28] assigned each pixel to all faces of a mesh in a probabilistic rasterization framework. Although these methods enable to learn 3D mesh reconstruction without 3D supervision, they are restricted to a fixed, usually spherical mesh topology. Many of these mesh-based rendering approaches are differentiable with respect to geometry [4, 21, 30, 26, 9, 45, 28], lighting models [5], textures [26, 44, 2], or materials [44, 31, 2]. Mesh-based differentiable rendering [43, 25] has also been applied to real images, although current results are rather limited and applying differentiable rendering for real photographs remains an open challenge as it requires a comprehensive global illumination model.
+
+Differentiable rendering has also been applied to Monte Carlo ray tracing [25] and point cloud rendering [19, 34]. Insaftutdinov et al. [18] proposed a point cloud-based differentiable renderer with visibility modeling by conducting orthogonal projection on voxelized 3D space holding the point cloud. Surface splatting [52] was employed to model the visibility in point cloud rendering. Although point clouds can be easily acquired using range sensing technology, such as Microsoft Kinect and LIDAR, they do not explicitly represent topology and require post-processing to produce watertight surfaces. Concurrent works [29, 37] proposed differentiable rendering based on SDFs and on occupancy networks, further improving the quality of 3D reconstruction.
+
+# 3. Overview
+
+We propose a novel approach for image-based 3D shape optimization by leveraging SDFs as the geometric representation to perform differentiable rendering. Given a set of parameters $\Theta$ representing the geometry description, lighting model, camera position, etc, a renderer $R$ can be written as a forward operator that produces an image $I$ by computing $I = R(\Theta)$ . In contrast, optimizing geometry and other scene parameters from images is a backward process. Given a desired target image $I$ , our goal is to get the set of parameters $\Theta = R^{-1}(I)$ that produces the target image. The rendering process itself is not invertible. Hence, instead of solving the inverse rendering problem directly, we
+
+can formulate it as an energy minimization problem,
+
+$$
+\Theta^ {*} = \underset {\Theta} {\arg \min } \mathcal {L} _ {\operatorname {i m g}} (R (\Theta), I) \tag {1}
+$$
+
+where $\mathcal{L}_{\mathrm{img}}$ is a loss function measuring the distance between the target image and the rendered image from the 3D object. In practice, the loss is typically accumulated over multiple target images. Getting the desired parameters $\Theta^{*}$ is equivalent to minimizing the loss $\mathcal{L}$ . While all rendering parameters including geometry, illumination, camera pose, and surface appearance could in theory be recovered from images this way, we focus on shape optimization in this paper and assume the other parameters are known. To enable gradient-based optimization, a key issue is to obtain the gradient of $\mathcal{L}_{\mathrm{img}}(R(\Theta),I)$ with respect to the parameters $\Theta$ . A differentiable renderer achieves this by producing not only images from a description of the scene, but also the derivatives of pixel values with respect to scene parameters.
+
+In this paper, we propose a novel differentiable renderer which uses signed distance functions (SDFs) and camera pose as inputs and renders an image. Our SDF-based differentiable renderer leverages the ray casting algorithm and uses automatic differentiation to compute the derivatives.
+
+# 4. Differentiable SDF Rendering
+
+We represent discrete SDFs by sampling SDF values on regular grids, and apply a standard ray casting algorithm based on sphere tracing [15] to find the intersection points between rays and the object surface. For this purpose we employ trilinear interpolation to reconstruct continuous SDFs that can be evaluated at any desired location. This allows us to continuously represent the object surface, which is given by the zero level set of the interpolated SDF.
+
+A key observation is that the derivatives of a given pixel with respect to rendering parameters only depend on a local neighborhood of eight SDF samples that define the value of the trilinearly interpolated SDF at the surface intersection point. In other words, the sphere tracing process itself does not need to be differentiable. Instead, only the local computations involving the local set of eight SDF samples around the surface intersection need to be differentiable. Therefore, our approach proceeds in two stages: first, we apply sphere tracing to identify the eight samples nearest to the surface intersection. This step is not differentiable. Second, we locally compute the pixel color based on the local set of SDF samples. This step is implemented using an automatic differentiation framework to obtain the derivatives.
+
+While differentiable ray marching of voxel grids has been used before [54, 55, 36], these approaches are based on voxel opacities, given by binary variables or continuous occupancy probabilities. In these cases ray marching through the entire volume needs to be differentiated because all voxels along a ray may influence the corresponding pixel.
+
+Sphere Tracing. We perform ray casting via sphere tracing [15] in the first stage by starting from the ray origin, and evaluating the SDF using trilinear interpolation to find the minimum distance from the current point on the ray to the object. Then we move along the ray by that distance. Moving along the ray by the minimum distance to the object guarantees that we will never move across the boundary of the object, while allowing us to make a possibly large step towards the surface. We repeat this process until we reach the surface of the object, that is, until the SDF value at our current position on the ray is small enough, or until we leave the bounding box of the object. While the efficiency of sphere tracing can be improved by increasing the step size [29], we implemented sphere tracing directly in CUDA without support for automatic differentiation. Hence, the computation cost of this step is negligible in our approach.
+
+Differentiable Shading. In the second stage, we compute the pixel color as a function of the local SDF samples that define the SDF at the intersection point, as determined by the first stage. These computations are implemented in a framework that supports automatic differentiation, allowing us to easily obtain the derivatives of the pixel. For each pixel, the input consists of the light and camera parameters, and the eight SDF samples closest to the ray-surface intersection point. The computations include: getting the intersection point and the surface normal at the intersection point as a function of the trilinear basis coefficients (i.e., the eight SDF samples), and evaluating a shading model.
+
+To take into account the dependence of the pixel value on the ray-surface intersection point, we express the intersection point as a function of the eight local SDF samples. Let us denote the local SDF values by $d_0, \ldots, d_7$ , the current position on the ray (obtained from the ray casting stage) by $s \in \mathbb{R}^3$ , and the unit ray direction by $v \in \mathbb{R}^3$ . To express the intersection point as a function of $d_0, \ldots, d_7$ , we use the same approximation as in the ray casting stage, that is, the approximate intersection is $p(d_0, \ldots, d_7) = s + \mathrm{trilinear}(d_0, \ldots, d_7; s)v$ , where $\mathrm{trilinear}(d_0, \ldots, d_7; s)$ is the trilinear interpolation of the SDF at location $s$ and considered as a function of $d_0, \ldots, d_7$ . This approximation is conservative in the sense that it is accurate only if the SDF represents a plane that is perpendicular to the ray direction $v$ . Otherwise, $p(d_0, \ldots, d_7)$ is guaranteed not to cross the true intersection along the ray.
+
+As an alternative to our conservative approximation, one could express the intersection point exactly as the solution of the intersection of the ray $s + tv$ and the local trilinear interpolation of the SDF. That is, we could express the solution of trilinear $(d_0, \ldots, d_7; s + tv) = 0$ with respect to $t \in \mathbb{R}$ as a function of $d_0, \ldots, d_7$ . However, this involves finding roots of a cubic polynomial, and we found that our much simpler approach works more robustly in practice.
+
+To evaluate a shading model, we need the surface normal at the intersection point $p(d_0, \ldots, d_7)$ . Considering that the surface normal corresponds to the gradient of the SDF, we first compute gradients at the grid vertices using central finite differencing, and then trilinearly interpolate them at the intersection point $p(d_0, \ldots, d_7; s)$ . In summary, this leads to an expression of the normal at the intersection point as a function of SDF coefficients within an $4 \times 4 \times 4$ neighborhood around the intersection (because of central finite differencing). Surface normals are normalized after trilinear interpolation. Finally, in our current implementation we evaluate a simple diffuse shading model.
+
+Implementation. We implemented SDF ray casting using CUDA to leverage the computational power of GPUs. Differentiable shading is implemented with the Pytorch library, which supports automatic differentiation and allows seamless integration of the renderer with neural network training. Pytorch also leverages the GPU, and our implementation directly accesses the output of the ray casting stage that is stored in GPU memory, avoiding any unnecessary memory transfers. Our code is available at https://github.com/YueJiang-nj/CVPR2020-SDFDiff.
+
+# 5. Multi-view 3D Reconstruction
+
+In this section we describe how to perform multi-view 3D reconstruction using our differentiable renderer. This is a proof of concept, where we assume known camera poses, illumination, and surface appearance, and we only optimize over the 3D shape represented by the SDF. Our inputs are synthetically rendered images from a fixed set of camera poses. We set the camera poses to point from the center of each face and edge, and from each vertex of the object bounding box towards its center, where the bounding box is a cube. Since the cube has 6 faces, 8 vertices, and 12 edges, we obtain 26 camera poses in total. Figure 1 shows the input images we used to reconstruct the bunny in our experiments. In addition, we initialize the SDF to a sphere.
+
+# 5.1. Energy Function
+
+For simplicity we choose the $L_{2}$ distance between the rendered and the target images as our image-based loss, that is $\mathcal{L}_{\mathrm{img}}(R(\Theta),I) = ||R(\Theta) - I||^2$ . The loss is summed over all target views. In this proof of concept scenario, the optimization parameters $\Theta$ include only the SDF values, as we assume the other rendering parameters are known. Minimizing the image-based loss by optimizing SDF values requires differentiable rendering, where we compute the gradient of the image loss w.r.t. the SDF values as in Section 4.
+
+In addition, we impose a regularization loss that ensures that the SDF values $\Theta$ represent a valid signed distance function, that is, its gradient should have unit magnitude.
+
+
+Figure 1. We use 26 input views in our multi-view reconstruction experiments as shown here for the bunny.
+
+Writing the SDF represented by $\Theta$ as a function $f(x;\Theta)$ where $x$ is a point in 3D, the regularization loss is
+
+$$
+\mathcal {L} _ {\text {r e g}} = \int | | 1 - | | \nabla f (x; \Theta) | | ^ {2} | | ^ {2} d x \tag {2}
+$$
+
+In practice, we obtain the gradients via finite differencing and we compute a discrete sum over the SDF grid vertices.
+
+# 5.2. Iterative Optimization
+
+We apply gradient descent optimization using ADAM [22] to iteratively optimize our SDF to match the target images. Compared to straightforward gradient descent, ADAM is more robust and faster in convergence. In addition, we accelerate convergence by greedily selecting a single view in each gradient descent step to compute the gradient, similar to active mini batch sampling. The intuition is that some parts of the 3D model may have more complex structures so it is more difficult to optimize SDF values using some views than others. Different views may incur image losses of varying magnitude, and we should focus on the views with large losses to make sure all parts of the object can be well-reconstructed. Our approach first calculates the average loss for all the camera views from the result of the previous iteration. If a loss for a view is greater than the average loss, then during the current iteration, we update the SDF until the loss for this view is less than the average (with max. 20 updates). For the other views, we update the SDF five times. If one update increases the loss, then we switch to the next view directly. We stop our optimization process when the loss is smaller than a given tolerance or the step length is too small.
+
+Reconstructing high-resolution 3D objects is challenging because gradient descent takes many iterations to eliminate low frequency errors. Therefore, we apply a coarse-to-fine multi-resolution approach. We start by initializing the SDF grid at a resolution of $8^{3}$ to the SDF of a sphere. We then iterate between performing gradient descent optimization as described above, and increasing the grid resolution. We in
+
+| GT | | | | |
| Ours | | | | |
| Error | | | | |
| DSS [52] | | | | |
| Error | | | | |
| SMVS [24, 47] | | | | |
| Error | | | | |
+
+crease the resolution simply by performing trilinear interpolation and stop at a resolution of $64^{3}$ .
+
+To further improve the efficiency of the multiresolution scheme, we choose an appropriate image resolution for rendering corresponding to the SDF resolution at each resolution level. We determine the appropriate resolution by ensuring that a sphere with a radius equivalent to the grid spacing, and placed at the corner of the bounding box of the SDF furthest from the camera, has a projected footprint of at most the size of a $2 \times 2$ pixel block.
+
+# 5.3. Experimental Results
+
+Qualitative Results. We compare our results with
+
+Figure 2. Multi-view reconstruction results comparing to DSS [52] and SMVS [24, 47] with the corresponding error visualizations based on Hausdorff distance (red means zero and blue high error).
+
+| Object | Ours | DSS [52] | SMVS [24, 47] |
| Torus | 0.015637 | 0.035398 | N/A |
| Bunny | 0.026654 | 0.109432 | N/A |
| Dragon | 0.074723 | 0.179456 | 0.097816 |
+
+Table 1. Comparison of the symmetric Hausdorff distance between ground truth and reconstructed meshes for torus, bunny and dragon. SMVS could not reconstruct torus and bunny because camera pose estimation failed.
+
+DSS [52], which is a differentiable renderer for point clouds based on surface splatting [56]. We let both systems deform a sphere to fit the target object given as input. When running DSS, we adopt the same settings used in their original experiments: the system randomly selects 12 from a set of 26 views of the target in each optimization cycle, and optimizes for up to 16 cycles. We experimented with different numbers of 3D points and report the best result. For SDFDiff we use our optimization technique from Section 5.2 using the same set of 26 views. Figure 2 shows the comparison between SDFDiff and DSS. DSS cannot recover geometric details as accurately as SDFDiff.
+
+We also compare our result with SMVS [24, 47], which is a state-of-the-art shading-aware multi-view 3D reconstruction approach. We use the default settings, and provide 1000 randomly sampled views of the dragon rendered by our SDF renderer as input. Note that SMVS automatically recovers camera parameters from the input images and estimates surface albedo and illumination, hence the comparison is not entirely fair. As shown in Figure 2, however, even with a large number of input views the SMVS output can be overly smooth and lack details. SMVS may also fail with fewer views due to inaccurate camera pose estimation. In contrast, SDFDiff can obtain better results using only 26 views (with known camera poses, albedo, and illumination).
+
+Quantitative Results. Table 1 compares the symmetric Hausdorff distance between ground truth and reconstructed meshes for torus, bunny and dragon. The visual results of torus and bunny are in supplementary materials. For a fair comparison, we report errors relative to the size of the bounding boxes. We observe that SDFDiff leads to smaller symmetric Hausdorff distances, which means our reconstruction results are closer to the ground truth than the other two approaches.
+
+# 5.4. Parameter Study
+
+Initial Resolution. Figure 3 shows the impact of the initial resolution in our multi-resolution scheme. We fix the number of multi-resolution steps and our target resolution being 64, and then set the initial resolution to be 8, 16, 32, and 48 respectively. We find that a lower initial resolution can reconstruct qualitatively better 3D shapes because it more robustly captures large scale structures.
+
+
+Figure 3. Given different initial resolutions, with 4 resolution stages, we can find that our 3D reconstruction results are better if the initial resolution is lower.
+
+
+Figure 4. We fix the initial and target resolution to 8 and 64 respectively, but use different numbers of intermediate resolution stages. We find that more resolution stages can give us better results.
+
+
+Figure 5. We show that the quality of reconstruction results are not affected much by the image resolution.
+
+Number of Multi-Resolution Steps. Figure 4 shows that given fixed initial (init_res=8) and target (target_res=64) resolutions, adding more multi-resolution steps can give us better results. In particular, single-resolution optimization (1 step) cannot reconstruct the object successfully, further justifying our multi-resolution setup.
+
+Image Resolution. Figure 5 shows that image resolution does not significantly affect the quality of the results, where we use images with various resolutions for optimization.
+
+Noisy Data. As shown in Figure 6, when some noise is added to target images or camera poses, our approach can still maintain its robustness.
+
+
+Figure 6. Experimental results with noisy data. All 26 input views or camera poses are perturbed with Gaussian noise (variance=0.03 for views and variance=0.01 for camera poses). The third column shows the view differences caused by perturbed camera poses.
+
+# 6. Learning-based Single-view Reconstruction
+
+In the following experiments, we leverage SDFDiff to train a neural network to perform single-view 3D reconstruction without 3D supervision. We use the same dataset as [21, 28], which includes 13 categories of objects from ShapeNet [3]. Each object has 24 rendered images from different views at $64 \times 64$ resolution. We use the same train/validate/test sets on the same dataset as in [21, 28, 54], and the standard reconstruction metric, i.e., 3D intersection over union (IoU) [28] for quantitative comparisons.
+
+Network. Our network contains two parts as shown in Figure 7. The first part is an Encoder-Decoder network which takes images as input and outputs coarse SDF results. The second part is a refiner network to further improve the quality of the 3D reconstruction results. The network is trained on all the 3D shapes in the dataset simultaneously.
+
+Loss Function. In addition to the energy function as shown in Section 5.1 containing the $L_{2}$ image-based loss $\mathcal{L}_{\mathrm{img}}$ and the SDF loss $\mathcal{L}_{\mathrm{reg}}$ ensuring the SDF values represent a valid signed distance function, we also add a geometry loss $\mathcal{L}_{\mathrm{geo}}$ that regularizes the finite difference Laplacian of the predicted SDFs to obtain smooth outputs. Furthermore, we use a narrow band technique to control the effects of the SDF and Laplacian losses since we care more about these losses locally around the surfaces. Also, the SDF-loss cannot be enforced everywhere on the discrete grid due to singularities (e.g., the medial axis of the shape forms a sharp crease) in the continuous SDF. The narrow-band considers the SDF-loss only close to the surface, avoiding SDF discretization issues elsewhere in the volume. We use a distance-based binary mask $\mathcal{M}$ to zero them out further away from the zero level-set. The mask is defined as
+
+$$
+\mathcal {M} = \left| \left| S D F \right| \right| \leq \mu \times \text {v o x e l S i z e}, \tag {3}
+$$
+
+| Category | Airplane | Bench | Cabinet | Car | Chair | Display | Lamp | Speaker | Rifle | Sofa | Table | Phone | Vessel | Mean |
| NMR [21] | 0.6172 | 0.4998 | 0.7143 | 0.7095 | 0.4990 | 0.5831 | 0.4126 | 0.6536 | 0.6322 | 0.6735 | 0.4829 | 0.7777 | 0.5645 | 0.6015 |
| SoftRas (sil.) [28] | 0.6419 | 0.5080 | 0.7116 | 0.7697 | 0.5270 | 0.6156 | 0.4628 | 0.6654 | 0.6811 | 0.6878 | 0.4487 | 0.7895 | 0.5953 | 0.6234 |
| SoftRas (full) [28] | 0.6670 | 0.5429 | 0.7382 | 0.7876 | 0.5470 | 0.6298 | 0.4580 | 0.6807 | 0.6702 | 0.7220 | 0.5325 | 0.8127 | 0.6145 | 0.6464 |
| Ours | 0.6874 | 0.6860 | 0.7735 | 0.8002 | 0.6436 | 0.6584 | 0.5150 | 0.6534 | 0.5553 | 0.7654 | 0.6288 | 0.8278 | 0.6244 | 0.6674 |
+
+Table 2. Comparison of IoU with the state-of-the-art approaches [21, 28] on 13 ShapeNet categories.
+
+
+Figure 7. Network structure for single-view SDF reconstruction.
+
+where $\mu$ is a hyperparameter to define the width of the narrow band. We currently set it to be 1.6, which is determined experimentally. The final loss function is a weighted sum of the three losses with weights $\lambda_{1} = \lambda_{2} = 0.02$ ,
+
+$$
+\mathcal {L} = \mathcal {L} _ {\mathrm {i m g}} + \mathcal {M} \otimes \left(\lambda_ {1} \mathcal {L} _ {\mathrm {r e g}} + \lambda_ {2} \mathcal {L} _ {\mathrm {g e o}}\right). \tag {4}
+$$
+
+Training Process. We first train the Encoder-Decoder part of the network alone based on the three loss terms. Then we fix the encoder and decoder and train the refiner network on the same three loss terms to get refined SDF shapes. In the end, we train all the three parts, i.e., encoder, decoder, and refiner together to further improve the results. We do not use the multi-resolution approach.
+
+Qualitative Evaluation. Figure 8 shows that our method can reconstruct detailed objects and accurately recover complicated topologies. In contrast, SoftRasterizer [28] relies on a template mesh with spherical topology and it cannot capture the complex topology of the chairs.
+
+Quantitative Evaluation. We compare our method with the state-of-the-art [21, 28] in terms of 3D IoU scores in Table 2. Our method can reconstruct shapes with finer details in the 13 categories. In addition, the IoU numbers show that our results achieve higher accuracy, where our scores surpass other approaches in most of the categories. A comparison to Chen et al. [5] is omitted because they use different data preprocessing than the other methods [21, 28].
+
+# 7. Discussion and Limitations
+
+As a main advantage, SDFs can represent arbitrary topologies, in contrast to triangle meshes that are restricted to the topology of a template. In contrast to point clouds, SDFs inherently represent continuous watertight surfaces. We demonstrated applications of our approach in multiview shape reconstruction, and single view 3D reconstruction using deep learning. Our experimental results showed
+
+that we can more robustly perform multi-view reconstruction than a state-of-the-art point-based differentiable renderer. In addition, we achieve state-of-the-art results on single view 3D reconstruction with deep learning models.
+
+In our multi-view 3D reconstruction approach, our current shading model is not sufficient to perform inverse rendering from real images taken with a camera. For example, we currently do not include effects such as shadows, interreflections, texture, non-diffuse surfaces, or complex illumination. In contrast to rasterization-based differentiable renderers, our ray tracing-based renderer could be extended to include all such effects. A disadvantage of our deep learning approach is that we output a discrete SDF on a 3D grid. Instead, we could learn a continuous signed distance function represented by a deep network like in DeepSDF [41]. This would be more memory efficient, but it might be computationally too expensive for unsupervised 3D reconstruction with differentiable rendering, since it would require to evaluate the network for each ray marching step.
+
+# 8. Conclusion
+
+We proposed a novel approach to differentiable rendering using signed distance functions to represent watertight 3D geometry. Our rendering algorithm is based on sphere tracing, but we observe that only the local shading computation needs to be differentiable in our framework, which makes the approach computationally more efficient and allows for straightforward integration into deep learning frameworks. We demonstrate applications in multi-view 3D reconstruction and unsupervised single-view 3D reconstruction using deep neural networks. Our experimental results illustrate the advantages over geometry representations such as point clouds and meshes. In particular, we report the state-of-the-art results in shape reconstruction.
+
+| Method | Input Image | Rendered Views | Input Image | Rendered Views |
| GT | | | | | | | | | | |
| Ours | | | | | | | | | | |
| SoftRas[28] | | | | | | | | | | |
| GT | | | | | | | | | | |
| Ours | | | | | | | | | | |
| SoftRas[28] | | | | | | | | | | |
| GT | | | | | | | | | | |
| Ours | | | | | | | | | | |
| SoftRas[28] | | | | | | | | | | |
+
+Figure 8. Single-view reconstruction results for airplanes, chairs, and benches.
+
+# 9. Acknowledgements
+
+This project was supported by NSF IIS grant nr. #1813583. We also appreciate active discussion with Qian
+
+Zheng, Hui Huang, and Daniel Cohen-Or at Shenzhen University.
+
+# References
+
+[1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas J. Guibas. Representation learning and adversarial generation of 3D point clouds. CoRR, abs/1707.02392, 2017.
+[2] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. In Proceedings of the 35th International Conference on Machine Learning, pages 284-293, 2018.
+[3] Angel X. Chang, Thomas A. Funkhouser, Leonidas J. Guibas, Pat Hanrahan, Qi-Xing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, Jianxiong Xiao, Li Yi, and Fisher Yu. ShapeNet: An information-rich 3D model repository. ArXiv, abs/1512.03012, 2015.
+[4] Chengqian Che, Fujun Luan, Shuang Zhao, Kavita Bala, and Ioannis Gkioulekas. Inverse Transport Networks. arXiv eprints, page arXiv:1809.10820, Sept. 2018.
+[5] Wenzheng Chen, Huan Ling, Jun Gao, Edward Smith, Jaakko Lehtinen, Alec Jacobson, and Sanja Fidler. Learning to predict 3d objects with an interpolation-based differentiable renderer. In Advances in Neural Information Processing Systems 32 (NeurIPS 2019).
+[6] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. IEEE Conference on Computer Vision and Pattern Recognition, 2019.
+[7] Christopher B Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3D-R2N2: A unified approach for single and multi-view 3D object reconstruction. In Proceedings of the European Conference on Computer Vision (ECCV), 2016.
+[8] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. In Proceedings of the 23rd annual conference on Computer graphics and interactive techniques - SIGGRAPH '96, 1996.
+[9] Amael Delaunoy and Emmanuel Prados. Gradient flows for optimizing triangular mesh-based surfaces: Applications to 3D reconstruction problems dealing with visibility. International Journal of Computer Vision, 95(2):100-123, Nov 2011.
+[10] Haoqiang Fan, Hao Su, and Leonidas J. Guibas. A point set generation network for 3D object reconstruction from a single image. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
+[11] Matheus Gadelha, Subhransu Maji, and Rui Wang. 3D shape induction from 2D views of multiple objects. 2017 International Conference on 3D Vision (3DV), pages 402-411, 2016.
+[12] J. Gwak, C. B. Choy, M. Chandraker, A. Garg, and S. Savarese. Weakly supervised 3D reconstruction with adversarial constraint. In 2017 International Conference on 3D Vision (3DV), pages 263-272, Oct 2017.
+[13] Zhizhong Han, Mingyang Shang, Yu-Shen Liu, and Matthias Zwicker. View Inter-Prediction GAN: Unsupervised representation learning for 3D shapes by learning global shape memories to support local view predictions. In AAAI, pages 8376-8384, 2019.
+[14] Zhizhong Han, Mingyang Shang, Xiyang Wang, Yu-Shen Liu, and Matthias Zwicker. Y2Seq2Seq: Cross-modal repre
+
+sensation learning for 3D shape and text by joint reconstruction and prediction of view and word sequences. In AAAI, pages 126-133, 2019.
+[15] John C. Hart. Sphere Tracing: a geometric method for the antialiased ray tracing of implicit surfaces. The Visual Computer, 12(10):527-545, Dec 1996.
+[16] Paul Henderson and Vittorio Ferrari. Learning to generate and reconstruct 3D meshes with only 2D supervision. In Proceedings of the 29th British Machine Vision Conference (BMVC 2018), 2018.
+[17] P Henzler, N Mitra, and T Ritschel. Escaping Plato's Cave using adversarial training: 3d shape from unstructured 2d image collections. In Proceedings of the International Conference on Computer Vision 2019 (ICCV 2019), volume 2019. IEEE, 2019.
+[18] Eldar Insafutdinov and Alexey Dosovitskiy. Unsupervised learning of shape and pose with differentiable point clouds. In Advances in Neural Information Processing Systems (NeurIPS 2018), pages 2807-2817, 2018.
+[19] Li Jiang, Shaoshuai Shi, Xiaojuan Qi, and Jiaya Jia. GAL: Geometric adversarial loss for single-view 3D-object reconstruction. In The European Conference on Computer Vision (ECCV), September 2018.
+[20] Danilo Jimenez Rezende, S. M. Ali Eslami, Shakir Mohamed, Peter Battaglia, Max Jaderberg, and Nicolas Heess. Unsupervised learning of 3D structure from images. In Advances in Neural Information Processing Systems 29 (NeurIPS 2016).
+[21] Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3D mesh renderer. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
+[22] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
+[23] A. Kurenkov, J. Ji, A. Garg, V. Mehta, J. Gwak, C. Choy, and S. Savarese. DeformNet: Free-form deformation network for 3D shape reconstruction from a single image. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 858-866, March 2018.
+[24] F. Langguth, K. Sunkavalli, S. Hadap, and M. Goesele. Shading-aware multi-view stereo. In Proceedings of the European Conference on Computer Vision (ECCV), 2016.
+[25] Tzu-Mao Li, Miika Aittala, Frédo Durand, and Jaakko Lehtinen. Differentiable monte carlo ray tracing through edge sampling. ACM Trans. Graph. (Proc. SIGGRAPH Asia), 37(6):222:1-222:11, 2018.
+[26] Hsueh-Ti Derek Liu, Michael Tao, Chun-Liang Li, Derek Nowrouzezahrai, and Alec Jacobson. Adversarial geometry and lighting using a differentiable renderer. CoRR, abs/1808.02651, 2018.
+[27] Hsueh-Ti Derek Liu, Michael Tao, and Alec Jacobson. Paparazzi: Surface editing by way of multi-view image processing. ACM Transactions on Graphics, 2018.
+[28] Shichen Liu, Tianye Li, Weikai Chen, and Hao Li. Soft Rasterizer: A differentiable renderer for image-based 3D reasoning. The IEEE International Conference on Computer Vision, 2019.
+
+[29] Shaohui Liu, Yinda Zhang, Songyou Peng, Boxin Shi, Marc Pollefeys, and Zhaopeng Cui. DIST: Rendering deep implicit signed distance function with differentiable sphere tracing. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
+[30] Matthew M. Loper and Michael J. Black. OpenDR: An approximate differentiable renderer. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2014.
+[31] Abhinitra Meka, Maxim Maximov, Michael Zollhoefer, Avishek Chatterjee, Hans-Peter Seidel, Christian Richardt, and Christian Theobalt. LIME: Live intrinsic material estimation. In Proceedings of Computer Vision and Pattern Recognition (CVPR), June 2018.
+[32] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3D reconstruction in function space. In IEEE Conference on Computer Vision and Pattern Recognition, 2019.
+[33] Mateusz Michalkiewicz, Jhony K. Pontes, Dominic Jack, Mahsa Baktashmotlagh, and Anders P. Eriksson. Deep Level Sets: Implicit surface representations for 3D shape inference. CoRR, abs/1901.06802, 2019.
+[34] KL Navaneet, Priyanka Mandikal, Mayank Agarwal, and R Venkatesh Babu. CAPNet: Continuous approximation projection for 3D point cloud reconstruction using 2d supervision. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8819-8826, 2019.
+[35] Richard A. Newcombe, Shahram Izadi, Otmar Hilliges, David Molyneaux, David Kim, Andrew J. Davison, Pushmeet Kohli, Jamie Shotton, Steve Hodges, and Andrew Fitzgibbon. KinectFusion: Real-time dense surface mapping and tracking. In 2011 10th IEEE International Symposium on Mixed and Augmented Reality, ISMAR 2011, 2011.
+[36] Thu Nguyen-Phuoc, Chuan Li, Stephen Balaban, and Yong-Liang Yang. RenderNet: A deep convolutional network for differentiable rendering from 3D shapes. In Advances in Neural Information Processing Systems 31 (NeurIPS 2018), 2018.
+[37] Michael Niemeyer, Lars Mescheder, Michael Oechsle, and Andreas Geiger. Differentiable volumetric rendering: Learning implicit 3d representations without 3d supervision. In Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2020.
+[38] Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Marc Stamminger. Real-time 3D reconstruction at scale using voxel hashing. ACM Transactions on Graphics, 2013.
+[39] S Osher, R Fedkiw, and K Piechor. Level Set Methods and Dynamic Implicit Surfaces. Applied Mechanics Reviews, 2004.
+[40] Andrea Palazzi, Luca Bergamini, Simone Calderara, and Rita Cucchiara. End-to-end 6-DoF object pose estimation through differentiable rasterization. In The European Conference on Computer Vision (ECCV) Workshops, September 2018.
+[41] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation. arXiv e-prints, page arXiv:1901.05103, Jan 2019.
+
+[42] Danping Peng, Barry Merriman, Stanley Osher, Hongkai Zhao, and Myungjoo Kang. A PDE-Based Fast Local Level Set Method. Journal of Computational Physics, 1999.
+[43] Felix Petersen, Amit H. Bermano, Oliver Deussen, and Daniel Cohen-Or. Pix2Vex: Image-to-geometry reconstruction using a smooth differentiable renderer. CoRR, abs/1903.11149, 2019.
+[44] Ravi Ramamoorthi and Pat Hanrahan. A signal-processing framework for inverse rendering. In Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH '01, pages 117-128, New York, NY, USA, 2001. ACM.
+[45] Elad Richardson, Matan Sela, Roy Or-El, and Ron Kimmel. Learning detailed face reconstruction from a single image. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5553–5562, 07 2017.
+[46] S. M. Seitz, B. Curless, J. Diebel, D. Scharstein, and R. 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, June 2006.
+[47] Ben Semerjian. A new variational framework for multiview surface reconstruction. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2014.
+[48] Vincent Sitzmann, Michael Zollhöfer, and Gordon Wetzstein. Scene Representation Networks: Continuous 3D-structure-aware neural scene representations. CoRR, abs/1906.01618, 2019.
+[49] S. Tulsiani, A. Kar, J. Carreira, and J. Malik. Learning category-specific deformable 3D models for object reconstruction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(4):719-731, April 2017.
+[50] Shubham Tulsiani, Tinghui Zhou, Alexei A. Efros, and Jitendra Malik. Multi-view supervision for single-view reconstruction via differentiable ray consistency. In IEEE Conference on Computer Vision and Pattern Recognition, pages 209-217, 2017.
+[51] Qingxiang Wang, Cezary Kaliszyk, and Josef Urban. First experiments with neural translation of informal to formal mathematics. CoRR, abs/1805.06502, 2018.
+[52] WangYifan, Felice Serena, Shihao Wu, Cengiz Öztireli, and Olga Sorkine-Hornung. Differentiable surface splatting for point-based geometry processing. ACM Transactions on Graphics (proceedings of ACM SIGGRAPH ASIA), 38(6), 2019.
+[53] Jiajun Wu, Yifan Wang, Tianfan Xue, Xingyuan Sun, William T Freeman, and Joshua B Tenenbaum. MarrNet: 3D Shape Reconstruction via 2.5D Sketches. In Advances In Neural Information Processing Systems (NeurIPS 2017), 2017.
+[54] Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective Transformer Nets: Learning single-view 3D object reconstruction without 3D supervision. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems 29 (NeurIPS 2016), pages 1696-1704. Curran Associates, Inc., 2016.
+
+[55] Jun-Yan Zhu, Zhoutong Zhang, Chengkai Zhang, Jiajun Wu, Antonio Torralba, Joshua B. Tenenbaum, and William T. Freeman. Visual Object Networks: Image generation with disentangled 3D representations. In Advances in Neural Information Processing Systems (NeurIPS 2018), 2018.
+[56] Matthias Zwicker, Hanspeter Pfister, Jeroen van Baar, and Markus Gross. Surface splatting. In Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH '01, pages 371-378, New York, NY, USA, 2001. ACM.
\ No newline at end of file
diff --git a/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/images.zip b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f264cfdd6ea9351b842045589f0166d908d07b65
--- /dev/null
+++ b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d952c746253231f02fd597edf7d61c15cf4d270f75d64fc8ac666cfdb41712c
+size 586429
diff --git a/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/layout.json b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d3aa87a8bbae7e8955bfc31bb4fbde1c609d2b37
--- /dev/null
+++ b/sdfdiffdifferentiablerenderingofsigneddistancefieldsfor3dshapeoptimization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:944ff4c9058592d8d79cb37fcad2146a75e519a5448f46a550bb3065d9a38d4f
+size 310008
diff --git a/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_content_list.json b/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e468bbac9ba7fb54afb48b7ab3dbd9d3796e01a0
--- /dev/null
+++ b/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bd77f2bb97ee241d46d4a7cb5e525bd30d7c4119d30c94238042b7ea5f5ad938
+size 75795
diff --git a/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_model.json b/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6d75408083a2aabbb089c7549623228eb392f673
--- /dev/null
+++ b/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9aa1a92fcacd6cbe59c12533862e0b595a0e75152655264dff7a08a2907b05ab
+size 92299
diff --git a/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_origin.pdf b/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..fc2f0c63a5760c67f689605b87d75d346d13f5b8
--- /dev/null
+++ b/seanimagesynthesiswithsemanticregionadaptivenormalization/871626d8-b12a-4a27-bc70-5e045923cace_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:46a62c2cc5ad1ddb675a097da226ebd504b358d735bca4aafa98df58f90e763a
+size 2011255
diff --git a/seanimagesynthesiswithsemanticregionadaptivenormalization/full.md b/seanimagesynthesiswithsemanticregionadaptivenormalization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1e48eafa2f53dbe0660386712c1b83c11417441a
--- /dev/null
+++ b/seanimagesynthesiswithsemanticregionadaptivenormalization/full.md
@@ -0,0 +1,370 @@
+# SEAN: Image Synthesis with Semantic Region-Adaptive Normalization
+
+Peihao Zhu
+
+Rameen Abdal
+
+Yipeng Qin
+
+Peter Wonka
+
+$^{1}$ KAUST $^{2}$ Cardiff University
+
+Source Image
+
+Style Image
+
+
+
+
+
+
+
+
+
+
+(a)
+
+
+
+
+(b)
+
+
+
+
+(c)
+
+
+
+
+(d)
+Figure 1: Face image editing controlled via style images and segmentation masks. a) source images. b) reconstruction of the source image; segmentation mask shown as small inset. c - f) four separate edits; we show the image that provides new style information on top and show the part of the segmentation mask that gets edited as small inset. The results of the successive edits are shown in row two and three. The four edits change hair, mouth and eyes, skin tone, and background, respectively.
+
+
+
+
+(e)
+
+
+
+
+(f)
+
+# Abstract
+
+We propose semantic region-adaptive normalization (SEAN), a simple but effective building block for Generative Adversarial Networks conditioned on segmentation masks that describe the semantic regions in the desired output image. Using SEAN normalization, we can build a network architecture that can control the style of each semantic region individually, e.g., we can specify one style reference image per region. SEAN is better suited to encode, transfer, and synthesize style than the best previous method in terms of reconstruction quality, variability, and visual quality. We evaluate SEAN on multiple datasets and report better quan
+
+titative metrics (e.g. FID, PSNR) than the current state of the art. SEAN also pushes the frontier of interactive image editing. We can interactively edit images by changing segmentation masks or the style for any given region. We can also interpolate styles from two reference images per region. Code: https://github.com/ZPdesu/SEAN.
+
+# 1. Introduction
+
+In this paper we tackle the problem of synthetic image generation using conditional generative adversarial networks (cGANs). Specifically, we would like to control the layout of the generated image using a segmentation mask
+
+
+Figure 2: Editing sequence on the ADE20K dataset. (a) source image, (b) reconstruction of the source image, (c-f) various edits using style images shown in the top row. The regions affected by the edits are shown as small insets.
+
+that has labels for each semantic region and "add" realistic styles to each region according to their labels. For example, a face generation application would use region labels like eyes, hair, nose, mouth, etc. and a landscape painting application would use labels like water, forest, sky, clouds, etc. While multiple very good frameworks exist to tackle this problem [22, 8, 39, 44], the currently best architecture is SPADE [38] (also called GauGAN). Therefore, we decided to use SPADE as starting point for our research. By analyzing the SPADE results, we found two shortcomings that we would like to improve upon in our work.
+
+First, SPADE uses only one style code to control the entire style of an image, which is not sufficient for high quality synthesis or detailed control. For example, it is easily possible that the segmentation mask of the desired output image contains a labeled region that is not present in the segmentation mask of the input style image. In this case, the style of the missing region is undefined, which yields low quality results. Further, SPADE does not allow using a different style input image for each region in the segmentation mask. Our first main idea is therefore to control the style of each region individually, i.e., our proposed architecture accepts one style image per region (or per region instance) as input.
+
+Second, we believe that inserting style information only in the beginning of a network is not a good architecture choice. Recent architectures [25, 31, 2] have demonstrated that higher quality results can be obtained if style information is injected as normalization parameters in multiple layers in the network, e.g. using AdaIN [19]. However, none of these previous networks use style information to generate spatially varying normalization parameters. To alleviate this shortcoming, our second main idea is to design a normalization building block, called SEAN, that can use style
+
+input images to create spatially varying normalization parameters per semantic region. An important aspect of this work is that the spatially varying normalization parameters are dependent on the segmentation mask as well as the style input images.
+
+Empirically, we provide an extensive evaluation of our method on several challenging datasets: CelebAMask-HQ [28, 24, 32], CityScapes [10], ADE20K [50], and our own Facades dataset. Quantitatively, we evaluate our work on a wide range of metrics including FID, PSNR, RMSE and segmentation performance; qualitatively, we show examples of synthesized images that can be evaluated by visual inspection. Our experimental results demonstrate a large improvement over the current state-of-the-art methods. In summary, we introduce a new architecture building block SEAN that has the following advantages:
+
+1. SEAN improves the quality of the synthesized images for conditional GANs. We compared to the state of the art methods SPADE and Pix2PixHD and achieve clear improvements in quantitative metrics (e.g. FID score) and visual inspection.
+2. SEAN improves the per-region style encoding, so that reconstructed images can be made more similar to the input style images as measured by PSNR and visual inspection.
+3. SEAN allows the user to select a different style input image for each semantic region. This enables image editing capabilities producing much higher quality and providing better control than the current state-of-the-art methods. Example image editing capabilities are interactive region by region style transfer and per-region style interpolation (See Figs. 1, 2, and 5).
+
+# 2. Related Work
+
+Generative Adversarial Networks. Since their introduction in 2014, Generative Adversarial Networks (GANs) [14] have been successfully applied to various image synthesis tasks, e.g. image inpainting [48, 11], image manipulation [52, 5, 1] and texture synthesis [29, 43, 12]. With continuous improvements on GAN architecture [40, 25, 38], loss function [33, 4] and regularization [16, 36, 34], the images synthesized by GANs are becoming more and more realistic. For example, the human face images generated by StyleGAN [25] are of very high quality and are almost indistinguishable from photographs by untrained viewers. A traditional GAN uses noise vectors as the input and thus provides little user control. This motivates the development of conditional GANs (cGANs) [35] where users can control the synthesis by feeding the generator with conditioning information. Examples include class labels [37, 34, 6], text [41, 18, 46] and images [22, 53, 30, 44, 44, 38]. Our work is built on the conditional GANs with image inputs, which aims to tackle image-to-image translation problems.
+
+Image-to-Image Translation. Image-to-image translation is an umbrella concept that can be used to describe many problems in computer vision and computer graphics. As a milestone, Isola et al. [22] first showed that image-conditional GANs can be used as a general solution to various image-to-image translation problems. Since then, their method is extended by several following works to scenarios including: unsupervised learning [53, 30], few-shot learning [31], high resolution image synthesis [44], multimodal image synthesis [54, 21] and multi-domain image synthesis [9]. Among various image-to-image translation problems, semantic image synthesis is a particularly useful genre as it enables easy user control by modifying the input semantic layout image [28, 5, 15, 38]. To date, the SPADE [38] model (also called GauGAN) generates the highest quality results. In this paper, we will improve SPADE by introducing per-region style encoding.
+
+Style Encoding. Style control is a vital component for various image synthesis and manipulation applications [13, 29, 20, 25, 1]. Style is generally not manually designed by a user, but extracted from reference images. In most existing methods, styles are encoded in three places: i) statistics of image features [13, 42]; ii) neural network weights (e.g. fast style transfer [23, 51, 47]); iii) parameters of a network normalization layer [20, 27]). When applied to style control, the first encoding method is usually time-consuming as it requires a slow optimization process to match the statistics of image features extracted by image classification networks [13]. The second approach runs in real-time but each neural network only encodes the style of selected reference images [23]. Thus, a separate neural network is required
+
+to be trained for each style image, which limits its application in practice. To date, the third approach is the best as it enables arbitrary style transfer in real-time [20] and it is used by high-quality networks such as StyleGAN [25], FUNIT [31], and SPADE [38]. Our per-region style encoding also builds on this approach. We will show that our method generates higher quality results and enables more-detailed user control.
+
+# 3. Per Region Style Encoding and Control
+
+Given an input style image and its corresponding segmentation mask, this section shows i) how to distill the per-region styles from the image according to the mask and ii) how to use the distilled per-region style codes to synthesize photo-realistic images.
+
+# 3.1. How to Encode Style?
+
+Per-Region Style Encoder. To extract per region styles, we propose a novel style encoder network to distill the corresponding style code from each semantic region of an input image simultaneously (See the subnetwork Style Encoder in Figure 4 (A)). The output of the style encoder is a $512 \times s$ dimensional style matrix ST, where $s$ is the number of semantic regions in the input image. Each column of the matrix corresponds to the style code of a semantic region. Unlike the standard encoder built on a simple downscaling convolutional neural network, our per-region style encoder employs a "bottleneck" structure to remove the information irrelevant to styles from the input image. Incorporating the prior knowledge that styles should be independent of the shapes of semantic regions, we pass the intermediate feature maps (512 channels) generated by the network block TConv-Layers through a region-wise average pooling layer and reduce them to a collection of 512 dimensional vectors. As implementation detail we would like to remark that we use $s$ as the number of semantic labels in the data set and set columns corresponding to regions that do not exist in an input image to 0. As a variation of this architecture, we can also extract style per region instance for datasets that have instance labels, e.g., CityScapes.
+
+# 3.2. How to Control Style?
+
+With per-region style codes and a segmentation mask as inputs, we propose a new conditional normalization technique called Semantic Region-Adaptive Normalization (SEAN) to enable detailed control of styles for photorealistic image synthesis. Similar to existing normalization techniques [20, 38], SEAN works by modulating the scales and biases of generator activations. In contrast to all existing methods, the modulation parameters learnt by SEAN are dependent on both the style codes and segmentation masks. In a SEAN block (Figure 3), a style map is first gen
+
+
+Figure 3: SEAN normalization. The input are style matrix ST and segmentation mask M. In the upper part, the style codes in ST undergo a per style convolution and are then broadcast to their corresponding regions according to M to yield a style map. The style map is processed by conv layers to produce per pixel normalization values $\gamma^s$ and $\beta^s$ . The lower part (light blue layers) creates per pixel normalization values using only the region information similar to SPADE.
+
+erated by broadcasting the style codes to their corresponding semantic regions according to the input segmentation mask. This style map along with the input segmentation mask are then passed through two separate convolutional neural networks to learn two sets of modulation parameters. The weighted sums of them are used as the final SEAN parameters to modulate the scales and biases of generator activations. The weight parameter is also learnable during training. The formal definition of SEAN is introduced as follows.
+
+Semantic Region-Adaptive Normalization (SEAN). A SEAN block has two inputs: a style matrix ST encoding per-region style codes and a segmentation mask M. Let h denote the input activation of the current SEAN block in a deep convolutional network for a batch of $N$ samples. Let $H$ , $W$ and $C$ be the height, width and the number of channels in the activation map. The modulated activation value at site $(n \in N, c \in C, y \in H, x \in W)$ is given by
+
+$$
+\gamma_ {c, y, x} (\mathbf {S T}, \mathbf {M}) \frac {h _ {n , c , y , x} - \mu_ {c}}{\sigma_ {c}} + \beta_ {c, y, x} (\mathbf {S T}, \mathbf {M}) \quad (1)
+$$
+
+where $h_{n,c,y,x}$ is the activation at the site before normalization, the modulation parameters $\gamma_{c,y,x}$ and $\beta_{c,y,x}$ are weighted sums of $\gamma_{c,y,x}^{s}, \gamma_{c,y,x}^{o}$ and $\beta_{c,y,x}^{s}, \beta_{c,y,x}^{o}$ respectively (See Fig. 3 for definition of $\gamma$ and $\beta$ variables):
+
+$$
+\gamma_ {c, y, x} (\mathbf {S T}, \mathbf {M}) = \alpha_ {\gamma} \gamma_ {c, y, x} ^ {s} (\mathbf {S T}) + (1 - \alpha_ {\gamma}) \gamma_ {c, y, x} ^ {o} (\mathbf {M})
+$$
+
+$$
+\beta_ {c, y, x} (\mathbf {S T}, \mathbf {M}) = \alpha_ {\beta} \beta_ {c, y, x} ^ {s} (\mathbf {S T}) + (1 - \alpha_ {\beta}) \beta_ {c, y, x} ^ {o} (\mathbf {M}) \tag {2}
+$$
+
+$\mu_{c}$ and $\sigma_{c}$ are the mean and standard deviation of the acti
+
+vation in channel $c$ ..
+
+$$
+\mu_ {c} = \frac {1}{N H W} \sum_ {n, y, x} h _ {n, c, y, x} \tag {3}
+$$
+
+$$
+\sigma_ {c} = \sqrt {\frac {1}{N H W} \left(\sum_ {n , y , x} h _ {n , c , y , x} ^ {2}\right) - \mu_ {c} ^ {2}} \tag {4}
+$$
+
+# 4. Experimental Setup
+
+# 4.1. Network Architecture
+
+Figure 4 (A) shows an overview of our generator network, which is building on that of SPADE [38]. Similar to [38], we employ a generator consisting of several SEAN ResNet blocks (SEAN ResBlk) with upsampling layers.
+
+SEAN ResBlk. Figure 4 (B) shows the structure of our SEAN ResBlk, which consists of three convolutional layers whose scales and biases are modulated by three SEAN blocks respectively. Each SEAN block takes two inputs: a set of per-region style codes ST and a semantic mask M. Note that both inputs are adjusted in the beginning: the input segmentation mask is downsampled to the same height and width of the feature maps in a layer; the input style codes from ST are transformed per region using a $1 \times 1$ conv layer $A_{ij}$ . We observed that the initial transformations are indispensable components of the architecture because they transform the style codes according to the different roles of each neural network layer. For example, early layers might control the hair styles (e.g. wavy, straight) of human face images while later layers might refer to the lighting and color. In addition, we observed that adding noise to the input of SEAN can improve the quality of synthesized images. The scale of such noise is adjusted by a per-channel scaling factor $B$ that is learnt during training, similar to StyleGAN [25].
+
+# 4.2. Training and Inference
+
+Training We formulate the training as an image reconstruction problem. That is, the style encoder is trained to distill per-region style codes from the input images according to their corresponding segmentation masks. The generator network is trained to reconstruct the input images with the extracted per-region style codes and the corresponding segmentation masks as inputs. Following SPADE [38] and Pix2PixHD [44], the difference between input images and reconstructed images are measured by an overall loss function consisting of three loss terms: conditional adversarial loss, feature matching loss [44] and perceptual loss [23]. Details of the loss function are included in the supplementary material.
+
+Inference During inference, we take an arbitrary segmentation mask as the mask input and implement per-region style
+
+
+Figure 4: SEAN generator. (A) On the left, the style encoder takes an input image and outputs a style matrix ST. The generator on the right consists of interleaved SEAN ResBlocks and Upsampling layers. (B) A detailed view of a SEAN ResBlock used in (A).
+
+
+
+| Method | CelebAMask-HQ | CityScapes | ADE20K | Façades |
| SSIM | RMSE | PSNR | SSIM | RMSE | PSNR | SSIM | RMSE | PSNR | SSIM | RMSE | PSNR |
| Pix2PixHD [44] | 0.68 | 0.15 | 17.14 | 0.69 | 0.13 | 18.32 | 0.51 | 0.22 | 13.81 | 0.53 | 0.16 | 16.30 |
| SPADE [38] | 0.63 | 0.21 | 14.30 | 0.64 | 0.18 | 15.77 | 0.45 | 0.28 | 11.52 | 0.44 | 0.22 | 13.87 |
| Ours | 0.73 | 0.12 | 18.74 | 0.70 | 0.13 | 18.61 | 0.58 | 0.17 | 16.16 | 0.58 | 0.14 | 17.14 |
+
+Table 1: Quantitative comparison of reconstruction quality. Our method outperforms current leading methods using similarity metrics SSIM, RMSE, and PSNR on all the datasets. For SSIM and PSNR, higher is better. For RMSE, lower is better.
+
+control by selecting a separate 512 dimensional style code for each semantic region as the style input. This enables a variety of high quality image synthesis applications, which will be introduced in the following section.
+
+# 5. Results
+
+In the following we discuss quantitative and qualitative results of our framework.
+
+Implementation details. Following SPADE [38], we apply Spectral Norm [36] in both the generator and discriminator. Additional normalization is performed by SEAN in the generator. We set the learning rates to 0.0001 and 0.0004 for the generator and discriminator, respectively [17]. For the optimizer, we choose ADAM [26] with $\beta_{1} = 0, \beta_{2} = 0.999$ . All the experiments are trained on 4 Tesla v100 GPUs. To get better performance, we use a synchronized version of batch normalization [49] in the SEAN normalization
+
+blocks.
+
+Datasets. We use the following datasets in our experiments: 1) CelebAMask-HQ [28, 24, 32] containing 30,000 segmentation masks for the CelebAHQ face image dataset. There are 19 different region categories. 2) ADE20K [50] contains 22, 210 images annotated with 150 different region labels. 3) Cityscapes [10] contains 3500 images annotated with 35 different region labels. 4) Façades dataset. we use a dataset of 30,000 façade images collected from Google Street View [3]. Instead of manual annotation, the segmentation masks are automatically calculated by a pre-trained DeepLabV3+ Network [7].
+
+We follow the recommended splits for each dataset and note that all images in the paper are generated from the test set only. Neither the segmentation masks nor the style images have been seen during training.
+
+Metrics. We employ the following established metrics to compare our results to state of the art: 1) segmentation ac
+
+
+Source Image
+
+
+Style1
+
+
+Interpolated Results
+
+
+Style2
+Figure 5: Style interpolation. We take a mask from a source image and reconstruct with two different style images (Style1 and Style2) that are very different from the source image. We then show interpolated results of the per-region style codes
+
+| Method | CelebAMask-HQ | CityScapes | ADE20K | Façades |
| mIoU | accu | FID | mIoU | accu | FID | mIoU | accu | FID | FID |
| Ground Truth | 73.14 | 94.38 | 9.41 | 66.21 | 93.69 | 32.34 | 39.38 | 78.76 | 14.51 | 14.40 |
| Pix2PixHD [44] | 76.12 | 95.76 | 23.69 | 50.35 | 92.09 | 83.24 | 22.78 | 73.32 | 43.0 | 22.34 |
| SPADE [38] | 77.01 | 95.93 | 22.43 | 56.01 | 93.13 | 60.51 | 35.37 | 79.37 | 34.65 | 24.04 |
| Ours | 75.69 | 95.69 | 17.66 | 57.88 | 93.59 | 50.38 | 34.59 | 77.16 | 24.84 | 19.82 |
+
+curacy measured by mean Intersection-over-Union (mIoU) and pixel accuracy (accu), 2) FID [17], 3) peak signal-to-noise ratio (PSNR), 4) structural similarity (SSIM) [45], 5) root mean square error (RMSE).
+
+Quantitative comparisons. In order to facilitate a fair comparison to SPADE, we report reconstruction perfor
+
+Table 2: Quantitative comparison using semantic segmentation performance measured by mIoU and accu and generation performance measured by FID. Our method outperforms current leading methods in FID on all the datasets.
+
+| Method | SSIM | RMSE | PSNR | FID |
| Pix2PixHD [44] | 0.68 | 0.15 | 17.14 | 23.69 |
| SPADE [38] | 0.63 | 0.21 | 14.30 | 22.43 |
| SPADE++ | 0.67 | 0.16 | 16.71 | 20.80 |
| SEAN-level encoders | 0.74 | 0.11 | 19.70 | 18.17 |
| ResBlk-level encoders | 0.72 | 0.12 | 18.86 | 17.98 |
| unified encoder | 0.73 | 0.12 | 18.74 | 17.66 |
| w/ downsampling | 0.73 | 0.12 | 18.74 | 17.66 |
| w/o downsampling | 0.72 | 0.13 | 18.32 | 18.67 |
| w/ noises | 0.73 | 0.12 | 18.74 | 17.66 |
| w/o noises | 0.72 | 0.13 | 18.49 | 18.05 |
+
+Table 3: Ablation study on CelebAMask-HQ dataset. See supplementary materials for further details.
+
+mance where only a single style image is employed. We train one network for each of the four datasets and report the previously described metrics in Table 1 and 2. We choose SPADE [38] as the currently best state-of-the-art method and Pix2PixHD [44] as the second best method in the comparisons. Based on visual inspection of the results, we found that the FID score is most indicative of visual quality of the results and that a lower FID score often (but not always) corresponds to better visual results. Generally, we can observe that our SEAN framework clearly beats the state of the art on all datasets.
+
+Qualitative results. We show visual comparisons for the four datasets in Fig. 6. We can observe that the quality difference between our work and the state of the art can be significant. For example, we notice that SPADE and Pix2Pix cannot handle more extreme poses and older people. We conjecture that our network is more suitable to learn more of the variability in the data because of our improved style encoding. Since a visual inspection of the results is very important for generative modeling, we would like to refer the reader to the supplementary materials and the accompanying video for more results. Our per-region style encoding
+
+
+Label
+
+
+Ground Truth
+
+
+Pix2PixHD [44]
+
+
+SPADE [38]
+
+
+Ours
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6: Visual comparison of semantic image synthesis results on the CelebAMask-HQ, ADE20K, CityScapes and Facades dataset. We compare Pix2PixHD, SPADE, and our method. See supplementary materials for further details.
+
+
+
+
+
+
+
+
+
+
+Layout
+
+
+Style1
+
+
+
+
+Style2
+
+
+Figure 7: Style crossover. In addition to style interpolation (bottom row), we can perform crossover by selecting different styles per ResBlk. We show two transitions in the top two rows. The blue / orange bars on top of the images indicate which styles are used by the six ResBlks. We can observe that earlier layers are responsible for larger features and later layers mainly determine the color scheme.
+
+also enables new image editing operations: iterative image editing with per-region style control (See Figs. 1 and 2), style interpolation and style crossover (See Fig. 5 and 7).
+
+Variations of SEAN generator (Ablation studies). In Table 3, we compare many variations of our architecture with previous work on the CelebAMask-HQ dataset.
+
+According to our analysis, Pix2PixHD has a better style extraction subnetwork than SPADE (because the PSNR reconstruction values are better), but SPADE has a better generator subnetwork (because the FID scores are better). We therefore build another network that combines the style encoder from Pix2PixHD with the generator from SPADE and call this architecture SPADE++. We can observe that SPADE++ improves SPADE by a bit, but all our architecture variations still have a better FID and PSNR score.
+
+To evaluate our design choices, we report the performance of variations of our encoder. First we compare three variants to encode style: SEAN-level encoder, ResBlk-level encoder, and unified encoder. A fundamental design choice is how to split the style computation into two parts: a shared computation in the style encoder and a per layer computation in each SEAN block. The first two variants perform all style extraction per-layer, while the unified encoder is the architecture described in the main part of the paper. While the other two encoders have better reconstruction performance, they lead to lower FID scores. Based on visual inspection, we also confirmed that the unified encoder leads to better visual quality. This is especially noticeable for difficult inputs (see supplementary materials). Second, we evaluate if downsampling in the style encoder is a good idea and evaluate a style encoder with bottleneck (with downsampling) with another encoder that uses less downsampling. This test confirms that introducing a bottleneck in the style
+
+encoder is a good idea. Lastly, we test the effect of the learnable noise. We found the learnable noise can help both similarity (PSNR) and FID performance. More details of the alternative architectures are provided in supplementary materials.
+
+# 6. Conclusion
+
+We propose semantic region-adaptive normalization (SEAN), a simple but effective building block for Generative Adversarial Networks (GANs) conditioned on segmentation masks that describe the semantic regions in the desired output image. Our main idea is to extend SPADE, the currently best network, to control the style of each semantic region individually, e.g. we can specify one style reference image per semantic region. We introduce a new building block, SEAN normalization, that can extract style from a given style image for a semantic region and processes the style information to bring it in the form of spatially-varying normalization parameters. We evaluate SEAN on multiple datasets and report better quantitative metrics (e.g. FID, PSNR) than the current state of the art. While SEAN is designed to specify style for each region independently, we also achieve big improvements in the basic setting where only one style image is provided for all regions. In summary, SEAN is better suited to encode, transfer, and synthesize style than the best previous method in terms of reconstruction quality, variability, and visual quality. SEAN also pushes the frontier of interactive image editing. In future work, we plan to extend SEAN to processing meshes, point clouds, and textures on surfaces.
+
+Acknowledgement This work was supported by the KAUST Office of Sponsored Research (OSR) under Award No. OSR-CRG2018-3730.
+
+# References
+
+[1] Rameen Abdul, Yipeng Qin, and Peter 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
+[2] Yazeed Alharbi, Neil Smith, and Peter Wonka. Latent filter scaling for multimodal unsupervised image-to-image translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1458-1466, 2019. 2
+[3] Dragomir Anguelov, Carole Dulong, Daniel Filip, Christian Frueh, Stephane Lafon, Richard Lyon, Abhijit Ogale, Luc Vincent, and Josh Weaver. Google street view: Capturing the world at street level. Computer, 43(6):32-38, 2010. 5
+[4] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein gan. arXiv preprint arXiv:1701.07875, 2017. 3
+[5] 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 Transactions on Graphics (Proceedings of ACM SIGGRAPH), 38(4), 2019. 3
+[6] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis, 2018. 3
+[7] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation, 2018. 5
+[8] Qifeng Chen and Vladlen Koltun. Photographic image synthesis with cascaded refinement networks, 2017. 2
+[9] 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, 2017. 3
+[10] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2, 5
+[11] Ugur Demir and Gozde Unal. Patch-based image inpainting with generative adversarial networks. arXiv preprint arXiv:1803.07422, 2018. 3
+[12] Anna Frühstück, Ibraeem Alhashim, and Peter Wonka. Tilegan. ACM Transactions on Graphics, 38(4):1-11, Jul 2019. 3
+[13] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. A neural algorithm of artistic style. arXiv, Aug 2015. 3
+[14] Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks, 2014. 3
+[15] Shuyang Gu, Jianmin Bao, Hao Yang, Dong Chen, Fang Wen, and Lu Yuan. Mask-guided portrait editing with conditional gans. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 3
+[16] 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. 3
+[17] 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, 2017. 5, 6
+[18] Seunghoon Hong, Dingdong Yang, Jongwook Choi, and Honglak Lee. Inferring semantic layout for hierarchical text-to-image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7986-7994, 2018. 3
+[19] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization, 2017. 2
+[20] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017. 3
+[21] Xun Huang, Ming-Yu Liu, Serge Belongie, and Jan Kautz. Multimodal unsupervised image-to-image translation, 2018. 3
+[22] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A. Efros. Image-to-image translation with conditional adversarial networks, 2016. 2, 3
+[23] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution, 2016. 3, 4
+[24] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation, 2017. 2, 5
+[25] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks, 2018. 2, 3, 4
+[26] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2014. 5
+[27] Dmytro Kotovenko, Artsiom Sanakoyeu, Sabine Lang, and Bjorn Ommer. Content and style disentanglement for artistic style transfer. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 3
+[28] Cheng-Han Lee, Ziwei Liu, Lingyun Wu, and Ping Luo. Maskgan: Towards diverse and interactive facial image manipulation. arXiv preprint arXiv:1907.11922, 2019. 2, 3, 5
+[29] Chuan Li and Michael Wand. Precomputed real-time texture synthesis with markovian generative adversarial networks. In Computer Vision - ECCV 2016 - 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part III, 2016. 3
+[30] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks, 2017. 3
+[31] Ming-Yu Liu, Xun Huang, Arun Mallya, Tero Karras, Timo Aila, Jaakko Lehtinen, and Jan Kautz. Few-shot unsupervised image-to-image translation, 2019. 2, 3
+[32] 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. 2, 5
+[33] Xudong Mao, Qing Li, Haoran Xie, Raymond Y.K. Lau, Zhen Wang, and Stephen Paul Smolley. Least squares gen
+
+erative adversarial networks. 2017 IEEE International Conference on Computer Vision (ICCV), Oct 2017. 3
+[34] Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for gans do actually converge?, 2018. 3
+[35] Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014. 3
+[36] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks, 2018. 3, 5
+[37] Takeru Miyato and Masanori Koyama. cgans with projection discriminator, 2018. 3
+[38] 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, 2019. 2, 3, 4, 5, 6, 7
+[39] Xiaojuan Qi, Qifeng Chen, Jiaya Jia, and Vladlen Koltun. Semi-parametric image synthesis, 2018. 2
+[40] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. 3
+[41] 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. 3
+[42] Omry Sendik and Daniel Cohen-Or. Deep correlations for texture synthesis. ACM Transactions on Graphics (TOG), 36(5):161, 2017. 3
+[43] Ron Slossberg, Gil Shamai, and Ron Kimmel. High quality facial surface and texture synthesis via generative adversarial networks. In European Conference on Computer Vision, pages 498-513. Springer, 2018. 3
+[44] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2, 3, 4, 5, 6, 7
+[45] Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. Image quality assessment: From error visibility to structural similarity. IEEE TRANSACTIONS ON IMAGE PROCESSING, 13(4):600-612, 2004. 6
+[46] Tao Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and Xiaodong He. Attngan: Fine-grained text to image generation with attentional generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1316-1324, 2018. 3
+[47] Shuai Yang, Zhangyang Wang, Zhaowen Wang, Ning Xu, Jiaying Liu, and Zongming Guo. Controllable artistic text style transfer via shape-matching gan. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 3
+[48] 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. 3
+
+[49] Hang Zhang, Kristin Dana, Jianping Shi, Zhongyue Zhang, Xiaogang Wang, Ambrish Tyagi, and Amit Agrawal. Context encoding for semantic segmentation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 5
+[50] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2, 5
+[51] Yang Zhou, Zhen Zhu, Xiang Bai, Dani Lischinski, Daniel Cohen-Or, and Hui Huang. Non-stationary texture synthesis by adversarial expansion. arXiv preprint arXiv:1805.04487, 2018.3
+[52] Jun-Yan Zhu, Philipp Krahenbuhl, Eli Shechtman, and Alexei A. Efros. Generative visual manipulation on the natural image manifold. In Proceedings of European Conference on Computer Vision (ECCV), 2016. 3
+[53] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks, 2017. 3
+[54] Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darryll, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In Advances in Neural Information Processing Systems, 2017. 3
\ No newline at end of file
diff --git a/seanimagesynthesiswithsemanticregionadaptivenormalization/images.zip b/seanimagesynthesiswithsemanticregionadaptivenormalization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..76afa1ac15b75855f6bf20c6453231e43b4fa3e5
--- /dev/null
+++ b/seanimagesynthesiswithsemanticregionadaptivenormalization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37d70e79aa5c6035a8cdc2122d909d42ddfbc9af7ccda89d4d875255258c951a
+size 1095963
diff --git a/seanimagesynthesiswithsemanticregionadaptivenormalization/layout.json b/seanimagesynthesiswithsemanticregionadaptivenormalization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b022e8a550208f48e2d17d11b6dc5fad81a6d873
--- /dev/null
+++ b/seanimagesynthesiswithsemanticregionadaptivenormalization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9aa77d2691875540470397202ecef0b1f04d927cdeeb58fbe28f04826433d09d
+size 393808
diff --git a/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_content_list.json b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5250a97947fa0d1ff00f7032e28e390aa026b13e
--- /dev/null
+++ b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:685365eff7a84565faa3ed9a3161534208b27e7d8336aa65b4d6308136219177
+size 76798
diff --git a/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_model.json b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1b56b7bedf7f2780c5904fe7b99e4fe0ca775ef9
--- /dev/null
+++ b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ad32d971a5dcb4fecdf80327ca10892f97aa1d30b689918a9a87a7c1bcb7062f
+size 97785
diff --git a/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_origin.pdf b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..73f61c60f94c237095034a532a4b717a260d64f2
--- /dev/null
+++ b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/2e652d16-d73e-4491-9650-83347e0973c7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb7b87fd125e6669c59d444721fcb5b026cef93e928f9965031f236708b5531a
+size 681651
diff --git a/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/full.md b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e3e50f7762d42e99b03fe95ad2f0d88069da7a6b
--- /dev/null
+++ b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/full.md
@@ -0,0 +1,326 @@
+# SEED: Semantics Enhanced Encoder-Decoder Framework for Scene Text Recognition
+
+Zhi Qiao $^{1,2}$ Yu Zhou $^{1*}$ Dongbao Yang $^{1}$ Yucan Zhou $^{1}$ Weiping Wang $^{1}$
+
+$^{1}$ Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China
+
+$^{2}$ School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China
+
+{qiaozhi, zhouyu, yangdongbao, zhouyucan, wangweiping}@iie.ac.cn
+
+# Abstract
+
+Scene text recognition is a hot research topic in computer vision. Recently, many recognition methods based on the encoder-decoder framework have been proposed, and they can handle scene texts of perspective distortion and curve shape. Nevertheless, they still face lots of challenges like image blur, uneven illumination, and incomplete characters. We argue that most encoder-decoder methods are based on local visual features without explicit global semantic information. In this work, we propose a semantics enhanced encoder-decoder framework to robustly recognize low-quality scene texts. The semantic information is used both in the encoder module for supervision and in the decoder module for initializing. In particular, the state-of-the-art ASTER method is integrated into the proposed framework as an exemplar. Extensive experiments demonstrate that the proposed framework is more robust for low-quality text images, and achieves state-of-the-art results on several benchmark datasets. The source code will be available. $^{\dagger}$
+
+# 1. Introduction
+
+Scene text detection and recognition have attracted great attention in recent years owing to its various applications such as autonomous driving, road sign recognition, helping visual impaired and so on. Inspired by object detection [27, 40, 26, 58], scene text detection [24, 48, 60, 38, 6] achieved convincing performance. Despite the maturity of conventional text recognition in documents, scene text recognition is still a challenging task.
+
+With the development of deep learning, recent works [16, 15, 43, 46, 22, 44, 45, 54, 7, 8, 2, 23, 25, 57, 52, 32, 53] on scene text recognition have shown promising results. However, existing methods are still facing various problems when dealing with image blur, background interference, occlusion
+
+| Low Quality Images | Existing Encoder-Decoder Framework | Ours |
| Body | you | body |
| Theatre | theatro | theatre |
| Hd | hird | hard |
| HOUSE | hour | house |
| Melon! | reval | royal |
| promosc | promos | promod |
+
+Figure 1. The comparison of our SEED with the existing encoder-decoder framework such as [45]. The first column shows the examples of some challenging scene text including image blur, occlusion, and background interference. The second column is the results of the existing encoder-decoder framework and the third column gives the predictions of our approach. It shows that our proposed method is more robust to the low-quality images.
+
+and incomplete characters as shown in Fig. 1.
+
+Recently, inspired by neural machine translation of the natural language processing field, the encoder-decoder framework with attention mechanism has been widely used in scene text recognition. For regular text recognition [22, 7, 10], the encoder is based on CNN with RNN and another RNN with attention mechanism is used as the decoder to predict character at each time step. For irregular text recognition, the rectification based methods [44, 45, 28, 57, 32, 53], the multi-direction encoding method [8] and the 2D-attention based methods [54, 23] are proposed. Rectification based methods first rectify the irregular images, then the following pipeline is as those of regular recognition. The multi-direction encoding method uses CNN with two LSTMs to encode four different directions. The
+
+2D-attention based methods use 2D-attention mechanism to deal with irregular text which handles feature map from two dimensions directly.
+
+The existing methods define the text recognition task as a sequence character classification task locally, but ignore the global information of the whole word. As a result, they may struggle to handle low-quality images such as image blur, occlusion and incomplete characters. However, people can deal with these low-quality cases well by considering the global information of the text.
+
+To address this problem, we propose the Semantics Enhanced Encoder-Decoder framework (SEED), in which an additional semantic information is predicted acting as the global information. The semantic information is then used to initialize the decoder as illustrated in Fig. 2 (c). The semantic information has two main advantages, 1) it can be supervised by a word embedding in natural language processing field, 2) it can reduce the gap between the encoder focusing on the visual feature and the decoder focusing on the language information, since the text recognition can be regarded as a cross-modality task. Specifically, we get the word embedding from a pre-trained language model and compute a loss between the semantic information and the word embedding during training. By this way, the semantic information contains richer semantics, then the predicted semantic information is used to guide the decoding process. As a result, the decoding process can be limited in a semantic space, and the performance of recognition will be better. Some examples are shown in Fig. 1. As an example, in the fourth sub-image of Fig. 1, the last two characters "se" are recognized as "R" because of the occlusion, but it can be corrected in our framework with the global semantic information. In other words, the semantic information works as an "intuition", which is like a glimpse before people read a word carefully.
+
+Predicting semantic information from images directly has already been studied before. [12] predicts semantic concepts directly from a word image with a CNN and a weighted ranking loss. [51] tries to embed image features into a word embedding space for text spotting. [21] proposes to learn embedding of the word images and the text labels in an end-to-end way. These works validate that semantic information is helpful to the text related tasks.
+
+The main contributions are as follows:
+
+1. We propose SEED for scene text recognition, which predicts additional global semantic information to guide the decoding process, and the predicted semantic information is supervised by the word embedding from a pre-trained language model.
+2. We integrate the state-of-the-art ASTER method [45] to our framework as an exemplar.
+3. Extensive experiments on several public scene text benchmarks demonstrate the proposed framework can obtain
+
+state-of-the-art performance, especially on the low-quality datasets ICDAR2015 and SVT-Perspective, and it is particularly more robust for incomplete characters.
+
+The rest of this paper is organized as follows: Sec. 2 reviews the related works, Sec. 3 describes the proposed framework and the exemplar, Sec. 4 conducts profuse experiments and Sec. 5 concludes the work.
+
+# 2. Related Work
+
+# 2.1. Scene Text Recognition
+
+Existing scene text recognition methods can be divided into two categories, namely traditional methods and deep learning based methods.
+
+Traditional methods usually adopt a bottom-up approach which detects and classifies characters first and then groups them to a word or text line with heuristic rules, language models or lexicons. They design various hand-craft features then use these features to train a classifier such as SVM. For example, [34] uses a set of computationally expensive features like aspect ratio, hole area ratio, etc. [50, 49] use sliding windows with HOG descriptors, and [55, 3] use Hough voting with random forest classifier. Most traditional methods suffer from designing various hand-crafted features, and these features are limited for high-level representation.
+
+With the development of deep learning, most methods use CNN to perform a top-down approach which recognizes word or text line directly. [16] treats a word as a class, then converts the recognition problem into the image classification problem. Recently, most works treat the recognition problem as the sequence prediction problem. Existing methods can be almost divided into two techniques namely Connectionist Temporal Classification (CTC) and attention mechanism. For CTC-based decoding, [15, 43, 46] propose to use CNN and RNN to encode the sequence features and use CTC for character alignment. For attention-based decoding, [22] proposes recursive CNN to capture longer contextual dependencies and uses an attention-based decoder for sequence generation. [7] introduces the problem of attention drift, and proposes focusing attention for better performance.
+
+However, these works all assume that the text is horizontal, and can not handle the text of irregular shapes such as perspective distortion and curvature. To solve the problem of irregular text recognition, [44, 45] propose to rectify the text first based on Spatial Transformer Network [17] and then treat it as horizontal text. Furthermore, [57] gets better performance with iterative rectification and [53] rectifies with some geometric constraints. [32] rectifies text by predicting pixels offset. Instead of rectifying the whole text, [28] takes an approach of detecting and rectifying individual characters. In spite of rectification, [8] encodes the images in four directions and proposes a filter gate to fuse the features. [54] introduces an auxiliary dense character detection task and an
+
+alignment loss into the 2D attention based network. [23] proposes a tailored 2D attention based framework for irregular text recognition. Without encoder-decoder framework, [25] converts irregular text recognition into character segmentation with fully convolutional network [31]. [52] proposes a new loss function for more effective decoding.
+
+# 2.2. Semantics in Scene Text
+
+Many works try to bring semantics into the tasks of text recognition or text retrieval. [12] predicts semantic concepts directly from a word image with CNN. [36] proposes to generate contextualized lexicons for scene images with only visual information, and word-spotting task benefits a lot from the lexicons. [51, 21] learn to map the word images to a word embedding space and apply it into word spotting system. [18] tries to detect and recognize text in online images with the help of context information such as tags, comments, and titles. [42] introduces to use the language model and the semantic correlation between scene and text to re-rank the recognition results. [37] proposes to boost the performance of text spotting with the object information. [11] uses the text embedded in advertisement images to enhance the image classification. [59] proposes to use a pre-trained language model to correct the inaccurate recognition results with the text context in the image.
+
+As discussed before, state-of-the-art recognition methods do not utilize the semantics of the text well. The related semantics works do not integrate the semantics into the recognition pipeline explicitly and effectively.
+
+# 3. Method
+
+In this section we describe the proposed method in detail. The general framework is shown in Fig. 2 (c), which consists of 4 major components: 1) The encoder including CNN backbone and RNN for extracting visual features; 2) The semantic module for predicting semantic information from the visual features; 3) The pre-trained language model for supervising the semantic information predicted by semantic module; 4) The decoder including RNN with attention mechanism for generating the recognition results. First we review the encoder-decoder framework in Sec. 3.1, and introduce the pre-trained language model dually in Sec. 3.2. In Sec. 3.3, we describe our proposed method. Specifically, we present the general framework in Sec. 3.3.1. After that, we show the details of the proposed method which integrate state-of-the-art method ASTER [45] into proposed framework in Sec. 3.3.2. Finally, the loss function and the training strategies are presented in Sec. 3.4.
+
+# 3.1. Encoder-Decoder Framework
+
+The Encoder-decoder framework is widely used in neural machine translation, speech recognition, text recognition and so on. [47] first introduces the structure of the framework
+
+
+(a) Plain Encoder-Decoder Framework
+
+
+(b) Attention-Based Encoder-Decoder Framework
+
+
+(c) Our Encoder-Decoder Framework
+Figure 2. Comparison of three kinds of framework. "C" represents context information. The plain encoder-decoder framework gets incorrect results due to limited context representation. The attention-based encoder-decoder framework works better but still can not handle incomplete characters without global information. Our proposed encoder-decoder framework predicts the correct result with the help of global semantic information.
+
+and applies it into neural machine translation. For simplicity, we call this framework plain encoder-decoder framework. As visualized in Fig. 2 (a), the encoder extracts rich features and generates a context vector $C$ which contains global information of the inputs, then the decoder converts the context vector to target outputs. Source inputs and target outputs are different due to different tasks, as for text recognition, the inputs are images and target outputs are the texts in the images. The specific composition of encoder and decoder is not fixed, CNN and LSTM are all common choices.
+
+Despite great effectiveness, the plain encoder-decoder framework has an obvious drawback, where the context information has limited ability to represent the whole inputs. Inspired by human visual attention, researchers introduce the attention mechanism into the encoder-decoder framework, which is defined as the attention-based encoder-decoder framework. As shown in Fig. 2 (b), attention mechanism attempts to build shortcuts between the context and the whole inputs. The decoder can select the appropriate context at each decoding step which is capable of resolving long-range dependency problems, and the alignment between encoder
+
+and decoder is trained in a weakly supervised way.
+
+For scene text recognition, the decoder only depends on the limited local visual features for decoding in both the plain encoder-decoder framework and the attention-based encoder-decoder framework, so it is difficult to deal with some low-quality images without global information. In our proposed framework, the encoder learns explicit global semantic information and uses it as guidance for the decoder. We use FastText [4] to generate word embedding as the supervision of the semantic information in that it can solve the problem of "out of vocabulary".
+
+# 3.2. FastText Model
+
+We choose FastText as our pre-trained language model, which is based on skip-gram. Let $T = \{w_{i - l},\dots ,w_{i + l}\}$ be a sentence in a text corpus. $l$ indicates the length of the sentence and is a hyper-parameter. In skip-gram, a word $w_{i}$ is represented by a single embedding vector $v_{i}$ and then input to a simple feed-forward neural network, which aims to predict the context represented as $C_i = \{w_{i - l},\ldots ,w_{i - 1},w_{i + 1},\ldots ,w_{i + l}\}$ . With training the feedforward network, the embedding vector is simultaneously optimized, and the final embedding vector of a word is close to the words with similar semantics.
+
+FastText additionally embeds subwords and uses them to generate final embedding of the word $w_{i}$ . Given the hyperparameters $l_{min}$ and $l_{max}$ denoting a minimum and a maximum length of the subwords. For example, let $l_{min} = 2$ , $l_{max} = 4$ and the word be "where", the set of subwords is $\{wh, he, er, re, whe, her, ere, wher, here\}$ . The word representation is obtained by the combination of the embedding vectors of all subwords and the word itself. Accordingly, FastText model can handle the problem of "out of vocabulary". There are some novel words or incomplete words in the benchmark datasets such as ICDAR2015 and SVT-Perspective, so FastText is suitable for our framework.
+
+# 3.3. SEED
+
+# 3.3.1 General Framework
+
+Many scene text recognition methods are based on the encoder-decoder framework with attention. The decoder focuses on specific regions of visual features and outputs corresponding characters step by step. The framework works well in most scenarios except in low-quality images. In some low-quality images, texts may be blurred or occluded. To address these problems, utilizing global semantic information is an alternative. The proposed framework is shown in Fig. 2 (c). Different from the attention-based encoder-decoder framework, the proposed semantic module predicts extra semantic information. Further, we use the word embedding from a pre-trained language model as the supervision to improve the performance. After that, the semantic information is fed into the decoder along with the visual features.
+
+
+Figure 3. Details of our SE-ASTER. It consists of four main modules, rectification module, encoder, semantic module, and decoder. The semantic module predicts semantic information from the outputs of the encoder which is fed into decoder as the guidance.
+
+In this way, our method is robust to low-quality images and can correct recognition mistakes.
+
+# 3.3.2 Architecture of Semantics Enhanced ASTER
+
+We use ASTER [45] as an exemplar for our proposed framework, and we call the proposed method Semantics Enhanced ASTER (SE-ASTER). The SE-ASTER is illustrated in Fig. 3. There are four modules: the rectification module is to rectify the irregular text images, the encoder is to extract rich visual features, the semantic module is to predict semantic information from the visual features, and the decoder transcribes the final recognition results.
+
+First, the image is input to the rectification module to predict control points with a shallow CNN, then Thin-plate Splines [5] is applied to the image. In this way, the distorted text image will be rectified. This module is the same as [45], so we don't describe it in detail. Thereafter, the rectified image will be input to the encoder, and rich visual features can be generated. Specifically, the encoder consists of a 45-layer ResNet based CNN same as [45] and a 2-layer Bidirectional LSTM [13] (BiLSTM) network with 256 hidden units. The output of the encoder is a feature sequence $h = (h_{1},\dots,h_{L})$ with the shape of $L\times C$ , where $L$ is the width of the last feature map in CNN, and $C$ is the depth.
+
+The feature sequence $h$ has two functions, one is to predict the semantic information by the semantic module and the other is as the input of the decoder. For predicting semantic information, we first flatten the feature sequence into a one-dimensional feature vector $I$ with dimension of $K$ , where $K = L \times C$ . The semantic information $S$ is predicted
+
+with two linear functions as following:
+
+$$
+S = W _ {2} \sigma \left(W _ {1} I + b _ {1}\right) + b _ {2}. \tag {1}
+$$
+
+where $W_{1}, W_{2}, b_{1}, b_{2}$ are trainable weights in the linear function, $\sigma$ is a ReLU activation function. We also evaluate predicting the semantic information with the final hidden state $h_{L}$ of BiLSTM in the encoder, and it gets worse performance. It may originate from that predicting semantic information needs larger feature contexts and it is more proper to use the BiLSTM outputs. The semantic information will be supervised by the word embedding provided by the pre-trained FastText model. The loss function used here will be introduced in Sec. 3.4.
+
+The decoder adopts the Bahdanau-Attention mechanism [1] which consists of a single layer attentional GRU [9] with 512 hidden units and 512 attention units. Different from [45] we use a single direction decoder here. In particular, the semantic information $S$ is used to initialize the states of GRU after a linear function for transforming the dimension. Instead of using zero-state initializing, the decoding process will be guided with global semantics, so the decoder uses not only local visual information but also global semantic information to generate more accurate results.
+
+# 3.4. Loss Function and Training Strategy
+
+We add supervision at both the semantic module and the decoder module. SE-ASTER is trained end-to-end. The loss function is as follows:
+
+$$
+L = L _ {r e c} + \lambda L _ {s e m}. \tag {2}
+$$
+
+where $L_{rec}$ is the standard cross-entropy loss of the predicted probabilities with respect to the ground-truth, and $L_{sem}$ is the cosine embedding loss of the predicted semantic information with respect to the word embedding of the transcription label from the pre-trained FastText model. $\lambda$ is hyper-parameters to balance the loss, and we set it to 1 here. Note that we just use a simple cosine based loss function here instead of contrastive loss for faster training speed.
+
+$$
+L _ {s e m} = 1 - \cos (S, e m). \tag {3}
+$$
+
+where $S$ is the predicted semantic information and $em$ is the word embedding from pre-trained FastText model.
+
+There are two training strategies. The first is initializing the state of the decoder with the word embedding from the pre-trained FastText model rather than the predicted semantic information. Another is to use the predicted semantic information directly. We evaluate these two strategies, and their performances are similar. We use the second training strategy which trains the model in a pure end-to-end way.
+
+# 4. Experiments
+
+In this section, we conduct extensive experiments to verify the effectiveness of our proposed method. First, we introduce the datasets used for training and evaluation, and the implementation details are described. Next, we perform ablation studies to analyze the performance of the different strategies. Finally, our method is compared with state-of-the-art methods on several benchmarks.
+
+# 4.1. Datasets
+
+IIIT5K-Words (IIIT5K) [33] contains 5000 images, most of which are regular samples. There are 3000 images for testing. Each sample in test set is associated with a 50-word lexicon and a 1k-word lexicon.
+
+Street View Text (SVT) [49] consists of 647 cropped word images from 249 street view images. Most of word images are horizontal, but some of them are severely corrupted by noise, blur, and low resolution. A 50-word lexicon is provided for each image.
+
+SVT-Perspective (SVTP) [39] contains 645 word images for evaluation. most images suffer in heavy perspective distortions which are difficult for recognition. Each image is associated with a 50-word lexicon.
+
+ICDAR2013 (IC13) [20] consists of 1015 images for testing, most of which are regular text images. Some of them are under uneven illumination.
+
+ICDAR2015 (IC15) [19] was collected without careful capture. Most of images are with various distortions and blurry which are challenging for most existing methods.
+
+CUTE80 (CUTE) [41] consists of 288 word images only for evaluation. Most of them are curved but with high resolution, no lexicon is provided.
+
+Synth90K [16] consists of 9 million synthetic images generated from a lexicon of 90K words. It has been widely used in text recognition task. We use it as one of our training datasets. It contains words from the testing set of the IC13 and SVT.
+
+SynthText [14] is another synthetic dataset for text detection task. We crop the words with ground-truth word bounding boxes and use for training our model.
+
+# 4.2. Implementation Details
+
+The proposed SE-ASTER is implemented in PyTorch [35]. The pre-trained FastText model is the officially available model1 trained on Common Crawl2 and Wikipedia3. In total 97 symbols are recognized, including digits, uppercase and lower-case letters, 32 punctuation marks, end-of-sequence symbol, padding symbol, and unknown symbol.
+
+1 https://fasttext.cc/docs/en/crawl-vectors.html
+$^{2}$ https://commoncrawl.org/
+3https://www.wikipedia.org/
+
+ | IC13-sr | IC15-sr |
| Images Methods | HERE | ROOM | FIRST | LOOKER | SODO | TECHER | finst | MERR |
| ASTER | ier | for | irst | cooker | pon | echars | mest | xerr |
| ASTER+WES | herb | room | its | ooker | spoon | rechery | inest | verry |
| ASTER+INIT | here | look | first | looker | pon | keekers | inest | merri |
| SE-ASTER | here | room | first | cookery | spoon | kechers | finest | merry |
+
+Table 1. Visualization of the recognition results on the two shrink datasets. Red: wrong results; Green: correct results.
+
+| Methods | WES | INIT | IC13 | SVTP | IC15 |
| ASTER [45] | | | 91.8 | 78.5 | 76.1 |
| ASTER-r | | | 90.9 | 79.1 | 78.4 |
| ASTER | ✓ | | 90.8 | 79.2 | 77.0 |
| ASTER | | ✓ | 91.1 | 78.1 | 76.1 |
| ASTER | ✓ | ✓ | 92.8 | 81.4 | 80.0 |
+
+The size of input images are resized to $64 \times 256$ without keeping ratio, and we adopt the ADADELTA [56] to minimize the objective function. Without any pre-training and data augmentation, our model is trained on SynthText and Synth90K for 6 epochs with the batch size of 512, the learning rate is set to 1.0 and is decayed to 0.1 and 0.01 at the 4th epoch and the 5th epoch. The model is trained on one NVIDIA M40 graphics card.
+
+For evaluation, we resize the input images to the same size as for training. We use beam search for GRU decoding, which keeps the $k$ candidates with the highest accumulative scores, where $k$ is set to 5 in all our experiments.
+
+# 4.3. Ablation Study
+
+There are two steps about the semantic module, one is the word embedding supervision and the other is initializing decoder with the predicted semantic information. We evaluate these two steps separately by using the Synth90K and SynthText as training data consistently. The results are shown in Tab. 2. The model supervised with word embedding only does not improve the performance compared with the baselines. Using predicted holistic features from the encoder to initialize decoder improves the performance by almost $0.2\%$ in ICDAR13, but gets worse performance on SVTP and IC15. It shows that learning global information in an implicit weakly supervised way still struggles with low-quality images. A combination of these two steps gets the best performance. The improvements of $1.9\%$ , $2.3\%$ and $1.6\%$ are obtained on IC13, SVTP and IC15 respectively. Compared with ASTER without word embedding supervision, it improves the accuracy by $1.7\%$ on IC13, $3.3\%$ on
+
+SVTP and $3.9\%$ on IC15, which verifies that the supervision with word embedding is quite important.
+
+# 4.4. Performance with Inaccurate Bounding Boxes
+
+Scene text recognition in real applications is always combined with the detection branch to achieve an end-to-end pipeline. However, the detection branch may not output ideal bounding boxes. If text recognition is robust to inaccurate detection results, the overall end-to-end performance can be more satisfactory. Limited by the receptive field of CNNs, the most frequent inaccurate detection is incomplete characters. We conduct experiments to show our method is robust with this situation. Here we also use SE-ASTER as an exemplar. Note that the SE-ASTER is only trained on Synth90K and SynthText without any data augmentation such as random cropping. We first generate two shrink datasets IC13-sr and IC15-sr based on IC13 and IC15 respectively as follows.
+
+We randomly remove the original word images up to $15\%$ in the left, right, top and bottom directions simultaneously. All of the cropped images still have an intersection over union with the original ones larger or equal than $(1 - 0.15 \times 2)^{2} = 0.49$ . According to the evaluation protocol of detection, these cropped images are all positive localizations because the IoU is above the standard threshold of 0.5. Some examples are shown in Tab. 1.
+
+Table 2. Performance comparison between different strategies. WES represents word embedding supervision. INIT represents initializing the state of the GRU in the decoder. ASTER-r represents the model re-trained by ourselves.
+
+| Methods | IC13 IC13-sr | GAP | IC15 IC15-sr | GAP |
| ASTER | 90.9 | -19.5 | 78.4 | -12.8 |
| 71.4 | 65.6 |
| ASTER+WES | 90.8 | -18.9 | 77.0 | -14.2 |
| 71.9 | 62.8 |
| ASTER+INIT | 91.1 | -16.5 | 76.1 | -13.0 |
| 74.6 | 63.1 |
| SE-ASTER | 92.8 | -15.4 | 80.0 | -10.0 |
| 77.4 | 70.0 |
+
+Table 3. Results on the shrink datasets, GAP indicates the decline between two datasets.
+
+The quantitative results are illustrated in Tab. 3. The performances of the ASTER baseline drop $19.5\%$ and $12.8\%$ on the IC13-sr dataset and the IC15-sr dataset respectively, which reveal that the ASTER baseline suffers a lot from the incomplete characters. However, with the supervision of
+
+
+Figure 4. Examples of low-quality images and recognition results in four methods. Red characters are the wrong results, and green ones are the correct.
+
+word embedding, the model still struggles with the shrink images. Using the holistic information from encoder as the guidance of the decoder gets better results with $16.5\%$ and $13.0\%$ decline. SE-ASTER gets the best results, which shows that our model is more robust with incomplete characters. Some visualizing examples are illustrated in Tab. 1.
+
+# 4.5. Generalization of Proposed Framework
+
+To verify the generalization of SEED, we integrate another state-of-the-art recognition method SAR [23]. SAR is a 2D-attention based recognition method without rectification on input images, and it already adopts an LSTM to generate a holistic feature. However as we mentioned before, the holistic feature may be not effective in a weakly supervised training strategy, so we make some modifications and call our new model Semantics Enhanced SAR (SE-SAR).
+
+In SE-SAR, we replace the max-pooling along the vertical axis with a shallow CNN. The output of the shallow CNN is a feature map with the height of 1, then the feature map is fed into a 2-layer LSTM to extract context information. Two linear functions are applied to the output of LSTM to predict the semantic information. Except for the 2D-attention decoder in SAR, we apply another decoder to the output of the LSTM and supervise with the transcription labels. In this way, the output of LSTM contains richer information and helps predict semantic information. Finally, the semantic information is used to initialize the LSTM of the
+
+decoder. The model is trained on Synth90K and SynthText for 2 epochs with the batch size of 128.
+
+
+
+
+Figure 5. Visualization of cosine similarity of the predicted semantic information from the image w.r.t the word embedding of the words from lexicons. Larger value means more similar semantics.
+
+| Methods | IC13 | IC15 | SVT | SVTP |
| SAR [23] | 91.0 | 69.2 | 84.5 | 76.4 |
| SE-SAR | 90.9 | 73.4 | 85.8 | 78.7 |
+
+Table 4. Recognition performance on SAR and SE-SAR.
+
+We conduct some experiments on IC13, IC15, SVT, and SVTP to show the effectiveness of the SE-SAR. The results are demonstrated in Tab. 4. Compared with the baseline, our SE-SAR improves $4.2\%$ , $1.3\%$ and $2.3\%$ on IC15, SVT, and SVTP respectively. SE-SAR is only comparable with SAR in that low-quality images are scarce in IC13.
+
+# 4.6. Qualitative Results and Visualization
+
+We visualize low-quality images including blur or occlusion. Some examples are shown in Fig. 4. As can be seen, our proposed methods SE-ASTER and SE-SAR are robust with low-quality images. We explain that semantic information will provide an effective global feature to decoder, which is robust to the interference in the images.
+
+We also perform experiments on IIIT5K to visualize the validity of the predicted semantic information. As illustrated in Fig. 5, we compute the cosine similarity between the predicted semantic information and the word embedding of each word from lexicons (50 words for each image). In
+
+| Methods | IIIT5K | SVT | IC13 | IC15 | SVTP | CUTE |
| Shi et al. [43] | 81.2 | 82.7 | 89.6 | - | - | - |
| Shi et al. [44] | 81.9 | 81.9 | 88.6 | - | 71.8 | 59.2 |
| Lee et al. [22] | 78.4 | 80.7 | 90.0 | - | - | - |
| Yang et al. [54]* | - | - | - | - | 75.8 | 69.3 |
| Cheng et al. [7]* | 87.4 | 85.9 | 93.3 | 70.6 | - | - |
| Cheng et al. [8] | 87.0 | 82.8 | - | 68.2 | 73.0 | 76.8 |
| Liu et al. [28]* | 92.0 | 85.5 | 91.1 | 74.2 | 78.9 | - |
| Bai et al. [2]* | 88.3 | 87.5 | 94.4 | 73.9 | - | - |
| Liu et al. [30]* | 87.0 | - | 92.9 | - | - | - |
| Liu et al. [29] | 89.4 | 87.1 | 94.0 | - | 73.9 | 62.5 |
| Liao et al. [25]* | 91.9 | 86.4 | 91.5 | - | - | 79.9 |
| Zhan et al. [57] | 93.3 | 90.2 | 91.3 | 76.9 | 79.6 | 83.3 |
| Xie et al. [52] | - | - | - | 68.9 | 70.1 | 82.6 |
| Li et al. [23] | 91.5 | 84.5 | 91.0 | 69.2 | 76.4 | 83.3 |
| Luo et al. [32] | 91.2 | 88.3 | 92.4 | 74.7 | 76.1 | 77.4 |
| Yang et al. [53]* | 94.4 | 88.9 | 93.9 | 78.7 | 80.8 | 87.5 |
| ASTER [45] | 93.4 | 89.5 | 91.8 | 76.1 | 78.5 | 79.5 |
| ASTER baseline reproduced | 93.5 | 87.2 | 90.9 | 78.4 | 79.1 | 82.3 |
| SE-ASTER (Ours) | 93.8 | 89.6 | 92.8 | 80.0 | 81.4 | 83.6 |
+
+Table 5. Lexicon-free performance on public benchmarks. Bold represents the best performance. Underline represents the second best result. * indicates using both word-level and character-level annotations to train model.
+
+Fig. 5 (a), the predicted semantic information is very related to the words which have similar semantics. For example, "home", "house", and "lodge" all have the meaning of residence. "Tom", "Paul" and "Charles" are all common names. The second row illustrates the robustness of the predicted semantic information. For example, "house" and "horse" have a similar spelling and are of the edit distance of 1, but their semantics are quite different as shown in Fig. 5 (b). With the help of global semantic information, the model can distinguish them easily.
+
+# 4.7. Comparison with State-of-the-art
+
+We also compare our methods with previous state-of-the-art methods on several benchmarks. The results are shown in Tab. 5. Compared with other methods, we achieve 2 best results and 3 second best results out of 6 in the lexicon-free scenario with only word-level annotations.
+
+Our proposed method works effectively on some low-quality datasets such as IC15 and SVTP compared with other methods. Especially, SE-ASTER improve $3.9\%$ on IC15 (from $76.1\%$ to $80.0\%$ ) and $2.9\%$ on SVTP (from $78.5\%$ to $81.4\%$ ) compared with ASTER [45]. It also outperforms state-of-the-art method ScRN [53] $0.6\%$ on SVTP and $1.3\%$ on IC15, although our method is based on a weaker backbone and without character-level annotations.
+
+SE-ASTER also gets superior or comparable results on several high-quality datasets. Compared with ASTER [45] we get $0.4\%$ and $4.1\%$ improvements on IIIT5K and CUTE respectively. On SVT and IC13, our method gets accuracies of $89.6\%$ and $92.8\%$ , which are slightly worse than
+
+ESIR [57] and [2] by $0.6\%$ and $1.6\%$ . Note that our framework is very flexible and can be integrated with most existing methods, and we believe that if we replace a stronger baseline model better results can be achieved.
+
+# 5. Conclusion and Future Works
+
+In this work, we propose the semantics enhanced encoder-decoder framework for scene text recognition. Our framework predicts an additional global semantic information supervised by the word embedding from a pre-trained language model. Using the predicted semantic information as the decoder initialization, the recognition accuracy can be improved especially for low-quality images. By integrating the state-of-the-art method ASTER into our framework, we can achieve superior results on several standard benchmark datasets. In the future, we will extend our framework to an end-to-end text spotting system. In this way, more semantic information can be utilized.
+
+# Acknowledgment
+
+This work is supported by the National Key R&D Program of China (2017YFB1002400) and the Strategic Priority Research Program of Chinese Academy of Sciences (XDC02000000). In addition, we sincerely thank Mingkun Yang for his help.
+
+# References
+
+[1] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and
+
+translate. CoRR, abs/1409.0473, 2014.
+[2] Fan Bai, Zhanzhan Cheng, Yi Niu, Shiliang Pu, and Shuigeng Zhou. Edit probability for scene text recognition. In CVPR, pages 1508-1516, 2018.
+[3] Xiang Bai, Cong Yao, and Wenyu Liu. Strokes: A learned multi-scale mid-level representation for scene text recognition. TIP, 25(6):2789-2802, 2016.
+[4] Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching word vectors with subword information. TACL, pages 135-146, 2017.
+[5] Fred L. Bookstein. Principal warps: Thin-plate splines and the decomposition of deformations. TPAMI, 11(6):567-585, 1989.
+[6] Yudi Chen, Yu Zhou, Dongbao Yang, and Weiping Wang. Constrained relation network for character detection in scene images. In PRICAI, pages 137-149, 2019.
+[7] Zhanzhan Cheng, Fan Bai, Yunlu Xu, Gang Zheng, Shiliang Pu, and Shuigeng Zhou. Focusing attention: Towards accurate text recognition in natural images. In ICCV, pages 5076-5084, 2017.
+[8] Zhanzhan Cheng, Yangliu Xu, Fan Bai, Yi Niu, Shiliang Pu, and Shuigeng Zhou. AON: Towards arbitrarily-oriented text recognition. In CVPR, pages 5571-5579, 2018.
+[9] Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In EMNLP, pages 1724-1734, 2014.
+[10] Suman K Ghosh, Ernest Valveny, and Andrew D Bagdanov. Visual attention models for scene text recognition. In ICDAR, pages 943-948, 2017.
+[11] Suman K Ghosh, Ernest Valveny, et al. Don't only feel read: Using scene text to understand advertisements. CoRR, abs/1806.08279, 2018.
+[12] Albert Gordo, Jon Almazán, Naila Murray, and Florent Perronin. LEWIS: Latent embeddings for word images and their semantics. In ICCV, pages 1242-1250, 2015.
+[13] Alex Graves, Marcus Liwicki, Santiago Fernández, Roman Bertolami, Horst Bunke, and Jürgen Schmidhuber. A novel connectionist system for unconstrained handwriting recognition. TPAMI, 31(5):855-868, 2008.
+[14] Ankush Gupta, Andrea Vedaldi, and Andrew Zisserman. Synthetic data for text localisation in natural images. In CVPR, pages 2315-2324, 2016.
+[15] Pan He, Weilin Huang, Yu Qiao, Change Loy Chen, and Xiaou Tang. Reading scene text in deep convolutional sequences. In AAAI, pages 3501-3508, 2016.
+[16] Max Jaderberg, Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Reading text in the wild with convolutional neural networks. *IJCV*, 116(1):1-20, 2016.
+[17] Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NeurlPS, pages 2017-2025, 2015.
+[18] Chulmoo Kang, Gunhee Kim, and Suk I Yoo. Detection and recognition of text embedded in online images via neural context models. In AAAI, pages 4103-4110, 2017.
+
+[19] Dimosthenis Karatzas, Lluis Gomez-Bigorda, Anguelos Nicolaou, Suman Ghosh, Andrew Bagdanov, Masakazu Iwamura, Jiri Matas, Lukas Neumann, Vijay Ramaseshan Chandrasekhar, Shijian Lu, et al. ICDAR 2015 competition on robust reading. In ICDAR, pages 1156-1160, 2015.
+[20] Dimosthenis Karatzas, Faisal Shafait, Seiichi Uchida, Masakazu Iwamura, Lluis Gomez i Bigorda, Sergi Robles Mestre, Joan Mas, David Fernandez Mota, Jon Almazan Almazan, and Lluis Pere De Las Heras. ICDAR 2013 robust reading competition. In ICDAR, pages 1484-1493, 2013.
+[21] Praveen Krishnan, Kartik Dutta, and CV Jawahar. Word spotting and recognition using deep embedding. In DAS, pages 1-6, 2018.
+[22] Chen-Yu Lee and Simon Osindero. Recursive recurrent nets with attention modeling forOCR in the wild. In CVPR, pages 2231-2239, 2016.
+[23] Hui Li, Peng Wang, Chunhua Shen, and Guyu Zhang. Show, attend and read: A simple and strong baseline for irregular text recognition. In AAAI, pages 8610-8617, 2019.
+[24] Minghui Liao, Baoguang Shi, Xiang Bai, Xinggang Wang, and Wenyu Liu. TextBoxes: A fast text detector with a single deep neural network. In AAAI, pages 4161-4167, 2017.
+[25] Minghui Liao, Jian Zhang, Zhaoyi Wan, Fengming Xie, Jiajun Liang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Scene text recognition from two-dimensional perspective. In AAAI, pages 8714-8721, 2019.
+[26] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In ICCV, pages 2980-2988, 2017.
+[27] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. SSD: Single shot multibox detector. In ECCV, pages 21-37, 2016.
+[28] Wei Liu, Chaofeng Chen, and Kwan-Yee K Wong. Char-Net: A character-aware neural network for distorted scene text recognition. In AAAI, pages 7154–7162, 2018.
+[29] Yang Liu, Zhaowen Wang, Hailin Jin, and Ian Wassell. Synthetically supervised feature learning for scene text recognition. In ECCV, pages 435-451, 2018.
+[30] Zichuan Liu, Yixing Li, Fengbo Ren, Wang Ling Goh, and Hao Yu. SqueezedText: A real-time scene text recognition by binary convolutional encoder-decoder network. In AAAI, pages 7194-7201, 2018.
+[31] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, pages 3431-3440, 2015.
+[32] Canjie Luo, Lianwen Jin, and Zenghui Sun. MORAN: A multi-object rectified attention network for scene text recognition. PR, 90:109-118, 2019.
+[33] Anand Mishra, Karteek Alahari, and CV Jawahar. Scene text recognition using higher order language priors. In BMVC, pages 1-11, 2012.
+[34] Lukáš Neumann and Jiří Matas. Real-time scene text localization and recognition. In CVPR, pages 3538-3545, 2012.
+[35] Adam Paszke, Sam Gross, Francisco Massa, et al. Pytorch: An imperative style, high-performance deep learning library. In NeurlPS, pages 8026-8037. 2019.
+
+[36] Yash Patel, Lluis Gomez, Marçal Rusinol, and Dimosthenis Karatzas. Dynamic lexicon generation for natural scene images. In ECCV, pages 395-410, 2016.
+[37] Shitala Prasad and Adams Wai Kin Kong. Using object information for spotting text. In ECCV, pages 540-557, 2018.
+[38] Xugong Qin, Yu Zhou, Dongbao Yang, and Weiping Wang. Curved text detection in natural scene images with semi-and weakly-supervised learning. In ICDAR, pages 559-564, 2019.
+[39] Trung Quy Phan, Palaiahnakote Shivakumara, Shangxuan Tian, and Chew Lim Tan. Recognizing text with perspective distortion in natural scenes. In ICCV, pages 569-576, 2013.
+[40] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurlPS, pages 91-99, 2015.
+[41] Anhar Risnumawan, Palaiahankote Shivakumara, Chee Seng Chan, and Chew Lim Tan. A robust arbitrary text detection system for natural scene images. ESA, 41(18):8027-8048, 2014.
+[42] Ahmed Sabir, Francesc Moreno-Noguer, and Lluis Padro. Visual re-ranking with natural language understanding for text spotting. In ACCV, pages 68-82, 2018.
+[43] 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. TPAMI, 39(11):2298-2304, 2017.
+[44] Baoguang Shi, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Robust scene text recognition with automatic rectification. In CVPR, pages 4168-4176, 2016.
+[45] Baoguang Shi, Mingkun Yang, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. ASTER: An attentional scene text recognizer with flexible rectification. TPAMI, 41(9):2035-2048, 2018.
+[46] Bolan Su and Shijian Lu. Accurate recognition of words in scenes without character segmentation using recurrent neural network. PR, 63:397-405, 2017.
+[47] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In NeurlPS, pages 3104-3112, 2014.
+[48] Zhi Tian, Weilin Huang, Tong He, Pan He, and Yu Qiao. Detecting text in natural image with connectionist text proposal network. In ECCV, pages 56-72, 2016.
+[49] Kai Wang, Boris Babenko, and Serge Belongie. End-to-end scene text recognition. In ICCV, pages 1457-1464, 2011.
+[50] Kai Wang and Serge Belongie. Word spotting in the wild. In ECCV, pages 591-604, 2010.
+[51] Tomas Wilkinson and Anders Brun. Semantic and verbatim word spotting using deep neural networks. In ICFHR, pages 307-312, 2016.
+[52] Zecheng Xie, Yaoxiong Huang, Yuanzhi Zhu, Lianwen Jin, Yuliang Liu, and Lele Xie. Aggregation cross-entropy for sequence recognition. In CVPR, pages 6538–6547, 2019.
+[53] Mingkun Yang, Yushuo Guan, Minghui Liao, Xin He, Kaigui Bian, Song Bai, Cong Yao, and Xiang Bai. Symmetry-constrained rectification network for scene text recognition. In ICCV, pages 9147-9156, 2019.
+[54] Xiao Yang, Dafang He, Zihan Zhou, Daniel Kifer, and C Lee Giles. Learning to read irregular text with attention mechanisms. In *IJCAI*, pages 3280–3286, 2017.
+
+[55] Cong Yao, Xiang Bai, Baoguang Shi, and Wenyu Liu. Strokelets: A learned multi-scale representation for scene text recognition. In CVPR, pages 4042-4049, 2014.
+[56] Matthew D Zeiler. Adadelta: An adaptive learning rate method. CoRR preprint abs:1212.5701, 2012.
+[57] Fangneng Zhan and Shijian Lu. ESIR: End-to-end scene text recognition via iterative image rectification. In CVPR, pages 2059–2068, 2019.
+[58] Xiaosong Zhang, Fang Wan, Chang Liu, Rongrong Ji, and Qixiang Ye. FreeAnchor: Learning to match anchors for visual object detection. In NeurlPS, pages 147-155, 2019.
+[59] Yi Zheng, Qitong Wang, and Margrit Betke. Deep neural network for semantic-based text recognition in images. CoRR, abs/1908.01403, 2019.
+[60] Xinyu Zhou, Cong Yao, He Wen, Yuzhi Wang, Shuchang Zhou, Weiran He, and Jiajun Liang. EAST: An efficient and accurate scene text detector. In CVPR, pages 5551-5560, 2017.
\ No newline at end of file
diff --git a/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/images.zip b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..115689c2d1ca15a1620126d8505519baa49a1aa6
--- /dev/null
+++ b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e72cddb32c78356cfbf9905208eb68e3293d9f60ae17b6b2301357b4b5dc2169
+size 358273
diff --git a/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/layout.json b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..62cd7bde847f4a5c65a4da57ce898c1b8e44cb54
--- /dev/null
+++ b/seedsemanticsenhancedencoderdecoderframeworkforscenetextrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6961c25b786b18b75bf1f9525e2227c9d9b32878cd1d79ac7d03016a4cb36b1
+size 378572
diff --git a/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_content_list.json b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f8f8956a8429141888ac81e03275351cebeebfba
--- /dev/null
+++ b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d9f6a2bf5bc4ea76715d7d330cee38b88b4b7b1358f77f6ae1488984274995d1
+size 65805
diff --git a/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_model.json b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0fe6d54af84864366b0c8da642eec5cd196fd719
--- /dev/null
+++ b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:19a17e21fda5e0d9ef9118c28d9aba1fa12321415bcf3117eb840ddd11004ea3
+size 82260
diff --git a/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_origin.pdf b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f256028c2a98bed2d5544decbefff6c6dbf04e6b
--- /dev/null
+++ b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/fa4ca565-0c47-4942-a604-31917de55f66_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8892b55fbb65e8e79d6ea7746e13d01c6e8191b4d6973aee5228f5eeaa67fa1e
+size 7138713
diff --git a/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/full.md b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..6bca9654cf9abd096adb1b008d032c4c3aa52c10
--- /dev/null
+++ b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/full.md
@@ -0,0 +1,257 @@
+# SER-FIQ: Unsupervised Estimation of Face Image Quality Based on Stochastic Embedding Robustness
+
+Philipp Terhörst $^{12}$ , Jan Niklas Kolf $^{2}$ , Naser Damer $^{12}$ , Florian Kirchbuchner $^{12}$ , Arjan Kuijper $^{12}$
+
+1Fraunhofer Institute for Computer Graphics Research IGD, Darmstadt, Germany
+
+$^{2}$ Technical University of Darmstadt, Darmstadt, Germany
+
+Email: {philipp.terhoerst, naser.damer, florian.kirchbuchner, arjan.kuijper} @igd.fraunhofer.de
+
+
+Figure 1: Visualization of the proposed unsupervised face quality assessment concept. We propose using the robustness of an image representation as a quality clue. Our approach defines this robustness based on the embedding variations of random subnetworks of a given face recognition model. An image that produces small variations in the stochastic embeddings (bottom left), demonstrates high robustness (red areas on the right) and thus, high image quality. Contrary, an image that produces high variations in the stochastic embeddings (top left) coming from random subnetworks, indicates a low robustness (blue areas on the right). Therefore, it is considered as low quality.
+
+# Abstract
+
+Face image quality is an important factor to enable high-performance face recognition systems. Face quality assessment aims at estimating the suitability of a face image for recognition. Previous work proposed supervised solutions that require artificially or human labelled quality values. However, both labelling mechanisms are error-prone as they do not rely on a clear definition of quality and may not know the best characteristics for the utilized face recognition system. Avoiding the use of inaccurate quality labels, we proposed a novel concept to measure face quality based on an arbitrary face recognition model. By determining the embedding variations generated from random subnetworks of a face model, the robustness of a sample representation and thus, its quality is estimated. The experiments are conducted in a cross-database evaluation setting on three publicly available databases. We compare our proposed solution on two face embeddings against six state-of-the-art ap
+
+proaches from academia and industry. The results show that our unsupervised solution outperforms all other approaches in the majority of the investigated scenarios. In contrast to previous works, the proposed solution shows a stable performance over all scenarios. Utilizing the deployed face recognition model for our face quality assessment methodology avoids the training phase completely and further outperforms all baseline approaches by a large margin. Our solution can be easily integrated into current face recognition systems and can be modified to other tasks beyond face recognition.
+
+# 1. INTRODUCTION
+
+Face images are one of the most utilized biometric modalities [41] due to its high level of public acceptance and since it does not require an active user-participation [39]. Under controlled conditions, current face recognition systems are able to achieve highly accurate performances
+
+[14]. However, some of the most relevant face recognition systems work under unconstrained environments and thus, have to deal with large variabilities that leads to significant degradation of the recognition accuracies [14]. These variabilities include image acquisition conditions (such as illumination, background, blurriness, and low resolution), factors of the face (such as pose, occlusions and expressions) [23, 22] and biases of the deployed face recognition system. Since these variabilities lead to significantly degraded recognition performances, the ability to deal with these factors needs to be addressed [19].
+
+The performance of biometric recognition is driven by the quality of its samples [4]. Biometric sample quality is defined as the utility of a sample for the purpose of recognition [19, 31, 13, 4]. The automatic prediction of face quality (prior to matching) is beneficial for many applications. It leads to a more robust enrolment for face recognition systems. In negative identification systems, it prevents an attacker from getting access to a system by providing a low quality face image. Furthermore, it enables quality-based fusion approaches when multiple images [6] (e.g. from surveillance videos) or multiple biometric modalities are given.
+
+Current solutions for face quality assessment require training data with quality labels coming from human perception or are derived from comparison scores. Such a quality measure is generally poorly defined. Humans may not know the best characteristics for the utilized face recognition system. On the other hand, automatic labelling based on comparison scores represents the relative performance of two samples and thus, one low-quality sample might negatively affect the quality labels of the other one.
+
+In this work, we propose a novel unsupervised face quality assessment concept by investigating the robustness of stochastic embeddings. Our solution measures the quality of an image based on its robustness in the embedding space. Using the variations of embeddings extracted from random subnetworks of the utilized face recognition model, the representation robustness of the sample and thus, its quality is determined. Figure 1 illustrates the working principle.
+
+We evaluated the experiments on three publicly available databases in a cross-database evaluation setting. The comparison of our approach was done on two face recognition systems against six state-of-the-art solutions: three no-reference image quality metrics, two recent face quality assessment algorithms from previous work, and one commercial off-the-shelf (COTS) face quality assessment product from industry.
+
+The results show that the proposed solution is able to outperform all state-of-the-art solutions in most investigated scenarios. While every baseline approach shows performance instabilities in at least two scenarios, our solution shows a consistently stable performance. When using the
+
+deployed face recognition model for the proposed face quality assessment methodology, our approach outperforms all baseline by a large margin. Contrarily to previous definitions of face quality assessment [4, 23, 22, 19] that states the face quality as a utility measure of a face image for an arbitrary face recognition model, our results show that it is highly beneficial to estimate the sample quality with regard to a specific (the deployed) face recognition model.
+
+# 2. Related work
+
+Several standards have been proposed for insure face image quality by constraining the capture requirements, such as ISO/IEC 19794-5 [23] and ICAO 9303 [22]. In these standards, quality is divided into image-based qualities (such as pose, expression, illumination, occlusion) and subject-based quality measures (such as accessories). These mentioned standards influenced many face quality assessment approaches that have been proposed in the recent years. While the first solutions to face quality assessment focused on analytic image quality factors, current solutions make use of the advances in supervised learning.
+
+Approaches based on analytic image quality factors define quality metrics for facial asymmetries [13, 10], propose vertical edge density as a quality metric to capture pose variations [42], or measured in terms of luminance distortion in comparison to a known reference image [35]. However, these approaches have to consider every possible factor manually, and since humans may not know the best characteristics for face recognition systems, more current research focus on learning-based approaches.
+
+The transition to learning-based approaches include works that combine different analytical quality metrics with traditional machine learning approaches [31, 2, 20, 1, 8].
+
+End-to-end learning approaches for face quality assessment were first presented in 2011. Aggarwal et al. [3] proposed an approach for predicting the face recognition performance using a multi-dimensional scaling approach to map space characterization features to genuine scores. In [43], a patch-based probabilistic image quality approach was designed that works on 2D discrete cosine transform features and trains a Gaussian model on each patch. In 2015, a rank-based learning approach was proposed by Chen et al. [5]. They define a linear quality assessment function with polynomial kernels and train weights based on a ranking loss. In [27], face images assessment was performed based on objective and relative face image qualities. While the objective quality metric refers to objective visual quality in terms of pose, alignment, blurriness, and brightness, the relative quality metric represents the degree of mismatch between training face images and a test face image. Best-Rowden and Jain [4] proposed an automatic face quality prediction approach in 2018. They proposed two methods for quality assessment of face images based on
+
+(a) human assessments of face image quality and (b) quality values from similarity scores. Their approach is based on support vector machines applied to deeply learned representations. In 2019, Hernandez-Ortega et al. proposed FaceQnet [19]. This solution fine-tunes a face recognition neural network to predict face qualities in a regression task. Beside image quality estimation for face recognition, quality estimation has been also developed to predict soft-biometric decision reliability based on the investigated image [38].
+
+All previous face image quality assessment solutions require training data with artificial or manually labelled quality values. Human labelled data might transfer human bias into the quality predictions and does not take into account the potential biases of the biometric system. Moreover, humans might not know the best quality factors for a specific face recognition system. Artificially labelled quality values are created by investigating the relative performance of a face recognition system (represented by comparison scores). Consequently, the score might be heavily biased by low-quality samples.
+
+The solution presented in this paper is based on our hypothesis that representation robustness is better suited as a quality metric, since it provides a measure for the quality of a single sample independently of others and avoids the use of misleading quality labels for training. This metric can intrinsically capture image acquisition conditions and factors of the face that are relevant for the used face recognition system. Furthermore, it is not affected by human bias, but takes into account the bias and the decision patterns of the used face embeddings.
+
+# 3. Our approach
+
+Face quality assessment aims at estimating the suitability of a face image for face recognition. The quality of a face image should indicate its expected recognition performance. In this work, we based our face image quality definition on the relative robustness of deeply learned embeddings of that image. Calculating the variations of embeddings coming from random subnetworks of a face recognition model, our solution defines the magnitude of these variations as a robustness measure, and thus, image quality. An illustration of this methodology is shown in Figure 2.
+
+# 3.1. Sample-quality estimation
+
+More formally, our proposed solution predicts the face quality $Q(I)$ of a given face image $I$ using a face recognition model $\mathcal{M}$ . The face recognition model has to be trained with dropout and aims at extracting embeddings that are well identity-separated. To make a robustness-based quality estimation of $I$ , $m = 100$ stochastic embeddings are generated from the model $\mathcal{M}$ using stochastic forward passes with different dropout patterns. The choice for $m$ is defined by the trade-off between time complexity and sta
+
+
+Figure 2: Illustration of the proposed methodology: an input $I$ is forwarded to different random subnetworks of the used face recognition model $\mathcal{M}$ . Each subnetwork produces a different stochastic embedding $x_{s}$ . The variations between these embeddings are calculated using pairwise-distances and define the quality of $I$ .
+
+bility of the quality measure as described in Section 3.2. Each stochastic forward pass applies a different dropout pattern (during prediction) producing a different subnetwork of $\mathcal{M}$ . Each of these subnetworks generates different stochastic face embeddings $x_{s}$ . These stochastic embeddings are collected in a set $X(I) = \{x_{s}\}_{s\in \{1,2,\dots,m\}}$ . We define the face quality
+
+$$
+q (X (I)) = 2 \sigma \left(- \frac {2}{m ^ {2}} \sum_ {i < j} d \left(x _ {i}, x _ {j}\right)\right), \tag {1}
+$$
+
+of image $I$ as the sigmoid of the negative mean euclidean distance $d(x_{i},x_{j})$ between all stochastic embeddings pairs $(x_{i},x_{j})\in X\times X$ . The sigmoid function $\sigma (\cdot)$ ensures that $q\in [0,1]$ . Since Gal et al. [12] proved that applying dropout repetitively on a network approximates the uncertainty of a Gaussian process [33], the euclidean distance is a suitable choice for $d(x_{i},x_{j})$ . A greater variation in the stochastic embedding set $X$ indicate a low robustness of the representation and thus, a lower sample quality $q$ . Lower variations in $X$ indicate high robustness in the embedding space and is considered as a high sample quality $q$ . The quality prediction strategy is summarized in Algorithm 1.
+
+# 3.2. Properties
+
+The aim of SER-FIQ is to estimate the face image quality from the perspective of utilisation in recognition tasks, which might be different than estimating the notion of image quality. An image that produces relatively stable identity-related embeddings despite various variations (here caused by dropout) is an image with high utilisation in a recognition task, given that the recognition network training aims at being robust against intra-identity variations.
+
+Algorithm 1 Stochastic Embedding Robustness (SER)
+Input: preprocessed input image $I$ , NN-model $\mathcal{M}$
+Output: quality value $Q$ for input image $I$
+1: procedure SER $(I, \mathcal{M}, m = 100)$
+2: $X \gets$ empty list
+3: for $i \gets 1, \dots, m$ do
+4: $x_i \gets \mathcal{M}.\text{pred}(I, \text{dropout} = \text{True})$
+5: $X = X.\text{add}(x_i)$
+6: $Q \gets q(X)$
+7: return $Q$
+
+Face recognition algorithms are trained with the aim of learning robust representations to increase inter-identity separability and decrease intra-identity separability. Assuming that a face recognition network is trained with dropout and the quality of a sample correlates with its embedding robustness, different subnetworks can be created from the basic model so that they possess different dropout patterns. The agreement between the subnetworks can be used to estimate the embedding robustness, and thus the quality. If the $m$ subnetworks produce similar outputs (high agreement), the variations over these random subnetworks (the stochastic embedding set $X$ ) are low. Consequently, the robustness of this embedding, and thus the quality of the sample, is high. Conversely, if the $m$ subnetworks produce dissimilar representations (low agreement), the variations over the random subnetworks are high. Therefore, the robustness in the embedding space is low and the quality of the sample can be considered low as well.
+
+Our approach has only one parameter $m$ , the number of stochastic forward passes. This parameter can be interpreted as the number of steps in a Monte-Carlo simulation and controls the stability of the quality predictions. A higher $m$ leads to more stable quality estimates. Since the computational time $t = \mathcal{O}(m^2)$ of our method grows quadratically with $m$ , it should not be chosen too high. However, our method can compensate for this issue and can easily run in real-time, since it is highly parallelizable and the computational effort can be greatly reduced by repeating the stochastic forward passes only through the last layer(s) of the network.
+
+In contrast to previous work, our solution does not require quality labels for training. Furthermore, if the deployed face recognition system was trained with dropout, the same network can be used for determining the embedding robustness and therefore, the sample quality. By doing so the training phase can be completely avoided and the quality predictions further captures the decision patterns and bias of the utilized face recognition model. Therefore, we highly recommend utilizing the deployed face recognition model for the quality assessment task.
+
+# 4. Experimental setup
+
+Databases The face quality assessment experiments were conducted on three publicly available databases chosen to have variation in quality and to prove the generalization of our approach on multiple databases. The ColorFeret database [32] consists of 14,126 high-resolution face images from 1,199 different individuals. The data possess a variety of face poses and facial expressions under well-controlled conditions. The Adience dataset [9] consists of 26,580 images from over 2,284 different subjects under unconstrained imaging conditions. Labeled Faces in the Wild (LFW) [21] contains 13,233 face images from 5749 identities. For both datasets, large variations in illumination, location, focus, blurriness, pose, and occlusion are included.
+
+Evaluation metrics To evaluate the face quality assessment performance, we follow the methodology by Grother et al. [16] using error versus reject curves. These curves show a verification error-rate over the fraction of unconsidered face images. Based on the predicted quality values, these unconsidered images are these with the lowest predicted quality and the error rate is calculated on the remaining images. Error versus reject curves indicates good quality estimation when the verification error decreases consistently when increasing the ratio of unconsidered images. In contrast to error versus quality-threshold curves, this process allows to fairly compare different algorithms for face quality assessment, since it is independent of the range of quality predictions. The cruve was adapted in the approved ISO working item [25] and used in the literature [4, 37, 15].
+
+The face verification error rates within the error versus reject curves are reported in terms of false non-match rate (FNMR) at fixed false match rate (FMR) and as equal error rate (EER). The EER equals the FMR at the threshold where $\mathrm{FMR} = 1 - \mathrm{FNMR}$ and is well known as a single-value indicator of the verification performance. These error rates are specified for biometric verification evaluation in the international standard [24]. In our experiment, we report the face verification performance on three operating points to cover a wider range of potential applications. The face recognition performance is reported in terms of EER and FNMR at a FMR threshold of 0.01. The FNMR is also reported at 0.001 FMR threshold as recommended by the best practice guidelines for automated border control of Frontex [11].
+
+Face recognition networks To get face embedding from a given face image, the image is aligned, scaled, and cropped. The preprocessed image is passed to a face recognition models to extract the embeddings. In this work, we use two face recognition models, FaceNet [34] and ArcFace [7]. For FaceNet, the image is aligned, scaled, and cropped as described in [26]. To extract the embeddings, a
+
+pretrained model $^{1}$ was used. For ArcFace, the image preprocessing was done as described in [17] and a pretrained model $^{2}$ provided by the authors of ArcFace is used. Both models were trained on the MS1M database [18]. The output size is 128 for FaceNet and 512 for ArcFace. The identity verification is performed by comparing two embeddings using cosine-similarity.
+
+On-top model preparation To apply our quality assessment methodology, a recognition model that was trained with dropout [36] is needed. Otherwise, a model containing dropout need to added on the top of the existing model. The direct way to apply our approach is to take a pretrained recognition model and repeat the stochastic forward passes only in the last layer(s) during prediction. This is even expected to reach a better performance than training a custom network, because the verification decision, as well as the quality estimation decision, is done in a shared embedding space.
+
+To demonstrate that our solution can be applied to any arbitrary face recognition system, in our experiments we show both approaches: (a) training a small custom network on top of the deployed face recognition system, which we will refer to as SER-FIQ (on-top model), and (b) using the deployed model for the quality assessment, which we will refer to as SER-FIQ (same model).
+
+The structure of SER-FIQ (on-top model) was optimized such that its produced embeddings achieve a similar EER on ColorFeret as that of the FaceNet embeddings. It consists of five layers with $n_{emb} / 128 / 512 / n_{emb} / n_{ids}$ dimensions. The two intermediate layers have 128 and 512 dimensions. The last layer has the dimension equal to the number of training identities $n_{ids}$ and is only needed during training. All layers contain dropout [36] with the recommended dropout probability $p_d = 0.5$ and a tanh activation. The training of the small custom network is done using the AdaDelta optimizer [44] with a batchsize of 1024 over 100 epochs. Since the size of the in- and output layers (blue and green) of the networks differs dependent on the used face embeddings, a learning rate of $\alpha_{FN} = 10^{-1}$ was chosen for FaceNet and $\alpha_{AF} = 10^{-4}$ for the higher dimensional ArcFace embeddings. As the loss function, we used a simple binary cross-entropy loss on the classification of the training identities.
+
+Investigations To investigate the generalization of face quality assessment performance, we conduct the experiments in a cross-database setting. The training is done on ColorFeret to make the models learn variations in a controlled environment. The testing is done on two unconstrained datasets, Adience and LFW. The embeddings
+
+used for the experiments are from the widely used FaceNet (2015) and recently published ArcFace (2019) models.
+
+To put the experiments in a meaningful setting, we evaluated our approach in comparison to six baseline solutions. Three of these baselines are well-known no-reference image quality metrics from the computer vision community: Brisque [28], Niqe [29], Piqe [40]. The other three baselines are state-of-the-art face quality assessment approaches from academia and industry. COTS [30] is an off the shelf industry product from Neurotechnology. We further compare our method with the two recent approaches from academia: the face quality assessment approach presented by Best-Rowden and Jain [4] (2018) and FaceQnet [19] (2019). Training the solution presented by Best-Rowden was done on ColorFeret following the procedure described in [4]. The generated labels come from cosine similarity scores using the same embeddings as in the evaluation scenario. For all other baselines, pretrained models are utilized.
+
+Our proposed methodology is presented in two settings, the SER-FIQ (on-top model) and the SER-FIQ (same model). SER-FIQ (on-top model) demonstrates that our unsupervised method can be applied to any face recognition system. SER-FIQ (same model) make use of the deployed face recognition model for quality assessment, to show the effect of capture its decision patterns for face quality assessment. In the latter case, we apply the stochastic forward passes only between the last two layers of the deployed face recognition network.
+
+
+Figure 3: Face quality distributions of the used databases: Adience, LFW, and ColorFeret. The quality predictions were done using the pretrained models FaceQnet [19], COTS [30], and the proposed SER-FIQ (same model) based on FaceNet and ArcFace.
+
+Database face quality rating To justify the choices of the used databases, Figure 3 shows the face quality distributions of the databases using quality estimates from four pretrained face quality assessment models. ColorFeret was captured under well-controlled conditions and generally shows very high qualities. However, it contains non-frontal head poses and for COTS and SER-FIQ (on FaceNet) (Figure 3a) this is considered as low image quality. Because of these controlled variations, we choose ColorFeret as the training database. Adience and LFW are unconstrained databases and for all quality measures, most face images
+
+
+(a) Adience - FaceNet
+
+
+(b) Adience - ArcFace
+
+
+(c) LFW - FaceNet
+
+
+(d) LFW - ArcFace
+Figure 4: Face verification performance for the predicted face quality values. The curves show the effectiveness of rejecting low-quality face images in terms of FNMR at a threshold of 0.001 FMR. Figure 4a and 4b show the results for FaceNet and ArcFace embeddings on Adience. Figure 4c and 4d show the same on LFW.
+
+are far away from perfect quality conditions. For this reason, we choose these databases for testing.
+
+# 5. Results
+
+
+Figure 5: Sample face images from Adience with the corresponding quality predictions from four face quality assessment methods. SER-FIQ refers to our same model approach based on ArcFace.
+
+
+
+
+
+
+
+
+
+The experiments are evaluated at three different operation points to investigate the face quality assessment performance over a wider spectrum of potential applications. Following the best practice guidelines for automated border control of the European Border and Coast Guard Agency Frontex [11], Figure 4 shows the face quality assessment performance at a FMR of 0.001. Figure 6 presents the same at a FMR of 0.01 and Figure 7 shows the face quality assessment performance at the widely-used EER. Moreover, Figure 5 shows sample images with their corresponding qual
+
+ity predictions. Since the statements about each tested face quality assessment approach are very similar over all experiments, we will make a discussion over each approach separately.
+
+No-reference image quality approaches To understand the importance of different image quality measures for the task of face quality assessment, we evaluated three no-reference quality metrics Brisque [28], Niqe [29], Piqe [40] (all represented as dotted lines). While in some evaluation scenarios the verification error decrease when the proportion of neglected images (low quality) is increased, in most cases they lead to an increased verification error. This demonstrates that image quality alone is not suitable for generalized face quality estimation. Factors of the face (such as pose, occlusions, and expressions) and model biases are not covered by these algorithms and might play an important role for face quality assessment.
+
+Best-Rowden The proposed approach from Best-Rowden and Jain [4] works well in most scenarios and reaches a top-rank performance in some minor cases (e.g. LFW with FaceNet features). However, it shows instabilities that can lead to highly wrong quality predictions. This can be observed well on the Adience dataset using FaceNet embed
+
+
+(a) Adience - FaceNet
+
+
+(b) Adience - ArcFace
+
+
+(c) LFW - FaceNet
+
+
+(d) LFW - ArcFace
+Figure 6: Face verification performance for the predicted face quality values. The curves show the effectiveness of rejecting low-quality face images in terms of FNMR at a threshold of 0.01 FMR. Figure 6a and 6b show the results for FaceNet and ArcFace embeddings on Adience. Figure 6c and 6d show the same on LFW.
+
+dings, see Figure 4a and 6a. These mispredictions might be explained by the ColorFeret training data that does not contain all important quality factors for a given face embedding. On the other hand, these quality factors are generally unknown and thus, training data should never be considered to be covering all factors.
+
+FaceQnet FaceQnet [19], proposed by Hernandez-Ortega et al., shows a suitable face quality assessment behaviour in most cases. In comparison with other face quality assessment approaches, it only shows a mediocre performance. Although FaceQnet was trained on labels coming from the same FaceNet embeddings as in our evaluation setting, it often fails in predicting well-suited quality labels on these embeddings, e.g. in Figure 4c on LFW. Also on Adience (e.g. Figure 6a and 7a), the performance plot shows a U-shape that demonstrates that the algorithm can not distinguish well between medium and higher quality face images. Since the method is trained on the same features, these FaceNet-related instabilities might result from overfitting.
+
+COTS The industry baseline COTS [30] from Neurotechnology generally shows a good face quality assessment when the used face recognition system is based on FaceNet features. Specifically on LFW (see Figure 4c, 6c, and
+
+7c) a small U-shape can be observed similar to FaceQnet. While it shows a good performance using FaceNet embeddings, the face quality predictions using the more recent ArcFace embeddings are of no significance (see Figure 4b, 4d, 6b, 6d, 7b, and 7d). Here, rejecting face images with low predicted face quality does not improve the face recognition performance. Since no information about the inner workflow is given, it can be assumed that their method is optimized to more traditional face embeddings, such as FaceNet. More recent embeddings, such as ArcFace, are probably intrinsically robust to the quality factors that COTS is trained on.
+
+SER-FIQ (on-top model) On the contrary to the discussed supervised methods, our proposed unsupervised solution that builds on training a small custom face recognition network shows a stable performance in all investigated scenarios (Figure 4, 6, and 7). Furthermore, our solution is always close to the top performance and outperforms all baseline approaches in the majority of the scenarios, e.g. in Figure 4a, 4d, 6a, 6b, 6d, 7a, 7b, and 7d. Our method proved to be particularly effective in combination with recent ArcFace embeddings (see Figures 6b, 6d, 7b, and 7d). The unsupervised nature of our solution seems to be a more accurate and more stable strategy.
+
+
+(a) Adience - FaceNet
+
+
+(b) Adience - ArcFace
+
+
+(c) LFW - FaceNet
+
+
+(d) LFW - ArcFace
+Figure 7: The face verification performance given as EER for the predicted face quality values. The curves show the effectiveness of rejecting low-quality face images in terms of EER. Figure 7a and 7b show the results for FaceNet and ArcFace embeddings on Adience. Figure 7c and 7d show the some on LFW.
+
+SER-FIQ (same model) Our method that avoids training by utilizing the deployed face recognition systems is build on the hypotheses that face quality assessment should aim at estimating the sample quality of a specific face recognition model. This way it adapts to the models' decision patterns and can predict the suitability of face sample more accurately. The effect of this adaptation can be seen clearly in nearly all evaluated cases (see Figure 4, 6, and 7). It outperforms all baseline approaches by a large margin and demonstrates an even stronger performance at small FMR (see Figures 4a, 4b, 4c, and 4d at the Frontex recommended FMR of 0.001). This demonstrates the benefit of focusing on the face quality assessment to a specific (the deployed) face recognition model.
+
+# 6. Conclusion
+
+Face quality assessment aims at predicting the suitability of face images for face recognition systems. Previous works provided supervised models for this task based on inaccurate quality labels with only limited consideration of the decision patterns of the deployed face recognition system. In this work, we solved these two gaps by proposing a novel unsupervised face quality assessment methodology that is based on a face recognition model trained with dropout. Measuring the embeddings variations generated from ran-
+
+dom subnetworks of the face recognition model, the representation robustness of a sample and thus, the sample's quality is determined. To evaluate a generalized face quality assessment performance, the experiments were conducted using three publicly available databases in a cross-database evaluation setting. We compared our solution on two different face embeddings against six state-of-the-art approaches from academia and industry. The results showed that our proposed approach outperformed all other approaches in the majority of the investigated scenarios. It was the only solution that showed a consistently stable performance. By using the deployed face recognition model for verification and the proposed quality assessment methodology, we avoided the training phase completely and further outperformed all baseline approaches by a large margin.
+
+Acknowledgement This research work has been funded by the German Federal Ministry of Education and Research and the Hessen State Ministry for Higher Education, Research and the Arts within their joint support of the National Research Center for Applied Cybersecurity ATHENE. Portions of the research in this paper use the FERET database of facial images collected under the FERET program, sponsored by the DOD Counterdrug Technology Development Program Office.
+
+# References
+
+[1] A. Abaza, M. A. Harrison, and T. Bourlai. Quality metrics for practical face recognition. In Proceedings of the 21st International Conference on Pattern Recognition (ICPR2012), pages 3103-3107, Nov 2012. 2
+[2] A. Abaza, M. A. Harrison, T. Bourlai, and A. Ross. Design and evaluation of photometric image quality measures for effective face recognition. IET Biometrics, 3(4):314-324, 2014. 2
+[3] Gaurav Aggarwal, Soma Biswas, Patrick J. Flynn, and Kevin W. Bowyer. Predicting performance of face recognition systems: An image characterization approach. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR Workshops 2011, Colorado Springs, CO, USA, 20-25 June, 2011, pages 52-59. IEEE Computer Society, 2011. 2
+[4] L. Best-Rowden and A. K. Jain. Learning face image quality from human assessments. IEEE Transactions on Information Forensics and Security, 13(12):3064–3077, Dec 2018. 2, 4, 5, 6
+[5] J. Chen, Y. Deng, G. Bai, and G. Su. Face image quality assessment based on learning to rank. IEEE Signal Processing Letters, 22(1):90-94, Jan 2015. 2
+[6] Naser Damer, Timotheos Samartzidis, and Alexander Nouak. Personalized face reference from video: Key-face selection and feature-level fusion. In Qiang Ji, Thomas B. Moeslund, Gang Hua, and Kamal Nasrollahi, editors, Face and Facial Expression Recognition from Real World Videos - International Workshop, FFER@ICPR 2014, Stockholm, Sweden, August 24, 2014, Revised Selected Papers, volume 8912 of Lecture Notes in Computer Science, pages 85-98. Springer, 2014. 2
+[7] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 4
+[8] Abhishek Dutta, Raymond N. J. Veldhuis, and Luuk J. Spreeuwers. A bayesian model for predicting face recognition performance using image quality. In IEEE International Joint Conference on Biometrics, Clearwater, IJCB 2014, FL, USA, September 29 - October 2, 2014, pages 1-8. IEEE, 2014. 2
+[9] Eran Eidinger, Roee Enbar, and Tal Hassner. Age and gender estimation of unfiltered faces. IEEE Trans. Information Forensics and Security, 9(12):2170-2179, 2014. 4
+[10] M. Ferrara, A. Franco, D. Maio, and D. Maltoni. Face image conformance to iso/icao standards in machine readable travel documents. IEEE Transactions on Information Forensics and Security, 7(4):1204-1213, Aug 2012. 2
+[11] Frontex. Best practice technical guidelines for automated border control (abc) systems. 2017. 4, 6
+[12] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Maria-Florina 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 1050-1059. JMLR.org, 2016. 3
+[13] Xiufeng Gao, Stan Z. Li, Rong Liu, and Peiren Zhang. Stan-
+
+ardization of face image sample quality. In Seong-Whan Lee and Stan Z. Li, editors, Advances in Biometrics, pages 242-251, Berlin, Heidelberg, 2007. Springer Berlin Heidelberg. 2
+[14] P. Grother, M. Ngan, and K. Hanaoka. Ongoing face recognition vendor test (frvt) part 2: Identification. NIST Interagency/Internal Report (NISTIR), 2018. 2
+[15] Patrick Grother, Mei Ngan, and Kayee Hanaoka. Face recognition vendor test - face recognition quality assessment concept and goals. NIST, 2019. 4
+[16] Patrick Grother and Elham Tabassi. Performance of biometric quality measures. IEEE Trans. Pattern Anal. Mach. Intell., 29(4):531-543, 2007. 4
+[17] Jia Guo, Jiankang Deng, Niannan Xue, and Stefanos Zafeiriou. Stacked dense u-nets with dual transformers for robust face alignment. In British Machine Vision Conference 2018, BMVC 2018, Northumbria University, Newcastle, UK, September 3-6, 2018, page 44. BMVA Press, 2018. 5
+[18] Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. MS-Celeb-1M: A dataset and benchmark for large-scale face recognition. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling, editors, Computer Vision - ECCV 2016 - 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part III, volume 9907 of Lecture Notes in Computer Science, pages 87-102. Springer, 2016. 5
+[19] Javier Hernandez-Ortega, Javier Galbally, Julian Fierrez, Rudolf Haraksim, and Laurent Beslay. Faceqnet: Quality assessment for face recognition based on deep learning. In IEEE International Conference on Biometrics, ICB 2019, Crete, Greece, June 4-7, 2019, Jun. 2019. 2, 3, 5, 7
+[20] R. V. Hsu, J. Shah, and B. Martin. Quality assessment of facial images. In 2006 Biometrics Symposium: Special Session on Research at the Biometric Consortium Conference, pages 1-6, Sep. 2006. 2
+[21] Gary B. Huang, Manu Ramesh, Tamara Berg, and Erik Learned-Miller. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. Technical Report 07-49, University of Massachusetts, Amherst, October 2007. 4
+[22] Machine Readable Travel Documents. Standard, International Civil Aviation Organization, 2015. 2
+[23] Information technology - Biometric data interchange formats - Part 5: Face image data. Standard, International Organization for Standardization, Nov. 2011. 2
+[24] ISO/IEC 19795-1:2006 Information technology Biometric performance testing and reporting. Standard, 2016. 4
+[25] ISO/IEC AWI 24357: Performance evaluation of face image quality algorithms. Standard. 4
+[26] Vahid Kazemi and Josephine Sullivan. One millisecond face alignment with an ensemble of regression trees. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2014, Columbus, OH, USA, June 23-28, 2014, pages 1867-1874. IEEE Computer Society, 2014. 4
+[27] H. Kim, S. H. Lee, and Y. M. Ro. Face image assessment learned with objective and relative face image qualities for improved face recognition. In 2015 IEEE International Conference on Image Processing (ICIP), pages 4027-4031, Sep. 2015. 2
+
+[28] A. Mittal, A. K. Moorthy, and A. C. Bovik. No-reference image quality assessment in the spatial domain. IEEE Transactions on Image Processing, 21(12):4695-4708, Dec 2012. 5, 6
+[29] A. Mittal, R. Soundararajan, and A. C. Bovik. Making a completely blind image quality analyzer. IEEE Signal Processing Letters, 20(3):209-212, March 2013. 5, 6
+[30] Neurotechnology. Neurotec Biometric SDK 11.1. 2019. 5, 7
+[31] P. J. Phillips, J. R. Beveridge, D. S. Bolme, B. A. Draper, G. H. Givens, Y. M. Lui, S. Cheng, M. N. Teli, and H. Zhang. On the existence of face quality measures. In 2013 IEEE Sixth International Conference on Biometrics: Theory, Applications and Systems (BTAS), pages 1-8, Sep. 2013. 2
+[32] P. J. Phillips, Hyeonjoon Moon, S. A. Rizvi, and P. J. Rauss. The feret evaluation methodology for face-recognition algorithms. IEEE Trans. on Pattern Analysis and Machine Intelligence, 2000. 4
+[33] Carl Edward Rasmussen. Gaussian processes for machine learning. MIT Press, 2006. 3
+[34] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 815-823. IEEE Computer Society, 2015. 4
+[35] H. Sellahewa and S. A. Jassim. Image-quality-based adaptive face recognition. IEEE Transactions on Instrumentation and Measurement, 59(4):805-813, April 2010. 2
+[36] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1):1929-1958, Jan. 2014. 5
+[37] Elham Tabassi and Patrick Grother. Biometric sample quality. In Encyclopedia of Biometrics. Springer US, 2015. 4
+[38] Philipp Terhörst, Marco Huber, Jan Niklas Kolf, Ines Zelch, Naser Damer, Florian Kirchbuchner, and Arjan Kuijper. Reliable age and gender estimation from face images: Stating the confidence of model predictions. In 10th IEEE International Conference on Biometrics Theory, Applications and Systems, BTAS 2019, Tampa, Florida, USA, September 23-26, 2019. IEEE, 2019. 3
+[39] Bipin Kumar Tripathi. On the complex domain deep machine learning for face recognition. Appl. Intell., 47(2):382-396, 2017. 1
+[40] Venkatanath N, Praneeth D, Maruthi Chandrasekhar Bh, S. S. Channappayya, and S. S. Medasani. Blind image quality evaluation using perception based features. In 2015 Twenty First National Conference on Communications (NCC), pages 1-6, Feb 2015. 5, 6
+[41] Chang-Peng Wang, Wei Wei, Jiang-She Zhang, and Hou-Bing Song. Robust face recognition via discriminative and common hybrid dictionary learning. Applied Intelligence, 2018. 1
+[42] P. Wasnik, K. B. Raja, R. Ramachandra, and C. Busch. Assessing face image quality for smartphone based face recognition system. In 2017 5th International Workshop on Biometrics and Forensics (IWBF), pages 1-6, April 2017. 2
+[43] Y. Wong, S. Chen, S. Mau, C. Sanderson, and B. C. Lovell. Patch-based probabilistic image quality assessment for face
+
+selection and improved video-based face recognition. In CVPR 2011 WORKSHOPS, pages 74-81, June 2011. 2
+[44] Matthew D. Zeiler. ADADELTA: an adaptive learning rate method. CoRR, abs/1212.5701, 2012. 5
\ No newline at end of file
diff --git a/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/images.zip b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..40e6ae671ab89be7b2e65274699d8f4fe264582d
--- /dev/null
+++ b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a61996444310c5809b1a9f2ff91905b039e5c61560f182d6d2a55c4959181b0a
+size 564153
diff --git a/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/layout.json b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9b30074f4d214952a97d5b7ef96bef2466569e7d
--- /dev/null
+++ b/serfiqunsupervisedestimationoffaceimagequalitybasedonstochasticembeddingrobustness/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f86e3f9a67696edf1a62e253e75c9fe99d6d5cf7ab96316940ee4ca51f7e74d
+size 316670
diff --git a/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_content_list.json b/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..aeac04a2347773c8229be4d279cd5e6dcd4f83fa
--- /dev/null
+++ b/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6de8c79bff1eb2f9e42c64bcdcf26dc697a177cfd0ef23ccbc1ffd30da554ba8
+size 69966
diff --git a/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_model.json b/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..65d2a93b103c0951944cee3dc44839d9fa2ec683
--- /dev/null
+++ b/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35af4d20a697985ae2e31ec0ae85bd75b82ad768c8affd807dc71dc48230fbeb
+size 81678
diff --git a/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_origin.pdf b/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ebfd1f2cef9dba5a51d29ccbe81bcd1bea7a3b2a
--- /dev/null
+++ b/sessselfensemblingsemisupervised3dobjectdetection/fb73c90b-b561-4f54-b1b7-a9bb1ad709ba_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:632428bf3846327b5e189232f402bf7c0e728b0d1b2ea6f04a51212f01989418
+size 2132417
diff --git a/sessselfensemblingsemisupervised3dobjectdetection/full.md b/sessselfensemblingsemisupervised3dobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..37ef6eaa0eb7c97179a03b460e441fdc752e2b65
--- /dev/null
+++ b/sessselfensemblingsemisupervised3dobjectdetection/full.md
@@ -0,0 +1,272 @@
+# SESS: Self-Ensembling Semi-Supervised 3D Object Detection
+
+Na Zhao Tat-Seng Chua Gim Hee Lee
+Deapartment of Computer Science, National University of Singapore
+
+{nazhao,chuats,gimhee.lee}@comp.nus.edu.sg
+
+# Abstract
+
+The performance of existing point cloud-based 3D object detection methods heavily relies on large-scale high-quality 3D annotations. However, such annotations are often tedious and expensive to collect. Semi-supervised learning is a good alternative to mitigate the data annotation issue, but has remained largely unexplored in 3D object detection. Inspired by the recent success of self-ensembling technique in semi-supervised image classification task, we propose SESS, a self-ensembling semi-supervised 3D object detection framework. Specifically, we design a thorough perturbation scheme to enhance generalization of the network on unlabeled and new unseen data. Furthermore, we propose three consistency losses to enforce the consistency between two sets of predicted 3D object proposals, to facilitate the learning of structure and semantic invariances of objects. Extensive experiments conducted on SUN RGB-D and ScanNet datasets demonstrate the effectiveness of SESS in both inductive and transductive semi-supervised 3D object detection. Our SESS achieves competitive performance compared to the state-of-the-art fully-supervised method by using only $50\%$ labeled data. Our code is available at https://github.com/Na-Z/sess.
+
+# 1. Introduction
+
+Point cloud-based 3D object detection is the task to estimate the object category and oriented 3D bounding box for all objects in the scene. This task has always been a great interest to computer vision and robotics communities due to its potential real-world applications in many areas such as autonomous driving, domestic robotics, augmented/virtual reality, etc. In recent years, many deep learning-based approaches for point cloud-based 3D object detection [1, 7, 9, 11, 12, 16, 17, 18, 24, 27, 29] have emerged and achieved high performances on various benchmark datasets [2, 3, 19]. Despite the impressive performances, most of the existing deep learning-based approaches for 3D object detection on point clouds are strongly supervised and require the availability of a large amount of well-annotated 3D data that is
+
+
+Figure 1: Semi-supervised 3D object detection pipeline. Our SESS can predict 3D bounding boxes and semantic labels of objects for an unlabeled scene after training with a mixture of labeled data and unlabeled data.
+
+often time-consuming and expensive to collect.
+
+Semi-supervised learning is a promising alternative to strongly supervised learning for point cloud-based 3D object detection. This is because semi-supervised learning requires only few labeled data, and this largely alleviates the difficulty to collect enormous amount of labeled data. Furthermore, the available few strong labels can still provide the necessary supervision to guide the deep network into learning the correct information for 3D object detection. Information from the few strong labels can also be propagated to the unlabeled data to improve learning. A complete removal of strong labels in the training data would be extremely challenging for the deep network to learn anything meaningful. This is due to the inherent difficulty for a deep network to precisely detect 3D bounding boxes of objects in the point cloud, where points are sparsely distributed, and/or the scene is partially visible and incomplete due to occlusions and 3D amodal perception. To the best of our knowledge, [21] is currently the only existing work to learn a deep network for point cloud-based 3D object detection without strong supervision. More specifically, they propose a cross-category semi-supervised learning where 3D ground truth labels are needed for a set of object classes, and 2D ground truth labels are required for all object classes. Although promising results are achieved in [21], the approach requires RGB-D input and does not work on pure 3D point
+
+clouds. Moreover, it still requires a large amount of 3D labels on the strong object classes.
+
+In view of the potential of semi-supervised learning and limitations in [21], we address the in-category semi-supervised 3D object detection problem with 3D point cloud as the only input in this paper. In contrast to cross-category semi-supervision, in-category semi-supervision means that the training data contains few strongly labeled point clouds and a large number of unlabeled point clouds. Furthermore, the strongly labeled point clouds are assumed to contain all object classes of interests, albeit few examples per object class. To this end, we propose SESS - a Self-Ensembling Semi-Supervised 3D object detection framework for point clouds. More specifically, our SESS achieves semi-supervision with a Mean Teacher paradigm [22] that contains a teacher and student 3D object detection network. The teacher guides the predictions of the student to be consistent with its predictions under random perturbations, where these predictions are sets of 3D object proposals. In other words, we want the 3D object proposals from both teacher and student networks to be aligned at the end of the training stage. We propose three consistency losses based on the center, class and size of the 3D object proposals to encourage alignment of the 3D object proposals from the teacher and student networks. Our three consistency losses encode both geometry and semantic information to guide the network towards learning precise coordinates of the 3D bounding boxes and accurate object categories. We conduct experiments of our SESS framework on two benchmark datasets. Promising results over baseline and strongly supervised approaches validate our semi-supervised learning approach for the challenging task of point cloud-based 3D object detection in both inductive and transductive semi-supervised learning settings.
+
+# 2. Related work
+
+# 2.1. 3D Object Detection
+
+A number of approaches have been proposed for 3D object detection task, which can be briefly summarized into three different types based on their input data formats: 2D projection [8, 9, 18, 26], voxel grid [1, 7, 15, 20, 16, 25, 29], and point cloud [5, 11, 12, 17, 24, 27, 28]. The 2D projection and voxel grid based methods are proposed to circumvent the difficulty in processing irregular point clouds by either projecting 3D data into 2D representations (e.g. front-view, or bird's eye view) or voxelizing it into regular grids. To efficiently localize 3D objects in the point cloud of a 3D space, [5, 12, 24] leverage on mature 2D object detectors to trim a 3D bounding frustum for each detected object, for 3D search space reduction, while [11, 17, 27, 28] explore the sparsity of 3D data and generate 3D proposals around seed points that are determined by different manners
+
+(e.g. segmenting [17] or voting [11]). Despite the significant improvement achieved by the existing detection models, a large number of high-quality 3D ground truths are required for training. This limits their applicability in practice, where the ground truths are expensive to acquire.
+
+In order to alleviate the limitation and leverage the abundant unlabeled data that are easier to access, semi-supervised 3D object detection is a promising direction to exploit. However, there is no existing semi-supervised point cloud-based 3D object detection approach that only involves a small set of labeled data. The most closely related work is proposed recently by Tang and Lee in [21]. They propose a cross-category semi-supervised 3D object detection method. However, it requires all the 2D box labels and some of the 3D box labels. We consider this setting as "mix supervised" to differentiate with our semi-supervised setting where few labeled samples are used with plentiful of unlabeled samples. Furthermore, [21] follows the two-step pipeline in [12] to restrict the object localizing space: the first step is 2D object detection on RGB images and the second step is 3D object detection in the frustum point clouds yielded from the 2D detections. This two-step pipeline means that the performance is tightly dependent on the performance of the 2D detector. In this work, we directly process the raw point cloud in one step to remove the dependency on 2D modality.
+
+# 2.2. Semi-Supervised Learning
+
+Semi-Supervised Learning (SSL) attracts growing interest in a wide range of research areas (e.g. image classification and segmentation) by virtue of its aim to learn from both labeled and unlabeled data simultaneously. Many approaches have been proposed to solve SSL. Due to the space limitation, we only review self-ensembling based approaches, the most promising direction in SSL recently.
+
+The idea behind self-ensembling approaches is to improve the generalization of a model by encouraging consensus among ensemble predictions of unknown samples under small perturbations of inputs or network parameters. For instance, $\Gamma$ model [13], a variation of ladder network [23], consists of two identical parallel branches that respectively take one image and the corrupted version of the image as input. The consistency loss is computed based on the difference between the (pre-activated) predictions from the clean branch and the (pre-activated) corrupted branches processed by an explicit denoising layer. In contrast to $\Gamma$ model, $\Pi$ model [6] discards the explicit denoising layer and inputs the same image with different corruption conditions into a single branch. Virtual Adversarial Training [10] shares similar ideas with the $\Pi$ model but uses adversarial perturbation instead of independent noise. Temporal model [6], an extension of $\Pi$ model, forces the consistency between the recent network output and the aggregation of network pre
+
+
+Figure 2: The architecture of our SESS. In this figure, a training batch, including a set of labeled sample $\{\mathbf{x}^L\}$ and a set of unlabeled samples $\{\mathbf{x}^U\}$ , is passed through different perturbations and then input into the student and the teacher network, respectively. The predictions of the student network are compared with the corresponding ground truth labels $\{\mathbf{y}^L\}$ processed by the same transformation $\mathcal{T}$ using supervised loss and with the teacher predictions processed by the same transformation $\mathcal{T}$ using consistency loss.
+
+dictions over multiple previous training epochs rather than predictions from auxiliary corrupted input. However, this model becomes cumbersome when applied to large dataset because it needs to maintain a per-sample moving average of the historical network predictions. Mean Teacher [22] tackles the weakness of temporal model by replacing network prediction average with network parameter average. It contains two network branches - teacher and student with the same architecture. The parameters of the teacher are the exponential moving average of the student network parameters that are updated by stochastic gradient descent. The student network is trained to yield consistent predictions with the teacher network. We choose the Mean Teacher paradigm as the basis of our framework, and adapt it to the 3D object detection task.
+
+# 3. Our Method
+
+# 3.1. Problem Definition
+
+Given any point cloud of a scene as input, our objective is to classify and localize amodal 3D bounding boxes for objects in the 3D scene. In the semi-supervised setting, we have access to $N$ training samples, including $N_{l}$ labeled point clouds $\mathcal{P}^L = \{\mathbf{x}_i^L,\mathbf{y}_i^L\}_{i = 1}^{N_l}$ and $N_{u}$ unlabeled point clouds $\mathcal{P}^U = \{\mathbf{x}_i^U\}_{i = 1}^{N_u}$ . Here $\mathbf{x}_i\in \mathbb{R}^{n\times 3}$ denotes the point cloud of a 3D scene, containing $n$ points with coordinates; and $\mathbf{y}_i^L$ denotes the ground truth annotations for all the interested objects in the 3D point cloud $\mathbf{x}_i^L$ . Each object is represented by a semantic class $s$ (1-of- $K$ predefined classes) and an amodal 3D bounding box parameterized by its center $c = (c^x,c^y,c^z)$ , size $d = (l,w,h)$ , and orientation $\theta$ along the upright-axis.
+
+# 3.2. SESS Architecture
+
+The illustration of our SESS architecture is shown in Figure 2. We use the Mean Teacher paradigm [22] in our semi-supervised 3D object detection task, where the student
+
+and the teacher networks are 3D object detectors. The student and teacher networks take the perturbed point clouds as input and output the 3D object proposals, which represent the estimated classes and 3D bounding boxes of all the objects of interest in the point cloud. We adopt the state-of-the-art VoteNet [11] as our backbone for the student and teacher networks. More specifically, SESS takes a training batch with a mixture of labeled and unlabeled point clouds: $\{\mathbf{x}_i^L\}_{i=1}^{B_l} \cup \{\mathbf{x}_i^U\}_{i=1}^{B_u}$ , where $B_l$ and $B_u$ denote the labeled and unlabeled samples in a batch, respectively. We randomly sample $M$ points from each training point cloud, i.e. $\mathbf{x}^L$ or $\mathbf{x}^U$ , twice to get two sets of points. The first set of points $\mathbf{x}_s$ is perturbed into $\hat{\mathbf{x}}_s$ by a stochastic transformation $\mathcal{T}$ and then passed to the student network, while the second set of points $\mathbf{x}_t$ is directly passed to the teacher network. The output proposals from the teacher network $\mathbf{y}_t$ are further transformed to $\hat{\mathbf{y}}_t$ by the $\mathcal{T}$ applied on $\mathbf{x}_s$ previously. For each proposal in $\hat{\mathbf{y}}_t$ , we find its closest alignment from the output proposals of the student network $\hat{\mathbf{y}}_s$ based on the Euclidean distance. Subsequently, the error between each aligned proposal pair is computed from three consistency losses. Concurrently, the set of ground truths $\mathbf{y}^L$ is also transformed by the same $\mathcal{T}$ applied on $\mathbf{x}_s^L$ , and the transformed $\hat{\mathbf{y}}^L$ is compared with the labeled output of the student network $\hat{\mathbf{y}}_s^L$ using a supervised loss. Finally, the parameters of the student network $\Phi$ is updated via gradient descent at training step $t$ , and then the updated parameters from the student network are used in an exponential moving average (EMA) to update the parameters of the teacher network $\tilde{\Phi}$ :
+
+$$
+\tilde {\Phi} _ {t + 1} = \alpha \tilde {\Phi} _ {t} + (1 - \alpha) \Phi_ {t}, \tag {1}
+$$
+
+where $\alpha$ is a smoothing hyper-parameter that controls how much information the teacher takes from the student network. For supervised loss, we take the same multi-task loss
+
+as in [11]. We will introduce our perturbation scheme and consistency losses for adapting the Mean Teacher paradigm into the 3D object detection task below.
+
+# 3.3. Perturbation Scheme
+
+As mentioned in [6, 22], input perturbation or data augmentation play an essential role in the success of self-ensembling approaches. The perturbation schemes of the Mean Teacher on image-based tasks, e.g. image recognition, include random translations and horizontal flips of the input images, adding Gaussian noises on the input layer, and applying dropouts within the network. However, none of the image-based perturbation schemes can be used directly for our point cloud-based 3D object detection task. Consequently, we propose a perturbation scheme suitable for point cloud-based 3D object detection in this paper.
+
+Random Sub-sampling. We apply random sub-sampling on the input point cloud to both the student and teacher networks as part of our perturbation scheme. The local geometrical relationship of the points in two random subsamples of a given point cloud might differ significantly, but the global geometry, i.e. the 3D bounding box locations of the objects, in the sub-sampled point clouds should remain the same. As a result, our model is trained to exploit the underlying geometry in the global context by forcing the consistency between the stochastic outputs from the student and teacher networks.
+
+Stochastic Transform. We apply stochastic transformations that include flipping, rotation and scaling on the randomly sub-sampled point cloud for the student network to prevent the network from memorizing unintended properties of the training point clouds, e.g. the absolute position of each point. More specifically, we formulate the transformation operations as a set of stochastic variables $\mathcal{T} = \{\mathcal{F}_x,\mathcal{F}_y,\mathcal{R},\mathcal{S}\}$ . Here $\mathcal{F}_x$ represents a random flip along the $x$ -axis, and its binary value is determined by:
+
+$$
+\mathcal {F} _ {x} = \left\{ \begin{array}{l l} 1 & i f \epsilon > 0. 5, \\ 0 & o t h e r w i s e, \end{array} \right. \tag {2}
+$$
+
+where $\epsilon$ is a random variable uniformly sampled from [0, 1]. $\mathcal{F}_y$ represents a random flip along the $y$ -axis and is generated the same way as $\mathcal{F}_x$ . $\mathcal{R}$ denotes the rotation around the upright-axis, paramerized by a rotation angle $\omega$ sampled uniformly from $[- \vartheta, + \vartheta]$ :
+
+$$
+\mathcal {R} (\omega) = \left[ \begin{array}{c c c} \cos (\omega) & - \sin (\omega) & 0 \\ \sin (\omega) & \cos (\omega) & 0 \\ 0 & 0 & 1 \end{array} \right]. \tag {3}
+$$
+
+And $S$ that is uniformly sampled from $[a, b]$ represents the scaling of the points. Finally, a $\mathcal{T}_i$ is randomly sampled and applied on each input training point cloud $\mathbf{x}_s$ to the student network as: $\hat{\mathbf{x}}_s = \mathcal{T}_i * \mathbf{x}_s$ . Note that the ground truth labels
+
+$\mathbf{y}_i^L$ of the labeled input point cloud $\mathbf{x}_i^L$ are also transformed by the corresponding $\mathcal{T}_i$ before computing the supervised loss. Additionally, the output proposals $\mathbf{y}_t$ from the teacher network are also transformed by $\mathcal{T}_i$ to enable the alignment between outputs of the two networks.
+
+# 3.4. Consistency Loss
+
+Unlike the direct computation of consistency between class predictions of perturbed images in the context of recognition task [22], the consistency between two sets of 3D object proposals cannot be computed directly. We circumvent this problem by pairing up the predicted proposals from the student and teacher networks with an alignment scheme, followed by applying three consistency losses on the paired proposals. The objective of the three consistency losses is to enforce the consensus of object locations, semantic categories and sizes. Let $\hat{C}_s = \{\hat{c}_s\}$ denotes the centers of the predicted 3D bounding boxes from the student network, and $\hat{C}_t = \{\hat{c}_t\}$ denotes those from the teacher network after transformation. For each $\hat{c}_t \in \hat{C}_t$ , we do the alignment by searching for the its nearest neighbor in $\hat{C}_s$ based on the minimum Euclidean distance between the centers of the bounding boxes. We further use $\hat{C}_s^A$ to denote the elements from $\hat{C}_s$ that are aligned with each element in $\hat{C}_t$ . More formally,
+
+$$
+\begin{array}{l} \hat {C} _ {s} ^ {\mathcal {A}} = \{\dots , \hat {c} _ {s _ {j}} ^ {\mathcal {A}}, \dots \}: \\ \hat {c} _ {s _ {j}} ^ {\mathcal {A}} = \underset {\hat {c} _ {s}} {\arg \min } \left\| \hat {c} _ {s} - \hat {c} _ {t _ {j}} \right\| _ {2}, \forall \hat {c} _ {s} \in \hat {C} _ {s}. \tag {4} \\ \end{array}
+$$
+
+Similarly, we can also collect $\hat{C}_t^A$ with elements from $\hat{C}_t$ that are aligned with each element in $\hat{C}_s$ . It is important to note that the alignments $\hat{C}_s^A$ and $\hat{C}_t^A$ are not bijective, hence $\hat{C}_s^A \neq \hat{C}_t^A$ . Intuitively, the alignment errors, i.e., the total distance between all corresponding elements in $\hat{C}_s^A \leftrightarrow \hat{C}_t^A$ and $\hat{C}_t^A \leftrightarrow \hat{C}_s$ , should be zero when the bounding boxes predicted by the teacher and student networks are consistent. Thus, we propose the center-aware consistency loss:
+
+$$
+\mathcal {L} _ {\text {c e n t e r}} = \frac {\sum_ {\hat {c} _ {s}} \| \hat {c} _ {s} - \hat {c} _ {t} ^ {\mathcal {A}} \| _ {2} + \sum_ {\hat {c} _ {t}} \| \hat {c} _ {t} - \hat {c} _ {s} ^ {\mathcal {A}} \| _ {2}}{| \hat {C} _ {s} | + | \hat {C} _ {t} |}, \tag {5}
+$$
+
+to minimize the alignment errors between the teacher and student network.
+
+In addition to center consistency, we also consider two other properties of the 3D proposals: semantic class and size to enforce the consistency between two sets of proposals. Following the principle in classic self-ensembling learning, where the teacher network produces targets for the student to learn, we only consider a uni-directional alignment, i.e., $\hat{C}_t$ to $\hat{C}_s^A$ in computing the class- and size-aware consistency losses. More specifically, let $\hat{P}_s = \{\hat{p}_s\}$ and $\hat{P}_t = \{\hat{p}_t\}$ denote the class probabilities of the predicted objects from the student and the teacher network, respectively. The aligned $\hat{P}_s^A = \{\hat{p}_s^A\}$ is easily obtained based
+
+on minimum center distance. We define the class-aware consistency loss as the Kullback-Leibler (KL) divergence between $\hat{P}_s^A$ and $\hat{P}_t$ :
+
+$$
+\mathcal {L} _ {\text {c l a s s}} = \frac {1}{| \hat {P} _ {t} |} \sum D _ {K L} \left(\hat {p} _ {s} ^ {A} \| \hat {p} _ {t}\right). \tag {6}
+$$
+
+In similar vein, the sizes of the bounding boxes predicted by the student and the teacher networks are denoted as $\hat{D}_s = \{\hat{d}_s\}$ and $\hat{D}_t = \{\hat{d}_t\}$ , respectively. We use the same minimum center distance to get the aligned $\hat{D}_s^A = \{\hat{d}_s^A\}$ . The size-aware consistency loss can now be computed as the Mean Square Error (MSE) between $\hat{D}_s^A$ and $\hat{D}_t$ :
+
+$$
+\mathcal {L} _ {s i z e} = \frac {1}{| \hat {D} _ {t} |} \sum \left(\hat {d} _ {s} ^ {A} - \hat {d} _ {t}\right) ^ {2}. \tag {7}
+$$
+
+Finally, the total consistency loss is a weighted sum of all the three consistency terms described earlier:
+
+$$
+\mathcal {L} _ {\text {c o n s i s t e n c y}} = \lambda_ {1} \mathcal {L} _ {\text {c e n t e r}} + \lambda_ {2} \mathcal {L} _ {\text {c l a s s}} + \lambda_ {3} \mathcal {L} _ {\text {s i z e}}, \tag {8}
+$$
+
+where $\lambda_{1},\lambda_{2}$ , and $\lambda_{3}$ are the weights to control the importance of the corresponding consistency term.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+We evaluate our SESS on SUN RGB-D and ScanNet for semi-supervised 3D object detection.
+
+SUN RGB-D [19] is an indoor benchmark dataset for 3D object detection. It contains 10,335 single-view RGB-D images, which are officially split into 5,285 training samples and 5,050 validation samples, where 3D bounding box annotations for hundreds of object classes are available. Followed the standard evaluation protocol [5, 11, 12, 15, 21], we perform evaluation on the 10 most common categories for comparing with the previous methods. By using the provided camera parameters, the depth images are converted to point clouds as our inputs.
+
+ScanNetV2 [2] contains 1,513 reconstructed meshes from 707 unique indoor scenes, which are officially split into 1,201 training samples and 312 validation samples. Each scene is well annotated with semantic segmentation masks. Since there is no existing amodal or orientated 3D bounding box in ScanNetV2 dataset, we derive the axis-aligned bounding boxes from the point-level labeling as in [4, 11]. We adopt the same 18 object classes out of the 21 semantic classes as proposed in [4, 11]. The input point clouds are generated by sampling vertices from meshes.
+
+For both datasets, we evaluate on different proportions of labeled data randomly sampled from all the training data. We ensure that all classes are present, or otherwise we resample until all the $K$ classes are covered in the labeled set. We keep the remaining data as unlabeled data for training in our semi-supervised framework.
+
+# 4.2. Implementation Details
+
+**Framework Details.** We feed training batches of point clouds with 5,000 points to our framework. To construct a batch, we randomly sample $B_{l}$ labeled samples from $\mathcal{P}^{L}$ and $B_{u}$ unlabeled samples from $\mathcal{P}^{U}$ . In the experiments, $B_{l}$ is set to 2 and $B_{u}$ to 8. During the perturbation step, the number of randomly sub-sampled points is 4,000; the $\vartheta$ is set to $30^{\circ}$ on SUN RGB-D and $5^{\circ}$ on ScanNetV2; the random scale range is bounded by $a = 0.85$ and $b = 1.15$ . The weights in the consistency loss function are set as $\lambda_{1} = 1$ , $\lambda_{1} = 2$ , $\lambda_{3} = 1$ . As suggested in [22], we ramp up the coefficient of consistency cost from 0 to its maximum value of 10 during the first 30 epochs, using a sigmoid-shaped function $e^{-5(1 - T)^2}$ , where $T$ increases linearly from 0 to 1 during the ramp-up period. In terms of EMA decay $\alpha$ , we set $\alpha = 0.99$ during the ramp-up period, and $\alpha = 0.999$ for the rest of the training, following [22].
+
+Training. We adopt the exact network structure of VoteNet [11] as the structure of our student and teacher network. We pre-train VoteNet with all the available labeled samples. We then initialize the student and teacher networks with the pre-trained weights, and train the student network on both the labeled and unlabeled data by minimizing the supervised loss as well as consistency loss. The student network is trained by an ADAM optimizer with an initial learning rate of 0.001. The learning rate is decayed by 0.1 at the $80^{th}$ epoch. In general, the model converges at around 100 epochs. The number of generated 3D proposals is 128.
+
+Inference. During inference, we forward the point cloud of a scene to the student network $^2$ to generate the proposals. Following the same protocol as described in [11], we postprocess those predicted proposals by a 3D NMS module with an 3D Intersection-over-Union(IoU) threshold of 0.25. For the evaluation metric, we adopt the widely used mean average precision (mAP). By default, mAP@0.25 (3D IoU threshold 0.25) is reported in the following experiments.
+
+# 4.3. Comparison with Fully-supervised Methods
+
+Baselines. To the best of our knowledge, there are no other 3D object detection approaches sharing the same semi-supervised setting as us. Hence, we compare our semi-supervised SESS to the state-of-the-art fully-supervised 3D object detection method, VoteNet [11], which can be considered as an upper bound of our semi-supervised method since we share the same network backbone. By drawing varying ratios of labeled data out of the
+
+Table 1: Comparison with VoteNet on SUN RGB-D val set and ScanNetV2 val set with varying ratios of labeled data. mAP@0.25 are reported as mean±standard deviation, based on 3 runs with random sampling. And the improvement (Improv.) is computed based on the mean performances over 3 runs. Note that our SESS is initialized by the VoteNet weights pre-trained on the corresponding labeled data.
+
+| Dataset | Model | 10% | 20% | 30% | 40% | 50% | 70% | 100% |
| SUNRGB-D | VoteNet [11] | 34.43±1.07 | 41.13±0.36 | 47.70±0.17 | 50.77±0.19 | 52.5±0.19 | 56.13±0.18 | 57.7 |
| SESS | 42.87±1.01 | 47.87±0.48 | 53.17±0.63 | 54.73±0.26 | 56.37±0.22 | 58.97±0.17 | 61.1 |
| Improv.(%) | 24.51↑ | 16.39↑ | 11.47↑ | 7.80↑ | 7.37↑ | 5.06↑ | 5.89↑ |
| ScanNetV2 | VoteNet [11] | 30.97±0.79 | 41.60±0.46 | 45.57±0.38 | 49.2±0.33 | 52.57±0.07 | 54.97±0.07 | 58.6 |
| SESS | 39.67±0.91 | 47.93±0.39 | 52.20±0.09 | 54.93±0.27 | 57.77±0.41 | 59.20±0.08 | 62.1 |
| Improv.(%) | 28.09↑ | 15.22↑ | 14.55↑ | 11.64↑ | 9.89↑ | 7.70↑ | 5.97↑ |
+
+Table 2: Comparison with fully-supervised methods on SUN RGB-D and ScanNetV2 val sets with $100\%$ training labels.
+
+| Method | SUN RGB-D | ScanNetV2 |
| DSS [20] | 42.1 | 15.2 |
| COG [15] | 47.6 | - |
| 2D-driven [5] | 45.1 | - |
| F-PointNet [12] | 54.0 | 19.8 |
| GSPN [5] | - | 30.6 |
| 3D-SIS [4] | - | 40.2 |
| VoteNet [11] | 57.7 | 58.6 |
| SESS | 61.1 | 62.1 |
+
+entire training set, we train VoteNet with the available labeled data in a fully-supervised way, and SESS with the available labeled data as well as the remaining unlabeled data in a semi-supervised way. Additionally, we also evaluate our semi-supervised SESS based on a wide-ranging comparison with existing fully-supervised 3D object detection methods. Deep Sliding Shapes (DSS) [20] and Cloud of gradients (COG) [15] are both sliding window based methods, where DSS is a 3D extension of Faster R-CNN pipeline [14], and COG designs a 3D HoG-like feature to model the 3D geometry and appearance. 2D-driven [5] and F-PointNet [12] both depend on 2D detection in associated RGB images to reduce the search space of 3D localization. GSPN [5] and 3D-SIS [4] both target on 3D instance segmentation task but incorporate 3D object detection as an auxiliary task. Note that all the aforementioned methods use both point clouds and RGB images as inputs except VoteNet and our SESS that only require point clouds.
+
+Results. Table 1 lists the comparison results against VoteNet under different ratios of labeled data on the two datasets, respectively. SESS significantly outperforms VoteNet under each ratio setting. The improvements verify the effectiveness of our proposed semi-supervised framework. On both datasets, as the proportion of labeled samples decreases, the performance gap between our SESS and the fully-supervised VoteNet becomes larger. Given $10\%$ labeled data, our SESS gains around $24.51\%$ and $28.09\%$ im
+
+Table 3: Transductive leaning on SUN RGB-D and ScanNetV2 unlabeled training sets, compared with fully-supervised VoteNet. The percentage indicates the ratio of labeled data for training.
+
+| Dataset | Model | 10% | 20% | 30% | 40% | 50% | 70% |
| SUNRGB-D | VoteNet | 33.5 | 39.8 | 47.5 | 49.7 | 51.6 | 55.2 |
| SESS | 40.7 | 46.1 | 53.3 | 54.3 | 55.1 | 59.0 |
| ScanNetV2 | VoteNet | 37.8 | 47.7 | 52.1 | 56.9 | 61.2 | 64.3 |
| SESS | 46.7 | 55.4 | 59.5 | 63.9 | 67.5 | 69.6 |
+
+provement over VoteNet on SUN RGB-D and ScanNetV2, respectively. This indicates that our framework is able to learn knowledge from unlabeled data, and our benefit is larger when the number of labeled data is scarce.
+
+It is interesting to see that by using only $50\%$ labeled samples, our SESS achieves close to the upper-bound performance obtained by the fully-supervised VoteNet with $100\%$ labeled samples on both datasets. Furthermore, it is worth pointing out that when given all the labeled training data, our SESS is able to further improve the performance beyond the upper-bound performance of VoteNet. We attribute the outperformance of SESS to its consistency regularization mechanism, where the 3D detector is trained to be robust to various perturbations, and the proposed three consistency losses that encode both geometry and semantic information guide the 3D detector towards producing more accurate predictions. This further indicates that our consistency losses are complementary to supervised loss, and our framework might be integrated with any supervised 3D object detector to enhance the detection accuracy.
+
+In Table 2, we further list the performance comparison between SESS and various fully-supervised methods on the two datasets, by using all the training samples.
+
+# 4.4. Transductive Semi-supervised Learning
+
+Generally, semi-supervised learning may refer to either inductive learning or transductive learning. In inductive learning, the goal is to generalize correct labels for new unseen data. In transductive learning, the goal is to infer the labels restricted to the given unlabeled data. Our previous experiments conducted on unseen validation set can
+
+
+
+
+(a) SUN RGB-D
+(b) ScanNetV2
+Figure 3: Effects of different perturbations.
+
+be considered as inductive learning. In Table 3 we show that our SESS is also effective in transductive learning on both datasets. Our SESS consistently outperforms the fully-supervised VoteNet under different proportions of labeled samples. This demonstrates that our proposed SESS is a general framework that is not specific to inductive or transductive solution.
+
+# 4.5. Ablation Studies
+
+In this section, we explore the effects of perturbations and consistency losses. The training of ablation experiments is conducted on SUN RGB-D with $10\%$ labeled data and ScanNetV2 with of $30\%$ labeled data. The evaluation is on the corresponding validation set.
+
+Perturbations. We study the effect of each perturbation by removing it from the framework, and report the performance after the removal. We also evaluate an extreme case that removes the perturbation scheme altogether. Figure 3 illustrates the resultant performances. Obviously, the performance drops greatly on both datasets when the entire perturbation scheme is removed. The effect may vary between the datasets for each individual perturbation. For example, the rotating perturbation contributes less to performance on ScanNet than SUN RGBD, as the bounding boxes of objects in ScanNet are axis-aligned. The scaling perturbation gives less improvement on SUN RGB-D than that on ScanNet. We suspect that this is because the partial scenes in SUN RGB-D are all with similar scales and thus are less sensitive to scaling perturbation. In contrast, the scales of the scenes in ScanNet are quite diverse.
+
+Consistency Losses. We further investigate the effects of our three consistency losses by experimenting with different combinations. The comparison is reported in Table 4. From
+
+Table 4: Ablation study on consistency losses.
+
+| center | class | size | SUN RGB-D | ScanNetV2 |
| ✓ | X | X | 38.2 | 50.0 |
| X | ✓ | X | 39.2 | 50.2 |
| X | X | ✓ | 38.1 | 49.2 |
| X | ✓ | ✓ | 40.3 | 50.7 |
| ✓ | X | ✓ | 38.9 | 50.5 |
| ✓ | ✓ | X | 40.0 | 51.5 |
| ✓ | ✓ | ✓ | 40.7 | 52.0 |
+
+the perspective of individual consistency loss, the center-aware and class-aware consistency losses contribute more than the size-aware consistency loss. However, the combination of center-aware or class-aware with size-aware consistency loss helps to improve the performance to some extent. Finally, the integration of the three consistency losses gives us the best performance on both datasets. It indicates that the requirement of representing the predicted bounding boxes with correct geometries (i.e. center, size) as well as semantics (i.e. class) regularizes the model towards a better performance.
+
+# 4.6. Qualitative Results and Analysis
+
+Figure 4 and Figure 5 show the visualizations of the predictions by VoteNet and SESS with $30\%$ labeled training data and $100\%$ labeled training data on the ScanNet and SUN RGB-D scenes, respectively. As seen in Figure 4, the partial scene obtained by single-view scanning in SUN RGB-D is very challenging, where some objects are partly visible but annotated with amodal ground-truth bounding boxes (e.g. the "sofa" in Figure 4). Surprisingly, both our method and the strongly supervised VoteNet successfully detect the target objects in such a challenging scene. Similar to the strongly supervised VoteNet, our SESS is able to detect more objects than those provided by the ground-truth annotations, such as the partial table in front of the sofa and the heavily occluded chairs behind the sofa. Our SESS gives more accurate predictions than VoteNet in terms of unannotated objects with $30\%$ labeled data. We attribute this to the exploitation of unlabeled data in our proposal approach. Our SESS detects more unannotated objects when $100\%$ labeled data is used in training, and the predicted 3D bounding boxes are consistent with human perception.
+
+In contrast to the partial scenes in SUN RGB-D, the scenes in ScanNet are more complete and include larger areas with cluttered objects. An example is shown in Figure 5, this scene contains 7 tables and 27 chairs. Our SESS correctly recognizes the 7 tables and 26 chairs with $30\%$ labeled data, while the strongly supervised VoteNet only detects 6 tables and 24 chairs correctly. We argue that the proposed consistency losses, which guide the model with encoded geometric and semantic information, contribute to the better localization of the 3D bounding boxes. All 34 ob
+
+
+
+
+
+
+
+
+Figure 4: Qualitative comparison between the fully-supervised VoteNet and the proposed SESS on SUN RGB-D val set.
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 5: Qualitative comparison between the fully-supervised VoteNet and the proposed SESS on ScanNetV2 val set.
+
+
+
+jects are completely detected with precise bounding boxes when our model is trained with $100\%$ labeled data.
+
+# 5. Conclusion
+
+In this paper, we propose SESS, a novel self-enssembling semi-supervised point cloud-based 3D object detection framework. It does not require a large amount of strong labels that are often difficult to obtain. Our SESS follows the Mean Teacher paradigm, where we design a perturbation scheme specific to point-based data and three consistency losses that are able to force the network to generate more accuracy detections. The experimental results on two
+
+real-world datasets validate the effectiveness and advantage of our SESS. And we experimentally show that our method is a general framework that can be applied in both inductive and transductive semi-supervised 3D object detection.
+
+Acknowledgements. This research is supported in part by the National Research Foundation, Singapore under its International Research Centres in Singapore Funding Initiative. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of National Research Foundation, Singapore. It is also partially supported by the Singapore MOE Tier 1 grant R-252-000-A65-114.
+
+# References
+
+[1] Yilun Chen, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Fast point r-cnn. In ICCV, pages 9775-9784, 2019.
+[2] Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In CVPR, pages 5828-5839, 2017.
+[3] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, 2012.
+[4] Ji Hou, Angela Dai, and Matthias Nießner. 3d-sis: 3d semantic instance segmentation of rgb-d scans. In CVPR, pages 4421-4430, 2019.
+[5] Jean Lahoud and Bernard Ghanem. 2d-driven 3d object detection in rgb-d images. In ICCV, pages 4622-4630, 2017.
+[6] Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. In ICLR, 2017.
+[7] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In CVPR, pages 12697-12705, 2019.
+[8] Buyu Li, Wanli Ouyang, Lu Sheng, Xingyu Zeng, and Xiao-gang Wang. Gs3d: An efficient 3d object detection framework for autonomous driving. In CVPR, pages 1019-1028, 2019.
+[9] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, pages 7345-7353, 2019.
+[10] Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979-1993, 2018.
+[11] Charles R Qi, Or Lility, Kaiming He, and Leonidas J Guibas. Deep hough voting for 3d object detection in point clouds. In ICCV, 2019.
+[12] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-d data. In CVPR, pages 918-927, 2018.
+[13] Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semi-supervised learning with ladder networks. In Advances in neural information processing systems, pages 3546-3554, 2015.
+[14] 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.
+[15] Zhile Ren and Erik B Sudderth. Three-dimensional object detection and layout prediction using clouds of oriented gradients. In CVPR, pages 1525-1533, 2016.
+[16] Zhile Ren and Erik B Sudderth. 3d object detection with latent support surfaces. In CVPR, pages 937-946, 2018.
+[17] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In CVPR, pages 770-779, 2019.
+
+[18] Martin Simon, Stefan Milz, Karl Amende, and Horst-Michael Gross. Complex-yolo: An euler-region-proposal for real-time 3d object detection on point clouds. In ECCV, pages 197-209. Springer, 2018.
+[19] Shuran Song, Samuel P Lichtenberg, and Jianxiong Xiao. Sun rgb-d: A rgb-d scene understanding benchmark suite. In CVPR, pages 567-576, 2015.
+[20] Shuran Song and Jianxiong Xiao. Deep sliding shapes for amodal 3d object detection in rgb-d images. In CVPR, pages 808-816, 2016.
+[21] Yew Siang Tang and Gim Hee Lee. Transferable semi-supervised 3d object detection from rgb-d data. In ICCV, 2019.
+[22] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pages 1195–1204, 2017.
+[23] Harri Valpola. From neural pca to deep unsupervised learning. In Advances in Independent Component Analysis and Learning Machines, pages 143-171. Elsevier, 2015.
+[24] Zhixin Wang and Kui Jia. Frustum convnet: Sliding frustums to aggregate local point-wise features for amodal 3d object detection. In IROS. IEEE, 2019.
+[25] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018.
+[26] Bin Yang, Wenjie Luo, and Raquel Urtasun. Pixor: Realtime 3d object detection from point clouds. In CVPR, pages 7652-7660, 2018.
+[27] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Std: Sparse-to-dense 3d object detector for point cloud. In ICCV, 2019.
+[28] Li Yi, Wang Zhao, He Wang, Minhyuk Sung, and Leonidas J Guibas. Gspn: Generative shape proposal network for 3d instance segmentation in point cloud. In CVPR, pages 3947-3956, 2019.
+[29] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, pages 4490-4499, 2018.
\ No newline at end of file
diff --git a/sessselfensemblingsemisupervised3dobjectdetection/images.zip b/sessselfensemblingsemisupervised3dobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..463f1bd9965150b9ad115cf32c51d3e5959cb051
--- /dev/null
+++ b/sessselfensemblingsemisupervised3dobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9da129434302f384c8b9a57ae439102e174aebf1023df5a7f6f2a37fc5c08dd7
+size 481165
diff --git a/sessselfensemblingsemisupervised3dobjectdetection/layout.json b/sessselfensemblingsemisupervised3dobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..68be9972a3b50c4807be11f9169f7feb945b05ff
--- /dev/null
+++ b/sessselfensemblingsemisupervised3dobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf2c06afda02075f1749cd968f8c6f3f2e049d5ea7d32d77c9a64ff64a8421c1
+size 369292
diff --git a/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_content_list.json b/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..49f119f68fda41a01ac11d9aaf4680b8f336b863
--- /dev/null
+++ b/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:218775bf1690d101e2932b817703ce57234be2ad62a38fc5efe758232206b07a
+size 79480
diff --git a/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_model.json b/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7cdd351fa0158378d12ed782559281a03ce37b5b
--- /dev/null
+++ b/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:97c425a19033c553ce9b984a9e84c7cf701628173cf8e69286274894e4b604ca
+size 99793
diff --git a/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_origin.pdf b/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..abf2ad1a935b794bf44050582688dcc6934f1aba
--- /dev/null
+++ b/sgassequentialgreedyarchitecturesearch/430c8a72-f86b-4274-a2cd-76c1d81a36ec_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ced5500f436133dc893805dbb26f28458b0325fed11200cbe349dc891786fc1c
+size 366510
diff --git a/sgassequentialgreedyarchitecturesearch/full.md b/sgassequentialgreedyarchitecturesearch/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c03f2ddb6b2d1654b40e622b285ec6f1cb70e5ec
--- /dev/null
+++ b/sgassequentialgreedyarchitecturesearch/full.md
@@ -0,0 +1,301 @@
+# SGAS: Sequential Greedy Architecture Search
+
+https://www deepgcns.org/auto/sgas
+
+Guohao Li\*, Guocheng Qian\*, Itzel C. Delgadillo\*, Matthias Muller, Ali Thabet, Bernard Ghanem
+1King Abdullah University of Science and Technology (KAUST), Saudi Arabia
+2Intelligent Systems Lab, Intel Labs, Germany
+
+# Abstract
+
+Architecture design has become a crucial component of successful deep learning. Recent progress in automatic neural architecture search (NAS) shows a lot of promise. However, discovered architectures often fail to generalize in the final evaluation. Architectures with a higher validation accuracy during the search phase may perform worse in the evaluation (see Figure 1). Aiming to alleviate this common issue, we introduce sequential greedy architecture search (SGAS), an efficient method for neural architecture search. By dividing the search procedure into subproblems, SGAS chooses and prunes candidate operations in a greedy fashion. We apply SGAS to search architectures for Convolutional Neural Networks (CNN) and Graph Convolutional Networks (GCN). Extensive experiments show that SGAS is able to find state-of-the-art architectures for tasks such as image classification, point cloud classification and node classification in protein-protein interaction graphs with minimal computational cost.
+
+# 1. Introduction
+
+Deep learning has revolutionized computer vision by learning features directly from data. As a result deep neural networks have achieved state-of-the-art results on many difficult tasks such as image classification [13], object detection [30], object tracking [37], semantic segmentation [11], depth estimation [15] and activity understanding [7], to name just a few examples. While there was a big emphasis on feature engineering before deep learning, the focus has now shifted to architecture engineering. In particular many novel architectures have been proposed, such as LeCun [26], AlexNet [25], VGG [44], GoogLeNet [46], ResNet [18], DenseNet [21], ResNeXt [54] and SENet [20]. Results on each of the above mentioned tasks keep improving every year by innovations in architecture design. In essence, the community has shifted from feature engineering to architecture engineering.
+
+
+Figure 1. Comparison of search-evaluation Kendall $\tau$ coefficients. We show Kendall $\tau$ correlations for architecture rankings between the search and the evaluation phase of DARTS and SGAS. Architectures are obtained from 10 independent search runs.
+
+In recent years, many efforts have been made to reduce the manual intervention required to obtain better models for a particular task. As a matter of fact, a new area of research, commonly referred to as meta-learning, has emerged in order to tackle such problems. The idea of meta-learning is to leverage prior experience in order to quickly find good algorithm configurations, network architectures and any required parameters for a new learning task. Examples of recent meta-learning approaches include automatic hyper-parameter search [14], data-augmentation [12], finding novel optimizers [2] and architecture search [62]. In particular, architecture search has sparked a lot of interest in the community. In this task, the search space is huge and manual search is prohibitive.
+
+Early work by Zoph et al. [62], based on Reinforcement Learning, has shown very promising results. However, its high computational cost has prevented widespread adoption. Recently, differentiable architecture search (DARTS) [33] has been proposed as an alternative which makes architecture search differentiable and much more efficient. This has opened up a path towards computationally feasible ar
+
+chitecture search. However, despite their success, current approaches still have a lot of limitations. During the search phase, network architectures are usually constructed from basic building blocks and evaluated on a validation set. Due to computational cost, the size of considered architectures is limited. In the evaluation phase, the best building blocks are used to construct larger architectures and they are evaluated on the test set. As a result there is a large discrepancy between the validation accuracy during search and the test accuracy during evaluation. In this work, we propose a novel greedy architecture search algorithm, SGAS, which addresses this discrepancy and searches very efficiently.
+
+Contributions. Our contributions can be summarized as the following: (1) We propose SGAS, a greedy approach for neural architecture search with high correlation between the validation accuracy during the search phase and the final evaluation accuracy. (2) Our method discovers top-performing architectures with much less search cost than previous state-of-the-art methods such as DARTS. (3) Our proposed method is able to search architectures for both CNNs and GCNs across various datasets and tasks.
+
+# 2. Related Work
+
+In the past, considerable success was achieved with hand-crafted architectures. One of the earliest successful architectures was LeNet [26], a very simple convolutional neural network for optical character recognition. Other prominent networks include AlexNet [25], VGG [44] and GoogLeNet [46] which revolutionized computer vision by outperforming all previous approaches in the ImageNet [13] challenge by a large margin. ResNet [18] and DenseNet [21] were further milestones in architecture design. They showed the importance of residual and dense connections for designing very deep networks, an insight that influences modern architecture design to this day. Until recently, architecture innovations were a result of human insight and experimentation. The first successful attempts for architecture search were using reinforcement learning [62] and evolutionary algorithms [40]. These works were extended with NASNet [63] where a new cell-based search space and regularization technique were proposed. Another extension, ENAS [38], represents the entire search space as a single directed acyclic graph. A controller discovers architectures by searching for subgraphs that maximize the expected reward on the validation set. This setup allows for parameter sharing between child models making search very efficient. Further, PNAS [31] introduced a sequential model-based optimization (SMBO) strategy in order to search for structures of increasing complexity. PNAS needs to evaluate 5 times less models and reduces the computational cost by a factor of 8 compared to NASNet. Yet, PNAS still requires thousands of GPU hours. One shot approaches
+
+[6, 5, 8] further reduce the search time by training a single over-parameterized network with inherited/shared weights. In order to search in a continuous domain [41, 1, 43, 50], DARTS [33] proposes a continuous relaxation of the architecture representation, making architecture search differentiable and hence much more efficient. As a result, DARTS is able to find good convolutional architectures at a fraction of the computational cost making NAS broadly accessible. Owed to the large success of DARTS, several extensions have been proposed recently. SNAS [55] optimizes parameters of a joint distribution for the search space in a cell. The authors propose a search gradient which optimizes the same objective as RL-based NAS, but leads to more efficient structural decisions. P-DARTS [9] attempts to overcome the depth gap issue between search and evaluation. This is accomplished by increasing the depth of searched architectures gradually during the training procedure. PC-DARTS [58] leverages the redundancy in network space and only samples a subset of channels in super-net during search to reduce computation.
+
+# 3. Methodology
+
+# 3.1. Preliminary - DARTS
+
+By reducing the search problem to searching for the best cell structure, cell-based NAS methods [63, 31, 40] are able to learn scalable and transferable architectures. The networks are composed of layers with identical cell structure but different weights. A cell is usually represented as a directed acyclic graph (DAG) with $N$ nodes including two input nodes, several intermediate nodes and a single output node. Each node is a latent representation denoted as $x^{(i)}$ , where $i$ is its topological order in the DAG. Each directed edge $(i,j)$ in the DAG is associated with an operation $o^{(i,j)}$ that transfers the information from node $x^{(i)}$ to node $x^{(j)}$ . In Differentiable Architecture Search (DARTS) [33] and its variants [55, 9, 58, 17], the optimal architecture is derived from a discrete search space by relaxing the selection of operations to a continuous optimization problem. During the search phase, the operation of each edge is parameterized by architectural parameters $\alpha^{(i,j)}$ as a softmax mixture over all the possible operations within the operation space $\mathcal{O}$ , i.e. $\bar{o}^{(i,j)}(x^{(i)}) = \sum_{o\in \mathcal{O}}\frac{\exp(\alpha_o^{(i,j)})}{\sum_{o'\in\mathcal{O}}\exp(\alpha_{o'}^{(i,j)})} o(x^{(i)})$ . The input nodes are represented by the outputs from the previous two cells. Each intermediate node aggregates information flows from all of its predecessors, $x^{(j)} = \sum_{i < j}\bar{o}^{(i,j)}(x^{(i)})$ . The output node is defined as a concatenation of a fixed number of its predecessors. The learning procedure of architectural parameters involves a bi-level optimization problem:
+
+$$
+\min _ {\mathcal {A}} \quad \mathcal {L} _ {v a l} \left(\mathcal {W} ^ {*} (\mathcal {A}), \mathcal {A}\right) \tag {1}
+$$
+
+$$
+\text {s . t .} \quad \mathcal {W} ^ {*} (\mathcal {A}) = \operatorname {a r g m i n} _ {\mathcal {W}} \mathcal {L} _ {\text {t r a i n}} (\mathcal {W}, \mathcal {A}) \tag {2}
+$$
+
+
+Figure 2. Illustration of Sequential Greedy Architecture Search. At each greedy decision epoch, an edge $(i^{\dagger}, j^{\dagger})$ is selected based on the selection criterion. A greedy decision will be made for the edge $(i^{\dagger}, j^{\dagger})$ by replacing $\bar{o}^{(i^{\dagger}, j^{\dagger})}$ with $o^{(i^{\dagger}, j^{\dagger})} = \operatorname{argmax}_{o \in \mathcal{O}} \alpha_{o}^{(i^{\dagger}, j^{\dagger})}$ . The corresponding architectural parameter $\alpha^{(i^{\dagger}, j^{\dagger})}$ will be removed from the bi-level optimization. Operations which were not chosen in a mixture operation will be pruned. At the end of the search phase, a stand-alone architecture without weight sharing will be obtained.
+
+$\mathcal{L}_{train}$ and $\mathcal{L}_{val}$ denote the training and validation loss respectively. Owing to the continuous relaxation, the search is realized by optimizing a supernet. $\mathcal{W}$ is the set of weights of the supernet and $\mathcal{A}$ is the set of the architectural parameters. DARTS [33] proposed to solve this bi-level problem by a first/second order approximation. At the end of the search, the final architecture is derived by selecting the operation with highest weight for every mixture operation, $o^{(i,j)} = \operatorname{argmax}_{o\in \mathcal{O}}\alpha_{o}^{(i,j)}$
+
+# 3.2. Search-Evaluation Correlation
+
+A popular pipeline of existing NAS algorithms [63, 33] includes two stages: a search phase and an evaluation phase. In order to reduce computational overhead, previous works [63, 33] first search over a pre-defined search space with a lightweight proxy model on a small proxy dataset. After the best architecture cell/encoding is obtained, the final architecture is built and trained from scratch on the target dataset. This requires that the true performance during evaluation can be inferred during the search phase. However, this assumption usually does not hold due to the discrepancy in dataset, hyper-parameters and network architectures between the search and evaluation phases. The best ranking derived from the search phase does not imply the actual ranking in the final evaluation. In practice, the correlation between the performances of derived architectures during the search and evaluation phases is usually low. In this paper, we refer to this issue as degenerate search-evaluation correlation. Recent work by Sciuto et al. [42] also analyzes this issue and suggests that the Kendall $\tau$ metric [22] could be used to evaluate the search phase. They show that the widely used weight sharing technique actually decreases the correlation. The Kendall $\tau$ metric [22] is a common
+
+measurement of the correlation between two rankings. The Kendall $\tau$ coefficient can be computed as $\tau = \frac{N_c - N_d}{\frac{1}{2}n(n - 1)}$ , where $N_{c}$ and $N_{d}$ are the number of concordant pairs and the number of discordant pairs respectively. It is a number in the range from $-1$ to 1 where $-1$ corresponds to a perfect negative correlation and 1 to a perfect positive correlation. If the Kendall $\tau$ coefficient is 0, the rankings are completely independent. An ideal NAS method should have a high search-evaluation Kendall $\tau$ coefficient. We take DARTS [33] as an example and show its Kendall $\tau$ in Figure 1. It is calculated between the rankings during search phase and evaluation phase. The rankings are determined according to the validation accuracy and the final evaluation accuracy after 10 different runs on the CIFAR-10 dataset. The Kendall $\tau$ coefficients for DARTS are only 0.16 and $-0.29$ for the 1st-order and 2nd-order versions respectively. Therefore, it is impossible to make reliable predictions regarding the final test accuracy based on the search phase.
+
+# 3.3. Sequential Greedy Architecture Search
+
+In order to alleviate the degenerate search-evaluation correlation problem, the core aspects are to reduce (1) the discrepancy between the search and evaluation phases and (2) the negative effect of weight sharing. We propose to solve the bi-level optimization (Equation 1, 2) in a sequential greedy fashion to reduce the model discrepancy and the weight sharing progressively. As mentioned in Section 3.1, DARTS-based methods [33, 9, 58] solve the relaxed problem fully and obtain all the selected operations at the end. Instead of solving the complete problem directly, we divide it into sub-problems and solve them sequentially with a greedy algorithm. The sub-problems are defined based on the directed edges in the DAG. We pick the operation
+
+Algorithm 1: SGAS – Sequential Greedy Architecture Search
+
+Create architectural parameters $\mathcal{A} = \{\alpha^{(i,j)}\}$ and supernet weights $\mathcal{W}$
+
+Create a mixed operation $\bar{o}^{(i,j)}$ parameterized by $\alpha^{(i,j)}$ for each edge $(i,j)$
+
+while not terminated do
+
+1. Update undetermined architecture parameters $\mathcal{A}$ by descending $\nabla_{\mathcal{A}}\mathcal{L}_{val}(\mathcal{W},\mathcal{A})$
+2. Update weights $\mathcal{W}$ by descending $\nabla_{\mathcal{W}}\mathcal{L}_{train}(\mathcal{W},\mathcal{A})$
+
+(since the weights of unchosen operations are pruned, only the remaining weights need to be updated)
+
+3. If a decision epoch, select an edge $(i^{\dagger},j^{\dagger})$ based on the greedy Selection Criterion
+
+Determine the operation by replacing $\bar{o}^{(i^{\dagger},j^{\dagger})}$ with $o^{(i^{\dagger},j^{\dagger})} = \operatorname{argmax}_{o\in \mathcal{O}}\alpha_{o}^{(i^{\dagger},j^{\dagger})}$
+
+Prune unchosen weights from $\mathcal{W}$ , Remove $\alpha^{(i^{\dagger},j^{\dagger})}$ from $\mathcal{A}$
+
+Derive the final architecture based on chosen operations
+
+for edges greedily in a sequential manner and solve the remaining sub-problem iteratively. The iterative procedure is shown in Algorithm 1. At each decision epoch, we choose one edge $(i^{\dagger},j^{\dagger})$ according to a pre-defined selection criterion. A greedy optimal choice is made for the selected edge by replacing the corresponding mixture operation $\bar{o}^{(i^{\dagger},j^{\dagger})}$ with $o^{(i^{\dagger},j^{\dagger})} = \operatorname{argmax}_{o\in \mathcal{O}}\alpha_{o}^{(i^{\dagger},j^{\dagger})}$ . The architectural parameters $\alpha^{(i^{\dagger},j^{\dagger})}$ and the weights of the remaining paths within the mixture operations are no longer needed; we prune and exclude them from the latter optimization. As a side benefit, the efficiency improves as parameters in $\mathcal{A}$ and $\mathcal{W}$ are pruned gradually in the optimization loop. The search procedure of the remaining $\mathcal{A}$ and $\mathcal{W}$ forms a new sub-problem which will be solved iteratively. At the end of the search phase, a stand-alone network without weight sharing is obtained, as illustrated in Figure 2. Therefore, the model discrepancy is minimized and the validation accuracy during the search phase reflects the final evaluation accuracy much better. To maintain the optimality, the design of the selection criterion is crucial. We consider three aspects of edges which are the edge importance, the selection certainty and the selection stability.
+
+Edge Importance. Similar to DARTS [33], a zero operation is included in the search space to indicate a lack of connection. Edges that are important should have a low weight in the zero operation. Thus, the edge importance is defined as the summation of weights over non-zero operations:
+
+$$
+S _ {E I} ^ {(i, j)} = \sum_ {o \in \mathcal {O}, o \neq z e r o} \frac {\exp \left(\alpha_ {o} ^ {(i , j)}\right)}{\sum_ {o ^ {\prime} \in \mathcal {O}} \exp \left(\alpha_ {o ^ {\prime}} ^ {(i , j)}\right)} \tag {3}
+$$
+
+Selection Certainty. Entropy is a common measurement of uncertainty of a distribution. The normalized softmax weights of non-zero operations can be regarded as a distribution, $p_{o}^{(i,j)} = \frac{\exp(\alpha_{o}^{(i,j)})}{S_{EI}^{(i,j)}\sum_{o^{\prime}\in\mathcal{O}}\exp(\alpha_{o^{\prime}}^{(i,j)})}, o\in \mathcal{O}, o\neq zero.$ We define the selection certainty as the complement of the
+
+normalized entropy of the operation distribution:
+
+$$
+S _ {S C} ^ {(i, j)} = 1 - \frac {- \sum_ {o \in \mathcal {O} , o \neq z e r o} p _ {o} ^ {(i , j)} \log \left(p _ {o} ^ {(i , j)}\right)}{\log (| \mathcal {O} | - 1)} \tag {4}
+$$
+
+Selection Stability. In order to incorporate the history information, we measure the movement of the operation distribution. Kullback-Leibler divergence and histogram intersection [45] are two popular methods to detect changes in distribution. For simplicity, we choose the latter one. The average selection stability at step $T$ with a history window size $K$ is computed as follows:
+
+$$
+S _ {S S} ^ {(i, j)} = \frac {1}{K} \sum_ {t = T - K} ^ {T - 1} \sum_ {\substack {o _ {t} \in \mathcal {O} o _ {t}, \neq z e r o}} \min (p _ {o _ {t}} ^ {(i, j)}, p _ {o _ {T}} ^ {(i, j)}) \tag{5}
+$$
+
+In our experiments, we consider the following two criteria:
+
+Criterion 1. An edge $(i^{\dagger},j^{\dagger})$ with a high edge importance $S_{EI}^{(i,j)}$ and a high selection certainty $S_{SC}^{(i,j)}$ will be selected. We normalize $S_{EI}^{(i,j)}$ and $S_{SC}^{(i,j)}$ , compute the final score and pick the edge with the highest score:
+
+$$
+S _ {1} ^ {(i, j)} = \operatorname {n o r m a l i z e} \left(S _ {E I} ^ {(i, j)}\right) * \operatorname {n o r m a l i z e} \left(S _ {S C} ^ {(i, j)}\right) \tag {6}
+$$
+
+Criterion 2. In addition to Criterion 1, we also consider that the selected edge $(i^{\dagger},j^{\dagger})$ should have a high selection stability. The final score is defined as follows:
+
+$$
+S _ {2} ^ {(i, j)} = S _ {1} ^ {(i, j)} * \text {n o r m a l i z e} \left(S _ {S S} ^ {(i, j)}\right) \tag {7}
+$$
+
+where normalize(\cdot) denotes a standard Min-Max scaling normalization. For a fair comparison with existing works [62, 40, 33], two incoming edges are preserved for every intermediate node in the DAG. Once a node has two determined incoming edges, its other incoming edges will be pruned. We refer to our method as Sequential Greedy Architecture Search (SGAS). Figure 1 shows that SGAS with Criterion 1 and 2 improves the Kendall $\tau$ correlation coefficients to 0.56 and 0.42 respectively. As expected from the much higher search-evaluation correlation SGAS outperform DARTS in terms of average accuracy significantly.
+
+# 4. Experiments
+
+We use our SGAS to automatically find architectures for both CNNs and GCNs. The CNN architectures discovered by SGAS outperform the state-of-the-art (SOTA) in image classification on CIFAR-10 [24] and ImageNet [13]. Similarly, the discovered GCN architectures outperform the state-of-the-art methods for point cloud classification on ModelNet [53] and node classification in biological graphs using the PPI [61] dataset.
+
+# 4.1. Searching CNN architectures with SGAS
+
+# 4.1.1 Architecture Search on CIFAR-10
+
+As is common practice, we first search for normal cells and reduction cells with a small network for image classification on CIFAR-10. CIFAR-10 is a small popular dataset containing $50K$ training images and $10K$ testing images. Then, a larger network is constructed by making necessary changes in channel size and stacking the searched cells multiple times. The larger network is retrained on CIFAR-10 to compare its performance with other state-of-the-art methods. Finally, we show the transferability of our SGAS by stacking even more cells and evaluating on ImageNet. We show that SGAS consistently achieves the top performance.
+
+Search Space. We keep our search space the same as DARTS, which has 8 candidate operations: skip-connect, max-pool- $3\times 3$ , avg-pool- $3\times 3$ , sep-conv- $3\times 3$ , sep-conv- $5\times 5$ , dil-conv- $3\times 3$ , dil-conv- $5\times 5$ , zero. During the search phase, we stack 6 normal cells and 2 reduction cells to form a network. Two reduction cells are inserted at a network depth of $1/3$ and $2/3$ respectively. The stride of each convolution in normal cells is 1, so the spatial size of an input feature map does not change. In reduction cells, convolutions with stride 2 are used to reduce the spatial resolution of feature maps. There are 7 nodes with 4 intermediate nodes and 14 edges in each cell during search. The first and second input nodes of the cell are set equal to the outputs of the two previous cells respectively. The output node of a cell is the depth-wise concatenation of all the intermediate nodes.
+
+Training Settings. We keep the training setting the same as in DARTS [33]. A small network consisting of 6 normal cells and 2 reduction cells with an initial channel size 16 is trained on CIFAR-10. We perform architecture search for 50 epochs with a batch size of 64. SGD is used to optimize the model weights $\mathcal{W}$ with an initial learning rate 0.025, momentum 0.9 and weight decay $3 \times 10^{-4}$ . For architecture parameters $\mathcal{A}$ , the Adam optimizer with an initial learning rate $3 \times 10^{-4}$ , momentum (0.5, 0.999) and weight decay $10^{-3}$ is used. Instead of training the entire supernet throughout the search phase, SGAS makes decisions sequentially in a greedy fashion. After warming up for 9 epochs, SGAS begins to select one operation for one se
+
+lected edge every 5 epochs using Criterion 1 or Criterion 2 as the selection criterion. For Criterion 2, we set the history window size $K$ to 4. The batch size is increased by 8 after each greedy decision, which further boosts the searching efficiency of SGAS. We provide a thorough discussion and ablation study on the choices of hyper-parameters in the supplementary material. The search takes only 0.25 day (6 hours) on a single NVIDIA GTX 1080Ti.
+
+# 4.1.2 Architecture Evaluation on CIFAR-10
+
+We run 10 independent searches to get 10 architectures with Criterion 1 or Criterion 2, as shown in Figure 1. To highlight the stability of the search method, we evaluate the discovered architectures on CIFAR-10 and report the mean and standard deviation of the test accuracy across those 10 models and the performance of the best model in Table 1. It is important to mention that other related works in Table 1 only report the mean and standard deviation for their best architecture with different runs on evaluation.
+
+Training Settings. We train a large network of 20 cells with a initial channel size 36. The SGD optimizer is used during 600 epochs with a batch size of 96. The other hyperparameters remain the same as the search phase. Cutout with length 16, auxiliary towers with weight 0.4 and path dropout with probability 0.3 are used as in DARTS [33].
+
+Evaluation Results and Analysis. We compare our results with other methods in Table 1 and report the average and best performance for both Criterion 1 and Criterion 2. We outperform our baseline DARTS by a significant margin with test errors of $2.39\%$ and $2.44\%$ respectively while only using 0.25 day (6 hours) on a single NVIDIA GTX 1080Ti.
+
+# 4.1.3 Architecture Evaluation on ImageNet
+
+The architecture evaluation on ImageNet uses the cell architectures that we obtained after searching on CIFAR-10.
+
+Training Settings. We choose the 3 best performing cell architectures on CIFAR-10 for each Criterion and train them on ImageNet. For this evaluation, we build a large network with 14 cells and 48 initial channels and train for 250 epochs with a batch size of 1024. The SGD optimizer with an initial learning rate of 0.5, a momentum of 0.9 and a weight decay of $3 \times 10^{-5}$ is used. We run these experiments on 8 Nvidia Tesla V100 GPUs for three days.
+
+Evaluation Results and Analysis. In Table 2 we compare our models with SOTA hand-crafted architectures (manual) and models obtained through other search methods. We apply the mobile setting for ImageNet, which has an image size of $224 \times 224$ and restricts the number of multi-add operations to $600M$ . Our best performing models SGAS (Cri.1 best) and SGAS (Cri.2 best) outperform all the other methods with top-1 errors $24.2\%$ and $24.1\%$ respectively
+
+| Architecture | Test Err. (%) | Params (M) | Search Cost (GPU-days) | Search Method |
| DenseNet-BC [21] | 3.46 | 25.6 | - | manual |
| NASNet-A [63] | 2.65 | 3.3 | 1800 | RL |
| AmoebaNet-A [40] | 3.34±0.06 | 3.2 | 3150 | evolution |
| AmoebaNet-B [40] | 2.55±0.05 | 2.8 | 3150 | evolution |
| Hier-Evolution [32] | 3.75±0.12 | 15.7 | 300 | evolution |
| PNAS [31] | 3.41±0.09 | 3.2 | 225 | SMBO |
| ENAS [38] | 2.89 | 4.6 | 0.5 | RL |
| NAONet-WS [35] | 3.53 | 3.1 | 0.4 | NAO |
| DARTS (1storder) [33] | 3.00±0.14 | 3.3 | 0.4 | gradient |
| DARTS (2ndorder) [33] | 2.76±0.09 | 3.3 | 1 | gradient |
| SNAS (mild) [55] | 2.98 | 2.9 | 1.5 | gradient |
| ProxylessNAS [8] | 2.08 | - | 4 | gradient |
| P-DARTS [9] | 2.5 | 3.4 | 0.3 | gradient |
| BayesNAS [60] | 2.81±0.04 | 3.4 | 0.2 | gradient |
| PC-DARTS [58] | 2.57±0.07 | 3.6 | 0.1 | gradient |
| SGAS (Cri.1 avg.) | 2.66±0.24* | 3.7 | 0.25 | gradient |
| SGAS (Cri.1 best) | 2.39 | 3.8 | 0.25 | gradient |
| SGAS (Cri.2 avg.) | 2.67±0.21* | 3.9 | 0.25 | gradient |
| SGAS (Cri.2 best) | 2.44 | 4.1 | 0.25 | gradient |
+
+Table 1. Performance comparison with state-of-the-art image classifiers on CIFAR-10. We report the average and best performance of SGAS (Cri.1) and SGAS (Cri.2). Criterion 1 and Criterion 2 are used in the search respectively. *Note that mean and standard derivation are computed across 10 independently searched architectures.
+
+while using only a search cost of 0.25 GPU day on one NVIDIA GTX 1080Ti. SGAS (Cri.2) outperforms SGAS (Cri.1) showing the effectiveness of integrating selection stability into the selection criterion. The best performing cells of SGAS (Cri.2 best) are illustrated in Figure 3.
+
+# 4.2. Searching GCN architectures with SGAS
+
+Recently, GCNs have achieved impressive performance on point cloud segmentation [28], biological graph node classification [27] and video recognition [57] by training DeepGCNs [28, 27]. However, this hand-crafted architecture design requires adequate effort by an human expert. The main component of DeepGCNs is the GCN backbone. We explore an automatic way to design the GCN backbone using SGAS. Our backbone network is formed by stacking the graph convolutional cell discovered by SGAS. Our GCN cell consists of 6 nodes. We use fixed $1 \times 1$ convolutions in the first two nodes, and set the input to them equal to the output from the previous two layers. Our experiments on GCNs have two stages. First, we apply SGAS to search for the graph convolutional cell using a small dataset and obtain 10 architectures from 10 runs. Then, 10 larger networks are constructed by stacking each discovered cell multiple times. The larger networks are trained on the same dataset or a larger one to evaluate their performance. We report the best and average performance of these 10 architectures. We show the effectiveness of SGAS in GCN architecture search by comparisons with SOTA hand-crafted methods and Random Search.
+
+# 4.2.1 Architecture Search on ModelNet10
+
+ModelNet [53] is a dataset for 3D object classification with two variants, ModelNet10 and ModelNet40 containing objects from 10 and 40 classes respectively. We conduct GCN architecture search on ModelNet10 and then evaluate the final performance on ModelNet40.
+
+Search Space. Our graph convolutional cell has 10 candidate operations: conv- $1 \times 1$ , MRCnv [28], EdgeConv [52], GAT [49], SemiGCN [23], GIN [56], SAGE [16], RelSAGE, skip-connect, and zero operation. Please refer to our supplementary material for more details of these GCN operators. We use $k$ nearest neighbor in the first operation of each cell to construct edges (we use $k = 9$ by default unless it is specified). These edges are then shared in the following operations inside the cell. Dilated graph convolutions with the same linearly increasing dilation rate schedule as proposed in DeepGCNs [28] are applied to the cells.
+
+Training Settings. We sample 1024 points from the 3D models in ModelNet10. We use 2 cells with 32 initial channels and search the architectures for 50 epochs with batch size 28. SGD is used to optimize the model weights with initial learning rate 0.005, momentum 0.9 and weight decay $3 \times 10^{-4}$ . The Adam optimizer with the same parameters as in the search for CNNs is used to optimize architecture parameters. After warming up for 9 epochs, SGAS begins to select one operation for a selected edge every 7 epochs. We experimented with both selection criteria, Criterion 1 and Criterion 2. We use a history window of 4 for Cri.2. The
+
+| Architecture | Test Err. (%) | Params (M) | ×+ (M) | Search Cost (GPU-days) | Search Method |
| top-1 | top-5 |
| Inception-v1 [46] | 30.2 | 10.1 | 6.6 | 1448 | - | manual |
| MobileNet [19] | 29.4 | 10.5 | 4.2 | 569 | - | manual |
| ShuffleNet 2x (v1) [59] | 26.4 | 10.2 | ~5 | 524 | - | manual |
| ShuffleNet 2x (v2) [36] | 25.1 | - | ~5 | 591 | - | manual |
| NASNet-A [63] | 26 | 8.4 | 5.3 | 564 | 1800 | RL |
| NASNet-B [63] | 27.2 | 8.7 | 5.3 | 488 | 1800 | RL |
| NASNet-C [63] | 27.5 | 9 | 4.9 | 558 | 1800 | RL |
| AmoebaNet-A [40] | 25.5 | 8 | 5.1 | 555 | 3150 | evolution |
| AmoebaNet-B [40] | 26 | 8.5 | 5.3 | 555 | 3150 | evolution |
| AmoebaNet-C [40] | 24.3 | 7.6 | 6.4 | 570 | 3150 | evolution |
| FairNAS-A [10] | 24.7 | 7.6 | 4.6 | 388 | 12 | evolution |
| PNAS [31] | 25.8 | 8.1 | 5.1 | 588 | 225 | SMBO |
| MnasNet-92 [47] | 25.2 | 8 | 4.4 | 388 | - | RL |
| DARTS (2ndorder) [33] | 26.7 | 8.7 | 4.7 | 574 | 4.0 | gradient |
| SNAS (mild) [55] | 27.3 | 9.2 | 4.3 | 522 | 1.5 | gradient |
| ProxylessNAS [8] | 24.9 | 7.5 | 7.1 | 465 | 8.3 | gradient |
| P-DARTS [9] | 24.4 | 7.4 | 4.9 | 557 | 0.3 | gradient |
| BayesNAS [60] | 26.5 | 8.9 | 3.9 | - | 0.2 | gradient |
| PC-DARTS [58] | 25.1 | 7.8 | 5.3 | 586 | 0.1 | gradient |
| SGAS (Cri.1 avg.) | 24.41±0.16 | 7.29±0.09 | 5.3 | 579 | 0.25 | gradient |
| SGAS (Cri.1 best) | 24.2 | 7.2 | 5.3 | 585 | 0.25 | gradient |
| SGAS (Cri.2 avg.) | 24.38±0.22 | 7.39±0.07 | 5.4 | 597 | 0.25 | gradient |
| SGAS (Cri.2 best) | 24.1 | 7.3 | 5.4 | 598 | 0.25 | gradient |
+
+Table 2. Comparison with state-of-the-art classifiers on ImageNet. We transfer the top 3 performing architectures on CIFAR-10 to ImageNet in the mobile setting. $\times +$ denote multiply-add operations. The average and best performance of SGAS are reported.
+
+| Architecture | OA (%) | Params (M) | Search Cost (GPU-days) |
| 3DmFV-Net [4] | 91.6 | 45.77 | manual |
| SpecGCN [51] | 91.5 | 2.05 | manual |
| PointNet++ [39] | 90.7 | 1.48 | manual |
| PCNN [3] | 92.3 | 8.2 | manual |
| PointCNN [29] | 92.2 | 0.6 | manual |
| DGCNN [52] | 92.2 | 1.84 | manual |
| KPConv [48] | 92.9 | 14.3 | manual |
| Random Search | 92.65±0.33 | 8.77 | random |
| SGAS (Cri.1 avg.) | 92.69±0.20 | 8.78 | 0.19 |
| SGAS (Cri.1 best) | 92.87 | 8.63 | 0.19 |
| SGAS (Cri.2 avg.) | 92.93±0.19 | 8.87 | 0.19 |
| SGAS (Cri.2 best) | 93.23 | 8.49 | 0.19 |
| SGAS (Cri.2 small best) | 93.07 | 3.86 | 0.19 |
+
+Table 3. Comparison with state-of-the-art architectures for 3D object classification on ModelNet40. 10 architectures are derived for both SGAS and Random Search within the same search space.
+
+batch size increases by 4 after each decision. The search takes around 0.19 GPU day on one NVIDIA GTX 1080Ti.
+
+# 4.2.2 Architecture Evaluation on ModelNet40
+
+After searching for 10 architectures on ModelNet10, we form a large backbone network for each and train them on ModelNet40. The performance of 3D point cloud classification is evaluated with the overall accuracy (OA). We also
+
+apply Random Search to the same search space to obtain 10 architectures as our random search baseline.
+
+Training Settings. We stack the searched cell 9 times with channel size 128. We also form small networks by stacking the cell 3 times with the same channel size. We use $k = 20$ for all the large networks and $k = 9$ for the small ones. Adam is used to optimize the weights with initial learning rate 0.001 and weight decay $1 \times 10^{-4}$ . We sample 1024 points as input. Our architectures are all trained for 400 epochs with batch size of 32. We report the mean and standard deviation of the accuracy on the test dataset of the 10 discovered architectures; we also report the accuracy of the best performing model of the big and the small networks.
+
+Evaluation Results and Analysis. We compare the performance of our discovered architectures with SOTA handcrafted methods and architectures obtained by Random Search for 3D point clouds classification on ModelNet40. Table 3 shows that SGAS (Cri.2 best), the best architecture discovered by our SGAS with Criterion 2, outperforms all the other models. The smaller network SGAS (Cri.2 small best) discovered by SGAS with Criterion 2 also outperforms all the hand-crafted architectures. Owing to a well-designed search space, Random Search is a strong baseline. The performance of SGAS surpasses the hand-crafted architectures and Random Search, demonstrating the effectiveness of SGAS for GCN architecture search. The best architecture for this task can be found in Figure 4 (a).
+
+
+(a) Normal cell
+
+
+(b) Reduction cell
+
+
+(a) Normal cell of the best model with SGAS Crit. 2 on ModelNet40
+Figure 4. Best cell architectures on ModelNet40 and PPI
+
+
+Figure 3. Best cell architecture on Imagenet with SGAS Crit. 2
+(b) Normal cell of the best model with SGAS Crit. 1 on PPI
+
+# 4.2.3 Architecture Search on PPI
+
+PPI is a popular biological graph dataset in the data mining domain. We search for GCN architectures on the PPI dataset for the task of node classification.
+
+Training Settings. We use 1 cell with 32 channels. We train and search the architectures for 50 epochs with a batch size of 6 on PPI. We do not increase the batch size after making decisions since PPI is small and only contains 20 batches. The other parameters are the same as when searching on ModelNet10. The search takes around 0.003 day (4 minutes) on a Nvidia Tesla V100 GPU (16GB).
+
+# 4.2.4 Architecture Evaluation on PPI
+
+We evaluate architectures on the PPI test set. We report the mean, standard derivation and the best accuracy and compare them with the SOTA methods and Random Search. We also conduct an ablation study on number of cells and channel size which we include in the supplementary material.
+
+Training Settings. We stack the discovered cell 5 times with channel size 512. Adam is used to optimize the model weights with initial learning rate 0.002. We use a cosine annealing to schedule the learning rate. Our architectures are trained for 2000 epochs with batch size of 1 as suggested in DeepGCNs [27]. We find the best model on the validation dataset and obtain the micro-F1 score on the test dataset.
+
+Evaluation Results and Analysis. We compare the average and best performance of SGAS to other state-of-the-arts methods and Random Search on node classification on the PPI dataset. Table 4 shows the best architecture discovered by our SGAS outperforms the state-of-the-art DenseMRGCN-14 [27] by $\sim 0.03\%$ with $\sim 30.24\mathrm{M}$ less parameters. The average performance of SGAS also surpasses the Random Search baseline consistently. In addition, SGAS (Cri.2 avg.) outperforms SGAS (Cri.1 avg.) in terms of both mean and standard deviation. This indicates
+
+| Architecture | micro-F1 (%) | Params (M) | Search Cost (GPU-days) |
| GraphSAGE (LSTM) [16] | 61.2 | 0.26 | manual |
| GeniePath [34] | 97.9 | 1.81 | manual |
| GAT [49] | 97.3±0.2 | 3.64 | manual |
| DenseMRGCN-14 [27] | 99.43 | 53.42 | manual |
| ResMRGCN-28 [27] | 99.41 | 14.76 | manual |
| Random Search | 99.36±0.04 | 23.70 | random |
| SGAS (Cri.1 avg.) | 99.38±0.17 | 25.01 | 0.003 |
| SGAS (Cri.1 best) | 99.46 | 23.18 | 0.003 |
| SGAS (Cri.2 avg.) | 99.40±0.09 | 25.93 | 0.003 |
| SGAS (Cri.2 best) | 99.46 | 29.73 | 0.003 |
| SGAS (small) | 98.89 | 0.40 | 0.003 |
+
+Table 4. Comparison with state-of-the-art architectures for node classification on PPI. SGAS (small) is the small network stacking the cell searched by SGAS (Cri.1).
+
+that Criterion 2 provides more stable results. We visualize the architecture with the best performance in Figure 4 (b).
+
+# 5. Conclusion
+
+In this work, we propose the Sequential Greedy Architectural Search (SGAS) algorithm to design architectures automatically for CNNs and GCNs. The bi-level optimization problem in NAS is solved in a greedy fashion using heuristic criteria which take the edge importance, the selection certainty and the selection stability into consideration. Such an approach alleviates the effect of the degenerate search-evaluation correlation problem and reflects the true ranking of architectures. As a result, architectures discovered by SGAS achieve state-of-the-art performance on CIFAR-10, ImageNet, ModelNet and PPI datasets.
+
+Acknowledgments. This work was supported by the King Abdullah University of Science and Technology (KAUST) Office of Sponsored Research (OSR) through VCC funding. The authors thank the KAUST IBEX team for helping to optimize the training workloads on ImageNet.
+
+# References
+
+[1] Karim Ahmed and Lorenzo Torresani. Connectivity learning in multi-branch networks. arXiv preprint arXiv:1709.09582, 2017. 2
+[2] Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando De Freitas. Learning to learn by gradient descent by gradient descent. In Advances in neural information processing systems, pages 3981-3989, 2016. 1
+[3] Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. ACM Trans. Graph., 37(4):71:1-71:12, July 2018. 7
+[4] Yizhak Ben-Shabat, Michael Lindenbaum, and Anath Fischer. 3dmfv: Three-dimensional point cloud classification in real-time using convolutional neural networks. IEEE Robotics and Automation Letters, 3(4):3145-3152, 2018. 7
+[5] 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
+[6] Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Smash: one-shot model architecture search through hypernetworks. arXiv preprint arXiv:1708.05344, 2017. 2
+[7] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961-970, 2015. 1
+[8] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. 2, 6, 7
+[9] 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. 2, 3, 6, 7
+[10] Xiangxiang Chu, Bo Zhang, Ruijun Xu, and Jixiang Li. Fairnas: Rethinking evaluation fairness of weight sharing neural architecture search, 2019. 7
+[11] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213-3223, 2016. 1
+[12] 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. 1
+[13] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPRO9, 2009. 1, 2, 5
+[14] Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimiliano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. arXiv preprint arXiv:1806.04910, 2018. 1
+[15] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The Inter-
+
+national Journal of Robotics Research, 32(11):1231-1237, 2013. 1
+[16] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, pages 1024-1034, 2017. 6, 8
+[17] Chaoyang He, Haishan Ye, Li Shen, and Tong Zhang. Milenas: Efficient neural architecture search via mixed-level reformulation. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. 2
+[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, 2
+[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. arXiv preprint arXiv:1704.04861, 2017. 7
+[20] 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. 1
+[21] 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, 6
+[22] Maurice G Kendall. A new measure of rank correlation. Biometrika, 30(1/2):81-93, 1938. 3
+[23] Thomas Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. ArXiv, abs/1609.02907, 2016. 6
+[24] Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. 5
+[25] 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
+[26] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998. 1, 2
+[27] Guohao Li, Matthias Müller, Guocheng Qian, Itzel C. Delgadillo, Abdulellah Abualshour, Ali K. Thabet, and Bernard Ghanem. Deep GCs: Making GCs go as deep as cnns. ArXiv, abs/1910.06849, 2019. 6, 8
+[28] Guohao Li, Matthias Müller, Ali Thabet, and Bernard Ghanem. Deep GCs: Can GCs go as deep as cnns? In The IEEE International Conference on Computer Vision (ICCV), 2019. 6
+[29] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In NeurIPS, 2018. 7
+[30] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dálár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014. 1
+
+[31] 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, 6, 7
+[32] Hanxiao Liu, Karen Simonyan, Oriol Vinyals, Chrisantha Fernando, and Koray Kavukcuoglu. Hierarchical representations for efficient architecture search, 2017. 6
+[33] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. 1, 2, 3, 4, 5, 6, 7
+[34] Ziqi Liu, Chaochao Chen, Longfei Li, Jun Zhou, Xiaolong Li, Le Song, and Yuan Qi. Geniepath: Graph neural networks with adaptive receptive paths. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4424-4431, 2019. 8
+[35] Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Advances in neural information processing systems, pages 7816-7827, 2018. 6
+[36] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Proceedings of the European Conference on Computer Vision (ECCV), pages 116-131, 2018. 7
+[37] Matthias Muller, Adel Bibi, Silvio Giancola, Salman Alsubaihi, and Bernard Ghanem. Trackingnet: A large-scale dataset and benchmark for object tracking in the wild. In Proceedings of the European Conference on Computer Vision (ECCV), pages 300-317, 2018. 1
+[38] 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, 6
+[39] 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. 7
+[40] 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. 2, 4, 6, 7
+[41] Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. In Advances in Neural Information Processing Systems, pages 4053-4061, 2016. 2
+[42] Christian Sciuto, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv preprint arXiv:1902.08142, 2019.3
+[43] Richard Shin, Charles Packer, and Dawn Song. Differentiable neural network architecture search. 2018. 2
+[44] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 1, 2
+[45] Michael J Swain and Dana H Ballard. Color indexing. International journal of computer vision, 7(1):11-32, 1991. 4
+[46] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Computer Vision and Pattern Recognition (CVPR), 2015. 1, 2, 7
+
+[47] 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. 7
+[48] Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatrix Marcotegui, François Goulette, and Leonidas J. Guibas. Kpconv: Flexible and deformable convolution for point clouds. Proceedings of the IEEE International Conference on Computer Vision, 2019. 7
+[49] Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017. 6, 8
+[50] Tom Veniat and Ludovic Denoyer. Learning time/memory-efficient deep architectures with budgeted super networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3492-3500, 2018. 2
+[51] Chu Wang, Babak Samari, and Kaleem Siddiqi. Local spectral graph convolution for point set feature learning. In The European Conference on Computer Vision (ECCV), September 2018. 7
+[52] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 2019. 6, 7
+[53] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1912-1920, 2014. 5, 6
+[54] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017. 1
+[55] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. Snas: stochastic neural architecture search. arXiv preprint arXiv:1812.09926, 2018. 2, 6, 7
+[56] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? ArXiv, abs/1810.00826, 2018. 6
+[57] Mengmeng Xu, Chen Zhao, David S. Rojas, Ali Thabet, and Bernard Ghanem. G-tad: Sub-graph localization for temporal action detection, 2019. 6
+[58] 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. 2, 3, 6, 7
+[59] 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. 7
+[60] Hongpeng Zhou, Minghao Yang, Jun Wang, and Wei Pan. Bayesnas: A bayesian approach for neural architecture search, 2019. 6, 7
+
+[61] Marinka Zitnik and Jure Leskovec. Predicting multicellular function through multi-layer tissue networks. In Bioinformatics, 2017. 5
+[62] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. 1, 2, 4
+[63] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697-8710, 2018. 2, 3, 6, 7
\ No newline at end of file
diff --git a/sgassequentialgreedyarchitecturesearch/images.zip b/sgassequentialgreedyarchitecturesearch/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..341dbe26e1e8e81db8e53c8332afe048d5555e6b
--- /dev/null
+++ b/sgassequentialgreedyarchitecturesearch/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ec77953b8bbcadeb070b26a3252a70df885e7bd4c3ec5fcaf98c45ebdfc4251b
+size 508034
diff --git a/sgassequentialgreedyarchitecturesearch/layout.json b/sgassequentialgreedyarchitecturesearch/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4efbffaef66031eef8e6157da11b586b4a2363c0
--- /dev/null
+++ b/sgassequentialgreedyarchitecturesearch/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f7153d8cef86690b8dcc868df6c27a17a4bf1d3524516cb1e6c1cc324df17c33
+size 391241
diff --git a/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_content_list.json b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..53a2f8afd6365e60749a3054137d2fbecae57d24
--- /dev/null
+++ b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8b41b53d7b5d663f174c6a22bf20945e25735ca3221afd6bd4b3e6164bac3730
+size 60886
diff --git a/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_model.json b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a1f563b51da5feba747b14e668da347e7f75237b
--- /dev/null
+++ b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:494293845cce8e356ccea579d4a816f91dde3cef8dea1ba1a064bca70b8f3b0a
+size 74707
diff --git a/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_origin.pdf b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..82919c411ac380223eafe4a6694ba9fc109a66bb
--- /dev/null
+++ b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/408062da-5914-4a60-b4e6-7bcd84bfbcf2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:068d1d366213e9c8222615844c0363906114a83863c6b412e0d4eaa941ed54f3
+size 3266765
diff --git a/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/full.md b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8214f840aea18aada24e58f0b0c21099988643ae
--- /dev/null
+++ b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/full.md
@@ -0,0 +1,210 @@
+# SG-NN: Sparse Generative Neural Networks for Self-Supervised Scene Completion of RGB-D Scans
+
+Angela Dai
+
+Christian Diller
+
+Matthias Nießner
+
+Technical University of Munich
+
+
+Figure 1: Our method takes as input a partial RGB-D scan and predicts a high-resolution 3D reconstruction while predicting unseen, missing geometry. Key to our approach is its self-supervised formulation, enabling training solely on real-world, incomplete scans. This not only obviates the need for synthetic ground truth, but is also capable of generating more complete scenes than any single target scene seen during training. To achieve high-quality surfaces, we further propose a new sparse generative neural network, capable of generating large-scale scenes at much higher resolution than existing techniques.
+
+# Abstract
+
+We present a novel approach that converts partial and noisy RGB-D scans into high-quality 3D scene reconstructions by inferring unobserved scene geometry. Our approach is fully self-supervised and can hence be trained solely on real-world, incomplete scans. To achieve self-supervision, we remove frames from a given (incomplete) 3D scan in order to make it even more incomplete; self-supervision is then formulated by correlating the two levels of partialness of the same scan while masking out regions that have never been observed. Through generalization across a large training set, we can then predict 3D scene completion without ever seeing any 3D scan of entirely complete geometry. Combined with a new 3D sparse generative neural network architecture, our method is able to predict highly-detailed surfaces in a coarse-to-fine hierarchical fashion, generating 3D scenes at $2\mathrm{cm}$ resolution, more than twice the resolution of existing state-of-the-art methods as well as outperforming them by a significant margin in reconstruction quality.
+
+# 1. Introduction
+
+In recent years, we have seen incredible progress on RGB-D reconstruction of indoor environments using commodity RGB-D sensors such as the Microsoft Kinect, Google Tango, or Intel RealSense [22, 16, 23, 36, 5, 10]. However, despite remarkable achievements in RGB-D tracking and reconstruction quality, a fundamental challenge still remains – the incomplete nature of resulting 3D scans caused by inherent occlusions due to the physical limitations of the scanning process; i.e., even in a careful scanning session it is inevitable that some regions of a 3D scene remain unobserved. This unfortunately renders the resulting reconstructions unsuitable for many applications, not only those that require quality 3D content, such as video games or AR/VR, but also robotics where a completed 3D map significantly facilitates tasks such as grasping or querying 3D objects in a 3D environment.
+
+In order to overcome the incomplete and partial nature of 3D reconstructions, various geometric inpainting techniques have been proposed, for instance, surface interpolation based on the Poisson equation [17, 18] or CAD shape-fitting techniques [1, 2, 8]. A very recent direction leverages
+
+generative deep neural networks, often focusing volumetric representations for shapes [11] or entire scenes [31, 12]. These techniques show great promise since they can learn generalized patterns in a large variety of environments; however, existing data-driven scene completion methods rely on supervised training, requiring fully complete ground truth 3D models, thus depending on large-scale synthetic datasets such as ShapeNet [4] or SUNCG [31]. As a result, although we have seen impressive results from these approaches on synthetic test sets, domain transfer and application to real-world 3D scans remains a major limitation.
+
+In order to address the shortcomings of supervised learning techniques for scan completion, we propose a new self-supervised completion formulation that can be trained only on (partial) real-world data. Our main idea is to learn to generate more complete 3D models from less complete data, while masking out any unknown regions; that is, from an existing RGB-D scan, we use the scan as the target and remove frames to obtain a more incomplete input. In the loss function, we can now correlate the difference in partialness between the two scans, and constrain the network to predict the delta while masking out unobserved areas. Although there is no single training sample which contains a fully-complete 3D reconstruction, we show that our network can nonetheless generalize to predict high levels of completeness through a combined aggregation of patterns across the entire training set. This way, our approach can be trained without requiring any fully-complete ground truth counterparts that would make generalization through a synthetic-to-real domain gap challenging.
+
+Furthermore, we propose a new sparse generative neural network architecture that can predict high-resolution geometry in a fully-convolutional fashion. For training, we propose a progressively growing network architecture trained in coarse-to-fine fashion; i.e., we first predict the 3D scene at a low resolution, and then continue increasing the surface resolution through the training process. We show that our self-supervised, sparse generative approach can outperform state-of-the-art fully-supervised methods, despite their access to much larger quantities of synthetic 3D data.
+
+We present the following main contributions:
+
+- A self-supervised approach for scene completion, enabling training solely on incomplete, real-world scan data while predicting geometry more complete than any seen during training, by leveraging common patterns in the deltas of incompleteness.
+- A generative formulation for sparse convolutions to produce a sparse truncated signed distance function representation at high resolution: we formulate this hierarchically to progressively generate a 3D scene in end-to-end fashion
+
+# 2. Related Work
+
+RGB-D Reconstruction Scanning and reconstructing 3D surfaces has a long history across several research communities. With the increase in availability of commodity range sensors, capturing and reconstructing 3D scenes has become a vital area of research. One seminal technique is the volumetric fusion approach of Curless and Levoy [7], operating on truncated signed distance fields to produce a surface reconstruction. It has been adopted by many state-of-the-art real-time reconstruction methods, from KinectFusion [22, 16] to VoxelHashing [23] and BundleFusion [10], as well as state-of-the-art offline reconstruction approaches [5].
+
+These methods have produced impressive results in tracking and scalability of 3D reconstruction from commodity range sensors. However, a significant limitation that still remains is the partial nature of 3D scanning; i.e., a perfect scan is usually not possible due to occlusions and unobserved regions and thus, the resulting 3D representation cannot reach the quality of manually created 3D assets.
+
+Deep Learning on 3D Scans With recent advances in deep learning and the improved availability of large-scale 3D scan datasets such as ScanNet [9] or Matterport [3], learned approaches on 3D data can be used for a variety of tasks like classification, segmentation, or completion.
+
+Many current methods make use of convolutional operators that have been shown to work well on 2D data. When extended into 3D, they operate on regular grid representations such as distance fields [11] or occupancy grids [20]. Since dense volumetric grids can come with high computational and memory costs, several recent approaches have leveraged the sparsity of the 3D data for discriminative 3D tasks. PointNet [26, 27] introduced a deep network architecture for learning on point cloud data for semantic segmentation and classification tasks. Octree-based approaches have also been developed [29, 33, 34] that have been shown to be very memory efficient; however, generative tasks involving large, varying-sized environments seems challenging and octree generation has only been shown for single ShapeNet-style objects [28, 32]. Another option leveraging the sparsity of 3D geometric data is through sparse convolutions [14, 13, 6], which have seen success in discriminative tasks such as semantic segmentation, but not in the context of generative 3D modeling tasks, where the overall structure of the scene is unknown.
+
+Shape and Scene Completion Completing 3D scans has been well-studied in geometry processing. Traditional methods, such as Poisson Surface Reconstruction [17, 18], locally optimize for a surface to fit to observed points, and work well for small missing regions. Recently, various
+
+deep learning-based approaches have been developed with greater capacity for learning global structures of shapes, enabling compelling completion of larger missing regions in scans of objects [37, 11, 15, 35, 24]. Larger-scale completion of scans has been seen with SSCNet [31], operating on a depth image of a scene, and ScanComplete [12], which demonstrated scene completion on room- and building floor-scale scans. However, both these approaches operate on dense volumetric grids, significantly limiting their output resolutions. Moreover, these approaches are fully supervised with complete 3D scene data, requiring training on synthetic 3D scene data (where complete ground truth is known), in order to complete real-world scans.
+
+An alternative approach for shape completion could through leveraging a single implicit latent space, as in DeepSDF [24] or Occupancy Networks [21]; however, it still remains a challenge as to how to scale a single latent space to represent large, varying-sized environments.
+
+# 3. Method Overview
+
+From an RGB-D scan of a 3D scene, our method learns to generate a high-quality reconstruction of the complete 3D scene, in a self-supervised fashion. The input RGB-D scan is represented as a truncated signed distance field (TSDF), as a sparse set of voxel locations within truncation and their corresponding distance values. The output complete 3D model of the scene is also generated as a sparse TSDF (similarly, a set of locations and per-voxel distances), from which a mesh can be extracted by Marching Cubes [19].
+
+We design the 3D scene completion as a self-supervised process, enabling training purely on real-world scan data without requiring any fully-complete ground truth scenes. Since real-world scans are always incomplete due to occlusions and physical sensor limitations, this is essential for generating high-quality, complete models from real-world scan data. To achieve self-supervision, our main idea is to
+
+formulate the training from incomplete scan data to less incomplete scan data; that is, from an existing RGB-D scan we can remove frames in order to create a more partial observation of the scene. This enables learning to complete in regions where scan geometry is known while ignoring regions of unobserved space. Crucially, our generative model can then learn to generate more complete models than seen in a specific sample of the target data.
+
+To obtain an output high-resolution 3D model of a scene, we propose Sparse Generative Neural Networks (SG-NN), a generative model to produce a sparse surface representation of a scene. We build upon sparse convolutions [14, 13, 6], which have been shown to produce compelling semantic segmentation results on 3D scenes by operating only on surface geometry. In contrast to these discriminative tasks where the geometric structure is given as input, we develop our SG-NN to generate new, unseen 3D geometry suitable for generative 3D modeling tasks. This is designed in coarse-to-fine fashion, with a progressively growing network architecture which predicts each next higher resolution, finally predicting a high-resolution surface as a sparse TSDF. Since our sparse generative network operates in a fully-convolutional fashion, we can operate on 3D scans of varying spatial sizes.
+
+# 4. Self-Supervised Completion
+
+Our approach for self-supervision of scene completion of RGB-D scans is based on learning how to complete scan geometry in regions that have been seen, while ignoring unobserved regions. To this end, we can generate input and target TSDFs with similar scanning patterns as real-world scans; from an input scan composed of RGB-D frames $\{f_0,\dots f_n\}$ , we can generate the target TSDF $S_{\mathrm{target}}$ through volumetric fusion [7] of $\{f_0,\dots f_n\}$ , and the input TSDF $S_{\mathrm{input}}$ through volumetric fusion of a subset of the original frames $\{f_k\} \subset \{f_0,\dots f_n\}$ .
+
+
+Figure 2: Our self-supervision approach for scan completion learns through deltas in partialness of RGB-D scans. From a given (incomplete) RGB-D scan, on the left, we produce a more incomplete version of the scan by removing some of its depth frames (middle). We can then train to complete the more incomplete scan (middle) using the original scan as a target (left), while masking out unobserved regions in the target scene (in orange). This enables our prediction to produce scenes that are more complete than the target scenes seen during training, as the training process effectively masks out incompleteness.
+
+This produces input incomplete scans that maintain scanned data characteristics, as well as a correspondence between $S_{\mathrm{input}}$ and $S_{\mathrm{target}}$ going from a more incomplete scan to a less incomplete scan. Since $S_{\mathrm{target}}$ remains nonetheless incomplete, we do not wish to use all of its data as the complete target for supervision, as this could result in contradictory signals in the training set (e.g., table legs have been seen in one scan but not in another, then it becomes unclear whether to generate table legs).
+
+Thus, to effectively learn to generate a complete 3D model beyond even the completeness of the target training data, we formulate the completion loss only on observed regions in the target scan. That is, the loss is only considered in regions where $S_{\mathrm{target}}(v) > -\tau$ , for a voxel $v$ with $\tau$ indicating the voxel size. Figure 2 shows an example $S_{\mathrm{input}}, S_{\mathrm{target}}$ , and prediction, with this self-supervision setup, we can learn to predict geometry that was unobserved in $S_{\mathrm{target}}$ , e.g., occluded regions behind objects.
+
+# 4.1. Data Generation
+
+As input we consider an RGB-D scan comprising a set of depth images and their 6-DoF camera poses. For real-world scan data we use the Matterport3D [3] dataset, which contains a variety of RGB-D scans taken with a Matterport tripod setup. Note that for Matterport3D, we train and evaluate on the annotated room regions, whereas the raw RGB-D data is a sequence covering many different rooms, so we perform an approximate frame-to-room association by taking frames whose camera locations lie within the room.
+
+From a given RGB-D scan, we construct the target scan $S_{\text{target}}$ using volumetric fusion [7] with 2cm voxels and truncation of 3 voxels. A subset of the frames is taken by randomly removing $\approx 50\%$ of the frames (see Section 6 for more analysis of varying degrees of incompleteness in $S_{\text{input}}, S_{\text{target}}$ ). We can then again use volumetric fusion to
+
+generate a more incomplete version of the scan $S_{\mathrm{input}}$
+
+At train time, we consider cropped views of these scans for efficiency, using random crops of size $64 \times 64 \times 128$ voxels. The fully-convolutional nature of our approach enables testing on full scenes of varying sizes at inference time.
+
+# 5. Generating a Sparse 3D Scene Representation
+
+The geometry of a 3D scene occupies a very sparse set of the total 3D extent of the scene, so we aim to generate a 3D representation of a scene in a similarly sparse fashion. Thus we propose Sparse Generative Neural Networks (SG-NN) to hierarchically generate a sparse, truncated signed distance field representation of a 3D scene, from which we can extract the isosurface as the final output mesh.
+
+An overview of our network architecture for the scene completion task is shown in Figure 3. The model is designed in encoder-decoder fashion, with an input partial scan first encoded to representative features at low spatial resolution, before generating the final TSDF output.
+
+A partial scan, represented as a TSDF, is encoded with a series of 3D sparse convolutions [14, 13] which operate only on the locations where the TSDF is within truncation distance and using the distance values as input features. Each set of convolutions spatially compresses the scene by a factor of two. Our generative model takes the encoding of the scene and converts the features into a (low-resolution) dense 3D grid. The dense representation enables prediction of the full scene geometry at very coarse resolution; here, we use a series of dense 3D convolutions to produce a feature map $F_{0}$ from which we also predict coarse occupancy $O_{0}$ and TSDF $S_{0}$ representations of the complete scene. We then construct a sparse representation of the predicted scene based on $O_{0}$ : the features input to the next level are
+
+
+Figure 3: Our Sparse Generative Neural Network architecture for the task of scan completion. An input scan is encoded using a series of sparse convolutions, each set reducing the spatial dimensions by a factor of two. To generate high-resolution scene geometry, the coarse encoding is converted to a dense representation for a coarse prediction of the complete geometry. The predicted coarse geometry is converted to a sparse representation and input to our sparse, coarse-to-fine hierarchy, where each level of the hierarchy predicts the geometry of the next resolution (losses indicated in orange). The final output is a TSDF represented by sparse set of voxel locations and their corresponding distance values.
+
+composed as $\mathrm{concat}(F_k, O_k, S_k) \forall \mathrm{sigmoid}(O_k(v)) > 0.5$ . This can then be processed with sparse convolutions, then upsampled by a factor of two to predict the scene geometry at the next higher resolution. This enables generative, sparse predictions in a hierarchical fashion. To generate the final surface geometry, the last hierarchy level of our SG-NN outputs sparse $O_n$ , $S_n$ , and $F_n$ , which are then input to a final set of sparse convolutions to refine and predict the output signed distance field values.
+
+Sparse skip connections. For scene completion, we also leverage skip connections between the encoder and decoder parts of the network architecture, connecting feature maps of same spatial resolution. This is in the same spirit as U-Net [30], but in our case the encoder and decoder features maps are both sparse and typically do not contain the same set of sparse locations. Thus we concatenate features from the set of source locations which are shared with the destination locations, and use zero feature vectors for the destination locations which do not exist in the source.
+
+Progressive Generation. In order to encourage more efficient and stable training, we train our generative model progressively, starting with the lowest resolution, and introducing each successive hierarchy level after $N_{\mathrm{level}}$ iterations. Each hierarchy level predicts the occupancy and TSDF of the next level, enabling successive refinement from coarse predictions, as shown in Figure 4.
+
+Loss. We formulate the loss for the generated scene geometry on the final predicted TSDF locations and values, using an $\ell_1$ loss with the target TSDF values at those locations. Following [11], we log-transform the TSDF values of the predictions and the targets before applying the $\ell_1$ loss, in order to encourage more accurate prediction near the surface geometry. We additionally employ proxy losses at each hierarchy level for outputs $O_k$ and $S_k$ , using binary cross entropy with target occupancies and $\ell_1$ with target TSDF values, respectively. This helps avoid a trivial solution of zero loss for the final surface with no predicted geometry. Note that for our self-supervised completion, we compute these losses only in regions of observed target values, as described in Section 4.
+
+
+Figure 4: Progressive generation of a 3D scene using our SG-NN which formulates a generative model to predict a sparse TSDF as output.
+
+# 5.1. Training
+
+We train our SG-NN on a single NVIDIA GeForce RTX 2080, using the Adam optimizer with a learning rate of 0.001 and batch size of 8. We use $N_{\mathrm{level}} = 2000$ iterations for progressive introduction of each higher resolution output, and train our model for $\approx 40$ hours until convergence.
+
+# 6. Results and Evaluation
+
+We evaluate our sparse generative neural network on scene completion for RGB-D scans on both real-world scans where no fully complete ground truth is available [3], as well as in a supervised setting on synthetic scans which have complete ground truth information [31]. We use the train/test splits provided by both datasets: 72/18 and 5519/155 trainval/test scenes comprising 1788/394 and 39600/1000 rooms, respectively. To measure completion quality, we follow [12] and use an $\ell_1$ error metric between predicted and target TSDFs, where unobserved regions in the target are masked out. Note that unsigned distances are used in the error computation to avoid sign ambiguities. We measure the $\ell_1$ distance in voxel units of the entire volume (entire volume), the unobserved region of the volume (unobserved space), near the target surface (target), and near the predicted surface (predicted), using a threshold of $\leq 1$ to determine nearby regions, and a global truncation of 3. For all metrics, unobserved regions in the targets are ignored; note that on synthetic data where complete ground truth is available, we do not have any unobserved regions to ignore.
+
+Comparison to state of the art. In Table 1, we compare to several state-of-the-art approaches for scan completion on real-world scans from the Matterport3D dataset [3]: the shape completion approach 3D-EPN [11], and the scene completion approach ScanComplete [12]. These methods both require fully-complete ground truth data for supervision, which is not available for the real-world scenes, so we train them on synthetic scans [31]. Since 3D-EPN and ScanComplete use dense 3D convolutions, limiting voxel resolution, we use $5\mathrm{cm}$ resolution for training and evaluation of all methods. Our self-supervised approach enables training on incomplete real-world scan data, avoiding domain transfer while outperforming previous approaches that leverage large amounts of synthetic 3D data. Qualitative comparisons are shown in Figure 5.
+
+To evaluate our SG-NN separate from its self-supervision, we also evaluate synthetic scan completion with full ground truth [31], in comparison to Poisson Surface Reconstruction [17, 18], SSCNet[31], 3D-EPN [11], and ScanComplete [12]. All data-driven approaches are fully supervised, using input scans from [12]. Similar to the real scan scenario, we train and evaluate at $5\mathrm{cm}$ resolution due to resolution limitations of the prior learned approaches.
+
+
+Figure 5: Comparison to state-of-the-art scan completion approaches on Matterport3D [3] data (5cm resolution), with input scans generated from a subset of frames. In contrast to the fully-supervised 3D-EPN [11] and ScanComplete [12], our self-supervised approach produces more accurate, complete scene geometry.
+
+| Method | l1 error entire volume | l1 error unobserved space | l1 error target | l1 error predicted |
| 3D-EPN (unet) [11] | 0.31 | 0.28 | 0.45 | 1.12 |
| ScanComplete [12] | 0.20 | 0.15 | 0.51 | 0.74 |
| Ours | 0.17 | 0.14 | 0.35 | 0.67 |
+
+Table 1: Quantitative scan completion results on real-world scan data [3], with $\ell_1$ distance measured in voxel units for 5cm voxels. Since target scans are incomplete, unobserved space in the target is masked out for all metrics. 3D-EPN [11] and ScanComplete [12] require full supervision, and so are trained on synthetic data [31]. Despite their access to large quantities of synthetic 3D data, our self-supervised approach outperforms these methods while training solely on real-world data.
+
+In Table 2, we see that our sparse generative approach outperforms state of the art in a fully-supervised scenario.
+
+Can self-supervision predict more complete geometry than seen during training? Our approach to self-supervision is designed to enable prediction of scene geometry beyond the completeness of the target scan data, by
+
+leveraging knowledge of observed and unobserved space in RGB-D scans. To evaluate the completion quality of our method against the completeness of the target scene data, we perform a qualitative evaluation, as we lack fully complete ground truth to for quantitative evaluation. In Figure 7, we see that our completion quality can exceed the completeness of target scene data. We additionally evaluate our
+
+| Method | l1 error entire volume | l1 error unobserved space | l1 error target | l1 error predicted |
| Poisson Surface Reconstruction [17, 18] | 0.53 | 0.51 | 1.70 | 1.18 |
| SSCNet [31] | 0.54 | 0.53 | 0.93 | 1.11 |
| 3D-EPN (unet) [11] | 0.25 | 0.30 | 0.65 | 0.47 |
| ScanComplete [12] | 0.18 | 0.23 | 0.53 | 0.42 |
| Ours | 0.15 | 0.16 | 0.50 | 0.28 |
+
+approach with and without our self-supervision masking in Figure 7, where w/o self-supervision masking is trained using the same set of less-incomplete/more-incomplete scans but without the loss masking. This can perform effective completion in regions commonly observed in target scans, but often fails to complete regions that are commonly occluded. In contrast, our formulation for self-supervision using masking of unobserved regions enables predicting scene geometry even where the target scan remains incomplete.
+
+Comparison of our self-supervision approach to masking out by random crops. In Table 3, we evaluate against another possible self-supervision approach: randomly cropping out target geometry to be used as incomplete inputs (using crops for self-supervision), similar to [25]. This scenario does not reflect the data characteristics of real-world scan partialness (e.g., from occlusions and lack of visibility), resulting in poor completion performance.
+
+What's the impact of the input/output representation? In Table 3, we evaluate the effect of a point cloud input (vs. TSDF input), as well as occupancy output (vs. TSDF output). We find that the TSDF representation has more potential descriptiveness in characterizing a surface (and its neighboring regions), resulting in improved performance in both input and output representation.
+
+What's the impact of the degree of completeness of the target data during training? In Figure 6, we evaluate the effect of the amount of completeness of the target data available for training. We create several incomplete versions of
+
+
+Varying degress of target incompleteness for training
+Figure 6: Evaluating varying target data completeness available for training. We generate various incomplete versions of the Matterport3D [3] scans using $\approx$ $30\%$ , $40\%$ , $50\%$ , $60\%$ , and $100\%$ (all) of the frames associated with each room scene, and evaluate on the $50\%$ incomplete scans. Our self-supervised approach remains robust to the level of completeness of the target training data.
+
+the Matterport3D [3] scans using varying amounts of the frames available: $\approx 30\%$ , $40\%$ , $50\%$ , $60\%$ , and $100\%$ (all) of the frames associated with each room scene. We train our approach using three different versions of input-target completeness: $50\% - all$ (our default), $40\% - 60\%$ , and $30\% - 50\%$ . Even as the completeness of the target data decreases, our approach maintains robustness in predicting complete scene geometry.
+
+Limitations Our SG-NN approach for self-supervised scan completion enables high-resolution geometric prediction of complete geometry from real-world scans. However, to generate the full appearance of a 3D scene, generation and inpainting of color is also required. Currently,
+
+Table 2: Quantitative scan completion results on synthetic scan data [31], where complete ground truth is available to supervise all data-driven approaches. ${\ell }_{1}$ distance is measured in voxel units for $5\mathrm{\;{cm}}$ voxels.
+
+| Method | l1 error entire volume | l1 error unobserved space | l1 error target | l1 error predicted |
| Using crops for self-supervision | 0.13 | 0.09 | 1.25 | 0.68 |
| Point cloud input | 0.15 | 0.09 | 1.82 | 0.92 |
| Occupancy output | 0.13 | 0.10 | 0.89 | 0.86 |
| 2 hierarchy levels | 0.10 | 0.08 | 0.74 | 0.68 |
| Ours | 0.09 | 0.07 | 0.71 | 0.60 |
+
+Table 3: Ablation study of our self-supervision and generative model design choices on real-world scan data [3], with $\ell_1$ distance measured in voxel units for 2cm voxels.
+
+our method also does not consider or predict the semantic object decomposition of a scene; however, we believe this would be an interesting direction, specifically in the context for enabling interaction with a 3D environment (e.g., interior redesign or robotic understanding).
+
+# 7. Conclusion
+
+In this paper, we presented a self-supervised approach for completion of RGB-D scan geometry that enables training solely on incomplete, real-world scans while learning a generative geometric completion process capable of predicting 3D scene geometry more complete than any single target scene seen during training. Our sparse generative approach to generating a sparse TSDF representation of a sur
+
+face enables much higher output geometric resolution than previous on large-scale 3D scenes. Self-supervision allowing training only on real-world scan data for scan completion opens up new possibilities for various generative 3D modeling based only on real-world observations, perhaps mitigating the need for extensive synthetic data generation or domain transfer, and we believe this is a promising avenue for future research.
+
+# Acknowledgments
+
+This work was supported by the ZD.B, a Google Research Grant, a TUM-IAS Rudolf Moßbauer Fellowship, an NVidia Professorship Award, and the ERC Starting Grant Scan2CAD (804724).
+
+
+Figure 7: Scan completion results on Matterport3D [3] data (2cm resolution), with input scans generated from a subset of frames. Our self-supervision approach using loss masking enables more complete scene prediction than direct supervision using the target RGB-D scan, particularly in regions where occlusions commonly occur.
+
+# References
+
+[1] Armen Avetisyan, Manuel Dahnert, Angela Dai, Manolis Savva, Angel X. Chang, and Matthias Nießner. Scan2cad: Learning CAD model alignment in RGB-D scans. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 2614-2623, 2019. 1
+[2] Armen Avetisyan, Angela Dai, and Matthias Niessner. End-to-end cad model retrieval and 9dof alignment in 3d scans. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1
+[3] Angel X. Chang, Angela Dai, Thomas A. Funkhouser, Maciej Halber, Matthias Nießner, Manolis Savva, Shuran Song, Andy Zeng, and Yinda Zhang. Matterport3d: Learning from RGB-D data in indoor environments. In 2017 International Conference on 3D Vision, 3DV 2017, Qingdao, China, October 10-12, 2017, pages 667-676, 2017. 2, 4, 5, 6, 7, 8
+[4] Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. 2
+[5] Sungjoon Choi, Qian-Yi Zhou, and Vladlen Koltun. Robust reconstruction of indoor scenes. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5556-5565. IEEE, 2015. 1, 2
+[6] Christopher B. Choy, JunYoung Gwak, and Silvio Savarese. 4d spatio-temporal convnets: Minkowski convolutional neural networks. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 3075-3084, 2019. 2, 3
+[7] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. In Proceedings of the 23rd annual conference on Computer graphics and interactive techniques, pages 303-312. ACM, 1996. 2, 3, 4
+[8] Manuel Dahnert, Angela Dai, Leonidas J. Guibas, and Matthias Niessner. Joint embedding of 3d scan and cad objects. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1
+[9] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Niessner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 2
+[10] 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. Graph., 36(3):24:1-24:18, 2017. 1, 2
+[11] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3d-encoder-predictor cnns and shape synthesis. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 6545-6554, 2017. 2, 3, 5, 6, 7
+[12] Angela Dai, Daniel Ritchie, Martin Bokeloh, Scott Reed, Jürgen Sturm, and Matthias Nießner. Scancomplete: Large-scale scene completion and semantic segmentation for 3d
+
+scans. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 4578-4587, 2018. 2, 3, 5, 6, 7
+[13] 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, 2018. 2, 3, 4
+[14] Benjamin Graham and Laurens van der Maaten. Submanifold sparse convolutional networks. arXiv preprint arXiv:1706.01307, 2017. 2, 3, 4
+[15] Xiaoguang Han, Zhen Li, Haibin Huang, Evangelos Kalogerakis, and Yizhou Yu. High-resolution shape completion using deep neural networks for global structure and local geometry inference. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 85-93, 2017. 3
+[16] Shahram Izadi, David Kim, Otmar Hilliges, David Molyneaux, Richard A. Newcombe, Pushmeet Kohli, Jamie Shotton, Steve Hodges, Dustin Freeman, Andrew J. Davison, and Andrew W. Fitzgibbon. Kinectfusion: real-time 3d reconstruction and interaction using a moving depth camera. In Proceedings of the 24th Annual ACM Symposium on User Interface Software and Technology, Santa Barbara, CA, USA, October 16-19, 2011, pages 559-568, 2011. 1, 2
+[17] Michael M. Kazhdan, Matthew Bolitho, and Hugues Hoppe. Poisson surface reconstruction. In Proceedings of the Fourth Eurographics Symposium on Geometry Processing, Cagliari, Sardinia, Italy, June 26-28, 2006, pages 61-70, 2006. 1, 2, 5, 7
+[18] Michael M. Kazhdan and Hugues Hoppe. Screened poisson surface reconstruction. ACM Trans. Graph., 32(3):29:1-29:13, 2013. 1, 2, 5, 7
+[19] William E. Lorensen and Harvey E. Cline. Marching cubes: A high resolution 3d surface construction algorithm. In Proceedings of the 14th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH 1987, Anaheim, California, USA, July 27-31, 1987, pages 163-169, 1987. 3
+[20] Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2015, Hamburg, Germany, September 28 - October 2, 2015, pages 922-928, 2015. 2
+[21] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2019. 3
+[22] 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 10th IEEE International Symposium on Mixed and Augmented Reality, ISMAR 2011, Basel, Switzerland, October 26-29, 2011, pages 127-136, 2011. 1, 2
+
+[23] M. Nießner, M. Zollhöfer, S. Izadi, and M. Stamminger. Real-time 3d reconstruction at scale using voxel hashing. ACM Transactions on Graphics (TOG), 2013. 1, 2
+[24] Jeong Joon Park, Peter Florence, Julian Straub, Richard A. Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 165-174, 2019. 3
+[25] Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context encoders: Feature learning by inpainting. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2536-2544. IEEE Computer Society, 2016. 7
+[26] 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, 2017. 2
+[27] 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 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pages 5099-5108, 2017. 2
+[28] Gernot Riegler, Ali Osman Ulusoy, Horst Bischof, and Andreas Geiger. Octnetfusion: Learning depth fusion from data. In 2017 International Conference on 3D Vision, 3DV 2017, Qingdao, China, October 10-12, 2017, pages 57-66, 2017. 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, 2017. 2
+[30] 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. 5
+[31] Shuran Song, Fisher Yu, Andy Zeng, Angel X. Chang, Manolis Savva, and Thomas A. Funkhouser. Semantic scene completion from a single depth image. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 190-198, 2017. 2, 3, 5, 6, 7
+[32] Maxim Tatarchenko, Alexey Dosovitskiy, and Thomas Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3d outputs. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 2107-2115, 2017. 2
+[33] 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. 2
+
+[34] Peng-Shuai Wang, Chun-Yu Sun, Yang Liu, and Xin Tong. Adaptive O-CNN: a patch-based deep representation of 3d shapes. ACM Trans. Graph., 37(6):217:1-217:11, 2018. 2
+[35] Weiyue Wang, Qiangui Huang, Suya You, Chao Yang, and Ulrich Neumann. Shape inpainting using 3d generative adversarial network and recurrent convolutional networks. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 2317-2325, 2017. 3
+[36] Thomas Whelan, Stefan Leutenegger, Renato F. Salas-Moreno, Ben Glocker, and Andrew J. Davison. Elasticfusion: Dense SLAM without A pose graph. In Robotics: Science and Systems XI, Sapienza University of Rome, Rome, Italy, July 13-17, 2015, 2015. 1
+[37] 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, 2015. 3
\ No newline at end of file
diff --git a/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/images.zip b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7a849be02b6988c120f824bb51719cc46fe57d3f
--- /dev/null
+++ b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dacf67efd85cc409fb4d614cd1ee65b45c5b48e9a66d16bdbfed0a2f1d4a979a
+size 578918
diff --git a/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/layout.json b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e3bacab6490b00774ffc2abd2342ed5c10e8d747
--- /dev/null
+++ b/sgnnsparsegenerativeneuralnetworksforselfsupervisedscenecompletionofrgbdscans/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4134d0eb7c7e1a0e022fd077074fdc412cc23707a51915c8052a0f33e924a19e
+size 275564
diff --git a/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_content_list.json b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..881caf8fbdd2e6b98e90d27e5e3cb57312d9b868
--- /dev/null
+++ b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1235278a3043a5ed663dccd07c2d37a7f2be9ec8d4d418590f843c2e8a35f352
+size 82561
diff --git a/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_model.json b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ecea19533f0d6d17e15c2c1539d074f63f1a46a2
--- /dev/null
+++ b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6df408cb15c5f07235cd370a5d6c85aa8649a255723c883421d0f6dab03d8458
+size 98227
diff --git a/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_origin.pdf b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3783e2141df0efaf24cf33a5713b7bc690857504
--- /dev/null
+++ b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/c775d7f4-0fb9-4ae5-a924-08813b62a907_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:383885f1488612b444d72f29f3f3c25d2700f0f798c8910200e7988faf163d8d
+size 9383037
diff --git a/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/full.md b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e9409921fdaff749c6318ec8b2bdecc5c8ddd666
--- /dev/null
+++ b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/full.md
@@ -0,0 +1,343 @@
+# SLV: Spatial Likelihood Voting for Weakly Supervised Object Detection
+
+Ze Chen $^{1,2,*}$ Zhihang Fu $^{5}$ Rongxin Jiang $^{1,3}$ Yaowu Chen $^{1,4,\dagger}$ Xian-sheng Hua $^{5,\dagger}$
+
+1Zhejiang University, Institute of Advanced Digital Technology and Instrument
+
+$^{2}$ Zhejiang University Embedded System Engineering Research Center, Ministry of Education of China
+
+3Zhejiang University, the State Key Laboratory of Industrial Control Technology
+
+4Zhejiang Provincial Key Laboratory for Network Multimedia Technologies 5Alibaba DAMO Academy, Alibaba Group
+
+{chenze,rongxinj}@zju.edu.cn {zhihang.fzh,xiansheng.hxs}@alibaba-inc.com
+
+cyw@mail.bme.zju.edu.cn
+
+# Abstract
+
+Based on the framework of multiple instance learning (MIL), tremendous works have promoted the advances of weakly supervised object detection (WSOD). However, most MIL-based methods tend to localize instances to their discriminative parts instead of the whole content. In this paper, we propose a spatial likelihood voting (SLV) module to converge the proposal localizing process without any bounding box annotations. Specifically, all region proposals in a given image play the role of voters every iteration during training, voting for the likelihood of each category in spatial dimensions. After dilating alignment on the area with large likelihood values, the voting results are regularized as bounding boxes, being used for the final classification and localization. Based on SLV, we further propose an end-to-end training framework for multi-task learning. The classification and localization tasks promote each other, which further improves the detection performance. Extensive experiments on the PASCAL VOC 2007 and 2012 datasets demonstrate the superior performance of SLV.
+
+# 1. Introduction
+
+Object detection is an important problem in computer vision, which aims at localizing tight bounding boxes of all instances in a given image and classifying them respectively. With the development of convolutional neural network (CNN) [10, 13, 14] and large-scale annotated datasets [6, 18, 23], there have been great improvements in object detection [8, 9, 17, 19, 21] in recent years. However, it is time-consuming and labor-intensive to annotate accu
+
+
+(a)
+
+
+(b)
+Figure 1. Detection results without/with SLV module. (a) Common MIL-based methods are easy to localize instances to their discriminative parts instead of the whole content. (b) SLV module shifts object proposals and detects accurate bounding boxes of objects.
+
+rate object bounding boxes for a large-scale dataset. Therefore, weakly supervised object detection (WSOD), which only use image-level annotations for training, is considered to be a promising solution in reality and has attracted the attention of academic community in recent years.
+
+Most WSOD methods [3, 4, 22, 25, 26, 32] follow the
+
+multiple instance learning (MIL) paradigm. Regarding the WSOD as an instance classification problem, they train an instance classifier under MIL constraints to approach the purpose of object detection. However, the existing MIL-based methods only focus on feature representations for instance classification without considering localization accuracy of the proposal regions. As a consequence, they tend to localize instances to their discriminative parts instead of the whole content, as illustrated in Fig 1(a).
+
+Due to lack of bounding box annotations, the absence of localization task is always a serious problem in WSOD. As a remedy, the subsequent works [15, 25, 26, 30] choose to re-train a Fast-RCNN [8] detector fully-supervised with pseudo ground-truths, which are generated by MIL-based weakly-supervised object detectors. The fully-supervised Fast-RCNN alleviates the above-mentioned problem by means of multi-task training [8]. But it is still far from the optimal solution.
+
+In this paper, we propose a spatial likelihood voting (SLV) module to converge the proposal localizing process without any bounding box annotations. The spatial likelihood voting operation consists of instances selection, spatial probability accumulation, and high likelihood region voting. Unlike the previous methods which always keep the position of their region proposals unchanged, all region proposals in SLV play the role of voters every iteration during training, voting for the likelihood of each category in spatial dimensions. Then the voting results, which will be used for the re-classification and re-localization shown in Fig 1(b), are regularized as bounding boxes by dilating alignment on the area with large likelihood values. Through generating the voted results, the proposed SLV evolves the instance classification problem into multi-tasking field. SLV opens the door for WSOD methods to learn classification and localization simultaneously. Furthermore, we propose an end-to-end training framework based on SLV module. The classification and localization tasks promote each other, which finally educe better localization and classification results and shorten the gap between weakly-supervised and fully-supervised object detection.
+
+In addition, we conduct extensive experiments on challenging PASCAL VOC datasets [6] to confirm the effectiveness of our method. The proposed framework achieves $53.5\%$ and $49.2\%$ mAP on VOC 2007 and VOC 2012 respectively, which, to the best of our knowledge, is the best single model performance to date.
+
+The contributions of this paper are summarized as follows:
+
+1) We propose a spatial likelihood voting (SLV) module to converge the proposal localizing process with only image-level annotations. The proposed SLV evolves the instance classification problem into multi-tasking field.
+
+2) We introduce an end-to-end training strategy for the proposed framework, which boosts the detection performance by feature representation sharing.
+3) Extensive experiments are conducted on different datasets. The superior performance suggests that a sophisticated localization fine-tuning should be a promising exploration in addition to the independent Fast-RCNN re-training.
+
+# 2. Related Work
+
+MIL is a classical weakly supervised learning problem and now is a major approach to tackle WSOD. MIL treats each training image as a "bag" and candidate proposals as "instances". The objective of MIL is to train an instance classifier to select positive instances from this "bag". With the development of the Convolution Neural Network, many works [3, 5, 11, 27] combine CNN and MIL to deal with the WSOD problem. For example, Bilen and Vedaldi [3] propose a representative two-stream weakly supervised deep detection network (WSDDN), which can be trained with image-level annotations in an end-to-end manner. Based on the architecture in [3], [11] proposes to exploit the contextual information from regions around the object as a supervisory guidance for WSOD.
+
+In practice, MIL solutions are found easy to converge to discriminative parts of objects. This is caused by the loss function of MIL is non-convex and thus MIL solutions usually stuck into local minima. To address this problem, Tang et al. [26] combine WsDDN with multi-stage classifier refinement and propose an OICR algorithm to help their network see larger parts of objects during training. Moreover, building on [26], Tang et al. [25] subsequently introduce the proposal cluster learning and use the proposal clusters as supervision which indicates the rough locations where objects most likely appear. In [31], Wan et al. try to reduce the randomness of localization during learning. In [34], Zhang et al. add curriculum learning using the MIL framework. From the perspective of optimization, Wan et al. [30] introduce the continuation method and attempt to smooth the loss function of MIL with the purpose of alleviating the nonconvexity problem. In [7], Gao et al. make use of the instability of MIL-based detectors and design a multi-branch network with orthogonal initialization.
+
+Besides, there are many attempts [1, 12, 16, 33, 35] to improve the localization accuracy of the weakly supervised detectors from other perspectives. Arun et al. [1] obtain much better performance by employing a probabilistic objective to model the uncertainty in the location of objects. In [16], Li et al. propose a segmentation-detection collaborative network which utilizes the segmentation maps as prior information to supervise the learning of object detection. In [12], Kosugi et al. focus on instance labeling prob
+
+
+Figure 2. The network architecture of our method. A VGG16 base net with RoI pooling is used to extract the feature of each proposal. Then the proposal features pass through two fully connected layers and the generated feature vectors are branched into Basic MIL module and SLV module (re-classification branch). In Basic MIL Module, there are one WSDDN branch and three refinement branches. The average classification scores of three refinement branches are fed into SLV module to generate supervisions. Another fully connected layer in SLV module is used to obtain regression offsets (re-localization branch). $\text{softmax}^1$ is softmax operation over classes and $\text{softmax}^2$ is softmax operation over proposals.
+
+lem and design two different labeling methods to find tight boxes rather than discriminative ones. In [35], Zhang et al. propose to mine accurate pseudo ground-truths from a well-trained MIL-based network to train a fully supervised object detector. In contrast, the work of Yang et al. [33] integrates WSOD and Fast-RCNN re-training into a single network that can jointly optimize the regression and classification.
+
+# 3. Method
+
+The overall architecture of the proposed framework is shown in Fig 2. We adopt a MIL-based network as a basic part and integrate the proposed SLV module into the final architecture. During the forward process of training, the proposal features are fed into the basic MIL module to produce proposal score matrices. Subsequently, these proposal score matrices are used to generate supervisions for the training of the proposed SLV module.
+
+# 3.1. Basic MIL Module
+
+With image-level annotations, many existing works [2, 3, 4, 11] detect objects based on a MIL network. In this work, we follow the method in [3] which proposes a two-stream weakly supervised deep detection network (WSDDN) to train the instance classifier. For a training image and its region proposals, the proposal features are extracted by a CNN backbone and then branched into two streams, which correspond to a classification branch and a detection branch
+
+respectively. For classification branch, the score matrix $\pmb{X}^{cls} \in \mathbb{R}^{C \times R}$ is produced by passing the proposal features through a fully connected (fc) layer, where $C$ denotes the number of image classes and $R$ denotes the number of proposals. Then a softmax operation over classes is performed to produce $\pmb{\sigma}_{cls}(\pmb{X}^{cls})$ , $[\sigma_{cls}(\pmb{X}^{cls})]_{cr} = \frac{e^{x_{cr}^{cls}}}{\sum_{k=1}^{C} e^{x_{kr}^{cls}}}$ . Similarly, the score matrix $\pmb{X}^{det} \in \mathbb{R}^{C \times R}$ is produced by another fc layer for detection branch, but $\pmb{\sigma}_{det}(\pmb{X}^{det})$ is generated through a softmax operation over proposals rather than classes: $[\sigma_{det}(\pmb{X}^{det})]_{cr} = \frac{e^{x_{cr}^{det}}}{\sum_{k=1}^{R} e^{x_{ck}^{det}}}$ . The score of each proposal is generated by element-wise product: $\varphi^0 = \sigma_{cls}(\pmb{X}^{cls}) \odot \sigma_{det}(\pmb{X}^{det})$ . At last, the image classification score on class $c$ is computed through the summation over all proposals: $\phi_c = \sum_{r=1}^{R} \varphi_{cr}^0$ . We denote the label of a training image $y = [y_1, y_2, \dots, y_C]^T$ , where $y_c = 1$ or 0 indicates the image with or without class $c$ . To train the instance classifier, the loss function is shown in Eq. (1).
+
+$$
+L _ {w} = - \sum_ {c = 1} ^ {C} \left\{y _ {c} \log \phi_ {c} + \left(1 - y _ {c}\right) \log \left(1 - \phi_ {c}\right) \right\} \tag {1}
+$$
+
+Moreover, proposal cluster learning (PCL) [25] is adopted, which embeds 3 instance classifier refinement branches additionally, to get better instance classifiers. The output of the $k$ -th refinement branch is $\varphi^k \in \mathbb{R}^{(C + 1) \times R}$ , where $(C + 1)$ denotes the number of $C$ different classes and background.
+
+Specifically, based on the output score $\varphi^k$ and proposal spatial information, proposal cluster centers are built. All proposals are then divided into those clusters according to the IoU between them, one for background and the others for different instances. Proposals in the same cluster (except for the cluster for background) are spatially adjacent and associated with the same object. With the supervision $\mathcal{H}^k = \left\{y_n^k\right\}_{n=1}^{N^k+1}$ ( $y_n^k$ is the label of the $n$ -th cluster), the refinement branch treats each cluster as a small bag. Each bag in the $k$ -th refinement branch is optimized by a weighted cross-entropy loss.
+
+$$
+L ^ {k} = - \frac {1}{R} \left(\sum_ {n = 1} ^ {N ^ {k}} s _ {n} ^ {k} M _ {n} ^ {k} \log \frac {\sum_ {r \in \mathcal {C} _ {n} ^ {k}} \varphi_ {y _ {n} ^ {k} r} ^ {k}}{M _ {n} ^ {k}} + \sum_ {r \in \mathcal {C} _ {N ^ {k} + 1} ^ {k}} \lambda_ {r} ^ {k} \log \varphi_ {(C + 1) r} ^ {k}\right) \tag {2}
+$$
+
+where $s_n^k$ and $M_{n}^{k}$ are the confidence score of $n$ -th cluster and the number of proposals in the $n$ -th cluster, $\varphi_{cr}^{k}$ is the predicted score of the $r$ -th proposal. $r \in \mathcal{C}_n^k$ indicates that the $r$ -th proposal belongs to the $n$ -th proposal cluster, $\mathcal{C}_{N^k +1}^k$ is the cluster for background, $\lambda_r^k$ is the loss weight that is the same as the confidence of the $r$ -th proposal.
+
+# 3.2. Spatial Likelihood Voting
+
+It is hard for weakly supervised object detectors to pick out the most appropriate bounding boxes from all proposals for an object. The proposal that obtains the highest classification score often covers a discriminative part of an object while many other proposals covering the larger parts tend to have lower scores. Therefore, it is unstable to choose the proposal with the highest score as the detection result under the MIL constraints. But from the overall distribution, those high-scoring proposals always cover at least parts of objects. To this end, we propose to make use of the spatial likelihood of all proposals which implies the boundaries and categories of objects in an image. In this subsection, we introduce a spatial likelihood voting (SLV) module to perform classification and localization refinement simultaneously rather than the instance classifier only.
+
+The SLV module is convenient to be plugged into any proposal-based detector and can be optimized with the fundamental detector jointly. The spirit of SLV is to establish a bridge between classification task and localization task through coupling the spatial information and category information of all proposals together. During training, the SLV module takes into the classification scores of all proposals and then calculates the spatial likelihood of them for generating supervision $\mathcal{H}^{slv}(\bar{\varphi},\pmb {y})$ , where $\bar{\varphi} = \left(\sum_{k = 1}^{3}\varphi^{k}\right) / 3$
+
+Formally, for an image $\mathbf{I}$ with label $\pmb{y}$ , there are three steps to generate $\mathcal{H}_c^{slv}$ when $y_{c} = 1$ . To save training time,
+
+Algorithm 1 Generating supervision $\mathcal{H}^{slv}$
+Input: Proposal boxes $\mathcal{B} = \{b_1,\dots,b_R\}$ ; proposal average scores $\bar{\varphi}$ ; image label vector $\pmb{y} = [y_{1},\dots,y_{C}]^{T}$ ; image size $\{H,W\}$ .
+Output: Supervision $\mathcal{H}^{slv}$ .
+1: Initialize $\mathcal{H}^{slv} = \emptyset$ .
+2: for $c = 1$ to $C$ do
+3: if $y_c = 1$ then
+4: Initialize $\mathcal{B}_c = \emptyset$ . Initialize $M^c$ with zero.
+5: for $r = 1$ to $R$ do
+6: if $\bar{\varphi}_{cr} > T_{score}$ then
+7: $\mathcal{B}_c$ . append $(b_r)$ .
+8: end if
+9: end for
+10: Construct $M^c$ by Eq. (3), see Section 3.2.
+11: Scale the range of elements in $M^c$ to $[0,1]$ .
+12: Transform $M^c$ into the binary version $M_b^c$ .
+13: Find minimum bounding rectangles $\mathcal{G}_c$ in $M_b^c$ .
+14: $\mathcal{H}_c^{slv} = \{\mathcal{G}_c,c\}$ .
+15: $\mathcal{H}^{slv}$ . append $(\mathcal{H}_c^{slv})$ .
+16: end if
+17: end for
+18: return $\mathcal{H}^{slv}$ .
+
+the low-scoring proposals are filtered out first as they have little significance for spatial likelihood voting. The retained proposals are considered to surround the instances of category $c$ and are placed into $\mathcal{B}_c$ , $\mathcal{B}_c = \{b_r \mid \bar{\varphi}_{cr} > T_{score}\}$ .
+
+For the second step, we implement a spatial probability accumulation according to the predicted classification scores and locations of proposals in $\mathcal{B}_c$ . In detail, we construct a score matrix $M^c \in \mathbb{R}^{H \times W}$ , where $H$ and $W$ are the height and width of the training image $\mathbf{I}$ . All elements in $M^c$ are initialized with zero. Then, for each proposal $b_r \in \mathcal{B}_c$ , we accumulate the predicted score of $b_r$ to $M^c$ spatially.
+
+$$
+\mathrm{m}_{ij}^{c} = \sum_{\substack{r s.t. b_{r}\in \mathcal{B}_{c},\\ (i,j)\in b_{r}}}\bar{\varphi}_{cr} \tag{3}
+$$
+
+where $(i,j)\in b_r$ means the pixel $(i,j)$ inside the proposal $b_{r}$ . For proposals in $\mathcal{B}_c$ , we calculate their likelihood in spatial dimensions and the final value of elements in $M^c$ indicates the possibility that the instance of category $c$ appears in that position.
+
+Finally, the range of elements in $M^c$ is scaled to $[0,1]$ and a threshold $T_b^c$ is set to transform $M^c$ into a binary version $M_b^c$ . $M_b^c$ is regarded as a binary image and the minimum bounding rectangles $\mathcal{G}_c = \{g_m\}_{m=1}^{N_c}$ of connected regions in $M_b^c$ ( $g_m$ is the $m$ -th rectangle and $N_c$ is the num
+
+# Algorithm 2 The overall training procedure
+
+# Input:
+
+A training image and its proposal boxes $\mathcal{B}$ ; image label vector $\pmb{y} = [y_{1},\dots,y_{C}]^{T}$ ; refinement times $K = 3$ ; training iteration index $i$ .
+
+# Output:
+
+An updated network.
+
+1: Feed the image and proposal boxes $\mathcal{B}$ into basic MIL module to produce score matrices $\varphi^k, k \in \{0, 1, 2, 3\}$
+2: Compute loss $L_{w}$ and $L_{r}^{k}$ , $k \in \{1, 2, 3\}$ by Eq. (2)/(1), see Section 3.1.
+3: Compute average score matrix $\bar{\varphi} = \left(\sum_{k=1}^{3} \varphi^k\right) / 3$ .
+4: for $c = 1$ to $C$ do
+5: if $y_{c} = 1$ then
+6: Generate $\mathcal{H}_c^{slv}$ based on $\bar{\varphi}$ and proposal boxes $\mathcal{B}$ , see Section 3.2.
+7: end if
+8: end for
+9: Generate $\mathcal{H}^{slv}$ , see Algorithm 1.
+10: Compute loss $L_{s}$ , see Section 3.2.
+11: Compute loss weight $w_{s}$ by training iteration index $i$ .
+12: Optimize $(L_w + \sum_{k=1}^{3} L_r^{\vec{k}} + w_s L_s)$ .
+
+ber of connected regions in $M_b^c$ ) is used to generate $\mathcal{H}_c^{slv}$ shown in Eq. (4).
+
+$$
+\mathcal {H} _ {c} ^ {s l v} = \left\{\mathcal {G} _ {c}, c \right\} \tag {4}
+$$
+
+The overall procedures of generating $\mathcal{H}^{slv}$ are summarized in Algorithm 1 and a visualization example of SLV is shown in Fig 3. Supervision $\mathcal{H}^{slv}$ is instance-level annotation and we use a multi-task loss $L_{s}$ on each labeled proposal to perform classification and localization refinement simultaneously. The output of re-classification branch is $\varphi^s\in \mathbb{R}^{(C + 1)\times R}$ and output of re-localization branch is $\pmb {t}^s\in \mathbb{R}^{4\times R}$ . The loss of SLV module is $L_{s} = L_{cls}(\varphi^{s},\mathcal{H}^{slv}) + L_{loc}(\pmb {t}^{s},\mathcal{H}^{slv})$ , where $L_{cls}$ is the cross entropy loss and $L_{loc}$ is the smooth L1 loss.
+
+# 3.3. The overall training framework
+
+To refine the weakly supervised object detector, the basic MIL module and SLV module are intergrated into one. Combining the loss function of both, the final loss of the whole network is in Eq. (5).
+
+$$
+L = L _ {w} + \sum_ {k = 1} ^ {3} L _ {r} ^ {k} + L _ {s} \tag {5}
+$$
+
+However, the output classification scores of basic MIL module are noisy in early stage of training, which causes that the voted supervisions $\mathcal{H}^{slv}$ are not precise enough to train the object detector. There is an alternative training strategy to avoid this problem: 1) fixing the SLV module
+
+
+Figure 3. A visualization example of SLV. The label of image is $\{person, horse\}$ , then two different $M^c$ and $\mathcal{H}^{slv}$ are generated.
+
+and training the basic MIL module completely; 2) fixing the basic MIL module and using the output classification scores of it to train the SLV module. This strategy makes sense but training different parts of the network separately may harm the performance. So, we propose a training framework that integrates the two training steps into one. We change the loss in Eq. (5) to a weighted version, as in Eq. (6).
+
+$$
+L = L _ {w} + \sum_ {k = 1} ^ {3} L _ {r} ^ {k} + w _ {s} L _ {s} \tag {6}
+$$
+
+The loss weight $w_{s}$ is initialized with zero and will increase iteratively. At the beginning of training, although the basic MIL module is unstable and we cannot obtain good supervisions $\mathcal{H}^{slv}$ , $w_{s}$ is small and the loss $w_{s}L_{s}$ is also small. As a consequence, the performance of the basic MIL module will not be affected a lot. During the training process, the basic MIL module will classify the proposals well, and thus we can obtain stable classification scores to generate more precise supervisions $\mathcal{H}^{slv}$ . The proposed training framework is easy to implement and the network could benefit from the shared proposal features. The overall training procedure of our network is shown in Algorithm 2.
+
+During testing, the proposal scores of three refined instance classifiers and SLV re-classification branch are used as the final detection scores. And the bounding box regression offsets computed by the SLV re-localization branch are used to shift all proposals.
+
+# 4. Experiment
+
+# 4.1. Datasets and Evaluation Metrics
+
+SLV was evaluated on two challenging datasets: PASCAL VOC 2007 and 2012 datasets [6] which have 9,962 and 22,531 images respectively for 20 object classes. For each dataset, we use the trainval set for training and test set for testing. Only image-level annotations are used to train our network.
+
+For evaluation, two metrics are used to evaluate our model. First, we evaluate detection performance using mean Average Precision (mAP) on the PASCAL VOC 2007
+
+| re-cls | re-loc | end-to-end | fast-rcnn | mAP |
| | | | 50.1 |
| ✓ | | | | 51.0 |
| ✓ | | | 51.6 |
| ✓ | ✓ | | | 52.5 |
| ✓ | ✓ | ✓ | | 53.5 |
| ✓ | ✓ | ✓ | ✓ | 53.9 |
+
+Table 1. Detection performance for different ablation experiments on PASCAL VOC 2007 test set. "re-cls" and "re-loc" means re-classification and re-localization branch respectively. "end-to-end" is the proposed training framework and "fast-rcnn" means re-training a Fast-RCNN detector.
+
+and 2012 test set. Second, we evaluate the localization accuracy using Correct Localization (CorLoc) on PASCAL VOC 2007 and 2012 trainval set. Based on the PASCAL criterion, a predicted box is considered positive if it has an $IoU > 0.5$ with a ground-truth bounding box.
+
+# 4.2. Implementation Details
+
+The proposed framework is implemented based on VGG16 [24] CNN model, which is pre-trained on ImageNet dataset [23]. We use Selective Search [29] to generate about 2,000 proposals per-image. In basic MIL module, we follow the implementation in [25] to refine instance classifier three times. For SLV module, we use the average proposal scores of three refined instance classifiers to generate supervisions and the setting of hyper-parameters is intuitive. The threshold $T_{score}$ is set to 0.001 for saving time and $T_b^c$ is set to 0.2 for person category and 0.5 for other categories.
+
+During training, the mini-batch size for training is set to 2. The momentum and weight decay are set to 0.9 and $5 \times 10^{-4}$ respectively. The initial learning rate is $5 \times 10^{-4}$ and the learning rate decay step is 9-th, 12-th and 15-th epoch. For data augmentation, we use five image scales $\{480, 576, 688, 864, 1200\}$ with horizontal flips for both training and testing. We randomly choose a scale to resize the image and then the image is horizontal flipped. During testing, the average score of 10 augmented images is used as the final classification score. Similarly, the output regression offsets of 10 augmented images are also averaged.
+
+Our experiments are implemented based on PyTorch[20] deep learning framework. And all of our experiments are running on NVIDIA GTX 1080Ti GPU.
+
+# 4.3. Ablation Studies
+
+We perform ablations on PASCAL VOC 2007 to analyse the proposed SLV module. The baseline model(mAP $50.1\%$ on PASCAL VOC 2007 test set) is the basic PCL detector described in Section 3.1, which is trained on PASCAL VOC 2007 trainval set. Details about ablation studies are discussed in the following.
+
+
+Figure 4. Results on VOC 2007 for baseline and different training epochs of SLV module.
+
+
+
+
+Figure 5. Examples of 3 different labeling schemes. (a) Conventional scheme. (b) Clustering scheme. (c) SLV. The value on the top of every labeled box is the $IoU$ with its corresponding groundtruth bounding box.
+
+
+
+
+
+SLV vs. No SLV. To confirm the effectiveness of the proposed SLV module, we conduct different ablation experiments for re-classification and re-localization branch in SLV. As shown in Table 1 (row 2 and row 3), the simplified versions of SLV module which only contain a reclassification or re-localization branch both outperform the baseline model. It indicates the supervision generated by spatial likelihood voting method, which is formulated in Section 3.2, is precise enough not only for classification but also for localization.
+
+Moreover, a normal version of SLV module improves the detection performance further due to multi-task learning. As shown in Fig 4, the SLV module trained based on a well-trained baseline model boosts the performance significantly (mAP from $50.1\%$ to $52.5\%$ ), indicating the necessity of converging the proposal localizing process into WSOD solutions as we discussed above.
+
+End-to-end vs. Alternative. In the previous subsection, the ablation experiments are conducted by the way that fixes
+
+| Method | aero | bike | bird | boat | bottle | bus | car | cat | chair | cow | table | dog | horse | mbike | person | plant | sheep | sofa | train | tv | mAP |
| OICR(VGG) [26] | 58.0 | 62.4 | 31.1 | 19.4 | 13.0 | 65.1 | 62.2 | 28.4 | 24.8 | 44.7 | 30.6 | 25.3 | 37.8 | 65.5 | 15.7 | 24.1 | 41.7 | 46.9 | 64.3 | 62.6 | 41.2 |
| PCL(VGG) [25] | 54.4 | 69.0 | 39.3 | 19.2 | 15.7 | 62.9 | 64.4 | 30.0 | 25.1 | 52.5 | 44.4 | 19.6 | 39.3 | 67.7 | 17.8 | 22.9 | 46.6 | 57.5 | 58.6 | 63.0 | 43.5 |
| WS-RPN(VGG) [28] | 57.9 | 70.5 | 37.8 | 5.7 | 21.0 | 66.1 | 69.2 | 59.4 | 3.4 | 57.1 | 57.3 | 35.2 | 64.2 | 68.6 | 32.8 | 28.6 | 50.8 | 49.5 | 41.1 | 30.0 | 45.3 |
| C-MIL [30] | 62.5 | 58.4 | 49.5 | 32.1 | 19.8 | 70.5 | 66.1 | 63.4 | 20.0 | 60.5 | 52.9 | 53.5 | 57.4 | 68.9 | 8.4 | 24.6 | 51.8 | 58.7 | 66.7 | 63.5 | 50.5 |
| UI [7] | 63.4 | 70.5 | 45.1 | 28.3 | 18.4 | 69.8 | 65.8 | 69.6 | 27.2 | 62.6 | 44.0 | 59.6 | 56.2 | 71.4 | 11.9 | 26.2 | 56.6 | 59.6 | 69.2 | 65.4 | 52.0 |
| Pred Net(VGG) [1] | 66.7 | 69.5 | 52.8 | 31.4 | 24.7 | 74.5 | 74.1 | 67.3 | 14.6 | 53.0 | 46.1 | 52.9 | 69.9 | 70.8 | 18.5 | 28.4 | 54.6 | 60.7 | 67.1 | 60.4 | 52.9 |
| SLV(VGG) | 65.6 | 71.4 | 49.0 | 37.1 | 24.6 | 69.6 | 70.3 | 70.6 | 30.8 | 63.1 | 36.0 | 61.4 | 65.3 | 68.4 | 12.4 | 29.9 | 52.4 | 60.0 | 67.6 | 64.5 | 53.5 |
| OICR+FRCNN [26] | 65.5 | 67.2 | 47.2 | 21.6 | 22.1 | 68.0 | 68.5 | 35.9 | 5.7 | 63.1 | 49.5 | 30.3 | 64.7 | 66.1 | 13.0 | 25.6 | 50.0 | 57.1 | 60.2 | 59.0 | 47.0 |
| PCL+FRCNN [25] | 63.2 | 69.9 | 47.9 | 22.6 | 27.3 | 71.0 | 69.1 | 49.6 | 12.0 | 60.1 | 51.5 | 37.3 | 63.3 | 63.9 | 15.8 | 23.6 | 48.8 | 55.3 | 61.2 | 62.1 | 48.8 |
| WS-RPN+FRCNN [28] | 63.0 | 69.7 | 40.8 | 11.6 | 27.7 | 70.5 | 74.1 | 58.5 | 10.0 | 66.7 | 60.6 | 34.7 | 75.7 | 70.3 | 25.7 | 26.5 | 55.4 | 56.4 | 55.5 | 54.9 | 50.4 |
| W2F [35] | 63.5 | 70.1 | 50.5 | 31.9 | 14.4 | 72.0 | 67.8 | 73.7 | 23.3 | 53.4 | 49.4 | 65.9 | 57.2 | 67.2 | 27.6 | 23.8 | 51.8 | 58.7 | 64.0 | 62.3 | 52.4 |
| UI+FRCNN [7] | 62.7 | 69.1 | 43.6 | 31.1 | 20.8 | 69.8 | 68.1 | 72.7 | 23.1 | 65.2 | 46.5 | 64.0 | 67.2 | 66.5 | 10.7 | 23.8 | 55.0 | 62.4 | 69.6 | 60.3 | 52.6 |
| C-MIL+FRCNN [30] | 61.8 | 60.9 | 56.2 | 28.9 | 18.9 | 68.2 | 69.6 | 71.4 | 18.5 | 64.3 | 57.2 | 66.9 | 65.9 | 65.7 | 13.8 | 22.9 | 54.1 | 61.9 | 68.2 | 66.1 | 53.1 |
| Pred Net(Ens) [1] | 67.7 | 70.4 | 52.9 | 31.3 | 26.1 | 75.5 | 73.7 | 68.6 | 14.9 | 54.0 | 47.3 | 53.7 | 70.8 | 70.2 | 19.7 | 29.2 | 54.9 | 61.3 | 67.6 | 61.2 | 53.6 |
| SLV(VGG)+FRCNN | 62.1 | 72.1 | 54.1 | 34.5 | 25.6 | 66.7 | 67.4 | 77.2 | 24.2 | 61.6 | 47.5 | 71.6 | 72.0 | 67.2 | 12.1 | 24.6 | 51.7 | 61.1 | 65.3 | 60.1 | 53.9 |
+
+Table 2. Average precision (in %) on PASCAL VOC 2007 test set. The first part shows the results of weakly supervised object detectors using a single model and the second part shows the results of weakly supervised object detectors using an ensemble model or fully supervised object detector trained by pesudo ground-truths generated by weakly supervised object detectors.
+
+| Method | aero | bike | bird | boat | bottle | bus | car | cat | chair | cow | table | dog | horse | mbike | person | plant | sheep | sofa | train | tv | CorLoc |
| OICR(VGG) [26] | 81.7 | 80.4 | 48.7 | 49.5 | 32.8 | 81.7 | 85.4 | 40.1 | 40.6 | 79.5 | 35.7 | 33.7 | 60.5 | 88.8 | 21.8 | 57.9 | 76.3 | 59.9 | 75.3 | 81.4 | 60.6 |
| PCL(VGG) [25] | 79.6 | 85.5 | 62.2 | 47.9 | 37.0 | 83.8 | 83.4 | 43.0 | 38.3 | 80.1 | 50.6 | 30.9 | 57.8 | 90.8 | 27.0 | 58.2 | 75.3 | 68.5 | 75.7 | 78.9 | 62.7 |
| WS-RPN(VGG) [28] | 77.5 | 81.2 | 55.3 | 19.7 | 44.3 | 80.2 | 86.6 | 69.5 | 10.1 | 87.7 | 68.4 | 52.1 | 84.4 | 91.6 | 57.4 | 63.4 | 77.3 | 58.1 | 57.0 | 53.8 | 63.8 |
| C-MIL [30] | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 65.0 |
| UI [7] | 84.2 | 84.7 | 59.5 | 52.7 | 37.8 | 81.2 | 83.3 | 72.4 | 41.6 | 84.9 | 43.7 | 69.5 | 75.9 | 90.8 | 18.1 | 54.9 | 81.4 | 60.8 | 79.1 | 80.6 | 66.9 |
| Pred Net(VGG) [1] | 88.6 | 86.3 | 71.8 | 53.4 | 51.2 | 87.6 | 89.0 | 65.3 | 33.2 | 86.6 | 58.8 | 65.9 | 87.7 | 93.3 | 30.9 | 58.9 | 83.4 | 67.8 | 78.7 | 80.2 | 70.9 |
| SLV(VGG) | 84.6 | 84.3 | 73.3 | 58.5 | 49.2 | 80.2 | 87.0 | 79.4 | 46.8 | 83.6 | 41.8 | 79.3 | 88.8 | 90.4 | 19.5 | 59.7 | 79.4 | 67.7 | 82.9 | 83.2 | 71.0 |
| OICR+FRCNN [26] | 85.8 | 82.7 | 62.8 | 45.2 | 43.5 | 84.8 | 87.0 | 46.8 | 15.7 | 82.2 | 51.0 | 45.6 | 83.7 | 91.2 | 22.2 | 59.7 | 75.3 | 65.1 | 76.8 | 78.1 | 64.3 |
| PCL+FRCNN [25] | 83.8 | 85.1 | 65.5 | 43.1 | 50.8 | 83.2 | 85.3 | 59.3 | 28.5 | 82.2 | 57.4 | 50.7 | 85.0 | 92.0 | 27.9 | 54.2 | 72.2 | 65.9 | 77.6 | 82.1 | 66.6 |
| WS-RPN+FRCNN [28] | 83.8 | 82.7 | 60.7 | 35.1 | 53.8 | 82.7 | 88.6 | 67.4 | 22.0 | 86.3 | 68.8 | 50.9 | 90.8 | 93.6 | 44.0 | 61.2 | 82.5 | 65.9 | 71.1 | 76.7 | 68.4 |
| W2F [35] | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 70.3 |
| UI+FRCNN [7] | 86.7 | 85.9 | 64.3 | 55.3 | 42.0 | 84.8 | 85.2 | 78.2 | 47.2 | 88.4 | 49.0 | 73.3 | 84.0 | 92.8 | 20.5 | 56.8 | 84.5 | 62.9 | 82.1 | 78.1 | 66.9 |
| Pred Net(Ens) [1] | 89.2 | 86.7 | 72.2 | 50.9 | 51.8 | 88.3 | 89.5 | 65.6 | 33.6 | 87.4 | 59.7 | 66.4 | 88.5 | 94.6 | 30.4 | 60.2 | 83.8 | 68.9 | 78.9 | 81.3 | 71.4 |
| SLV(VGG)+FRCNN | 85.8 | 85.9 | 73.3 | 56.9 | 52.7 | 79.7 | 87.1 | 84.0 | 49.3 | 82.9 | 46.8 | 81.2 | 89.8 | 92.4 | 21.2 | 59.3 | 80.4 | 70.4 | 82.1 | 78.8 | 72.0 |
+
+Table 3. CorLoc (in %) on PASCAL VOC 2007 trainval set. The first part shows the results of weakly supervised object detectors using a single model and the second part shows the results of weakly supervised object detectors using an ensemble model or fully supervised object detector trained by pseudo ground-truths generated by weakly supervised object detectors.
+
+| Method | mAP(%) | CorLoc(%) |
| PCL(VGG) [25] | 40.6 | 63.2 |
| WS-RPN(VGG) [28] | 40.8 | 64.9 |
| C-MIL [30] | 46.7 | 67.4 |
| UI [7] | 48.0 | 67.4 |
| Pred Net(VGG) [1] | 48.4 | 69.5 |
| SLV(VGG) | 49.2 | 69.2 |
+
+Table 4. Detection and localization performance for different detectors using a single model on PASCAL VOC 2012 dataset.
+
+the baseline model and trains the SLV module only. The two parts of the proposed network are trained separately, which is similar to re-train an independent Fast-RCNN model.
+
+In the row 4 and 5 of Table 1, we present the performance of models with different training strategies. Compared with the alternative training strategy (row 4), the model trained with the proposed end-to-end training framework (row 5) outperforms the former a lot. Just as we discussed in Section 3.3, end-to-end training framework shorten the gap between weakly-supervised and fully-supervised object detection.
+
+SLV vs. Other labeling schemes. Regarding SVL as
+
+a pseudo labeling strategy, we compare 3 different labeling schemes and analyze the strengths and weaknesses of them respectively. The first scheme is a conventional version that selects the highest-scoring proposal for each positive class. The second scheme is a clustering version that selects the highest-scoring proposal from every proposal cluster for each positive class. And the last scheme is the proposed SLV. Fig 5 contains a few labeling examples of 3 schemes in different scenarios, the first row shows that the SLV module is beneficial to find as many labels as possible rather than only one for each positive class. Then, the second row shows the property of 3 schemes when labeling larger objects and the bounding boxes labeled by SLV have higher IoU with ground-truth boxes. However, as shown in the third row of Fig 5, when objects are gathering closely, the SLV is prone to labeling these objects as one instance. Meanwhile, all 3 schemes failed when labeling the "table" due to its weak feature representation (the plate in the table is labeled instead). This is an issue worth exploring in future work. Despite these bad cases, the performance of the network with SLV (53.5% mAP) still surpasses its counterparts using two other labeling schemes (52.1% mAP for the first scheme and 52.4% mAP for the second scheme).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 6. Detection results of our method and a competitor (the PCL model). Green bounding boxes are the objects detected by our method and red ones are the results detected by the competitor.
+
+
+
+
+
+
+
+
+
+# 4.4. Comparison with Other Methods
+
+In this subsection, we compare the results of our method with other works. We report our experiment results on PASCAL VOC 2007 and 2012 datasets on Table 2, Table 3 and Table 4. Our method obtains $53.5\%$ on mAP and $71.0\%$ on CorLoc with single VGG16 model on VOC 2007 dataset, which outperforms all the other single model methods. We further re-train a Fast-RCNN detector based on pseudo ground-truths produced by SLV (VGG) and the retrained model obtains $53.9\%$ on mAP and $72.0\%$ on CorLoc on VOC 2007 dataset, which are the new state-of-the-arts. On VOC 2012 dataset, our method obtains $49.2\%$ on mAP, which is also the best in all the single model methods and obtains $69.2\%$ on CorLoc.
+
+Different from the recent works, e.g. [33], that select high-scoring proposals as pseudo ground-truths to enhance localization ability, the proposed SLV is devoted to searching the boundaries of different objects from a more macro perspective and thus obtains a better detection ability. We illustrate some typical detection results of our method and a competitor model in Fig 6. It is obvious that the bounding boxes output by our method have a better localization performance. This is due to our multi-task network is able to classify and localize proposals at the same time, while the competitor is single-task form and only highlights the most discriminative object parts. Though our method outperforms the competitor significantly, it is also worth noting
+
+that the detection results on some classes like "chair", "table", "plant" and "person", are undesirable sometimes (last row of Fig 6). We suggest that the supervisions generated in SLV module are not precise enough in object-gathering scenarios: many chairs are gathering or an indoor table surrounded by many other objects.
+
+# 5. Conclusion
+
+In this paper, we propose a novel and effective module, spatial likelihood voting (SLV), for weakly supervised object detection. We propose to evolve the instance classification problem in most MIL-based models into multitasking field to shorten the gap between weakly supervised and fully supervised object detection. The proposed SLV module converges the proposal localizing process without any bounding box annotations and an end-to-end training framework is proposed for our model. The proposed framework obtains better classification and localization performance through end-to-end multi-tasking learning. Extensive experiments conducted on VOC 2007 and 2012 datasets show substantial improvements of our method compared with previous WSOD methods.
+
+# 6. Acknowledgements
+
+This work was supported by the Fundamental Research Funds for the Central Universities, and the National Natural Science Foundation of China under Grant 31627802.
+
+# References
+
+[1] Aditya Arun, CV Jawahar, and M Pawan Kumar. Dissimilarity coefficient based weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9432-9441, 2019.
+[2] Hakan Bilen, Marco Pedersoli, and Tinne Tuytelaars. Weakly supervised object detection with convex clustering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1081-1089, 2015.
+[3] Hakan Bilen and Andrea Vedaldi. Weakly supervised deep detection networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2846-2854, 2016.
+[4] Ramazan Gokberk Cinbis, Jakob Verbeek, and Cordelia Schmid. Weakly supervised object localization with multifold multiple instance learning. IEEE transactions on pattern analysis and machine intelligence, 39(1):189-203, 2016.
+[5] Ali Diba, Vivek Sharma, Ali Pazandeh, Hamed Pirsiavash, and Luc Van Gool. Weakly supervised cascaded convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 914-922, 2017.
+[6] Mark Everingham, SM Ali Eslami, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes challenge: A retrospective. International journal of computer vision, 111(1):98-136, 2015.
+[7] Yan Gao, Boxiao Liu, Nan Guo, Xiaochun Ye, Fang Wan, Haihang You, and Dongrui Fan. Utilizing the instability in weakly supervised object detection. arXiv preprint arXiv:1906.06023, 2019.
+[8] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015.
+[9] 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.
+[10] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
+[11] Vadim Kantorov, Maxime Oquab, Minsu Cho, and Ivan Laptev. Contextlocnet: Context-aware deep network models for weakly supervised localization. In European Conference on Computer Vision, pages 350-365. Springer, 2016.
+[12] Satoshi Kosugi, Toshihiko Yamasaki, and Kiyoharu Aizawa. Object-aware instance labeling for weakly supervised object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 6064-6072, 2019.
+[13] 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.
+[14] 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.
+
+[15] Dong Li, Jia-Bin Huang, Yali Li, Shengjin Wang, and Ming-Hsuan Yang. Weakly supervised object localization with progressive domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3512-3520, 2016.
+[16] Xiaoyan Li, Meina Kan, Shiguang Shan, and Xilin Chen. Weakly supervised object detection with segmentation collaboration. arXiv preprint arXiv:1904.00551, 2019.
+[17] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2117-2125, 2017.
+[18] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014.
+[19] 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.
+[20] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
+[21] 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.
+[22] Weiqiang Ren, Kaiqi Huang, Dacheng Tao, and Tieniu Tan. Weakly supervised large scale object localization with multiple instance learning and bag splitting. IEEE transactions on pattern analysis and machine intelligence, 38(2):405-416, 2015.
+[23] 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.
+[24] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[25] Peng Tang, Xinggang Wang, Song Bai, Wei Shen, Xiang Bai, Wenyu Liu, and Alan Loddon Yuille. Pcl: Proposal cluster learning for weakly supervised object detection. IEEE transactions on pattern analysis and machine intelligence, 2018.
+[26] Peng Tang, Xinggang Wang, Xiang Bai, and Wenyu Liu. Multiple instance detection network with online instance classifier refinement. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2843-2851, 2017.
+[27] Peng Tang, Xinggang Wang, Zilong Huang, Xiang Bai, and Wenyu Liu. Deep patch learning for weakly supervised object classification and discovery. Pattern Recognition, 71:446-459, 2017.
+
+[28] Peng Tang, Xinggang Wang, Angtian Wang, Yongluan Yan, Wenyu Liu, Junzhou Huang, and Alan Yuille. Weakly supervised region proposal network and object detection. In Proceedings of the European conference on computer vision (ECCV), pages 352-368, 2018.
+[29] Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. International journal of computer vision, 104(2):154-171, 2013.
+[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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2199-2208, 2019.
+[31] Fang Wan, Pengxu Wei, Jianbin Jiao, Zhenjun Han, and Qixiang Ye. Min-entropy latent model for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1297–1306, 2018.
+[32] 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 Proceedings of the European Conference on Computer Vision (ECCV), pages 434-450, 2018.
+[33] Ke Yang, Dongsheng Li, and Yong Dou. Towards precise end-to-end weakly supervised object detection network. In Proceedings of the IEEE International Conference on Computer Vision, pages 8372-8381, 2019.
+[34] Xiaopeng Zhang, Jiashi Feng, Hongkai Xiong, and Qi Tian. Zigzag learning for weakly supervised object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4262-4270, 2018.
+[35] Yongqiang Zhang, Yancheng Bai, Mingli Ding, Yongqiang Li, and Bernard Ghanem. W2f: A weakly-supervised to fully-supervised framework for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 928-936, 2018.
\ No newline at end of file
diff --git a/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/images.zip b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..72675774d23d14d72d39b7abab84bdab24935925
--- /dev/null
+++ b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2cb7aea0869f84ff2d2687ff00f9bf6e2b3b2ea6470fe14228dc077842467306
+size 776401
diff --git a/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/layout.json b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c8677ceb63f88e7cab4ffec259e734c2cef9264
--- /dev/null
+++ b/slvspatiallikelihoodvotingforweaklysupervisedobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:49a005a7c33fd49209a7eeb02dd0b94dcbd2f2d2af7123fc54bc3a36f489d843
+size 469086
diff --git a/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_content_list.json b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bf2ace306e3bc936abc916e2c893e77cafe8f4b4
--- /dev/null
+++ b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb33f4dada3fa254c57731ef4542ba52417b7e0046653fa145148088f05946d3
+size 76754
diff --git a/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_model.json b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..afc2c4f1ac7cf530e29a310ca65cd2a371b49b8d
--- /dev/null
+++ b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c29515188b8a52a8e6042018145d7e86b9db79c1685efdb3a1173a8155ed2ffc
+size 91380
diff --git a/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_origin.pdf b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3e51039d8fc46ce6e25718ea5f3708bbdd59d80f
--- /dev/null
+++ b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/cea0c28a-609f-4f9f-916e-48198918235b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8fd797c06af2dbd86b4dd1e55a8b617a063b3d1572d46115b6dc06a7dc3310c2
+size 2787763
diff --git a/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/full.md b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3a8842262495cb93e554090b136f364721a7886f
--- /dev/null
+++ b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/full.md
@@ -0,0 +1,327 @@
+# SOS: Selective Objective Switch for Rapid Immunofluorescence Whole Slide Image Classification
+
+Sam Maksoud1,2
+Kun Zhao1
+Peter Hobson2
+Anthony Jennings2
+Brian C. Lovell1
+1The University of Queensland, St Lucia QLD 4072, Australia
+2Sullivan Nicolaides Pathology, Bowen Hills, QLD 4006, Australia
+
+# Abstract
+
+The difficulty of processing gigapixel whole slide images (WSIs) in clinical microscopy has been a long-standing barrier to implementing computer aided diagnostic systems. Since modern computing resources are unable to perform computations at this extremely large scale, current state of the art methods utilize patch-based processing to preserve the resolution of WSIs. However, these methods are often resource intensive and make significant compromises on processing time. In this paper, we demonstrate that conventional patch-based processing is redundant for certain WSI classification tasks where high resolution is only required in a minority of cases. This reflects what is observed in clinical practice; where a pathologist may screen slides using a low power objective and only switch to a high power in cases where they are uncertain about their findings. To eliminate these redundancies, we propose a method for the selective use of high resolution processing based on the confidence of predictions on downscaled WSIs — we call this the Selective Objective Switch (SOS). Our method is validated on a novel dataset of 684 Liver-Kidney-Stomach immunofluorescence WSIs routinely used in the investigation of autoimmune liver disease. By limiting high resolution processing to cases which cannot be classified confidently at low resolution, we maintain the accuracy of patch-level analysis whilst reducing the inference time by a factor of 7.74.
+
+# 1. Introduction
+
+Patch-level image processing with convolutional neural networks (CNNs) is arguably the most widely used method for gigapixel whole slide image (WSI) analysis [18]. Ordinarily, processing such a large image in its totality with CNNs is computationally infeasible without significant downscaling — resulting in the loss of detailed information required for fine-grained analytical tasks. However, by processing WSIs in smaller patches, it is possible to extract the detailed information by preserving the resolu
+
+
+Figure 1: Schematic illustration of a WSI that includes multi-tissue types: liver, kidney and stomach.
+
+tion of the original gigapixel image. Thus, applications that require fine-grained analysis of gigapixel WSIs are able to incorporate powerful CNNs in their design.
+
+Although there are clear advantages to high resolution patch-level analysis [16], it is resource intensive and can substantially increase processing time [13]. In a high throughput laboratory, any additional per sample processing time will compound, which can make it difficult to justify the use of deep learning algorithms for WSI analysis. Hence, there is a strong motivation to identify situations where it is unnecessary to process WSIs at their maximum resolution. Unlike bright field microscopy, the increased sensitivity of the immunofluorescence assay allows for analysis at lower resolutions. Indirect immunofluorescence (IIF) microscopy on multi-tissue sections is one such example where low resolution often provides sufficient discriminatory information.
+
+Multi-tissue IIF slides, such as the Liver-Kidney-Stomach (LKS) slide shown in Figure 1, allow for the simultaneous observation of immunoreactivity across different tissue types. Comparing observations across tissue types is crucial to interpreting these WSIs [10]; so it is advantageous to screen them at a lower magnification which allows multiple tissues to be viewed at once. Most patterns are easily identified at these lower magnifications. Accordingly, a pathologist will often only switch to a higher magnification for complex or ambiguous cases that require a greater re
+
+solving power. Conventional patch-based processing methods do not reflect this highly efficient manner in which humans navigate slides in clinical microscopy.
+
+In this paper, we describe an approach to WSI classification using a mechanism which restricts the use of high resolution processing to the complex or ambiguous cases. To this end, we construct a dynamic multi-scale WSI classification system comprising three key components: a Low Resolution Network (LRN); an Executive Processing Unit (EPU); and a High Resolution Network (HRN). Inspired by the efficient screening techniques used in manual IIF microscopy, we first attempt to classify WSIs with low resolution features extracted from the LRN. The EPU triggers high resolution patch-based processing iff the probability of the class predicted at low resolution is below a prescribed confidence threshold. We refer to this protocol as the Selective Objective Switch (SOS). The contributions of this paper are as follows:
+
+- To our knowledge, we are the first to propose a Dynamic Multi-Scale WSI classification network which regulates the use of high resolution image streams via the uncertainty of predictions at low resolution;
+- We introduce a novel learning constraint, the paradoxical loss, to discourage asynchronous optimization of the LRN and HRN during training;
+- Finally, we will release our novel dataset1 of 684 LKS WSIs to the community. This will be the first publicly available dataset for multi-tissue IIF WSI analysis.
+
+# 2. Related Works
+
+The current methods used for WSI analysis can be broadly classed into patch-level, conventional multi-scale, and dynamic multi-scale image processing.
+
+Patch-Level Methods. To classify a WSI from patches, patch-level CNNs must incorporate a decision or feature fusion method to aggregate the information from multiple image patch sources. In [27], Xu et al. use a 3-norm pooling method to aggregate patch-level features, extracted from a CNN pre-trained on ImageNet [8], prior to classification. While this method was able to outperform image-level classification of Low-Grade Glioma (LGG) by a significant margin, Hou et al. [16] later discovered that pooling general patch features does not capture the heterogeneity that differentiates subtypes of LGG. This suggests that the method described in [27] is not suitable for fine-grained WSI classification tasks. Hou et al. were able to achieve fine-grained classification of LGG subtypes by applying finetuning to the CNNs during training and deriving WSI classifications from aggregated predictions on individual patches
+
+[16]. However, this assumes that a WSI can be classified based on observations made in a single patch — making it unsuitable for classification tasks that require correlating features from multiple locations in a WSI.
+
+Conventional Multi-Scale Methods. Multi-scale networks provide a means of capturing spatial context in WSIs without compromising on detail. Due to the small receptive field, a single WSI patch may contain little to no contextual information [4, 25]. This is not a major hindrance to cancer classification on many popular datasets [1, 2, 3, 17]; as these WSIs are classified based on cellular mutations observable at the patch-level. However, for tasks that require analysis of a broader WSI context, capturing long range spatial dependencies is of vital importance [4, 22, 25].
+
+An obvious way to capture long range dependencies in CNNs would be to increase the size of input patches as described by Pinheiro and Collobert [20]. However, in the case of gigapixel WSIs, complex long range dependencies may span across tens of thousands of pixels. Without downsampling, capturing them with larger input patches is computationally impossible. Multi-scale networks resolve this problem by using multiple input streams to capture different levels of detail [4, 11, 22].
+
+Ghafoorian et al. [11] proposed a multi-scale late fusion pyramid architecture where low resolution image streams with a large field of view (FOV) were used to capture spatial context, while high resolution image streams with a smaller FOV captured the finer details. Although this approach is effective at capturing different levels of detail, Sirinukunwattana et al. [22] showed that using long short-term memory (LSTM) units [15] to integrate features from multiple scales is more robust to noise, less sensitive to the order of inputs and generally more accurate than the late fusion method used by Ghafoorian et al. [11]. While both of these multi-scale approaches perform better than traditional single-scale patch-level methods [22], incorporating additional image data at different resolutions increases the computational cost of WSI analysis.
+
+Dynamic Multi-Scale Methods. The major disadvantage of using conventional multi-scale methods is the overwhelming redundancies in the visual information fed into these systems. In this paper, we refer to techniques that regulate the degree of information received from different image scales as dynamic multi-scale methods.
+
+Excessive fixation on diagnostically irrelevant WSI features is thought to be the reason why novice pathologists are considerably slower and less accurate than experts; who direct their attention to highly discriminative regions [5]. BenTaib and Hamarneh [4] showed that multi-scale networks behave in a similar manner. Using recurrent visual attention, they outperform classification models trained on thousands of patches by selecting only 42 highly discriminate patches at various scales. Similar improvements are
+
+
+Figure 2: Framework of the SOS protocol. Dashed lines indicate the residual connection between the LRN and HRN.
+
+observed in pixel-wise WSI classification tasks. Tokunaga et al. [25] found that subtypes of lung adenocarcinoma have different optimal resolutions for observing discriminatory features. By dynamically adapting the weight of features from multiple image scales, they could focus on the most discriminative features for detecting the type of cancer lesion. While both of these methods are capable of adapting to the most relevant features in an image, neither adjust the number of patches used, and hence, processing time [13], to suit the individual requirements of each WSI.
+
+The most similar work to ours is from Dong et al. [9], who proposed training a policy network [23] based on the ResNet18 architecture [14] to decide whether to use high or low resolution image scales to process a WSI. Although this resulted in faster processing time for WSI segmentation tasks [9], there are several disadvantages of using this approach for WSI classification. Firstly, training a separate policy network to decide on which image scale to use introduces a significant number of model parameters. In contrast, our decision protocol is based on the predictive confidence at low resolution, thus avoiding the redundant first pass through a policy network. Secondly, their high resolution pathway does not incorporate features from low resolution image scales. In effect, the ability to capture long range spatial dependencies is significantly impaired [11, 22]. However, we overcome this problem by recycling feature maps from the low resolution pathway to incorporate spatial context information. Finally, even though Dong et al computed the error for both the low resolution and high resolution image scale pathways during training, they only updated the parameters of a single pathway for each instance — which is computationally wasteful. In our method, all image scale pathways are updated for each training instance.
+
+# 3. Selective Objective Switch
+
+As illustrated in Figure 2, the aim of the SOS protocol is to avoid excessive high resolution patch-level processing
+
+for WSIs that can be classified confidently at the image-level. To this end, we train an EPU to serve as a controller that decides whether the LRN or HRN is used to classify a given WSI. We describe the details of these components and our optimization protocol below.
+
+# 3.1. Model Framework
+
+Low Resolution Network. Depending on the path chosen by the EPU, the LRN can serve as either a WSI classifier, or a feature extractor for the HRN. The LRN receives a downscaled WSI, $s \in \mathbb{R}^{H \times W \times C}$ , as input to a ResNet18 based feature extractor, $\phi_s$ , to compute a high level feature vector $v$ as:
+
+$$
+\phi_ {s} (s) = v \in \mathbb {R} ^ {1 \times d}, \tag {1}
+$$
+
+where $d = 512$ is the number of output channels from the penultimate layer of ResNet18 [14].
+
+Executive Processing Unit. The EPU is located at the terminal end of the LRN where it receives $v$ as input and estimates a set of class probabilities $\mathcal{N}_{\phi_s} = \{N_{s1},\dots,N_{sn}\}$ , where $n$ is number of WSI classes. To compute $\mathcal{N}_{\phi_s}$ , we apply a linear transformation to $v$ followed by the softmax function $\sigma$ :
+
+$$
+\mathcal {N} _ {\phi_ {s}} = \sigma (v A _ {s} ^ {T} + b _ {s}), \tag {2}
+$$
+
+where $A_{s}\in \mathbb{R}^{n\times d}$ and $b_{s}\in \mathbb{R}^{n}$ are parameters learned by the network. The element with the highest value in $\mathcal{N}_{\phi_s}$ is compared to a confidence threshold $c$ in the range [0, 1] to determine the flow of downstream operations.
+
+# Algorithm 1 EPU Switch Statement
+
+1: if $\max (\mathcal{N}_{\phi_s}) > c$ then
+2: $q = \arg \max (\mathcal{N}_{\phi_s})$
+3: else
+4: $q = \arg \max (\phi_h(v))$
+5: end if
+
+As shown in Algorithm 1, the high confidence estimations immediately compute the class label $q$ using the
+
+
+Figure 3: Visualization of patch selection in the HRN. Red boxes indicate undesirable selections of non-tissue regions.
+
+arg max function while the low confidence estimations trigger additional processing by the HRN $\phi_h$ . The details of the $\phi_h$ function are outlined below.
+
+High Resolution Network. The HRN, $\phi_h$ , comprises three main subcomponents; a patch selector $\phi_a$ , a patch-level feature extractor $\phi_p$ , and a Gated Recurrent Unit (GRU) $\phi_g$ [6]. The patch selector function $\phi_a$ is based on the stochastic hard attention mechanism proposed by Xu et al. [26]. Specifically, the indices of elements in $S = \{S_1,\dots,S_P\}$ , $S_p\in \mathbb{R}^{H\times W\times C}$ are treated as intermediate latent variables where $S$ is the set of $P$ high resolution patches derived from the full resolution WSI. We then estimate a Multinoulli distribution $\mathcal{X}$ as a function of the image-level WSI features $v$ :
+
+$$
+\mathcal {X} = \sigma \left(v A _ {p} ^ {T} + b _ {p}\right), \tag {3}
+$$
+
+where $A_{p} \in \mathbb{R}^{P \times d}$ and $b_{p} \in \mathbb{R}^{P}$ are parameters learned by the network. The indices of the $K$ highest elements in $\mathcal{X}$ are used to sample the set of discriminate patches $\mathcal{F} = \{S_{t_1}, \dots, S_{t_K}\}, S_{t_k} \in \mathcal{S}$ . The value of $K$ is limited by the maximum capacity of the GPU. In our experiments the upper limit of $K$ is 10. A set of patch-level feature vectors $\mathcal{V} = \{V_1, \dots, V_K\}$ are then extracted by applying the $\phi_p$ function to each element in $\mathcal{F}$ . The architecture of $\phi_p$ is a clone of $\phi_s$ . The reason for using a separate network to extract features from the high resolution patches is that CNNs are not robust to changes in scales [21]. Thus, the objective of $\phi_p$ becomes:
+
+$$
+\phi_ {p} (\mathcal {F}) = \left\{V _ {1}, \dots , V _ {K} \right\}, V _ {p} \in \mathbb {R} ^ {1 \times d}. \tag {4}
+$$
+
+The $\phi_g$ function receives $\mathcal{V}$ and $v$ (via the residual connection to $\phi_s$ illustrated in Figure 2) as input and computes $M\in \mathbb{R}^{2d}$ , where $M$ is a multi-scale representation of the WSI. The design of $\phi_{g}$ is similar to the late fusion multi-stream LSTM architecture described in [22],
+
+however, we substitute the LSTM for a GRU cell as they have been observed to achieve comparable performance at a lower computational cost [7]. The GRU cell, with hidden state $h \in \mathbb{R}^d$ , is first initialized with the image-level feature vector $(v)$ , and subsequently receives a patch image feature vector in $\mathcal{V}$ each time step for a total of $K$ time steps. The final state of the GRU cell is concatenated with $v$ to construct $M$ . Finally, we compute the class label $q$ as follows:
+
+$$
+\mathcal {N} _ {\phi_ {h}} = \sigma \left(M A _ {m} ^ {T} + b _ {m}\right), \tag {5}
+$$
+
+$$
+q = \arg \max \left(\mathcal {N} _ {\phi_ {h}}\right), \tag {6}
+$$
+
+where $A_{m}\in \mathbb{R}^{n\times 2d}$ and $b_{m}\in \mathbb{R}^{n}$ are parameters learned by the network and $\mathcal{N}_{\phi_h} = \{N_{h1},\dots,N_{hn}\}$ is the set of estimated class probabilities.
+
+# 3.2. Optimization Protocol
+
+Our model is trained by optimizing three loss terms: classification loss; paradoxical loss; and executive loss. During training, the EPU always triggers HRN processing to optimize the classification accuracy of both networks. During inference, the EPU uses the switch statement in Algorithm 1 to decide on a single path. We describe the details of our optimization protocol below.
+
+Classification Loss. The classification loss $L_{1}$ is the summation of two cross entropy loss terms: a low resolution cross entropy loss $L_{ce_1}$ ; and a high resolution cross entropy loss $L_{ce_2}$ . The purpose of $L_{ce_1}$ is to maximize the classification accuracy when inferring the class label $q$ from the LRN probability distribution $\mathcal{N}_{\phi_s}$ :
+
+$$
+L _ {c e _ {1}} = \frac {1}{B} \sum_ {o = 1} ^ {B} \left(- \sum_ {i = 1} ^ {n} y _ {o, i} \log \left(N _ {s o, i}\right)\right), \tag {7}
+$$
+
+where $B = 4$ is the mini-batch size, $i$ is the class label, $o$ is the observed WSI, $y$ is a binary indication that $i$ is the ground truth label for $o$ , and $N_{so,i}$ is the probability that $o = i$ if predicted by the LRN. The purpose of $L_{ce_2}$ is to maximize the classification accuracy when inferring $q$ from the HRN probability distribution $\mathcal{N}_{\phi_h}$ . The $L_{ce_2}$ term is the same as Equation 7, except we use probabilities in $\mathcal{N}_{\phi_h}$ instead of $\mathcal{N}_{\phi_s}$ to calculate the cross entropy loss. The $L_1$ loss is then computed as the sum of $L_{ce_1}$ and $L_{ce_2}$ .
+
+Paradoxical Loss. The motivation of the paradoxical loss $L_{2}$ term is the assumption that, given $M$ is a multiscale representation of image-level and patch-level features, access to more visual detail should never decrease the performance of the HRN. Thus, instances where the LRN performs better than the HRN during training should be viewed as undesirable and paradoxical. Under this assumption, we hypothesize that if the probability of the correct class is higher in $\mathcal{N}_{\phi_s}$ than in $\mathcal{N}_{\phi_h}$ , it must be due to either an over-
+
+confident LRN, or a suboptimal HRN. To deter these behaviors in our model we compute $L_{2}$ as follows:
+
+$$
+L _ {2} = \frac {1}{B} \sum_ {o = 1} ^ {B} \max \left(N _ {s x, o} - N _ {h x, o}, 0\right), \tag {8}
+$$
+
+where $N_{sx,o}$ and $N_{hx,o}$ are the estimated probabilities of the true class label $x$ by the LRN and HRN respectively.
+
+Executive Loss. The Executive Loss $L_{3}$ is a weighted sum of two novel loss terms: a hesitation loss; and a hubristic loss. Its purpose is to calibrate both the confidence threshold $c$ (Algorithm 1) and the LRN confidence scores to achieve the optimal trade-off between efficiency and accuracy. This is crucial because confidence scores naturally produced by neural networks may not represent true probabilities [12]. Intuitively, the hesitation loss and hubristic loss can be understood as the difference between the predicted probability value, and the value relative to $c$ that would have resulted in a correct action by the EPU.
+
+The hesitation loss, $L_{he}$ , is the penalty incurred when there is a high degree of uncertainty in correct LRN predictions, resulting in redundant HRN processing. Specifically, this describes instances when: (a) the LRN predicts the correct class label, and (b) the predicted probability value is below the confidence threshold. To prevent our network from using the HRN excessively, we penalize correct LRN predictions when the probability value is below $c$ by computing $L_{he}$ as follows:
+
+$$
+L _ {h e} = \sum_ {o = 1} ^ {B} y _ {s, o} \max \left(\left(\left(c + \epsilon\right) - \max \left(\mathcal {N} _ {\phi_ {s}}\right)\right), 0\right), \tag {9}
+$$
+
+where $\epsilon = 10^{-3}$ is used to set the desired target above the confidence threshold, and $y_{s,o}$ is the binary indicator that $\arg \max (\mathcal{N}_{\phi_s})$ is the correct label for observation $o$ .
+
+The hubristic loss $L_{hu}$ is the penalty incurred when the EPU's decision to bypass correct HRN predictions is based on confidently incorrect predictions by the LRN. Specifically, this describes instances when: (a) the LRN predicts an incorrect class label; (b) the predicted probability value is above the confidence threshold; and (c) the HRN predicts the correct class label. To prevent this underutilization of the HRN, we penalize incorrect LRN predictions that are predicted with a probability value above $c$ by computing $L_{hu}$ as:
+
+$$
+L _ {h u} = \sum_ {o = 1} ^ {B} y _ {h, o} \neg \left(y _ {s, o}\right) \max \left(\left(\max \left(\mathcal {N} _ {\phi_ {s}}\right)\right) - c, 0\right), \tag {10}
+$$
+
+where $y_{h,o}$ is binary indicator that $\arg \max (\mathcal{N}_{\phi_h})$ is the correct class label for $o$ , and $\neg (y_{s,o})$ is the binary indicator that $\arg \max (\mathcal{N}_{\phi_s})$ is the incorrect class label for $o$ .
+
+Both $L_{he}$ and $L_{hu}$ are then weighted to compute $L_{3}$ as:
+
+$$
+L _ {3} = \frac {1}{B} \left(\lambda_ {1} L _ {h e} + \lambda_ {2} L _ {h u}\right), \tag {11}
+$$
+
+| Set | Neg | AMA | SMA-V | SMA-T | Total |
| Train | 239 | 106 | 107 | 27 | 479 |
| Test | 103 | 45 | 46 | 11 | 205 |
+
+(a) The distribution of classes in the train and test set.
+
+| Size | Resolution | Objective | Format |
| 300GB | 40000 × 40000 × 1 | ×20 | TIFF |
+
+(b) Meta-Information pertaining to the LKS dataset.
+
+Table 1: Structure of the Liver-Kidney-Stomach Dataset.
+
+where $\lambda_{1} = 0.5$ and $\lambda_{2} = 1.0$ are regularization terms that set the target speed/accuracy trade-off by controlling the influence of $L_{he}$ and $L_{hu}$ on $L_{3}$ .
+
+Final Objective Function. The final objective function $L_{total}$ is computed as the sum of $L_{1}$ , $L_{2}$ , and $L_{3}$ terms. By adding $L_{3}$ to the total network loss (rather than simply calibrating the threshold $c$ ), our network has the flexibility to improve EPU decision making by: (a) adjusting $c$ directly; and/or (b) modifying other network parameters to have the LRN regress confidence scores on the appropriate side of $c$ .
+
+# 4. The Liver-Kidney-Stomach Dataset
+
+The liver auto-antibody LKS screen is critical to the investigation of autoimmune liver disease [10, 24], however, there are currently no public WSI datasets available for research. There are several reasons why the LKS classification task is ideal for evaluating dynamic multi-scale networks. Firstly, compared to public bright field microscopy WSI datasets, the increased sensitivity of the immunofluorescence assay allows for the observation of critical features at low resolution. Secondly, despite the increased sensitivity of IIF, high resolution may still be required to observe certain staining patterns, particularly when antibody concentrations are low. Finally, global structures captured at low resolution are essential for the classification of multi-tissue LKS WSIs. The fact that low resolution features are necessary, but not always sufficient, for LKS classification provides an ideal environment to validate the SOS protocol.
+
+In collaboration with Sullivan Nicolaides Pathology, we constructed a novel LKS dataset from routine clinical samples. To prepare the LKS slides, sections of rodent kidney, stomach and liver tissue were prepared according to the schematic in Figure 1. Patient serum was incubated on the multi-tissue section and treated with fluorescein isothiocyanate (FITC) IgG conjugate. The slides were digitized using a monocular camera and a x20 objective lens with a numerical aperture of 0.8. A team of trained medical scientists manually labelled the slides into one of four classes: Negative (Neg); Anti-Mitochondrial Antibodies (AMA);
+
+| L2 | L3 | K | TA%↑ | IT(s) ↓ | RS ↓ | LP | CT |
| ✓ | ✓ | 10 | 90.73 | 15.78 | 2.17 | 0.94 | 0.62 |
| ✓ | ✓ | 5 | 88.29 | 9.74 | 2.17 | 0.92 | 0.60 |
| ✓ | ✓ | 3 | 86.83 | 13.15 | 2.17 | 0.89 | 0.61 |
| ✓ | 10 | 85.37 | 8.92 | 2.17 | 0.97 | 0.52 |
| ✓ | | 10 | 88.29 | 15.50 | 2.17 | 0.92 | 0.62 |
+
+(a) Ablation. Classification accuracy will decrease when $K$ is reduced and when $L_{2}$ or $L_{3}$ are omitted from the objective function.
+
+| Fusion Method | TA% ↑ | IT(s) ↑ | RS ↓ | LP | CT |
| GRU | 90.73 | 15.78 | 2.17 | 0.94 | 0.62 |
| Average Pool | 86.83 | 20.63 | 2.02 | 0.88 | 0.68 |
| Max Pool | 83.90 | 17.01 | 2.02 | 0.92 | 0.66 |
+
+Table 2: Effect of individual model components on Total Accuracy (TA), Inference time (IT), Relative Size (RS), ratio of low resolution predictions (LP) and the calibrated confidence threshold (CT).
+
+Vessel-Type Anti-Smooth Muscle Antibodies (SMA-V) and Tubule-Type Anti-Smooth Muscle Antibodies (SMA-T). The distribution of classes is provided in Table 1a and relevant meta-information is provided in Table 1b.
+
+# 5. Experiments
+
+The aim of the SOS protocol is to achieve rapid WSI classification without: (a) substantially increasing model size; or (b) compromising on classification accuracy. Thus, we validate the effectiveness of our method by analysing quantitative metrics for classification accuracy, model size, and processing speed. The design specifications for the SOS protocol, such as the number of patches processed at high resolution $(K = 10)$ , and the multi-image feature aggregation method (GRU), were determined by the outcomes of the ablation studies in Table 2. As described in Section 2, the existing approaches for WSI classification can be broadly grouped into: (a) Patch-Level; (b) Conventional Multi-Scale; and (c) Dynamic Multi-Scale methods. We assess the quantitative performance of our SOS protocol against each of these commonly used methods and additionally include image-level WSI classification performance for comparison (Tables 3 and 4). We also qualitatively analyze the outputs of our patch selection network to validate the effectiveness of our HRN (Figures 3 and 4).
+
+# 5.1. Data Preprocessing
+
+For computational efficiency, all WSIs were preprocessed into $s$ and $S$ prior to training and inference. To produce $s$ where $H = 1000$ , $W = 1000$ and $C = 1$ ; we downscale the full resolution WSIs by a factor of 40. To produce $S$ , we segment full resolution WSIs into non-overlapping
+
+(b) Feature Fusion. Classification accuracy will increase when GRU units are used to integrate multi-scale features.
+
+| Method | TA% ↑ | RS ↓ | IT(s) ↓ | SB ↑ | LP |
| Image-Level | 81.95 | 1.00 | 8.37 | 14.59 | - |
| Patch-Level | 69.27 | 1.50 | 94.10 | 1.3 | - |
| Multi-Scale | 85.37 | 2.17 | 122.10 | 1.00 | - |
| RDMS | 88.78 | 3.83 | 57.30 | 2.13 | 0.55 |
| SOS (ours) | 90.73 | 2.17 | 15.78 | 7.74 | 0.94 |
+
+Table 3: Comparison of Total Accuracy (TA), Relative Size (RS), Inference Time (IT) and Speed Boost (SB) metrics. The ratio of low resolution predictions (LP) is also provided for the dynamic multi-scale classification methods.
+
+patches with the same dimensions as $s$ ; thus, the total number of patches per WSI is 1600. Since ResNet18 [14] was designed to be used on tricolor image inputs, we modified the first convolutional layer to have single channel inputs to be compatible with these monocolor images.
+
+# 5.2. Method Comparison
+
+The details of each of the methods used for comparison are described below. All models were evaluated after training for 20 epochs using a learning rate of $10^{-3}$ .
+
+Image-Level. The Image-Level method performs classification on single-scale image-level features. Specifically, we train a ResNet18 model [14] to directly compute the class label $(q)$ from downscaled WSI $(s)$ inputs. We optimize image-level classification by minimizing the cross entropy loss for ground truth and predicted class probabilities.
+
+Patch-Level. The Patch-Level method performs classification on single-scale patch-level features. The network architecture is essentially the same as the proposed model; however, we remove the residual connection to image-level features. Thus, only high resolution features from the set of $K$ patches are used to classify the WSI. We optimize patch-level classification by minimizing the cross entropy loss for ground truth and predicted class probabilities.
+
+Conventional Multi-Scale. The Conventional Multi-Scale method performs classification on multi-scale image-level and patch-level features. The design of the Multi-Scale method is similar to the Patch-Level network; however, we restore the residual connection to image-level features as shown in Figure 2. Thus, features from both low resolution and high resolution image scales are used to classify each WSI. We optimize multi-scale classification by minimizing the cross entropy loss for ground truth and predicted class probabilities. In this paper, we refer to this method as Multi-Scale.
+
+Dynamic Multi-Scale. The Dynamic Multi-Scale method is based on the Reinforced Auto-Zoom Net (RAZN) framework proposed by Dong et al. [9]. Specifically, we remove the switch statement (Algorithm 1) from the EPU and attach a policy network, based on the ResNet architecture,
+
+to the front end of our model to decide whether to use the LRN or the HRN for WSI classification. Since RAZN is designed for WSI segmentation tasks, we modify the reward function to be suitable for LKS classification as follows:
+
+$$
+R (a) = a \frac {L _ {c e _ {2}} - L _ {c e _ {1}}}{L _ {c e _ {1}}}, \tag {12}
+$$
+
+where $a \in \{0,1\}$ , represents the policy action to use the LRN or HRN respectively. Thus, when $a = 1$ then the reward $R(a)$ is positive if $L_{ce_2} > L_{ce_1}$ , and negative if $L_{ce_2} < L_{ce_1}$ . We then optimize the network using the policy gradient method described in [9]. We refer to this method as Reinforced Dynamic Multi-Scale (RDMS).
+
+# 5.3. Quantitative Evaluation
+
+Processing Speed. Processing speed is evaluated using Inference Time (IT) and Speed Boost (SB) metrics. The IT is a raw measurement of inference time (in seconds) on the test dataset. SB indicates the factor by which inference time is reduced relative to the baseline model. The model used as the baseline for processing speed is the conventional MultiScale model. The reason for selecting this model as the baseline is because it achieved the highest accuracy among the static classification models. Thus, it defines the baseline speed at which the highest accuracy can be achieved without adapting the resolution used to process each WSI.
+
+Model Size. The model size is evaluated using the Relative Size (RS) metric. The RS metric indicates the relative increase in size compared to the simple image-level ResNet18 classifier used as the backbone in all our multiscale methods e.g. an RS of 2 indicates that the model has twice as many parameters as the simple ResNet18 classifier.
+
+Classification Accuracy. The classification accuracy is evaluated using the Total Accuracy (TA) metric. However, since the majority of samples in the dataset are negative, the TA does not provide an adequate measure of classification performance on individual classes. To assess individual class performance, we provide the F1 score (F1), Precision (PR), Recall (RE), and Specificity (SP) for each of the four WSI classes in Table 4.
+
+# 6. Discussion
+
+The results in Table 3 indicate that our proposed method was able to reduce inference time by a factor of 7.74 while improving classification accuracy compared to the conventional multi-scale approach. The improved classification accuracy was unexpected because the multi-scale network processes low resolution contextual features and high resolution local features for every WSI while our network only uses single-scale low resolution features for the majority of test samples. We suspect that training our model to use LRN features for patch selection and classification may explain
+
+| Method | F1 ↑ | PR ↑ | RE ↑ | SP ↑ |
| Image-Level | 0.8800 | 0.8115 | 0.9612 | 0.7745 |
| Patch-Level | 0.7967 | 0.6853 | 0.9515 | 0.5588 |
| Multi-Scale | 0.9083 | 0.8609 | 0.9612 | 0.8431 |
| RDMS | 0.9300 | 0.9588 | 0.9029 | 0.9608 |
| SOS (ours) | 0.9406 | 0.9596 | 0.9223 | 0.9608 |
+
+(a) Negative. Evaluation of Negative classification performance.
+
+| Method | F1 ↑ | PR ↑ | RE ↑ | SP ↑ |
| Image-Level | 0.8989 | 0.9090 | 0.8889 | 0.9750 |
| Patch-Level | 0.8471 | 0.9000 | 0.8000 | 0.9750 |
| Multi-Scale | 0.8706 | 0.9250 | 0.8222 | 0.9813 |
| RDMS | 0.9149 | 0.8776 | 0.9556 | 0.9625 |
| SOS (ours) | 0.9348 | 0.9149 | 0.9556 | 0.9750 |
+
+(b) AMA. Evaluation of AMA classification performance.
+
+| Method | F1 ↑ | PR ↑ | RE ↑ | SP ↑ |
| Image-Level | 0.6667 | 0.7368 | 0.6087 | 0.9371 |
| Patch-Level | 0.2353 | 0.3636 | 0.1739 | 0.912 |
| Multi-Scale | 0.7778 | 0.7955 | 0.7609 | 0.9434 |
| RDMS | 0.8367 | 0.7885 | 0.8913 | 0.9308 |
| SOS (ours) | 0.8542 | 0.8200 | 0.8913 | 0.9434 |
+
+(c) SMA-V. Evaluation of SMA-V classification performance.
+
+| Method | F1 ↑ | PR ↑ | RE ↑ | SP ↑ |
| Image-Level | 0.1667 | 1.000 | 0.0909 | 1.000 |
| Patch-Level | 0.0000 | 0.0000 | 0.000 | 1.000 |
| Multi-Scale | 0.4706 | 0.6667 | 0.3636 | 0.9897 |
| RDMS | 0.5556 | 0.7143 | 0.4545 | 0.9897 |
| SOS (ours) | 0.7000 | 0.7778 | 0.6364 | 0.9897 |
+
+(d) SMA-T. Evaluation of SMA-T classification performance.
+
+Table 4: Evaluation of F1 scores, Precision (PR), Recall (RE) and Specificity (SP) for each of the four WSI classes.
+
+the improved accuracy as it has been shown that jointly learning the tasks of detection and classification have a beneficial effect on model performance [19].
+
+The RDMS method was also shown to improve accuracy and reduce inference time. However, as shown in Table 3, adding the additional policy network has introduced significantly more parameters than our proposed method. The limitations of using RDMS for classification tasks are demonstrated clearly by the LP of 0.55; meaning only $55\%$ of samples in the test dataset were classified at low resolution compared to our $94\%$ . The fact that our model still achieved a higher accuracy when processing fewer samples at high resolution indicates that RDMS is using the HRN excessively. This behavior was expected because the policy reward in RDMS (Equation 12) is always zero unless the "zoom" (HRN processing) action is sampled. This means there is an incentive to utilize HRN processing whenever the incurred loss is lower than the LRN prediction i.e.
+
+
+Figure 4: Examples of WSI patch regions sampled by the HRN for each of the WSI classes. The sampled patch regions are provided in low (top) and high (bottom) resolution to compare the different levels of detail at each scale. The colored arrows indicate examples where diagnostically significant features could not be resolved at the lower resolution. At the LRN input resolution, it is difficult to observe the fine granular staining of mitochondria (yellow arrow) and virtually impossible to resolve the staining of smooth muscle actin fibres in the stomach (red arrow) and kidney (blue arrow). However, in the corresponding high resolution patches sampled by the HRN, these distinguishing features are clearly visible.
+
+
+
+$L_{ce_2} < L_{ce_1}$ . However, in classification tasks, a lower cross entropy loss is not a perfect estimate of classification accuracy because the LRN may still reliably predict the correct class label. In our method, we encourage the network to maximize the use of LRN for classification in these cases by minimizing $L_{he}$ (Equation 9). Thus, we could classify WSIs significantly faster than RDMS without compromising on classification accuracy.
+
+Figure 4 provides examples of sampled patches for each of the WSI classes. At low resolution, it is virtually impossible to resolve the fine smooth muscle actin fibres in SMA-T and SMA-V patches. The staining of actin fibres is an essential diagnostic feature of smooth muscle antibodies [10]. The inability to resolve these fibres at low resolution likely explains why the F1 scores for these classes are substantially lower with the Image-Level classifier than with the Multi-Scale, RDMS and SOS methods; which all incorporate high resolution WSI features (Table 4). The Patch-Level method also has access to the high resolution WSI features; however, without any spatial context features from the low resolution WSI, it obtained the lowest classification accuracy of all tested methods (Table 3).
+
+While the HRN clearly improves the accuracy of our model, the hard patch attention mechanism often selects patches containing no tissue at all (Figure 3). The selection of undesirable patches likely explains why average and max pooling methods do not perform as well as the gated recurrent unit for aggregating multi-image features (Table 2) — as recurrent neural networks are known to be more robust to noisy WSI patches [22].
+
+From the ablation studies in Table 2, it is clear that reducing the number of patches processed by the HRN will have an adverse effect on classification accuracy. Omitting
+
+the paradoxical loss $(L_{2})$ during training also results in a significant drop in classification accuracy. The paradoxical loss is used to prevent overconfident estimates by the LRN; without it, the model becomes biased towards classifying examples at low resolution (as indicated by the LP of 0.97). A smaller reduction in classification accuracy is also observed when the executive loss term $(L_{3})$ was omitted during training. The executive loss term helps regulate the network to regress class probability estimates on the appropriate side of the decision boundary. Without the executive loss, class probabilities can be estimated without feedback on how they affected EPU decisions; which can result in the suboptimal image scale being selected to classify a WSI.
+
+# 7. Conclusion
+
+In this paper, we show that it is possible to reduce inference time in WSI classification tasks, without compromising on accuracy, by restricting high resolution patch-based processing to cases that cannot be classified confidently at low resolution. The effectiveness of our proposed SOS protocol is demonstrated on the LKS dataset; which presents the challenging task of finding the optimal trade-off between low resolution WSI processing and patch-based processing. To evaluate the generalizability of the proposed framework, in future works, we will perform experiments on a variety of IIF WSI datasets that are being assembled in collaboration with Sullivan Nicolaides Pathology.
+
+# 8. Acknowledgements
+
+This project has been funded by Sullivan Nicolaides Pathology and the Australian Research Council (ARC) Linkage Project [Grant number LP160101797].
+
+# References
+
+[1] The cancer genome atlas. http://cancergenome.nih.gov. 2
+[2] Guilherme Aresta, Teresa Araujo, Scotty Kwok, Sai Saketh Chennamsetty, Mohammed Safwan, Varghese Alex, Bahram Marami, Marcel Prastawa, Monica Chan, Michael Donovan, et al. Bach: Grand challenge on breast cancer histology images. Medical image analysis, 2019. 2
+[3] Peter Bandi, Oscar Geessink, Quirine Manson, Marcory Van Dijk, Maschenka Balkenhol, Meyke Hermsen, Babak Ehteshami Bejnordi, Byungjae Lee, Kyunghyun Paeng, Aoxiao 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. 2
+[4] Aïcha BenTaieb and Ghassan Hamarneh. Predicting cancer with a recurrent visual attention model for histopathology images. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 129-137. Springer, 2018. 2
+[5] Tad T Brunye, Patricia A Carney, Kimberly H Allison, Linda G Shapiro, Donald L Weaver, and Joann G Elmore. Eye movements as an index of pathologist visual expertise: a pilot study. *PloS one*, 9(8):e103447, 2014. 2
+[6] Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnnc encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. 4
+[7] 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. 4
+[8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. IEEE, 2009. 2
+[9] Nanqing Dong, Michael Kampffmeyer, Xiaodan Liang, Zeya Wang, Wei Dai, and Eric Xing. Reinforced auto-zoom net: Towards accurate and fast breast cancer segmentation in whole-slide images. In Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support, pages 317-325. Springer, 2018. 3, 6, 7
+[10] Nikolaos K Gatselis, Kalliopi Zachou, George K Koukoulis, and George N Dalekos. Autoimmune hepatitis, one disease with many faces: etiopathogenetic, clinico-laboratory and histological characteristics. World journal of gastroenterology: WJG, 21(1):60, 2015. 1, 5, 8
+[11] Mohsen Ghafoorian, Nico Karssemeijer, Tom Heskes, Mayra Bergkamp, Joost Wissink, Jiri Obels, Karlijn Keizer, Frank-Erik de Leeuw, Bram van Ginneken, Elena Marchiori, et al. Deep multi-scale location-aware 3d convolutional neural networks for automated detection of lacunes of presumed vascular origin. NeuroImage: Clinical, 14:391-399, 2017. 2, 3
+[12] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In Proceedings
+
+of the 34th International Conference on Machine Learning-Volume 70, pages 1321-1330. JMLR.org, 2017.5
+[13] Zichao Guo, Hong Liu, Haomiao Ni, Xiangdong Wang, Mingming Su, Wei Guo, Kuansong Wang, Taijiao Jiang, and Yueliang Qian. A fast and refined cancer regions segmentation framework in whole-slide breast pathological images. Scientific reports, 9(1):882, 2019. 1, 3
+[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. 3, 6
+[15] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997. 2
+[16] 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. 1, 2
+[17] Geert Litjens, Peter Bandi, Babak Ehteshami Bejnordi, Oscar Geessink, Maschenka Balkenhol, Peter Bult, Altuna Halilovic, Meyke Hermsen, Rob van de Loo, Rob Vogels, et al. 1399 h&e-stained sentinel lymph node sections of breast cancer patients: the camelyon dataset. *GigaScience*, 7(6):giy065, 2018. 2
+[18] Geert Litjens, Thijs Kooi, Babak Ehteshami Bejnordi, Arnaud Arindra Adiyoso Setio, Francesco Ciompi, Mohsen Ghafoorian, Jeroen Awm Van Der Laak, Bram Van Ginneken, and Clara I Sánchez. A survey on deep learning in medical image analysis. Medical image analysis, 42:60-88, 2017. 1
+[19] Kevis-Kokitsi Maninis, Ilija Radosavovic, and Iasonas Kokkinos. Attentive single-tasking of multiple tasks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1851-1860, 2019. 7
+[20] Pedro HO Pinheiro and Ronan Collobert. Recurrent convolutional neural networks for scene labeling. In 31st International Conference on Machine Learning (ICML), number CONF, 2014. 2
+[21] Bharat Singh and Larry S Davis. An analysis of scale invariance in object detection snip. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3578-3587, 2018. 4
+[22] Korsuk Sirinukunwattana, Nasullah Khalid Alham, Clare Verrill, and Jens Rittscher. Improving whole slide segmentation through visual context-a systematic study. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 192-200. Springer, 2018. 2, 3, 4, 8
+[23] Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pages 1057-1063, 2000. 3
+[24] Ban-Hock Toh. Diagnostic autoantibodies for autoimmune liver diseases. Clinical & translational immunology, 6(5):e139, 2017. 5
+[25] Hiroki Tokunaga, Yuki Teramoto, Akihiko Yoshizawa, and Ryoma 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. 2, 3
+[26] Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International conference on machine learning, pages 2048-2057, 2015. 4
+[27] Yan Xu, Zhipeng Jia, Yuqing Ai, Fang Zhang, Maode Lai, I Eric, and Chao 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. 2
\ No newline at end of file
diff --git a/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/images.zip b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7bcb137c7f24e8f082ae4d5d3563a97f4da4df2a
--- /dev/null
+++ b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67ba8d175c43826dd28327f0320c464b6f0e54c21816fb09bc23acc9d119d453
+size 360729
diff --git a/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/layout.json b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b5f055853b0ee73ea04136a62f09a570a2d71e94
--- /dev/null
+++ b/sosselectiveobjectiveswitchforrapidimmunofluorescencewholeslideimageclassification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1e3be0ee4107fee771295d5d6d92f7aa3ac983beac2ac39cb7231183b314f728
+size 414845
diff --git a/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_content_list.json b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2dbb284d728b261f5f4e601469fa8600bce55fa2
--- /dev/null
+++ b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb6ce19bf4fb882b9efa0bfa45c2db6f3feafe6217da0f3c095880db2497123f
+size 72494
diff --git a/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_model.json b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..21920f95dd5c93597b7b7a3a7f34a8f1aeced77a
--- /dev/null
+++ b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:839ff5700690dc4ba455c208dc878086910fb584497117d3573028d8d1323fe1
+size 90636
diff --git a/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_origin.pdf b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a046110a60fc60ad5490d57ed9b6a583574a359a
--- /dev/null
+++ b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/e79ca51d-c554-4f24-a2cf-f0509f974df3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:32aa5d99958c2d6d1c1779b99ba8ff9be44782be36bfddf314782169e533b825
+size 1334593
diff --git a/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/full.md b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ad3ee40d398cef80e4afe49debc65ad005c966d9
--- /dev/null
+++ b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/full.md
@@ -0,0 +1,266 @@
+# SPARE3D: A Dataset for SPAtial REasoning on Three-View Line Drawings
+
+Wenyu Han*
+
+Siyuan Xiang*
+
+Chenhui Liu
+
+Ruoyu Wang
+
+Chen Feng†
+
+New York University Tandon School of Engineering
+
+https://ai4ce.github.io/SPARE3D
+
+# Abstract
+
+Spatial reasoning is an important component of human intelligence. We can imagine the shapes of 3D objects and reason about their spatial relations by merely looking at their three-view line drawings in 2D, with different levels of competence. Can deep networks be trained to perform spatial reasoning tasks? How can we measure their "spatial intelligence"? To answer these questions, we present the SPARE3D dataset. Based on cognitive science and psychometrics, SPARE3D contains three types of 2D-3D reasoning tasks on view consistency, camera pose, and shape generation, with increasing difficulty. We then design a method to automatically generate a large number of challenging questions with ground truth answers for each task. They are used to provide supervision for training our baseline models using state-of-the-art architectures like ResNet. Our experiments show that although convolutional networks have achieved superhuman performance in many visual learning tasks, their spatial reasoning performance in SPARE3D is almost equal to random guesses. We hope SPARE3D can stimulate new problem formulations and network designs for spatial reasoning to empower intelligent robots to operate effectively in the 3D world via 2D sensors.
+
+# 1. Introduction
+
+Spatial reasoning is "the ability to generate, retain, retrieve, and transform well-structured visual images" [29]. It allows an intelligent agent to understand and reason about the relations among objects in three or two dimensions. As a part of general intelligence, spatial reasoning allows people to interpret their surrounding 3D world [30] and affect their spatial task performances in large-scale environments [20]. Moreover, statistics from many psychological and educational studies [26, 31, 45] have empirically proved that good spatial reasoning ability can benefit performance in STEM (science, technology, engineering, and math) areas.
+
+Therefore, when we are actively developing intelligent
+
+
+Figure 1. SPARE3D task overview. The input to each task is either the whole or a subset of four different orthographic views of a 3D object as line drawings, i.e., front (F), top (T), right (R), and isometric (I) views. Based on the input, an intelligent agent needs to answer three types of questions: 1) select a consistent view describing the same object, 2) reason about the camera pose of a view, and 3) generate the object shape as an isometric view or a 3D model. The green box (left) and circle (middle) indicate the correct answers in this example. Best viewed in color.
+
+systems such as self-driving cars and smart service robots, it is natural to ask how good their spatial reasoning abilities are, especially if they are not equipped with expensive 3D sensors. Because deep convolutional networks empower most state-of-the-art visual learning achievements (such as object detection and scene segmentation) in those systems, and they are typically trained and evaluated on a large amount of data, it is then important to design a set of non-trivial tasks and develop a large-scale dataset to facilitate the study of spatial reasoning for intelligent agents.
+
+As an important topic in psychometrics, there exist several spatial reasoning test datasets, including the Mental Rotation Tests [43], Purdue Spatial Visualization Test (PSVT) [4], and Revised Purdue Spatial Visualization Test [50]. However, those human-oriented tests are not directly suitable for our purpose of developing and testing the spatial reasoning capability of an intelligent system, or a deep network. First, the amount of data in these datasets, typically less than a hundred of questions, is not enough for most deep learning methods. Second, the manual way to design and generate questions in these tests are not easily scalable.
+
+able. Third, many of them focus mostly on various forms of rotation reasoning tests, ignoring other spatial reasoning aspects that may be deemed either too easy to answer (e.g., to reason about the consistency between different views) or too difficult to evaluate (e.g., imagine and visualize the 3D shape or views mentally from different pose) for human, which are non-trivial for a machine. In addition, some tests use line drawings without hidden lines (not directly visible due to occlusion), which might cause ambiguity and make it unnecessarily difficult for our purpose.
+
+In the vision community, some Visual Question Answering (VQA) datasets that are reviewed in the next section are the closest efforts involving spatial reasoning. However, these datasets are heavily coupled with natural language processing and understanding, instead of purely focusing on spatial reasoning itself. Also, these datasets are mainly designed for visual relationship reasoning instead of spatial reasoning about geometric shapes and poses.
+
+Therefore, we propose the SPARE3D dataset to promote the development and facilitate the evaluation of intelligent systems' spatial reasoning abilities. We use orthographic line drawings as the primary input modality for our tasks. Line drawings are widely used in engineering, representing 3D mechanical parts in computer-aided design or structures in building information models from several 2D views, with surface outlines and creases orthogonally projected onto the image plane as straight or curved lines. Compared with realistic images, line drawings are not affected by illumination and texture in rendering, providing pure, compact, and most prominent object geometry information. It is even possible to encode depth cues in a single drawing with hidden lines.
+
+Moreover, line drawing interpretation has been extensively studied in computer vision and graphics for a few decades, leading to theories such as line labeling and region identification [32, 42, 33, 44], and for single-view reconstruction [37]. Many of these methods were trying to convert 2D line drawings to 3D models based on projective geometry theories and rule-based correspondence discovery, which is arguably different from human's seemingly instinctive and natural understanding of those drawings. We hope SPARE3D can stimulate new studies in this direction using data-driven approaches.
+
+SPARE3D contains five spatial reasoning tasks in three categories of increasing difficulty, including view consistency reasoning, camera pose reasoning, and shape generation reasoning, as illustrated in Figure 1. The first two categories are discriminative. View consistency reasoning requires an intelligent agent to select a compatible line drawing of the same object observed from a different pose than the given drawings. The more difficult camera pose reasoning requires the agent to establish connections between drawings and their observed poses, which is similar to the aforementioned Mental Rotation Tests and PSVT.
+
+| Dataset | 2D | 3D | pure geometry | line drawing | reasoning |
| Visual Reasoning [24, 3, 48, 7, 22, 28, 38] | ✓ | ✗ | ✗ | ✗ | ✓ |
| Phyre [2] | ✓ | ✗ | ✗ | ✗ | ✓ |
| ShapeNet [6] | ✓ | ✓ | ✗ | ✗ | ✗ |
| ScanNet [10] | ✓ | ✓ | ✗ | ✗ | ✗ |
| Line Drawing [8, 9, 17, 1] | ✓ | ✗ | ✗ | ✓ | ✗ |
| ABC [27] | ✓ | ✓ | ✓ | ✗ | ✗ |
| SPARE3D (ours) | ✓ | ✓ | ✓ | ✓ | ✓ |
+
+Table 1. Summary of related public datasets. $2D$ , $3D$ and line drawing indicate the types of data in a dataset. Pure geometry means the dataset is only focusing on geometry, without other modalities (language/semantics/physics). Reasoning means whether a dataset is designed directly for reasoning.
+
+The shape generation is the most difficult, where we test for higher-level abilities to directly generate 2D (line drawings from other views) or 3D (point clouds or meshes) representations of an object, based on the given line drawings. If an agent can solve this type of tasks accurately, then the previous two categories can be solved directly. Note that although there are other types of spatial reasoning tasks in the psychometrics literature, we focus on these three because they are some of the most fundamental ones.
+
+In summary, our contributions are the following:
+
+- To the best of our knowledge, SPARE3D is the first dataset with a series of challenging tasks to evaluate purely the spatial reasoning capability of an intelligent system, which could stimulate new data-driven research in this direction.
+- We design a scalable method to automatically generate a large number of non-trivial testing questions and ground truth answers for training and evaluation.
+- We design baseline deep learning methods for each task and provide a benchmark of their performance on SPARE3D, in comparison with human beings.
+- We find that state-of-the-art convolutional networks perform almost the same as random guesses on SPARE3D, which calls for more investigations.
+- We release the dataset and source code for data generation, baseline methods, and benchmarking.
+
+# 2. Related Works
+
+Spatial reasoning has been studied for decades in cognitive science and psychology. With the advancements of artificial intelligence (AI), researchers begin to design AI systems with visual/spatial understanding and reasoning abilities. As mentioned, classical human-centered spatial reasoning tests are not designed for AI and not readily transferable for developing spatial reasoning AI. Thus we only focus on reviewing datasets and methods related to spatial reasoning in the broad context of AI, where the main differences with SPARE3D are summarized in Table 1.
+
+Visual Reasoning Dataset. Recently there has been substantial growth in the number of visual reasoning datasets. They facilitate the development and evaluation
+
+of AI's visual and verbal reasoning ability by asking common sense questions about an image in the form of natural language [24, 3, 48, 25, 7, 22, 52, 28, 38] (except for [2] that focuses on physics). SPARE3D has two major differences. First, it only involves visual/spatial information of an object; therefore, natural language processing is not required. The tasks in SPARE3D is already very challenging, so decoupling them from other input modalities allows researchers to focus on spatial reasoning. Second, SPARE3D focuses on reasoning about two fundamental geometric properties: the shape of a 3D object, and the pose it was observed from, rather than the relative position, size, or other semantic information comparisons between objects.
+
+3D Object/Scene Dataset. Recent years have also seen the booming large-scale 3D datasets designed for representation learning tasks such as classification and segmentation as a way to 3D scene understanding. For example, ShapeNet [6] as a 3D object dataset with rich semantic and part annotations, and ScanNet [10] as an RGB-D video dataset for 3D reconstruction of indoor scenes. Some of those datasets are then utilized in the visual navigation studies [53, 47]. Although visual navigation can be seen as involving spatial reasoning, it focuses more on a scene level goal-achieving than the object level shape and pose reasoning in SPARE3D. In SPARE3D, we take advantage of 3D solid models from the ABC dataset [27], which is proposed for digital geometry processing tasks. We then generate line drawings from these CAD models as our 2D drawing sources. Note that none of these datasets are specifically designed for spatial reasoning, as in our context.
+
+Line Drawing Dataset. Interpreting line drawings has been a long-term research topic, as discussed. With the development of deep learning, the recent efforts in this direction are to understand line drawings by analyzing a large number of them. Cole et al. [8, 9] studied on how the drawings created by artists correlate with the mathematical properties of the shapes, and how people interpret hand-drawn or computer-generated drawings. OpenSketch [17] is designed to provide a wealth of information for many computer-aided design tasks. These works, however, mainly focus on 2D line drawing interpretation and lack 3D information paired with 2D drawings. Unlike them, SPARE3D contains paired 2D-3D data, thus can facilitate an AI system to reason about 3D object information from 2D drawings, or vice versa.
+
+Other Related Methods. We also briefly discuss some machine learning methods that we believe might help tackle spatial reasoning tasks in SPARE3D in the future. Research about single view depth estimation, e.g., [15, 46], may be used to reason about the 3D object from a 2D isometric drawing (if trained on a large number of such drawings) by predicting 3D structures to rule out some less likely candidates in the questions. Similarly, spatial reasoning ability for an intelligent agent could also be connected with neural
+
+scene representation and rendering [13, 19]. For example, Eslami et al. [13] introduced the Generative Query Network (GQN) that learns a scene representation as a neural network from a collection of 2D views and their poses. Indeed, when trying to solve the SPARE3D tasks, people seem to first "render" the shape of a 3D object in our minds and then match that with the correct answer. If such analysis-by-synthesis approaches are how we acquired the spatial reasoning ability, then those methods could lead to better performance on SPARE3D.
+
+# 3. Spatial Reasoning Tasks
+
+SPARE3D contains five tasks in three categories, including view consistency reasoning, camera pose reasoning, and shape generation reasoning. The first two categories contain three discriminative tasks, where all questions are similar to single-answer questions in standardized tests with only one correct and three similar but incorrect answers. The last category contains two generative tasks, where no candidate answers are given, but instead, the answer has to be generated. Next, we discuss first how we design these tasks, and then how to generate non-trivial question instances.
+
+# 3.1. Task Design
+
+In a SPARE3D task, an intelligent agent is given several views of orthographic line drawings of an object as the basic input for its reasoning. Without loss of generality and following conventions in engineering and psychometrics, in SPARE3D, we only focus on 11 fixed viewing poses surrounding an object: front (F), top (T), right (R), and eight isometric (I) viewing poses, as illustrated in Figure 2. Note that drawings from F, T, and R views are usually termed as three-view drawings. And an isometric view means the pairwise angles between all three projected principal axes are equal. Note that there are more than one possible isometric drawings from the same view point [51], and without loss of generality, we choose the eight common ways as in Figure 2. Although geometrically equal, the F/T/R views and I views have a significant statistical difference in appearance. Because our 3D objects are mostly hand-designed by humans, many lines are axis-aligned and overlap with each other more frequently when projected to F/T/R views than I views. Therefore, I views can usually keep more information about the 3D object.
+
+Nonetheless, it is well-known that in general, a 3D shape cannot be uniquely determined using only two corresponding views of line drawings unless three different views of line drawings are given with mild assumptions [21]. Moreover, finding the unique solution requires methods to establish correspondences of lines and junctions across different views, which itself is non-trivial. Thus, even at least three views of line drawings are given as input in all SPARE3D tasks, it is still not straightforward to solve them.
+
+
+Figure 2. Illustration of the eight isometric views in SPARE3D. Imagine a 3D object is placed in the center of a cube (grey). Each vertex of the cube represents the viewpoint of an isometric drawing, correspondingly labeled from 1 to 8. The front/top/right (F/T/R) view's viewpoint is located on the centers of rectangles 1-5-6-2/1-2-3-4/2-6-7-3 respectively. Note that hidden lines are drawn in red. Best viewed in color.
+
+View Consistency Reasoning. A basic spatial reasoning ability should be grouping different views of the same 3D object together. In other words, an intelligent agent with spatial reasoning ability should be able to tell whether different line drawings could be depicting the same object from different viewing poses. This is the origin of the view consistency reasoning task. It is partly linked to some mental rotation tests in psychometrics, where one is asked to determine whether two views after rotation can be identical. We factor out the rotation portion to the second task category, leave only the consistency checking part, resulting in the first task below.
+
+3-View to Isometric. Given front, right, and top view line drawings of a 3D object, an intelligent agent is asked to select the correct isometric view drawing of the same object captured from pose 2 defined in Figure 2. We use pose 2 since it is the most common pose in conventional isometric drawings (see an example in Figure 3).
+
+Camera Pose Reasoning. Mental rotation ability is an important spatial reasoning ability that an intelligent agent should have. By thoroughly understanding the shape of a 3D object from several 2D drawings, the agent should be able to establish correspondences between a 2D drawing of the object and its viewing pose. This leads to the following two tasks (see examples in Figure 4 and 5).
+
+Isometric to Pose. Given the front, right, top view and a specific isometric view line drawings, an intelligent agent is asked to determine the camera pose of that isometric draw-
+
+
+Figure 3. An example 3-View to Isometric task. The candidate isometric views in the second row are all from pose 2. The correct answer is highlighted in green, and hidden lines are drawn in red in this and the following two figures. Best viewed in color.
+
+
+Figure 4. An example Isometric to Pose task.
+
+
+
+
+Figure 5. An example Pose to Isometric task.
+
+ing. We consider only four poses, $1/2/5/6$ , for isometric drawings in this task.
+
+Pose to Isometric. As the "inverse" process of the previous task, this task asks an intelligent agent to select the correct isometric drawing from a given viewing pose in addition to the given three-view drawings. To further increase the difficulty, we consider all the eight isometric poses.
+
+Shape Generation Reasoning. Generating the 2D or 3D shape of an object from several 2D drawings is a fundamental aspect of spatial reasoning as suggested by its definition. We believe it is such a top level capability that if possessed can solve most of the spatial reasoning tasks: by extracting spatial information contained in 2D drawings and reconstruct 3D shapes, it could enable the agent to answer
+
+view consistency, or camera pose reasoning questions by searching for possible solutions and eliminate less possible ones. Therefore we design this category of tasks. Different from the previous discriminative tasks, where the solution space is discrete and finite, the following two tasks in this category do not provide any candidate solutions, thus being the most challenging among all.
+
+Isometric View Generation. An intelligent agent is provided with front, right, and top view drawings and asked to generate the corresponding isometric view drawing from pose 2 (without loss of generality).
+
+Point Cloud Generation. Given the same input as in the previous task, the agent is asked to generate a complete 3D model represented as a point cloud.
+
+# 3.2. Task Generation
+
+3D Object Repositories. To automatically generate different instances of the above designed tasks, we create two 3D object repositories: SPARE3D-ABC, where 10,369 3D CAD objects are sampled from the ABC dataset [27], and SPARE3D-CSG, where 11,149 3D constructive solid geometry (CSG) objects of simple 3D primitives are randomly generated. Given a 3D model repository, we use PythonOCC [36], a Python wrapper for the CAD-Kernel Open CASCADE, to generate front/top/right/isometric view drawings from the 11 fixed poses. This directly provides us datasets for the shape generation reasoning tasks. We generate all tasks independently on each repository. The baseline results of all tasks run on both the SPARE3D-ABC and SPARE3D-CSG models are shown and discussed in the benchmark result section.
+
+To use 3D objects from the ABC dataset, we remove all duplicates by choose objects with unique hash values of their front view image files. We also skip some objects whose STEP-format file size exceed a certain limit to reduce the computing load. Note that there are many objects in the ABC dataset whose corresponding front, top, or right view drawings contains only a small point. We exclude all these objects to ensure 2D drawings in our dataset cover a reasonably large image area so as to be legible for an intelligent agent even after downsampling.
+
+Avoiding Data Bias. Given a large number of line drawings and corresponding 3D objects, cares must be taken when generating instances of the above spatial reasoning tasks. An important consideration is to avoid data bias, which could be undesirably exploited by deep networks to "solve" a task from irrelevant statistical patterns rather than really possessing the corresponding spatial reasoning ability, leading to trivial solutions. Therefore, we make sure that all images in the dataset have the same size, resolution, and scale. We also ensure that our correct and incorrect answers are uniformly distributed in the solution space, respectively. Besides, we ensure each drawing only appears
+
+once across all tasks, either in questions or in answers, to avoid memorization possibilities.
+
+The biggest challenge of avoiding data bias is to automatically generate non-trivial incorrect candidate answers for the view consistency reasoning task. If incorrect answers are just randomly picked from a different object's line drawings, according to our experiments, a deep network can easily exploit some local appearance similarities between views to achieve high testing performance in this task. Therefore, we further process 3D objects for this task. We first cut a 3D object by some basic primitive shapes like sphere, cube, cone and torus for four times to get four cut objects. Then we randomly choose one of the four objects to generate F, T, R, and I drawings as question and correct answer drawings. And the three I drawings from the remaining three cut objects are used as the wrong candidate answers. We record the index of the correct isometric drawing as the ground truth label for supervised learning. We prepare 5,000 question instances in total for the 3-View to Isometric task. We perform an $8:1:1$ train/validation/test dataset split. We use almost the same settings to generate camera pose reasoning tasks except that no 3D object cutting is needed.
+
+# 4. Baseline Methods
+
+We try to establish a reasonable benchmark for SPARE3D tasks using the most suitable baseline methods that we could find in the literature. 3-View to Isometric and Pose to Isometric are formulated as either binary classification or metric learning, Isometric to Pose as multi-class classification, Isometric View Generation as conditional image generation, Point Cloud Generation as multi-view image to point cloud translation. For each task, images are encoded by a convolutional neural network (CNN) as fixed dimensional feature vectors, and a camera pose is represented by a one-hot encoding because of the small number of fixed poses in each task. Note that our dataset offers both vector (SVG) and raster (PNG) representations of line drawings. Raster files can be readily consumed by CNN, while vector files offer more possibilities such as point cloud or graph neural networks. Currently, we focus only on raster files because of the relative maturity of CNN. We will benchmark more networks suitable for vector data in the future.
+
+For the backbone network architectures, we select ResNet-50 [18] and VGGNet-16 [39] to model the image feature extraction function, due to their proved performance in various visual learning tasks. We also select BagNet [5], which shows surprisingly high performance on ImageNet [12] even with a limited receptive field. Detailed baseline formulation and network architectures are explained in the supplementary material.
+
+Human Performance. We design a crowd-sourcing website to collect human performance for 3-View to Iso
+
+metric, Pose to Isometric, and Pose to Isometric reasoning tasks. Two types of human performance are recorded: untrained vs. trained. In the untrained type, we distributed the website on certain NYU engineering classes and social media platforms and had no control of the participants. We collected testing results from more than 100 untrained people, with each of them answering four randomly selected questions in each task. We report their average performance as the first human baseline. The second type comes from five randomly selected engineering master students. Each of them is trained by us for about 30 minutes using questions from the training set, and then answers 100 questions for each task with limited time. We report their max performance as the second human baseline.
+
+# 5. Benchmark Results
+
+All our baselines were implemented using PyTorch [35], and run on NVIDIA GeForce GTX 1080 Ti GPU. The results for the first three tasks are summarized in Figure 6.
+
+3-View to Isometric. In Figure 6 top left, except for the VGG-16 binary classification, all other results on SPARE3D-ABC reveal that these networks failed to obtain enough spatial reasoning ability from the supervision to solve the problems, with their performance on testing dataset close to random selection. An interesting observation is that many baseline methods achieved high training
+
+accuracy, indicating severe over-fittings. An unexpected result is that VGG-16 binary classification achieves higher accuracy than ResNet-50 on the testing dataset (although still low), while ResNet has been repeatedly shown to surpass VGG networks in many visual learning tasks. Compare the two images in the first column of Figure 6, the baseline performance on SPARE3D-CSG data is better than SPARE3D-ABC. We believe this is because objects in the SPARE3D-CSG repository are geometrically simpler in terms of the basic primitives of objects.
+
+Isometric to Pose. The multi-class classification results on SPARE3D-ABC are shown in Figure 6 top middle. For ResNet-50, the testing accuracy is about $36.2\%$ , which is only slightly higher than the random selection. For BagNet, the testing accuracy is $31.5\%$ , which is lower than the other two baseline methods. VGG-16 again surprisingly and significantly outperforms ResNet and BagNet, with $65.8\%$ testing accuracy even beating the average human performance. As for SPARE3D-CSG, we obtain almost similar results, which are shown in Figure 6 bottom middle.
+
+This is surprising. First, VGG-16 outperforms ResNet again. We tried to match the configurations of the first/last pooling and the fully connected layers between VGG-16 and ResNet, without observing significant performance changes, which suggests the existence of some unknown undesirable features in ResNet for SPARE3D tasks. Sec
+
+
+
+
+Figure 6. SPARE3D benchmark results of baseline methods and human performance on the first three tasks on SPARE3D-ABC (top) and SPARE3D-CSG (bottom). The average untrained human performance results for 3-View to Isometric, Isometric to Pose, and Pose to Isometric are $80.5\%$ , $60.2\%$ , and $58.6\%$ respectively. The max trained human performance results for these three tasks are $94.0\%$ , $91.0\%$ , and $65.0\%$ respectively.
+
+| Front | Top | Right | Predicted | Ground Truth | Front | Top | Right | Predicted | Ground Truth |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
+
+Figure 7. Isometric View Generation testing examples. The fourth column is the generated I drawing from the first three columns as input, and the last column is the ground truth. The baseline methods show reasonable results, yet not precise enough for solving the previous discriminative reasoning tasks. A surprisingly good result is the last one, possibly due to its near-planar structure.
+
+ond, VGG-16 is on par with the average human performance, while before experiments, we hypothesized that none of the baselines could achieve human-level performance. This result gives us more confidence in learning-based methods for addressing these spatial reasoning tasks.
+
+Pose to Isometric. In Figure 6 top row right, all baseline methods perform poorly, with the highest testing accuracy $30.1\%$ on ResNet-50 for metric learning and average accuracy around $27.5\%$ for other baseline methods. Similar results are obtained on SPARE3D-CSG.
+
+Moreover, we notice that the accuracy of BagNet is almost always lower than that of ResNet-50 and VGG-16 in all tasks. It could be due to the smaller receptive field in BagNet than the other two, which constrains BagNet to exploit only local rather than global information. This indicates the SPARE3D tasks are more challenging and require higher-level information processing than ImageNet tasks, which can be solved surprisingly well by BagNet.
+
+Human performance. In Figure 6, the untrained or trained human performance is better than most baseline methods for the same task. It reveals that most state-of-the-art networks are far from achieving the same spatial reasoning ability as humans have on SPARE3D.
+
+Isometric View Generation. In Figure 7, the generated results are still very coarse, although reasonable and better than our expectation given the poor performance of CNN in previous tasks. Using the generated isometric drawing to select the most similar answers (in terms of the pixel-level L2 distance) in the 3-View to Isometric task leads to a $19.8\%$ testing accuracy. This reveals that using Pix2Pix [23] in a naive way can have reasonable generation performance, but cannot yet generate detailed and correct isometric drawings
+
+for solving the reasoning task. Therefore, new architectures for this task are still needed in the future.
+
+Point Cloud Generation. In Figure 8, the point cloud generation results are also reasonable yet unsatisfactory: the overall shape is generated correctly, while detailed features are often omitted. One possible reason is that the point cloud decoding network is not powerful enough, or the encoding CNN lacks the ability to extract the spatial information from three-view drawings. Therefore the current network baseline cannot be used to reason about complicated structures by generating them. Also, just concatenating F, R, T drawings as the input of the network is a simple yet naive way, and more effective methods are needed to synthesize these 3D objects more reasonably.
+
+Why baseline performance is low? In Figure 6, except for the binary classification in 3-View to Isometric task and multi-class classification inIsometric to Pose task of VGG16 achieve $47.2\%$ and $65.8\%$ testing accuracy, all other results are close to random selection. Three following challenges in SPARE3D may cause the low performance.
+
+Non-categorical dataset. SPARE3D is different from many existing datasets that contain objects from a limited number of semantic classes. Without strong shape similarities among objects in SPARE3D, it becomes significantly more difficult for networks to "trivially" exploit local visual patterns for "memorization", and forces future solutions to tackle the reasoning challenge instead of resorting to statistical correlation. We believe this unique feature is ignored by the community but necessary for moving forward towards human-level performance: people can solve our tasks without category information.
+
+Line drawing images. Unlike many other datasets based
+
+| Front | Top | Right | Predicted | Ground Truth | Front | Top | Right | Predicted | Ground Truth |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
+
+on textured images or rough sketches [41, 11], SPARE3D uses line drawings that are sparse and geometrically concise, making them closer to symbolic representations for reasoning that is difficult for existing CNN.
+
+Reasoning is not retrieval. In some baselines, we use metric learning, which is common for image retrieval [14] that searches for an image in a fixed large database. But it does not fit for SPARE3D, where each question gives only four candidate answers that also vary across questions.
+
+Would self-supervised 2D/3D information help? In the three discriminative tasks, we only use 2D information to train our baselines. One might be wondering whether using more 3D information would significantly improve the performance, as shown in [34, 41, 40]. Although results in the two generation tasks, which is not worse than voxel reconstruction in [11], have indicated that naively generated coarse shape does not help, it is still valid to ask whether we can use 2D/3D shape information implicitly via self-supervision. This leads to the following two experiments.
+
+Pretrained Pix2Pix. As mentioned in Isometric View Generation, we use the trained Pix2Pix model to generate the I drawing from the given F/T/R drawings in 3-View to Isometric questions. Instead of naively using this generated I drawing with L2 distance, which leads to a $19.8\%$ testing accuracy, now we train an additional CNN to select answers in a learned feature space (instead of pixel space). This CNN is similar to the binary classification network for 3-View to Isometric but takes as input the concatenation of the answer and the generated images. The new accuracy raises to $37.6\%$ yet is still very low.
+
+Pretrained FoldingNet. In Point Cloud Generation, we trained a CNN encoder via 2D-3D self-supervision. Now
+
+Figure 8. Point Cloud Generation testing examples. The left columns displays AtlasNet [16] results and the right shows FoldingNet [49] results. The AtlasNet performs slightly better than FoldingNet in terms of details, but none of them are good enough for analysis-by-synthesis reasoning in previous discriminative tasks.
+
+| Task | 3-View to Isometric | Pose to Isometric |
| Without FoldingNet | 85.5%/28.8% | 66.3%/30.1% |
| With FoldingNet | 81.0%/30.4% | 87.5%/27.2% |
+
+Table 2. Effect of self-supervised 3D information in training. The first row is the training/testing accuracy by random CNN initialization. The last row is using CNN initialized from a pretrained 2D-to-3D FoldingNet.
+
+we use this encoder as a warm start to initialize the ResNet-50 models of metric learning for 3-View to Isometric and Pose to Isometric tasks. As shown in Table 2, accuracy has no significant increase and is still close to random selection. So our naive way of using 3D information does not work well, and further design is needed.
+
+# 6. Conclusion
+
+SPARE3D is designed for the development and evaluation of AI's spatial reasoning abilities. Our baseline results show that some state-of-the-art deep learning methods cannot achieve good performance on SPARE3D. We believe this reveals important research gaps and motivates new problem formulations, architectures, or learning paradigms to improve an intelligent agent's spatial reasoning ability.
+
+# Acknowledgment
+
+The research is supported by NSF CPS program under CMMI-1932187. Siyuan Xiang gratefully thanks the IDC Foundation for its scholarship. The authors gratefully thank our human test participants and the helpful comments from Zhaorong Wang, Zhiding Yu, Srikumar Ramalingam, and the anonymous reviewers.
+
+# References
+
+[1] Quick! Draw. https://quickdraw.withgoogle.com/. 2
+[2] Anton Bakhtin, Laurens van der Maaten, Justin Johnson, Laura Gustafson, and Ross Girshick. Phyre: A new benchmark for physical reasoning. arXiv preprint arXiv:1908.05656, 2019. 2, 3
+[3] Yonatan Bisk, Kevin J Shih, Yejin Choi, and Daniel Marcu. Learning interpretable spatial operations in a rich 3d blocks world. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 2, 3
+[4] George M Bodner and Roland B Guay. The Purdue visualization of rotations test. The Chemical Educator, 2(4):1-17, 1997. 1
+[5] Wieland Brendel and Matthias Bethge. Approximating cnns with bag-of-local-features models works surprisingly well onImagenet. arXiv preprint arXiv:1904.00760, 2019. 5
+[6] 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. 2, 3
+[7] Howard Chen, Alane Suhr, Dipendra Misra, Noah Snavely, and Yoav Artzi. Touchdown: Natural language navigation and spatial reasoning in visual street environments. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12538-12547. IEEE, 2019. 2, 3
+[8] Forrester Cole, Aleksey Golovinskiy, Alex Limpaecher, Heather Stoddart Barros, Adam Finkelstein, Thomas Funkhouser, and Szymon Rusinkiewicz. Where do people draw lines? ACM Transactions on Graphics (ToG), 27(3):88, 2008. 2, 3
+[9] Forrester Cole, Kevin Sanik, Doug Decarlo, Adam Finkelstein, Thomas Allen Funkhouser, Szymon M Rusinkiewicz, and Manish Singh. How well do line drawings depict shape? ACM Transactions on Graphics, 28(3):28, 2009. 2, 3
+[10] Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5828-5839. IEEE, 2017. 2, 3
+[11] Johanna Delanoy, Mathieu Aubry, Phillip Isola, Alexei A Efros, and Adrien Bousseau. 3d sketching using multi-view deep volumetric prediction. Proceedings of the ACM on Computer Graphics and Interactive Techniques, 1(1):1-22, 2018. 8
+[12] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255. IEEE, 2009. 5
+[13] SM Ali Eslami, Danilo Jimenez Rezende, Frederic Besse, Fabio Viola, Ari S Morcos, Marta Garnelo, Avraham Ruderman, Andrei A Rusu, Ivo Danihelka, Karol Gregor, et al. Neural scene representation and rendering. Science, 360(6394):1204-1210, 2018. 3
+
+[14] Thomas Funkhouser, Patrick Min, Michael Kazhdan, Joyce Chen, Alex Halderman, David Dobkin, and David Jacobs. A search engine for 3d models. ACM Transactions on Graphics (TOG), 22(1):83-105, 2003. 8
+[15] 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. 3
+[16] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 216-224. IEEE, 2018. 8
+[17] Yulia Gryaditskaya, Mark Sypesteyn, Jan Willem Hoftijzer, Sylvia Pont, Fredo Durand, and Adrien Bousseau. Opens-ketch: a richly-annotated dataset of product design sketches. ACM Transactions on Graphics (TOG), 38(6):232, 2019. 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. IEEE, 2016. 5
+[19] Yoshitaka Ushiku Hiroharu Kato and Tatsuya Harada. Neural 3d mesh renderer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. IEEE, 2018. 3
+[20] Sherry Hsi, Marcia C Linn, and John E Bell. The role of spatial reasoning in engineering and the design of spatial instruction. Journal of engineering education, 86(2):151-158, 1997. 1
+[21] Thomas S. Huang and Chia-Hoang Lee. Motion and structure from orthographic projections. IEEE Transactions on Pattern Analysis and Machine Intelligence, 11(5):536-540, 1989. 3
+[22] Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6700-6709. IEEE, 2019. 2, 3
+[23] 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. IEEE, 2017. 7
+[24] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2901-2910. IEEE, 2017. 2, 3
+[25] Kushal Kafle, Brian Price, Scott Cohen, and Christopher Kanan. Dvqa: Understanding data visualizations via question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5648-5656. IEEE, 2018. 3
+[26] Harrison J Kell, David Lubinski, Camilla P Benbow, and James H Steiger. Creativity and technical innovation: Spatial ability's unique role. Psychological science, 24(9):1831-1836, 2013. 1
+
+[27] Sebastian Koch, Albert Matveev, Zhongshi Jiang, Francis Williams, Alexey Artemov, Evgeny Burnaev, Marc Alexa, Denis Zorin, and Daniele Panozzo. Abc: A big cad model dataset for geometric deep learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9601-9611. IEEE, 2019. 2, 3, 5
+[28] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision, 123(1):32-73, 2017. 2, 3
+[29] David F Lohman. Spatial ability and G. Human abilities: Their nature and measurement, 97:116, 1996. 1
+[30] Tom Lowrie. The influence of visual and spatial reasoning in interpreting simulated 3d worlds. International Journal of Computers for Mathematical Learning, 7(3):301, 2002. 1
+[31] David Lubinski. Spatial ability and stem: A sleeping giant for talent identification and development. *Personality and Individual Differences*, 49(4):344–351, 2010. 1
+[32] AK Macworth. Interpreting pictures of polyhedral scenes. Artificial intelligence, 4(2):121-137, 1973. 2
+[33] Jitendra Malik. Interpreting line drawings of curved objects. International Journal of Computer Vision, 1(1):73-103, 1987. 2
+[34] Kyle Olszewski, Sergey Tulyakov, Oliver Woodford, Hao Li, and Linjie Luo. Transformable bottleneck networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 7648-7657, 2019. 8
+[35] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, pages 8024-8035, 2019. 6
+[36] PythonOCC. 3D CAD/CAE/PLM development framework for the Python programming language, 2018. http://www.pythonocc.org. 5
+[37] Srikumar Ramalingam and Matthew Brand. Lifting 3d Manhattan lines from a single image. In Proceedings of the IEEE International Conference on Computer Vision, pages 497-504. IEEE, 2013. 2
+[38] Adam Santoro, Felix Hill, David Barrett, Ari Morcos, and Timothy Lillicrap. Measuring abstract reasoning in neural networks. In International Conference on Machine Learning, pages 4477-4486, 2018. 2, 3
+[39] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 5
+[40] Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhöfer. Deepvoxels: Learning persistent 3d feature embeddings. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2437-2446. IEEE, 2019. 8
+
+[41] Hao Su, Charles R Qi, Yangyan Li, and Leonidas J Guibas. Render for cnn: Viewpoint estimation in images using cnns trained with rendered 3d model views. In Proceedings of the IEEE International Conference on Computer Vision, pages 2686-2694, 2015. 8
+[42] Kokichi Sugihara. Machine interpretation of line drawings, volume 1. MIT press Cambridge, 1986. 2
+[43] Steven G Vandenberg and Allan R Kuse. Mental rotations, a group test of three-dimensional spatial visualization. Perceptual and motor skills, 47(2):599-604, 1978. 1
+[44] PAC Varley, Ralph R Martin, and Hiromasa Suzuki. Frontal geometry from sketches of engineering objects: is line labelling necessary? Computer-Aided Design, 37(12):1285-1307, 2005. 2
+[45] Jonathan Wai, David Lubinski, and Camilla P Benbow. Spatial ability for stem domains: Aligning over 50 years of cumulative psychological knowledge solidifies its importance. Journal of Educational Psychology, 101(4):817, 2009. 1
+[46] Yicheng Wu, Vivek Boominathan, Huaijin Chen, Aswin Sankaranarayanan, and Ashok Veeraraghavan. Phasecam3d—learning phase masks for passive single view depth estimation. In 2019 IEEE International Conference on Computational Photography (ICCP), pages 1-12. IEEE, 2019. 3
+[47] Fei Xia, Amir R. Zamir, Zhi-Yang He, Alexander Sax, Jitendra Malik, and Silvio Savarese. Gibson env: real-world perception for embodied agents. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9068-9079. IEEE, 2018. 3
+[48] Guangyu Robert Yang, Igor Ganichev, Xiao-Jing Wang, Jonathon Shlens, and David Sussillo. A dataset and architecture for visual reasoning with a working memory. In European Conference on Computer Vision, pages 729-745, 2018. 2, 3
+[49] Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 206–215. IEEE, 2018. 8
+[50] SY Yoon. Revised Purdue spatial visualization test: Visualization of rotations (revised psvt: R). Texas A&M University, College Station, TX, 2011. 1
+[51] Jianping Yue. Spatial visualization by isometric drawing. In Proceedings of the 2006 IJMEINTERTECH Conference, Union, New Jersey, 2006. 3
+[52] Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From recognition to cognition: Visual commonsense reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6720-6731. IEEE, June 2019. 3
+[53] 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. 3
\ No newline at end of file
diff --git a/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/images.zip b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8515bf538d91764a0c7f01be6512e7eaa4f6221b
--- /dev/null
+++ b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27cfebb573a321d90d61ce564623dee4c655431de743f6403529f48d8a4bc1ca
+size 472148
diff --git a/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/layout.json b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..017cb01aa08ac8e404fa0d1c5ec0b5f7e4302bf4
--- /dev/null
+++ b/spare3dadatasetforspatialreasoningonthreeviewlinedrawings/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c8b7165e6d367a6d4c0a682238e165aa43a3a07a132dfe9331168d2b0d056050
+size 296749
diff --git a/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_content_list.json b/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8c8c283ece54484c0df295a4d92c78bb6ddd4174
--- /dev/null
+++ b/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f8f5db2b13c0a53ef73167ec2ce271442751f14bfc2efd02b9c52ce0a1911bf0
+size 76407
diff --git a/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_model.json b/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..64e8468d5885a53f4e2f18ca5edc49766b2f828c
--- /dev/null
+++ b/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1cca45fc66ab32a207dba39a9fc0705796b47b62bbd3690c0b7b4242e670c47
+size 92424
diff --git a/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_origin.pdf b/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..11a849dd6c2000cda8903f12398a82ee5962649c
--- /dev/null
+++ b/spnasserialtoparallelbackbonesearchforobjectdetection/8e83440b-adb1-4137-8f1e-9497a23887e1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a31ceff822ad24c8daf486350a16a7663a33b4f4eff94bc8f649c6d3128ea7f1
+size 1054580
diff --git a/spnasserialtoparallelbackbonesearchforobjectdetection/full.md b/spnasserialtoparallelbackbonesearchforobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..38b4f4086085d735930477496d03c661a4678209
--- /dev/null
+++ b/spnasserialtoparallelbackbonesearchforobjectdetection/full.md
@@ -0,0 +1,268 @@
+# SP-NAS: Serial-to-Parallel Backbone Search for Object Detection
+
+Chenhan Jiang\*, Hang Xu\*†,
+
+Wei Zhang $^{1}$ , Xiaodan Liang $^{2}$ , Zhenguo Li $^{1}$
+
+$^{1}$ Huawei Noah's Ark Lab $^{2}$ Sun Yat-Sen University
+
+# Abstract
+
+Advanced object detectors usually adopt a backbone network designed and pretrained by ImageNet classification. Recently neural architecture search (NAS) has emerged to automatically design a task-specific backbone to bridge the gap between the tasks of classification and detection. In this paper, we propose a two-phase serial-to-parallel architecture search framework named SP-NAS towards a flexible task-oriented detection backbone. Specifically, the serial-searching round aims at finding a sequence of serial blocks with optimal scale and output channels in the feature hierarchy by a Swap-Expand-Reignite search algorithm; the parallel-searching phase then assembles several sub-architectures along with the previous searched backbone into a more powerful parallel-structured backbone. We efficiently search a detection backbone by exploring a network morphism strategy on multiple detection benchmarks. The resulting architectures achieve SOTA results, i.e. top performance (LAMR: 0.055) on the automotive detection leaderboard of EuroCityPersons benchmark, improving $2.3\%$ mAP with less FLOPS than NAS-FPN on COCO, and reaching $84.1\%$ AP50 on VOC better than Det-NAS and Auto-FPN in terms of both accuracy and speed.
+
+# 1. Introduction
+
+Object detection is one of the core computer vision tasks to localize and classify multiple objects in an image and has been widely used in real-world applications [29, 28, 7, 2]. Recent works, like FPN [19] and RetinaNet [20], directly use networks for ImageNet classification as backbone feature extractors, e.g., ResNet [15], which is neither task-specific nor data-specific. The backbone designs for object detection should be different from those for image classification, because the former need to localize and classify various objects at different scales in the feature hierarchy simultaneously while the latter only need to output
+
+| Model | Dataset | Task | Search space |
| Component | Size | Operator |
| ResNet [15] | ImageNet | Cls | Backbone | - | - |
| DetNet [18] | COCO | Det | Backbone | - | - |
| HRNet [42] | COCO | Det | Backbone | - | - |
| AmoebaNet [32] | ImageNet | Cls | Backbone | Fixed | Inter-block Connection |
| NAS-FPN [12] | COCO | Det | Neck | Fixed | Inter-block Connection |
| Auto-FPN [46] | COCO BDD VOC | Det | Neck Head | Fixed | Inter-block Connection |
| DetNAS [9] | COCO VOC | Det | Backbone | Fixed ≈ 1012 | Kernel size |
| SP-NAS | COCO BDD ECP VOC | Det | Backbone | Growing > 1020 | #blocks Channels Downsampling |
+
+Table 1. Comparison of our SP-NAS and other backbone designs. 1) We directly search for a backbone on the detection dataset. 2) Our backbone keeps growing during search with a flexible and much bigger search space. 3) We search for the whole structure of backbone instead of the inter-block structure only.
+
+the image-level labels by averaging the last feature map. Consequently, designing a capable backbone for object detection is more challenging and usually needs much human effort. Furthermore, some hand-crafted detection-specific backbone networks [38, 42, 19] are usually targeted at the COCO [21] dataset which cannot guarantee the adaptation to other detection tasks like in autonomous driving.
+
+Recently, Neural Architecture Search (NAS) algorithms demonstrate promising results on discovering top-accuracy architectures for image classification, which surpasses the performance of hand-crafted networks and saves human's efforts [49, 23, 45, 25, 31, 40, 30, 41]. However, NAS for object detection is usually more challenging due to the difficulty of fast evaluating the candidate models in the search space. Since the architecture of the backbone keeps changing during the search, one needs to pretrain the backbone on ImageNet [35] repeatedly, which is computationally infeasible. As a result, most NAS works do not directly search on the backbone for detection. For example, Zoph et al. [49] transfer the searched architecture from classification to detection backbone. NAS-FPN [12] and Auto-FPN [46] focus
+
+on improving the feature fusion module (neck) by NAS.
+
+To our knowledge, DetNAS [9] is the only work searching for the better backbone of detection (Table 1). It avoids repeated ImageNet training by creating a pre-trained weight-sharing super-net. By sampling different paths in the super-net, DetNAS can select the best child architecture without training. However, the weight-sharing diagram creates a vast gap between the performance of sampled child networks and the fully training result [36]. Thus the searching results may not reflect the true performance of the architectures (minor improvement compared to random search). Moreover, the pre-defined and fixed super-net greatly limits the backbone's search space (only changing of kernel size) while ignoring other key factors of backbones such as the number of blocks, downsampling rate and channel sizes. In contrast, our work aims to develop an efficient and flexible NAS scheme to find an optimal data-specific backbone for object detection.
+
+In this work, we propose a novel architecture search framework named SP-NAS towards a flexible and data-oriented detection backbone. By observing the state-of-the-art design of the backbone detection, two components are important: a) proper allocation of computation on different backbone stages and proper receptive fields and spatial resolution for each feature level (e.g. extra stage and higher spatial resolution in DetNet [9]); b) better fusion of high-level and low-level features (e.g. repeated fusion across multi-resolution sub-networks in [42]). Thus, we propose a serial-to-parallel searching strategy: 1) the serial-searching phase aims at finding a sequence of serial blocks with optimal resolution, receptive fields and output channels in each stage of the feature hierarchy; 2) the parallel-searching phase then assembles several searched serial architectures into a more powerful parallel-structured backbone with a better fusion of high-level and low-level features.
+
+Inspired by recent advances in network morphism [43, 10], we adopt a "swap-expand-reignite" search strategy in the serial-level searching phase which allows continuous growth of the backbone until reaching the optimal design. At each iteration, we apply a set of modifications including "swap" and "expand" to the current network and train the resulting networks in parallel on multiple computing nodes with short training time. Then we choose the best modification among the nodes with the biggest improvement of performance. Both operations follow the network morphism. The backbone can keep training and growing while avoiding the repeated pretraining on ImageNet. We also find that when the morphed architecture deviates far from the original ImageNet pretrained backbone, the algorithm may get stuck with no further improvement of the performance. Thus, we use a "reignite" strategy by re-training on ImageNet for the stuck architecture to reignite the searching process. We found this "swap-expand-reignite" search algo
+
+rithm works well and keeps increasing the detection performance efficiently and moves to an optimal serial backbone usually with only $1\sim 2$ rounds of ImageNet pretraining.
+
+For the parallel-level searching phase, we aim at finding an optimal parallel-level structure with the different number of subnets along with each backbone stage for a better fusion and extraction of high-level and low-level features. Since the search space is relatively small, we use random search with a resource-constraint sampling.
+
+Extensive experiments are conducted on the widely used detection benchmarks, including Pascal VOC [11], COCO [21], BDD [47] and ECP [3]. The proposed method outperforms current state-of-the-art detection methods, i.e., achieving state-of-the-art performance on the automotive detection EuroCityPersons leaderboard. We also observe consistent performance gains over the hand-crafted backbone structure with the same setting of block structures. In particular, our method outperforms NAS-FPN by $2.5\%$ mAP with less FLOPS and achieves higher performance with similar inference time than Cascade RCNN on COCO, and reaches $84.1\%$ AP50 on VOC better than DetNAS and Auto-FPN in accuracy and speed.
+
+# 2. Related Work
+
+Object Detection. Modern anchor-based detection approaches such as Faster RCNN [34] and FPN [19] usually consist of several modules: backbone, feature fusion neck, region proposal network, and RCNN head. Most of the works on object detection directly use the backbone network designed and pretrained for the ImageNet classification task, e.g., ResNet [15]. Since the performance of object detectors highly relies on features extracted by backbones, recent advances focus on developing a specific backbone for detection. For example, DetNet [18] tries to develop a backbone for detection by using a higher spatial resolution in the later stage and a dilated bottleneck. However, those manually designed backbones are not data-specific (e.g. backbone designed for COCO may be sub-optimal for other datasets) and require great human expert's labors.
+
+Neural Architecture Search. The goal of NAS is to automatically find an optimal network architecture and release humans from this tedious network architecture engineering. Most previous works [25, 5, 23, 39, 45] search basic CNN architectures for a classification model while a few of them focus on more complicated high-level vision tasks such as semantic segmentation and object detection [8, 22, 9, 12]. Baker and Zoph et al. [1, 49, 4, 48] apply reinforcement learning to train an RNN policy controller to generate a sequence of actions to specify a CNN architecture, which requires massive samples to converge. Real and Liu et al. [33, 24] try to "evolve" CNN architectures by mutating the current best architectures. Liu, Xie and Cai et al. [25, 45, 5] try to introduce architecture parameters
+
+
+Figure 1. An overview of our SP-NAS towards a flexible and data-oriented backbone. Our algorithm can be decoupled into two phases. a) For serial-level search, we adopt a "swap-expand-reignite" strategy which allows continuous growth of the backbone until reaching an optimal design. The output model of this phase is called SerialNet. b) Parallel-level search aims at finding an optimal parallel-level structure with the different number of subnets $p_l^k$ along with each stage in SerialNet for a better fusion and extraction of multi-scale features.
+
+
+
+for continuous relaxation of the discrete search space, thus allowing weight-sharing and differentiable optimization of the CNN architectures. However, those classification based search methods do not generalize well to object detection due to the requirement of computationally intensive ImageNet pretraining.
+
+For the detection task, Zoph et al. [49] transfer the searched architecture from classification to the detector backbone which cannot guarantee optimal adaptation to any detection dataset. NAS-FPN [12] and Auto-FPN [46] focus on improving the feature fusion neck by NAS to find a better feature fusion from different feature levels while ignoring the backbone. DetNAS [9] searches for better backbones for detection on a pre-trained weight-sharing super-net with an evolutionary search algorithm. On the contrary, our work aims to develop an efficient and flexible NAS scheme to find an optimal data-specific backbone for object detection.
+
+# 3. SP-NAS Pipeline
+
+We propose a serial-to-parallel searching pipeline: 1) serial-level searching aims at finding a sequence of serial blocks with an optimal depth, resolution, receptive fields and output channels in each stage of the feature hierarchy. 2) parallel-level searching then assembles several searched stage architectures (parallel subnets) to a more powerful parallel backbone with better refinement and fusion of different semantic level features. An overview of our SP-NAS is shown in Figure 1. Our SP-NAS algorithm can be used to improve any detectors. Moreover, we adopt a "swap-expand-reignite" search strategy to explore novel backbone architectures without repeatedly pretraining on ImageNet.
+
+# 3.1. Serial-level Search
+
+The commonly used backbones of the detection network include VGG [37], ResNet [15], and ResNeXt [44]. Those networks are mainly designed for ImageNet classification
+
+| Basic Block (BB) | Bottleneck Block (BNB) | ResNeXt Block (XB) |
| conv3x3(In=n,out=n) | conv1x1(In=4n,out=n) | conv1x1(In=4n,out=2n) |
| conv3x3(In=n,out=n) | conv3x3(In=n,out=n) | conv3x3(In=2n,out=2n,group=32) |
| conv1x1(In=n,out=4n) | conv1x1(In=2n,out=4n) |
| + residual connection | + residual connection | + residual connection |
+
+Table 2. Detailed structures of our chosen blocks.
+
+and thus it is sub-optimal to localize multiple objects at various scales in the feature hierarchy. Generally speaking, high-level feature layers strongly respond to entire objects thus are more discriminative while the low-level feature is more likely to be activated by local textures and patterns, and contains more spatial information. Thus, most handcrafted detection-specific backbone networks [38, 42, 18] follows a serial structure and try to leverage and preserve the spatial information by adding dilation and a higher spatial resolution in the later stage (DetNet [18]), or preserving and refining features of different resolutions (FishNet [38]). In this work, we propose a serial-level backbone search space that contains a sequence of serial blocks with a flexible setting of blocks, resolution and output channels in each stage of the feature hierarchy.
+
+Search Space. As shown in Figure 1, the serial-level backbone search space consists of a sequence of blocks. Each part of the backbone could be divided into several stages according to the resolution of the output features where stage refers to a number of blocks fed by the features with the same resolution. In this paper, we consider three kinds of blocks: basic block, bottleneck block in ResNet [15] and ResNeXt block [44] as shown in Table 2. The number of blocks in the backbone varies from 8 to 60. The number of stages can be chosen from 5 to 7 and each stage is gradually down-sampled with factor 2. We allow a different number of blocks in each stage thus the allocation of computation is flexible. Firstly, the input image is feed into a stem architecture following [16, 42], which consists of two $3 \times 3$ convolutions (stride=2) decreasing the resolution to $\frac{1}{4}$ ,
+
+Algorithm 1: Serial_to_parallel Search
+Input: Stop condition $n_{\text{stuckS}}$ , $n_{\text{stuckP}}$ , number of reignion $n_r$
+Baseline model $f_0$ & ImageNet pretrained weight $\theta_0$
+acc_best, $\theta_{best} \gets \text{train\_eval}(f_0, \theta_0)$ #initialize network
+Serial_level: While $i < n_r$ do
+ countf $\gets 0$
+While countf $\gets n_{\text{stuckS}}$ do #network morphism
+ f, $\theta_{init} \gets \text{swap}(f_{\text{best}}, \theta_{\text{best}})$
+ f, $\theta_{init} \gets \text{expand}(f, \theta_{init})$
+ acc, $\theta \gets \text{train\_eval}(f, \theta_{init})$
+ if acc > acc_best then #update best network
+ | acc_best, $f_{\text{best}}$ , $\theta_{\text{best}} \gets \text{acc}, f, \theta$
+ countf $\gets 0$
+end
+end
+ $\theta_{best} \gets \text{reignite}(f_{\text{best}})$
+end
+Parallel_level: countp $\gets 0$
+pbest $\gets \text{init}(f_{\text{best}})$
+accbest, $\omega_{\text{best}} \gets \text{train\_eval}(p_{\text{best}}, \theta_{\text{best}})$
+While countp $\leqslant n_{\text{stuckP}}$ do
+ p $\gets \text{random search}$
+acc, $\omega \gets \text{train\_eval}(p, \omega_{\text{best}})$
+if acc > acc_best then #update best network
+ | acc_best, $p_{\text{best}}, \omega_{\text{best}} \gets \text{acc}, p, \omega$
+ countp $\gets 0$
+end
+end
+Output: $p_{\text{best}}, \theta_{\text{best}}$
+
+and the number of base channels in main body is equal to the number of output channels of the stem. In the original ResNet, the channel size is doubled at each downsampling block. However, since the channel size will greatly affect the feature representation capability and computation cost, we also search for the position where the channel size is doubled in the whole sequence.
+
+A complete architecture is encoded like "BNB(11,1d1,111,1d11,11d1)". The first placeholder encodes the block setting (BB: basic block, BNB: bottleneck block, XB: ResNeXt block). ", separates each stage with different resolution. "1" means regular block with no change of channels while "d" indicates the number of base channels is doubled in this block. For example, ResNet50 can be encoded as "BNB(111,d111,d11111,d11)".
+
+Swap-Expand-Reignite Search Strategy. Since we change the architecture of the backbone during the search, we cannot use the ImagNet [35] pretrained model. Most of the detection models require the initialization from the ImageNet pretrained models during training. Although He et al. [13] have shown that ImageNet pretraining is not indispensable for detection, a much longer training $(11_{\times})$ is required as a compensation, which makes it computationally difficult to search on the backbone directly.
+
+Inspired by recent advances on network morphism [43, 10], we adopt a "swap-expand-reignite" search strategy in the serial-searching phrase to avoid the repeated training
+
+
+Figure 2. Illustrating the "swap" operation on ResNet18. The number of blocks in the second stage increases from 2 to 4 after the "swap". The previous model's weights are reused in the new architecture.
+
+while keeping the "effect of ImageNet pretraining". At each search step, we apply a set of modifications including "swap" and "expand" to the current network $\mathbf{f}$ .
+
+As shown in Figure 1, for the "expand" operation, we add a new block between two existing blocks by IdMorph [43] while the number of input/output channels remains the same. The weight of the convolution in the new block is initialized as an identity matrix. For the "swap" operation, we just interchange the stride of the neighboring block while keeping the weight unchanged, as shown in Figure 2. Both modifications on the current network will maintain the output unchanged as much as possible at initialization, which keeps the "effect of ImageNet pretraining". Starting from a commonly used network with ImageNet pretraining, the backbone network can grow bigger and explore a wide range of architectures in the search space by iteratively "expand" and "swap" on the current network.
+
+Detailed "swap-expand-reignite" search strategy can be found in Algorithm. Starting from a small base network (such as ImageNet pretrained ResNet or ResNeXt), we apply several sets of modifications including "swap" and "expand" to the current network at each iteration, and train the resulting networks on multiple nodes with a short training time (e.g. 3 epochs). Then we evaluate those architectures and choose the best-updated model by the most significant improvement of performance as the current model. In practice, we find that when the current architecture deviates from the original ImageNet pretrained backbone too much, the iterative search algorithm may get stuck at finding no modification that can further improve the performance. As a result, we use a "reignite" strategy by pre-training the ImageNet for the current stuck architecture again to re-ignite the searching process. We define the "stuck" status as repeated trying for $n_{\text{stuck}}$ times with no further improvement. Empirically, we found this "swap-expand-reignite" works well and keeps increasing the performance of the detector efficiently and moves to a local optimal serial backbone with only $1^{\sim}2$ rounds of ImageNet pretraining (i.e., in Algorithm 1, $n_r$ can be set to 1 or 2).
+
+This algorithm greatly reduces the times of ImageNet pretraining while it remains a flexible search space and can run in parallel on multiple computing nodes efficiently. The output architecture of serial-level search is called SerialNet.
+
+| % | Method | Backbone | Input Size | train epoch | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) | Inf Time (fps) | FLOPS (G) |
| COCO | DetNet [18] | DetNet-59 | 800 × 1333 | 24 | 37.9 | 60.1 | 41.2 | 22.7 | 41.2 | 48.3 | - | 292.9 |
| FishNet [38] | FishNet-150 | 800 × 1333 | 24 | 40.6 | - | - | 23.3 | 43.9 | 53.7 | - | 294.9 |
| HRNet [42] | HRNet-W40 | 800 × 1333 | 24 | 41.6 | 62.5 | 45.6 | 23.8 | 44.9 | 53.8 | 12.0 (V100) | 380.7 |
| Cascade RCNN [6] | ResNet101 | 800 × 1333 | 24 | 42.8 | 62.1 | 46.3 | 23.7 | 45.5 | 55.2 | 10.2 (V100) | 323.3 |
| TridentNet [17] | ResNet101 | 800 × 1333 | 24 | 42.7 | 63.6 | 46.5 | 23.9 | 46.4 | 55.6 | 1.7 (V100) | - |
| CBNet w Cascade [27] | ResNet101-TB | 800 × 1333 | 24 | 44.9 | 63.9 | 48.9 | - | - | - | 5.5 (V100) | 860.2 |
| DetNAS [9] | DetNAS | 800 × 1333 | 24 | 40.0 | 61.5 | 43.6 | 23.3 | 42.5 | 53.8 | - | 289.4 |
| AmoebaNet w FPN [31] | AmoebaNet | 1280 × 1280 | 50 | 43.4 | - | - | - | - | - | 4.7 (P100) | 655.5 |
| NAS-FPN (7@384) [12] | AmoebaNet | 1280 × 1280 | 150 | 48.0 | - | - | - | - | - | 3.6 (P100) | 1317 |
| SPNet \( _{COCO} \)(BNB) | SPNet-BNB | 800 × 1333 | 24 | 45.6 | 64.3 | 49.6 | 28.4 | 48.4 | 60.1 | 10.2 (V100) | 391.1 |
| SPNet \( _{COCO} \)(XB) | SPNet-XB | 800 × 1333 | 24 | 47.4 | 65.7 | 51.9 | 29.6 | 51.0 | 60.4 | 5.6 (V100) | 654.5 |
| SPNet \( _{COCO} \)(XB) | SPNet-XB | 1280 × 1280 | 50 | 49.1 | 67.1 | 53.5 | 31.0 | 52.6 | 63.7 | 2.1 (V100) | 949.0 |
+
+Table 3. Comparison of mAP and inference time of the state-of-the-art hand-crafted networks and NAS for detectors on COCO. Our searched SPNet ${}_{\text{COCO }}$ backbone stacked on Cascade RCNN outperforms hand-crafted and automatically designed backbones with similar or faster inference speed. The bold result is based on longer training and additional mask supervision.
+
+ | Method | LAMR | mAP |
| Reasonable | Small | Occluded | All |
| ECP | ResNet50 w FPN [19] | 0.088 | 0.193 | 0.337 | 0.228 | 88.4 |
| ResNet101 w FPN [19] | 0.089 | 0.194 | 0.340 | 0.226 | 87.8 |
| HRNet-W40 [42] | 0.067 | 0.132 | 0.272 | 0.181 | 88.1 |
| HRNet-W18 [42] | 0.067 | 0.132 | 0.284 | 0.187 | 88.7 |
| SPNetECP | 0.054 | 0.110 | 0.252 | 0.165 | 89.6 |
+
+# 3.2. Parallel-level Search
+
+Recently, more works focus on a parallel structure stacked on the original backbone and aiming at better utilizing and fusing the information from all feature levels with different resolutions in the backbone feature hierarchy. This is due to the limit of the information barrier between different stages in serial-kind structure. For example, PANet [26] enhances the entire feature hierarchy with accurate localization signals in lower layers by a parallel bottom-up path augmentation. HRNet [42] combines multiple parallel high-to-low resolution subnets with repeated information exchange across multi-resolution subnetworks. To pursue a high-performance backbone structure, we consider a parallel-level search for the subnet structures based on the searched backbone SerialNet in the serial-level search as shown in Figure 1.
+
+Search Space. The parallel-level backbone is stacked on the result (i.e., SerialNet) in serial-level search. The search space includes a series of subnets along with each stage of the searched backbone architecture. Initialization of each subnet is the copy of the corresponding stage of the trained SerialNet. The parallel-level structure enables better feature extraction and fusion.
+
+As shown in Figure 1, the SerialNet backbone comprises
+
+Table 4. Comparison of LAMR and mAP of the state-of-the-art single-model on ECP. LAMR is the official metric (smaller is better). Our searched model currently reaches TOP 1 performance on the ECP leaderboard (see the dataset website).
+
+| % | Method | Input Size | AP | \( AP_{50} \) | \( AP_{75} \) | Inf Time (fps) |
| BDD | ResNet50 w FPN [19] | 1920 × 1024 | 36.3 | 61.2 | 36.8 | 12.4 |
| ResNet101 w FPN [19] | 1920 × 1024 | 37.1 | 61.3 | 37.9 | 9.2 |
| Auto-FPN [46] | 1920 × 1024 | 33.9 | - | - | 3.1 |
| SPNet \( _{BDD} \) | 1920 × 1024 | 38.7 | 63.2 | 39.2 | 3.7 |
| VOC | ResNet18 w FPN [19] | 600 × 1333 | - | 77.6 | - | 30.4 |
| Auto-FPN [46] | 600 × 1333 | - | 81.8 | - | 10.6 |
| DetNAS [9] | 600 × 1333 | - | 81.5 | - | - |
| \( SPNet_{VOC} \) | 600 × 1333 | - | 84.1 | - | 19.9 |
+
+Table 5. Comparison of Average Precision and frames per second (fps) during inference on BDD and PASCAL VOC. SPNet ${}_{BDD}$ starts from ResNet50 with bottleneck block and SPNet ${}_{VOC}$ is based on ResNet18 with basic block.
+
+$L$ stages: $s_1$ to $s_L$ the $l$ -th stage $s_l$ takes the output (denoted as $x_{l-1}$ ) of the previous $s_{l-1}$ stage as input, which can be expressed as: $x_l = s_l(x_{l-1})$ . For each stage $s_l$ , we consider adding a series of parallel subnets $p_l^1$ to $p_l^K$ to enhance the features representation. To be more specific, the output features of the previous stage is feed into $p_{i1}$ to $p_{ik}$ iteratively in a recurrent way. Taken $x_{l-1}$ as the output feature of the previous stage, the recurrent operation of the subnets $p_l^1$ to $p_l^K$ can be written as $x_l^k = p_l^k (x_{l-1}^k + \text{upsample}(x_l^{k-1}))$ where $k = 1, \dots, K$ , $x_l^0 = x_l$ , $p_l^0 = s_l$ , and $\text{upsample}(\cdot)$ consists of a 1x1 conv and an upsampling operation to constrain the channels and the resolutions to be consistent with $x_{l-1}$ . As a result, the output features of the subnet $p_l^k$ becomes the input of $p_l^{k-1}$ at the same layer by the $\text{upsample}(\cdot)$ . For the network structure inside the subnets, we directly copy the corresponding stage found by our SerialNet to the subnets, e.g. $p_l^k = s_l$ . Note that we also copy the weight parameters from $s_l$ . Thus we can make fully use of both the training of detection dataset and the ImageNet pretraining in the previous phase.
+
+The original input feature maps $x_{l-1}$ at the $l$ -th stage will go through multiple subnets for better feature extraction. Moreover, by going through multiple upsample(·)
+
+ | BDD (mAP) | ECP (LAMR) | VOC (AP50) |
| baseline | 36.5 | 0.088 | 77.1 |
| serial-level round1 | 37.2+0.7 | 0.064-0.024 | 81.2+4.1 |
| serial-level round2 | 38.0+0.8 | 0.061-0.003 | 83.5+2.3 |
| parallel-level | 38.7+0.7 | 0.054-0.007 | 84.1+0.6 |
+
+Table 6. Ablation studies during the serial-to-parallel search. The serial-level search is under two rounds of reignition. The BDD and ECP are searched from ResNet50 and use mAP and LAMR for evaluation respectively.
+
+and downsampling in the subnet, the parallel-level search space enables a complete fusion of different level features. We encode parallel-level search space as a list consisting of the number of subnets for each stage. For example, if the SerialNet has 4 stages, “(0,2,1,3)” indicates the number of parallel subnets for each stage, e.g. “0” denotes no additional subnet in this stage. “3” means we copy the last stage 3 times to become the subnets of the final backbone.
+
+Search Strategy. The parallel search space is relatively small with comparison to the one in the serial search: total $(K + 1)^{L}$ of unique combinations where $K$ is the maximum number of subnets ( $K = 3$ in this paper) and $L$ is the number of stages found by the previous round of search (usually $4^{\sim}6$ ). Since we reuse the weights of the backbone in serial-level search as the initialization of the parallel subnets, the training of the parallel-level backbone is efficient. Thus, in the parallel-level search, we just use a random search with a resource-constraint sampling to find the optimal combination of the parallel subnets. The sampling of the encoding is not uniform. The probability of adding one additional subnet is proportional to the inverse of FLOPS for each subnet which avoids adding too heavy subnets in the backbone.
+
+At the end of the parallel-level search, the best performance architecture is named SPNet.
+
+# 4. Experiments
+
+Datasets and Evaluation Metrics. To evaluate our methods on different domains, we conduct architecture search on PASCAL VOC [11], COCO [21], ECP [3], BDD [47] for common object detection and autonomous driving detection. COCO [21] is a common object detection dataset containing 80 classes with 118K images for training, 5K for evaluation. PASCAL VOC (VOC) [11] contains 20 object classes. Training data is the union of VOC 2007 trainval and VOC 2012 trainval (10K images) and evaluation is on VOC 2007 test (4.9K images). We only report mAP scores using IoU at 0.5 as common practice. EuroCity Persons Dataset (ECP) [3] is an autonomous driving dataset for pedestrian detection. ECP contains about 24K training images and 4.3K validation images. Berkeley Deep Drive (BDD) [47] is an autonomous driving dataset with 10 object classes. BDD contains about 70K images for training and 10K for evaluation.
+
+For the evaluation metrics, we adopt the metrics from COCO detection evaluation criteria [21] which is mean Average Precision (mAP) across IoU thresholds from 0.5 to 0.95 with an interval of 0.05 and different scales (small, medium, big). Additionally, in order to compare the performance on the ECP leader-board, we use the Log Average Miss-Rate (LAMR) with ignoring regions under different cases (reasonable, small, occluded, all) [3] as: $LAMR = \exp\left(\frac{1}{9}\sum_{f} \log(mr(\arg\max_{fppi(c) \leq f} fppi(c)))\right)$ , where $fppi(c)$ is the number of false positives per image under confidence level $c$ , $mr = 1 - \text{recall}(c)$ . Thus, the lower LAMR the better performance of the detector.
+
+# 4.1. Implementation Details & Intermediate Results
+
+Implementation Details for Serial-level Search. For each dataset, we choose an ImageNet pretrained model for the starting architecture, VOC: ResNet18 [15], BDD and ECP: ResNet50, COCO: ResNet50 and ResNeXt101 [44]. To propose a new architecture, we adopt 3 random modifications ("swap" and "expand") on the current backbone architecture as well as the weight initialization and feed the new architecture into a "fast training scheme". This training scheme only trains the network for 3 epochs with SGD optimizer with cosine decay learning rate 0.02 to 0.0001, momentum 0.9, batch size $= 2 \times 8$ and $10^{-4}$ as weight decay. All the backbone parameters are updated during the training phase. We train and test the new architectures in parallel on 4 computing nodes, and each has 8 Nvidia V100 GPU cards. Empirically, we found that training with 3 epochs already can separate good models from bad models. It takes about 3 hours on COCO, 4 hours on BDD, 1 hours on ECP and 0.5 hours on VOC to finish evaluating one architecture. $n_r$ is set to be 2 and $n_{stuck} = 20$ . Since the whole architecture is continuously growing, the search space is very big, containing more than $10^{20}$ possible paths.
+
+Implementation Details for Parallel-level Search. During parallel-level search, we first use the SerialNet obtained at serial-level search as the base backbone and add RPN and RCNN head on the backbone as a common two-stage detector. Then we randomly sample a parallel-level encoding and construct the subnets structure. Each subnet is initialized by the corresponding weights from the SerialNet. We also use the same "fast training scheme" to obtain an estimate of the accuracy on validation. Since the model is very big, we use a batch size $1 \times 8$ on 8 GPUs (one image per GPU). We allow the maximum number of subnets $K = 3$ . The search space is relatively small, containing less than $4 \times 10^{3}$ unique candidates.
+
+Analysis of Intermediate Results. Figure 3 shows the performance trajectories (blue line) on the ECP dataset during serial-level search and parallel-level search. It can be found that both searching rounds can consistently boost performance by discovering new architectures. Since the
+
+| Dataset | block type | Start backbone | Serial-level | Parallel-level |
| VOC | BB | ResNet18 (11, d1, d1, d1) | (11d, 1111, d11111111, d111, 1, 1111) | (0, 0, 0, 0, 0, 1) |
| ECP | | | (111d1111, d1111, 11d, 1111, 1111) | (0, 2, 1, 1, 0) |
| BDD | BNB | ResNet50 (111, d111, d11111, d11) | (111111111d, 111111111111111, d11111111111111, d11111, 111, 1) | (0, 1, 2, 3, 0, 0) |
| COCO | | | (1111d1, 11111111d, 11, 11111111111111, d, 11111111111111, 1) | (0, 0, 0, 1, 0, 0) |
| COCO | XB | ResNeXt101_32x4d | (1111, d1111, d1111111111111111111111, d11, 1) | (1, 0, 2, 1, 2) |
| | (111, d111, d1111111111111111111111, d11) | | |
+
+Table 7. The detailed backbones searched by SP-NAS on ECP, BDD, COCO and VOC.
+
+
+Figure 3. The performance trajectories during serial-level search and parallel-level search on the ECP dataset. The red points are the current best models with highest performance during search. Our search algorithm can consistently boost the performance in both phases.
+
+network morphism in serial-level search is also a weight-sharing method, we want to examine whether the performance ranking found by our search method is consistent with the fully training with ImageNet pretrained backbone models. Figure 4 (a) shows the performance of our serial-level searched models compared with fully training on VOC. It can be found that our searching method can maintain the same performance ranking with the standard training scheme with ImageNet initialization. Fully training with random initialization can only yield confusion results. Thus our "swap-expand" strategy is a good proxy to the detection task and avoids huge computation resources of repeated training.
+
+Ablation Study. Intermediate results during the parallel-level phase and serial-level phase are shown in Table 6. For the BDD dataset (starting from ResNet50), mAP is used for evaluation and the serial-level search is under two rounds of reignition. AP50 is used for evaluating VOC (starting from ResNet18) and LAMR is used for ECP (starting from ResNet50). We can find that the first reignition has the greatest improvement for VOC and BDD. The results show continuous improvement with further reignition.
+
+# 4.2. Object Detection Results
+
+After identifying the optimal architecture on each dataset, we fully train the model since the "fast training scheme" only has trained 3 epochs on that architecture. Since the model is already very big, we can only train it with one image per GPU with SGD. For all the datasets,
+
+
+Figure 4. (a) Comparison of the performance between fully training with ImageNet pretraining and our serial-level searching on VOC. The solid blue line is actual serial-level searching trajectories with a fast training scheme. Each point on the line is the local optimal architecture during each searching round. We fully train those architectures with ImageNet pretrained/random initialization. (b) The computational allocation (FLOPS) on the backbone stages of the searched architectures. The COCO with more complex objects needs more computation on the larger receptive fields, while others focus on the preceding stages.
+
+we train 24 epochs if not otherwise stated. The initial learning rate is 0.02, and reduces two times $(\times 0.1)$ during fine-tuning; $10^{-4}$ as weight decay; 0.9 as momentum. During training, image flipping is used for data augmentation. Only for COCO, $0.8_{\times} \sim 1.2_{\times}$ multi-scale training is used. During testing, multi-scale testing is not used. Pixel size=800×1333 is used for COCO (VOC: 600×1333, ECP: 1920 × 1024, BDD: 1920 × 1080).
+
+Detailed Final Searched Architectures. Table 7 shows the detailed architecture of the final searched models for VOC, COCO, ECP and BDD. Unlike hand-crafted ResNet/ResNeXt and automatic searched DetNAS series improve network capability for different tasks by simply stacking blocks in the same backbone stage or increasing width over the whole network, the proposed SP-NAS can grow a network for task-specific feature level and proper receptive fields. We found that for ECP, all raising channels happen at early stages which means that lower-level feature plays an important role for localization. For the parallel-level structure, it can be found that the output feature from stage1 is important for ECP and BDD thus more subnets are added in the following stages. For a thorough understanding, we illustrate the proportion of computation allocation (FLOPS) of the searched SPNets on different backbone stages in Figure 4 (b). More computation power is al-
+
+| Method | ImageNet Cls | Det w FPN on COCO |
| FLOPs | Accuracy | mAP |
| ResNet50 [15] | 3.8G | 76.1 | 36.5 |
| ResNet101 [15] | 7.6G | 77.4 | 39.4 |
| DetNAS [9] | 1.3G | 77.2 | 40.0 |
| DetNet-59 [18] | 4.8G | 76.5 | 40.2 |
| FishNet-150 [38] | 6.8G | 78.1 | 40.6 |
| HRNet-W40 [42] | 11.8G | 78.9 | 41.6 |
| SPNet*COCO(BNB) | 9.5G | 79.1 | 41.7 |
+
+Table 8. Comparison of performance on ImageNet Classification task and COCO object detection task with existing backbone networks. The FPN detector is used for all backbone networks. * means only serial-level search.
+
+located to stage5 and stage6 with a larger receptive field due to complex scene and category scales in COCO. However, for less categories and autonomous driving scenes, feature representation in early stages (stage1-3) is more important.
+
+Comparison with the State-of-the-art. To measure the inference speed, we run 2000 testing images on one V100 GPU and take the last 1000 images to compute the average of the inference time for comparison. Tables 3, 4 and 5 show the results of the architecture searched from COCO, ECP, BDD and VOC by SP-NAS. SPNet achieves significant gains than the baseline FPN on all detection benchmarks. In Table 3, we make a detailed comparison with existing hand-crafted detectors which most focus on backbone design: DetNet [18], FishNet [38], HRNet [42], Cascade RCNN [6], TridentNet [17], CBNet [27] and NAS for detectors: DetNAS [9], NAS-FPN [12] and AmoebaNet [31]. The inference time is tested on single V100 GPU (some models marked with other GPU devices follow the original papers). We list those methods with reported results without multi-scale testing and the reported SPNet $_{COCO}$ is based on Cascade RCNN. Our searched models dominate most SOTA models on speed/FLOPS and accuracy tradeoff. For example, SPNet $_{COCO}$ (BNB) performs $2.8\%$ better than Cascade RCNN [6] with the same inference time and outperforms NAS-FPN [12] with less FLOPS and training epochs. It is worth noting that simply increasing network depth from ResNet50 to ResNet101 has $0.6\%$ mAP drop on ECP in Table 4, and extending network width from HRNet-W18 to HRNet-W40 is also useless. This reflects the backbone gap between common detection and automotive datasets. In contrast, our SPNet $_{ECP}$ achieves 0.067 LAMR compared to 0.088 on ECP [3] validation set and achieves SOTA on the final leaderboard. Table 5 shows the searched SPNet $_{BDD}$ is faster than Auto-FPN [46] with better performance. SPNet $_{VOC}$ achieves $84.1\%$ AP50 compared to $77.6\%$ on VOC.
+
+Comparison with Other Backbone Networks. Table 8 shows the comparison of FLOPS and accuracy on classification and detection tasks with other backbones. SPNet\* $COCO$ (BNB) is the result from the serial-level
+
+
+Figure 5. (a) Comparison of mAP vs. Latency on different common backbones with FPN on COCO. SPNet(BNB) is our searched network with the bottleneck block, XB: ResNeXt block. (b) Comparison of different backbones with several advanced detectors.
+
+
+
+phase, which already achieves superior performance both on ImageNet and COCO than common-used backbone ResNet and other automatic/handcrafted designed detection backbone networks. In terms of latency and mAP, our SPNet dominates others in Figure 5 (a). We further compare our SPNet and common-used backbones with different detectors: Faster RCNN with FPN [19], Cascade RCNN [6] and Cascade Mask RCNN [14] in Figure 5 (b). The searched SPNet can boost far more performance than handcrafted backbone networks ResNet [15], ResNeXt [44] and HRNet-w32/48 [42] by replacing different detectors, and surpass them in terms of FLOPS/mAP.
+
+Comparison of search efficiency with other NAS methods. The searching time of our method and other NAS methods can be found in Table 9. We randomly sample 10 networks as the baseline, which has the same number of blocks and stages with SPNet $VOC$ and is trained with ImageNet pretraining. The results show that our method is much more efficient than random sample by avoiding the repeated pretraining and can find better architectures with much less time than DetNAS [9] and NAS-FPN [12].
+
+| Search Method | #Searched Architecture | Total Search Time (GPU days) | Average/Best mAP of searched arch |
| Random | 10 | ~76 | 76.4/80.3 |
| Auto-FPN [46] | 1 | ~0.8 | 81.8 |
| NAS-FPN [12] | 8000 | >>100 | 82.1 |
| DetNAS [9] | 1000 | ~68 | 81.5 |
| SP-NAS | 500 | ~26 | 83.5 |
+
+Table 9. Comparison on NAS search efficiency on VOC.
+
+# 5. Conclusion
+
+In this paper, we propose a novel serial-to-parallel NAS search (SP-NAS) pipeline towards a flexible and task-oriented detection backbone. The search is efficient by reusing the weights during iterative training and keeps consistent performance ranking of searched networks with fully training models. The searched SPNet networks achieve state-of-the-art accuracy/speed trade-off on multiple detection benchmarks.
+
+# References
+
+[1] Bowen Baker, Otkrist Gupta, Nikhil Naik, and Ramesh Raskar. Designing neural network architectures using reinforcement learning. arXiv preprint arXiv:1611.02167, 2016. 2
+[2] Chandrasekhar Bhagavatula, Chenchen Zhu, Khoa Luu, and Marios Savvides. Faster than real-time facial alignment: A 3d spatial transformer network approach in unconstrained poses. In ICCV, 2017. 1
+[3] Markus Braun, Sebastian Krebs, Fabian B. Flohr, and Dariu M. Gavrila. Eurocity persons: A novel benchmark for person detection in traffic scenes. TPAMI, 2019. 1, 4, 4, 4.2
+[4] Han Cai, Tianyao Chen, Weinan Zhang, Yong Yu, and Jun Wang. Efficient architecture search by network transformation. In AAAI, 2018. 2
+[5] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR, 2019. 2
+[6] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In CVPR, 2018. 3.1, 4.2, 4.2
+[7] Florian Chabot, Mohamed Chaouch, Jaonary Rabarisoa, Celine Teuliere, and Thierry Chateau. Deep manta: A coarse-to-fine many-task network for joint 2d and 3d vehicle analysis from monocular image. In CVPR, 2017. 1
+[8] Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In NeurIPS, 2018. 2
+[9] 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. 1, 1, 2, 3.1, 3.2, 4.2, 4.2, 4.2
+[10] Thomas Elsken, Jan-Hendrik Metzen, and Frank Hutter. Simple and efficient architecture search for convolutional neural networks. arXiv preprint arXiv:1711.04528, 2017. 1, 3.1
+[11] M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The pascal visual object classes (voc) challenge. *IJCV*, 88(2):303–338, June 2010. 1, 4
+[12] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V. Le. Nas-fpn: Learning scalable feature pyramid architecture for object detection. In CVPR, 2019. 1, 1, 2, 3.1, 4.2, 4.2
+[13] Kaiming He, Ross Girshick, and Piotr Dollar. Rethinking image pre-training. arXiv preprint arXiv:1811.08883, 2018. 3.1
+[14] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, pages 2961-2969, 2017. 4.2
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 1, 1, 2, 3.1, 4.1, 4.2, 4.2
+[16] Xin Li, Yiming Zhou, Zheng Pan, and Jiashi Feng. Partial order pruning: for best speed/accuracy trade-off in neural architecture search. In CVPR, pages 9145-9153, 2019. 3.1
+
+[17] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. arXiv preprint arXiv:1901.01892, 2019. 3.1, 4.2
+[18] Zeming Li, Chao Peng, Gang Yu, Xiangyu Zhang, Yangdong Deng, and Jian Sun. Detnet: A backbone network for object detection. In ECCV, 2018. 1, 2, 3.1, 3.1, 4.2, 4.2
+[19] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 1, 2, 3.2, 3.2, 4.2
+[20] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In ICCV, pages 2980-2988, 2017. 1
+[21] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 1, 1, 4, 4
+[22] 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. arXiv preprint arXiv:1901.02985, 2019. 2
+[23] 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 ECCV, 2018. 1, 2
+[24] Hanxiao Liu, Karen Simonyan, Oriol Vinyals, Chrisantha Fernando, and Koray Kavukcuoglu. Hierarchical representations for efficient architecture search. arXiv preprint arXiv:1711.00436, 2017. 2
+[25] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In ICLR, 2018. 1, 2
+[26] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In CVPR, 2018. 3.2
+[27] Yudong Liu, Yongtao Wang, Siwei Wang, TingTing Liang, Qijie Zhao, Zhi Tang, and Haibin Ling. Cbnet: A novel composite backbone network architecture for object detection. arXiv preprint arXiv:1909.03625, 2019. 3.1, 4.2
+[28] Ping Luo, Yonglong Tian, Xiaogang Wang, and Xiaou Tang. Switchable deep network for pedestrian detection. In CVPR, 2014. 1
+[29] Will Norcliffe-Brown, Efstathios Vafeais, and Sarah Parisot. Learning conditioned graph structures for interpretable visual question answering. In NIPS, 2018. 1
+[30] Ilija Radosavovic, Justin Johnson, Saining Xie, Wan-Yen Lo, and Piotr Dólár. On network design spaces for visual recognition. In ICCV, pages 1882–1890, 2019. 1
+[31] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. arXiv preprint arXiv:1802.01548, 2018. 1, 3.1, 4.2
+[32] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In AAAI, volume 33, pages 4780-4789, 2019. 1
+[33] Esteban Real, Sherry Moore, Andrew Selle, Saurabh Saxena, Yutaka Leon Suematsu, Jie Tan, Quoc V Le, and Alexey Kurakin. Large-scale evolution of image classifiers. In ICML, 2017. 2
+
+[34] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. 2
+[35] 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. IJCV, 115(3):211-252, 2015. 1, 3.1
+[36] Christian Sciuto, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. In NeurIPS, 2019. 1
+[37] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 3.1
+[38] Shuyang Sun, Jiangmiao Pang, Jianping Shi, Shuai Yi, and Wanli Ouyang. Fishnet: A versatile backbone for image, region, and pixel level prediction. In Advances in Neural Information Processing Systems, pages 754-764, 2018. 1, 3.1, 3.1, 4.2, 4.2
+[39] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. arXiv preprint arXiv:1807.11626, 2018. 2
+[40] Mingxing Tan and Quoc V. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946, 2019. 1
+[41] Mingxing Tan, Ruoming Pang, and Quoc V Le. Efficientdet: Scalable and efficient object detection. arXiv preprint arXiv:1911.09070, 2019. 1
+[42] Jingdong Wang, Ke Sun, Tianheng Cheng, Borui Jiang, Chaorui Deng, Yang Zhao, Dong Liu, Yadong Mu, Mingkui Tan, Xinggang Wang, Wenyu Liu, and Bin Xiao. Deep high-resolution representation learning for visual recognition. TPAMI, 2019. 1, 1, 1, 3.1, 3.1, 3.2, 3.2, 4.2, 4.2, 4.2
+[43] Tao Wei, Changhu Wang, Yong Rui, and Chang Wen Chen. Network morphism. In ICML, pages 564-572, 2016. 1, 3.1
+[44] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017. 3.1, 4.1, 4.2
+[45] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. Snas: stochastic neural architecture search. In ICLR, 2019. 1, 2
+[46] Hang Xu, Lewei Yao, Wei Zhang, Xiaodan Liang, and Zhenguo Li. Auto-fpn: Automatic network architecture adaptation for object detection beyond classification. In ICCV, 2019. 1, 1, 2, 3.2, 4.2, 4.2
+[47] Fisher Yu, Wenqi Xian, Yingying Chen, Fangchen Liu, Mike Liao, Vashisht Madhavan, and Trevor Darrell. Bdd100k: A diverse driving video database with scalable annotation tooling. arXiv preprint arXiv:1805.04687, 2018. 1, 4
+[48] Zhao Zhong, Junjie Yan, Wei Wu, Jing Shao, and ChengLin Liu. Practical block-wise neural network architecture generation. In CVPR, 2018. 2
+[49] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018. 1, 2
\ No newline at end of file
diff --git a/spnasserialtoparallelbackbonesearchforobjectdetection/images.zip b/spnasserialtoparallelbackbonesearchforobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9f0665900021d5a42878ef2f2603fdea4426c864
--- /dev/null
+++ b/spnasserialtoparallelbackbonesearchforobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e9a6595a363cbfce265c93d76f38d63bccbf0c042258881f86532a39e2d1fa71
+size 514438
diff --git a/spnasserialtoparallelbackbonesearchforobjectdetection/layout.json b/spnasserialtoparallelbackbonesearchforobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2c4401d3b1508d298ede2a9cde6bd0de8241f575
--- /dev/null
+++ b/spnasserialtoparallelbackbonesearchforobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7fa1c4075120eb0b830bf2e6846013b9a7d3c36498c1d4b785657a6404c68379
+size 362540
diff --git a/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_content_list.json b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0271abc8beac424dc05e0854444ff14b961ec39
--- /dev/null
+++ b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c9e172d57f7d102ee0cfeb187e1ba624c28c05b6a2ec775e6c2a9c460d2b2f9
+size 74258
diff --git a/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_model.json b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c057bb10d6e50ded240297c3708f5dc4fba0ea2f
--- /dev/null
+++ b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca2d8a5b71738bc06a5e229e3ce257e47b50fa9cfe36dabcb0958fe9ee798126
+size 89187
diff --git a/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_origin.pdf b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..804e8ea833457d508b58856e4f74d6016ecf8534
--- /dev/null
+++ b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/67ad75a5-3ed8-4133-a5ea-3fafeea4420f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f62bba3ab748b3351c9a42817537ff13bff5bd880bcbccbb6a2863c97c8154b4
+size 747446
diff --git a/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/full.md b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5628b9875c0372f6f377f8f2b0078a93c20de6b9
--- /dev/null
+++ b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/full.md
@@ -0,0 +1,353 @@
+# SQE: a Self Quality Evaluation Metric for Parameters Optimization in Multi-Object Tracking
+
+Yanru Huang $^{1}$ Feiyu Zhu $^{2}$ Zheni Zeng $^{1*}$ Xi Qiu $^{2}$ Yuan Shen $^{1\dagger}$ Jianan Wu $^{2}$ $^{1}$ Tsinghua University $^{2}$ Megvii Inc.
+{huangyr18, zengzn16}@mails.tsinghua.edu.cn shenyuan_ee@tsinghua.edu.cn
+{zhufeiyu, qiumi, wjn}@megvii.com
+
+# Abstract
+
+We present a novel self quality evaluation metric SQE for parameters optimization in the challenging yet critical multi-object tracking task. Current evaluation metrics all require annotated ground truth, thus will fail in the test environment and realistic circumstances prohibiting further optimization after training. By contrast, our metric reflects the internal characteristics of trajectory hypotheses and measures tracking performance without ground truth. We demonstrate that trajectories with different qualities exhibit different single or multiple peaks over feature distance distribution, inspiring us to design a simple yet effective method to assess the quality of trajectories using a two-class Gaussian mixture model. Experiments mainly on MOT16 Challenge data sets verify the effectiveness of our method in both correlating with existing metrics and enabling parameters self-optimization to achieve better performance. We believe that our conclusions and method are inspiring for future multi-object tracking in practice.
+
+# 1. Introduction
+
+Multi-object tracking (MOT) aims to track all objects of interest categories in a video sequence [18, 26]. It is crucial in applications like video surveillance and autonomous driving, where multiple pedestrians and vehicles need to be tracked simultaneously [6, 25, 3]. In recent years, tracking-by-detection [9, 18, 23, 6, 1, 5] has become the predominant paradigm of MOT. This approach first detects objects in each frame, then extracts discriminative features to quantify the similarities between targets, and finally perform data association to assign detections into their most likely trajectories. During this process, several influential parameters need to be set manually, such as the threshold determining whether to establish associations. To find the optimal pa
+
+
+Figure 1. Examples of different intra and inter distance distributions. Ideally, the distance distribution within the same trajectory or between two different trajectories present a single peak with little noise. If false identification takes place, such as the hypothetical identity 2 follows target B at first and then switches to another target C, the distance distribution would present multiple distinguishable peaks. See Section 3.2 for a detailed explanation.
+
+rameters, an evaluation procedure is needed to measure the tracking performance. However, existing evaluation metrics like event-based measures CLEAR MOT [3] or identity-based measures $\mathrm{IDF}_1$ [16] all require ground truth annotations, limiting the optimization to training data. Since the optimized parameters could be sub-optimal in test scenes, a self evaluation metric that enables parameters optimization without ground truth is urgently needed.
+
+To evaluate the accuracy and stability of a tracker without ground truth, we design a self quality evaluation metric SQE that considers the quantity, length, and feature distance information of the trajectory hypotheses comprehensively. Our method can assess the quality of trajectories owing to the distinctive distance distribution forms as shown in Figure 1. The intra distance denotes the feature distance between each two detection boxes in the same trajectory, and all pairs constitute the intra distance distribution. Similarly, the inter distance denotes the feature distance between each two detection boxes from different trajectories. Intuitively, when a trajectory contains different targets, the distance dis
+
+ribution scatters, and we demonstrate that it has the general characteristic of multiple peaks.
+
+SQE enables automatic parameters adaptation to accommodate different scenes. Designing a tracking algorithm that performs well under various video scenes is hard, yet tuning parameters in existing tracking algorithms can achieve equally outstanding performance in an easier manner. To the best of our knowledge, there is no previous work in this area to date. We believe that our approach is exceedingly instructive and provides new ideas for future research.
+
+In summary, our contributions are as follows: (1) We show that feature distance distributions can reflect trajectory hypotheses quality; (2) We propose a self quality evaluation metric SQE based on two-class Gaussian mixture model, which can primarily fulfill the self-evaluation desire; (3) We test the effectiveness of our method on various data sets and note its drawbacks. A future prospect of using distributions to estimate erroneous frames is discussed in the end.
+
+# 2. Related Work
+
+# 2.1.MOT algorithms
+
+In the tracking-by-detection paradigm, trackers first detect objects in each frame and then associate detections over time to form trajectories for targeted individuals [9, 26, 12]. Online methods [14, 24, 4, 23] only use previous and current frames and are thus suitable for real-time applications. One straightforward implementation is simple online and real-time tracking (SORT) [4], which predicts the new locations of bounding boxes using Kalman filter, followed by a data association procedure using intersection-over-union (IOU) to calculate the cost matrix. Although SORT achieves favourable speed and accuracy simultaneously, it suffers from heavy identity switches due to short-term motion information. Deep SORT [23], on the other hand, introduces object re-identification (REID) as appearance information to handle long-term occlusions, leading to a more robust and effective algorithm. Due to the rapid development of deep neural networks (DNNs), REID features with powerful discriminative capability have been popularized in MOT algorithms [6, 22, 26, 25]. In addition, the frame-by-frame association problem is often seen as bipartite graph matching solved by Hungarian algorithm [8].
+
+By contrast, offline methods [27, 9, 2] have access to the whole sequence and can perform global optimization on data association. These batch methods generally formulate MOT as a network flow problem [27, 15]. K-shortest paths (KSP) [2], successive shortest-path (SSP) [9], and dynamic programming (DP) [15] can be used to find the optimal solution. Offline methods enable correction of early errors in online methods and often show better performance, but are not applicable to time-critical applications.
+
+In this paper, we focus on a simple, efficient, and easy-
+
+
+Figure 2. Comparison of MOTA and $\mathrm{IDF}_1$ . Both Tracker 1 and Tacker2 track target A which lasts 10 frames. Tracker 1, which correctly tracks 2 frames and the remaining frames are assigned to other wrong targets, has 4 identity switches, while Tracker 2 tracks 8 frames with 2 errors has the same number of identity switches. $\mathrm{IDF}_1$ measures how long the identification is correct and give different scores, which can better reflect trackers' performance.
+
+to-implement tracking framework. We use REID features to calculate the cost between current object detections and existing tracklets, minimize the total cost by Hungarian algorithm, and employ operations like interpolation and merging to correct previous results. Among all the parameters that need to be set, the REID threshold and merging threshold are the two most dominant parameters, which allows establishing associations and merging tracklets respectively.
+
+# 2.2. Evaluation metrics
+
+Quantitative evaluation of tracking performance is challenging due to the complexity of multi-target tracking task. A large number of metrics have been proposed [10, 17, 20, 13], including two main common metrics serving different purposes. One of them is CLEAR MOT metrics [3, 11], which contains multiple object tracking accuracy (MOTA) and multiple object tracking precision (MOTP):
+
+$$
+\mathrm {M O T A} = 1 - \frac {\sum_ {t} \left(\mathrm {F N} _ {t} + \mathrm {F P} _ {t} + \mathrm {I D S} _ {t}\right)}{\sum_ {t} \mathrm {G T} _ {t}}, \tag {1}
+$$
+
+$$
+\mathrm {M O T P} = \frac {\sum_ {i , t} d _ {t} ^ {i}}{\sum_ {t} c _ {t}}, \tag {2}
+$$
+
+where $c_{t}$ denotes the number of matched targets in frame $t$ , and $d_{t}^{i}$ denotes the matching distance of target $i$ . Comparing to MOTP, which is mainly influenced by localization accuracy of detections, MOTA sums various sources of errors, including false negatives, false positives, and identity switches, providing a better overall performance measure.
+
+The other is ID metrics [16], which contains identification precision (IDP), identification recall (IDR) and corresponding $\mathrm{F}_1$ score $\mathrm{IDF}_1$ :
+
+$$
+\mathrm {I D F} _ {1} = \frac {2 \mathrm {I D T P}}{2 \mathrm {I D T P} + \mathrm {I D F P} + \mathrm {I D F N}}, \tag {3}
+$$
+
+where IDTP, IDFP, and IDFN are calculated by the truth-to-result match, i.e., bipartite graph matching between true trajectories and hypothetical trajectories. Afterwards, each
+
+hypothesis is assigned to a unique target. All the frames of hypotheses with small overlap are seen as false positives and that of ground truth are seen as false negatives.
+
+Comparing to MOTA, $\mathrm{IDF}_1$ better measures the consistency of ID matching. A simple example to illustrate its effectiveness is presented in Figure 2. In this paper, we focus on the performance of identification, and thus use $\mathrm{IDF}_1$ as the reference of our self-evaluation metric.
+
+# 3. Self Quality Evaluation
+
+We design a novel self quality evaluation metric SQE to measure the tracking performance without ground truth annotations that can enable parameters optimization to gain better tracking performance in reality. This metric should be positively correlated with $\mathrm{IDF}_1$ which generally measures the tracking performance the best. The guiding design criteria is provided below in which we highlight some distinctive features an ideal tracker should possess. Both the theoretical and practical facets show that high-quality trajectories present single peaks in the feature distance distribution, while low-quality trajectories present multiple peaks.
+
+# 3.1. Design criteria
+
+To have a better understanding of the proposed metric, we first explain that an ideal MOT tracker should meet the following criteria. It should be able to: (1) track all targets continuously from appearing to leaving the tracking area; (2) track each target consistently, that is, each target should be assigned one and only one track ID over time; (3) locate the position of each target as accurately as possible.
+
+As mentioned in Section 2.2, (3) quantifies the detection performance in the tracking-by-detection paradigm, thus it is not our main focus. For self evaluation metrics design, (1) inspires that the number and length of trajectories are supposed to be appropriate. (2) leads to the assumption that for an outstanding tracker, REID features are as similar as possible if coming from the same trajectory, otherwise are as different as possible. This can be characterized by the intra and inter distance of trajectories. We define the distance between two features $f$ and $g$ as their Euclidean distance:
+
+$$
+d i s t a n c e = \| f - g \| _ {2}. \tag {4}
+$$
+
+Based on the above considerations, our self evaluation metric should take the quantity, length, and feature distance information into account comprehensively. Since establishing relationship between the identification quality and the absolute values of distance is hard, distance distribution analysis is considered to be a more reasonable solution.
+
+# 3.2. Distance distribution analysis
+
+We demonstrate in theory that the intra distance of the same target and the inter distance of different targets obey chi distribution.
+
+For object representation, it is common that low-quality inputs will lead to uncertain estimations, causing the computed REID features to fluctuate around the ideal value. We follow the assumptions in [19], modeling the distribution of features as multivariate Gaussian distribution:
+
+$$
+p (\mathbf {z}) = \mathcal {N} (\mathbf {z}; \boldsymbol {\mu}, \boldsymbol {\sigma} ^ {2} \mathbf {I}), \tag {5}
+$$
+
+where $\mathbf{z}$ is a N-dimension feature vector, $\pmb{\mu}$ and $\sigma^2$ represent the ideal value and uncertainty along each dimension respectively. Each dimension obeys an independent Gaussian distribution.
+
+We measure the Euclidean distance between a pair of features $(\mathbf{z}_i, \mathbf{z}_j)$ :
+
+$$
+d \left(\mathbf {z} _ {i}, \mathbf {z} _ {j}\right) = \sqrt {\sum_ {k = 1} ^ {N} \left(z _ {i k} - z _ {j k}\right) ^ {2}} = \sqrt {\sum_ {k = 1} ^ {N} d _ {k} ^ {2}}. \tag {6}
+$$
+
+According to the nature of independent Gaussian random variables, we have $p(d_k) = \mathcal{N}(d_k;\mu_{ik} - \mu_{jk},\sigma_{ik}^2 +\sigma_{jk}^2)$ . If $(\mathbf{z}_i,\mathbf{z}_j)$ comes from the same target, then $\mu_{ik} - \mu_{jk} = 0$ , $\sigma_{ik}^2 +\sigma_{jk}^2 = 2\sigma_k^2$ . Thus, the feature distance after standardization obeys chi distribution with a degree of freedom equals to N:
+
+$$
+\sqrt {\sum_ {k = 1} ^ {N} \left(\frac {d _ {k}}{\sqrt {2 \sigma_ {k} ^ {2}}}\right) ^ {2}} \sim \chi_ {N}, \tag {7}
+$$
+
+and if $(\mathbf{z}_i,\mathbf{z}_j)$ comes from different targets:
+
+$$
+\sqrt {\sum_ {k = 1} ^ {N} \left(\frac {d _ {k} - \left(\mu_ {i k} - \mu_ {j k}\right)}{\sqrt {\sigma_ {i k} ^ {2} + \sigma_ {j k} ^ {2}}}\right) ^ {2}} \sim \chi_ {N}, \tag {8}
+$$
+
+Therefore, the intra and inter distance distributions of ideal trajectory hypotheses present single peaks. Next we consider a low-quality trajectory containing an identity switch between target A and B. For the ease of analysis, we assume that each target and feature dimension has the same variance. Therefore, the distance of features $(\mathbf{z}_{Ai},\mathbf{z}_{Bj})$ obeys non-central chi distribution with a positive noncentrality parameter $\lambda = \sum_{k = 1}^{N}(\mu_{Ai}k - \mu_{Bjk})^2$ . Meanwhile, the distance within each target obeys central chi distribution proved as above. The final distance distribution is indeed the sum of central and non-central chi distributions, thus showing a bimodal form. It can be inferred that the low-quality trajectories with wrong identification would present multiple peaks in the intra and inter distance distributions.
+
+# 3.3. Practical verification
+
+We practically verify the above conclusions by visualizing the intra and inter distance distributions of several different tracking cases in Figure 3. The results exhibit that the high-quality trajectories, such as the one labeled with
+
+
+
+
+(a) ID 0
+
+
+
+
+
+
+(b) ID 0 & ID 1
+
+
+
+
+Figure 3. Distance distributions of several different tracking cases and corresponding visualization results.
+
+
+(c) ID 9
+
+
+
+
+
+
+(d) ID 3 & ID 220
+
+
+
+ID 0 consistently tracks a person moving forward while being separated from the one with ID 1, present single peaks. In contrast, the low-quality trajectories, such as the one containing an identity switch with ID 9 and the overlapped ones with ID 3 and ID 220, present multiple peaks.
+
+To quantify the validity of our Gaussian assumption in Section 3.2, we use the descriptor provided in [21] to perform a normality test on the ground truth of MOT16 train set and find that $74\%$ of the trajectories can be approximate as Gaussian distribution at a significance level of 0.1. Under low-density scenarios like MOT16-05, the percentage raises to $88\%$ . Considering that counterexamples may occur in practice, such as two similar-dressed people, we have also tested the performance of the descriptor on classifying unique person IDs in MOT16's detection boxes. When the precision is set to 0.95, the recall and mAP can reach 0.94 and 0.98 respectively. Therefore, we consider the counterexamples only make up a small portion.
+
+However, due to non-ideal factors, the final distances do not fully obey the theoretical chi distribution. We take ID 0 for example. Although a similar overall shape is shown, the hypothesis test has an extremely low p-value of 0, indicating a statistically significant difference. This may have two reasons: (1) Bias is introduced when using sample statistics to replace the true mean and variance for standardization; (2) Features extracted by the REID model are not independent in each dimension. The second reason is very common, since deep neural networks tend to cause strong correlations between multiple dimensions.
+
+It is encouraging that the trajectories of different qualities still retain the distinctive single or multiple peaks. The more frames with wrong identification, the more obvious the two peaks, and the larger interval between them. In practice we found that fitting a two-class Gaussian distri
+
+bution and setting a threshold for the mean difference can qualitatively detect those low-quality trajectories which significantly affect tracking performance. According to the visualization results, we also found that the false alarm trajectory is usually short in length, large in variance, and may interfere with the inter distances to produce multiple peaks. These trajectories for which no real target exists are also categorized as low-quality trajectories.
+
+# 3.4. Metric
+
+Based on the above criteria and distance distribution analyses, we propose a novel self quality evaluation metric SQE, which can be expressed as:
+
+$$
+\mathrm {S Q E} = \frac {n \times L}{n + k _ {1} \times L + k _ {2} \times (f p + d i f + s i m)} \tag {9}
+$$
+
+The specific explanation is detailed below. The evaluation process is summarized in Algorithm 1 and mainly divided into four steps:
+
+(1) For a trajectory with short length and large standard deviation, we mark it as false alarm and accumulate $fp$ .
+(2) For the rest trajectories we utilize a two-class Gaussian mixture model to fit the intra distances, and judge whether it is a low-quality trajectory according to the mean difference. If it exceeds a certain threshold, we assert that this trajectory contains more than one target and accumulate a difference error, denoted by $\text{dif}$ .
+(3) Similarly, the inter distances of each two non-false alarm trajectories are also fitted. They are considered to match the same target with a large mean difference, and the similarity error is denoted by sim.
+(4) Other internal characteristics like the number $n$ and mean length $L$ of trajectories are also embedded.
+
+When the REID threshold is set too strict, there are so many detection boxes being excluded that $n$ and $L$ are both
+
+Algorithm 1: self quality evaluation
+Input: set of trajectory hypotheses $\mathcal{T} = \{T_k\}$ Output: self evaluation result
+1 $n =$ number of trajectories in $\mathcal{T}$ ;
+2 $L =$ mean length of trajectories in $\mathcal{T}$ ;
+3 initialization;
+4 foreach $T_{k}\in \mathcal{T}$ do
+5 calculate the intra distance by Equation 4;
+6 if $L_{Tk} < \delta_L$ and Std > $\delta_D$ then
+7 mark the track as false alarm;
+8 $fp = fp + 1$ ;
+9 else
+10 fit a two-class Gaussian mixture model;
+11 if $\Delta_{mean} > \delta_m$ then
+12 | dif = dif + 1;
+13 end
+14 end
+15 end
+16 foreach $T_{l},T_{m}\in \mathcal{T}$ do
+17 calculate the inter distance by Equation 4;
+18 if not false alarm tracks then
+19 fit a two-class Gaussian mixture model;
+20 if $\Delta_{mean} > \delta_m$ then
+21 | sim = sim + 1;
+22 end
+23 end
+24 end
+25 calculate SQE by Equation 9;
+26 return SQE;
+
+small; when $n \times L$ remains almost constant, the two variables have opposite trend, and extreme situations including excessively fragmented or concatenated trajectories will lead to imbalance between them. To downgrade these poor tracking results, we employ the form of harmonic mean, and set $k_{1}$ to accommodate moving speed and density of tracking objects. For pedestrian tracking task on street videos, the magnitude of $n$ and $L$ is approximately equivalent, and thus $k_{1}$ could be set to 1 concisely.
+
+Based on this rough constraint form, a correction item is added to the denominator. We have demonstrated that the accumulated $dif$ , $sim$ and $fp$ can reflect the number of low-quality trajectories. Therefore, their sum is expected to be small, and meanwhile the value of SQE is large. The correction item actually plays a key role within the range of moderate values of $n$ and $L$ . $k_{2}$ is used to adjust the ratio between $n$ , $L$ and sum of errors.
+
+Parameters in SQE are not difficult to set. $\delta_L$ is comparable to the video's frame rate. With a high-precision ReID model, randomly selecting false alarms and ID switch examples from reference videos is adequate to observe Std
+
+and $\Delta_{m}$ , so as to set $\delta_{D}$ and $\delta_{m}$ accordingly. Additionally, when the tracker and task (vehicle/pedestrian) are given, $k_{1}$ and $k_{2}$ could be set empirically.
+
+# 4. Experiments
+
+Implementation details. We assess our self evaluation method mainly on the MOT16 Challenge data sets [11], which contains 14 video sequences (7 for training, 7 for testing) taken by both static and moving cameras from different angles in different scenes. We focus our study on pedestrian tracking and make use of the person ReID model provided by [21]. All the experiments are completed with the same parameter setting: $\delta_L = 15$ , $\delta_D = 0.2$ , $\delta_m = 0.3$ , $k_1 = 1$ and $k_2$ takes 2 and 10 for the REID threshold and the merging threshold, respectively. The REID threshold varies from 0.3 to 1.6, beyond which $\mathrm{IDF}_1$ remains invariant. Similarly, the merging threshold varies from 0.5 to 1.5. The parameter optimization process is based on grid search. The rest of this section proves the accuracy, universality, and effectiveness of our self quality evaluation metric SQE.
+
+Comparison with supervised metrics. To demonstrate the effectiveness of our self evaluation metric in evaluating tracking performance, we compare its score with existing commonly used supervised metrics on MOT16-02 training video, and visualize $\mathrm{IDF}_1$ and SQE in Figure 4. We found that as the the REID threshold ascends, both SQE and $\mathrm{IDF}_1$ increase at first and decrease afterwards, and reach the highest value at 0.8 with relatively high IDP, IDR, and MOTA. These two items present a very similar trend, which indicates that our designed metric can primarily fulfill the desired positive correlations with $\mathrm{IDF}_1$ which generally measures the performance of identification the best.
+
+
+(a)
+
+
+(b)
+Figure 4. Visualization of $\mathrm{IDF}_1$ and SQE on MOT16-02 (complex scene) when changing the REID threshold.
+
+MOT16-02 video records a complex scene with a large number of people walking around a large square. We further analyse the result on MOT16-09 video, a simpler street scene with low density and the least number of tracks from a low angle, in Figure 5. The favourable similarity illustrates that our self evaluation method can be generalized to different viewpoints and scenarios. The detailed results on other videos are provided in the supplementary material.
+
+| video | method | parameter | IDF1* | IDP* | IDR* | MOTA* | IDS* | Δ (IDF1) |
| 02 | baseline(gt) | 0.80 | 58.3 | 79.3 | 46.0 | 51.9 | 69 | 0.0 |
| SQE(ours) | 0.80 | 58.3 | 79.3 | 46.0 | 51.9 | 69 |
| 04 | baseline(gt) | 1.05 | 82.0 | 93.5 | 73.0 | 77.3 | 21 | 1.1 |
| SQE(ours) | 0.80 | 80.9 | 93.0 | 71.5 | 76.2 | 32 |
| 05 | baseline(gt) | 0.90 | 71.2 | 79.2 | 64.6 | 62.0 | 23 | 0.1 |
| SQE(ours) | 1.00 | 71.1 | 78.3 | 65.2 | 61.5 | 32 |
| 09 | baseline(gt) | 1.20 | 76.0 | 88.8 | 66.4 | 73.5 | 8 | 1.3 |
| SQE(ours) | 0.80 | 74.7 | 88.6 | 64.6 | 72.2 | 7 |
| 10 | baseline(gt) | 0.95 | 72.4 | 76.6 | 68.7 | 71.5 | 79 | 1.9 |
| SQE(ours) | 0.90 | 70.5 | 74.5 | 66.8 | 71.2 | 81 |
| 11 | baseline(gt) | 0.85 | 80.1 | 89.7 | 72.4 | 75.0 | 29 | 4.6 |
| SQE(ours) | 1.00 | 75.5 | 83.8 | 68.7 | 73.5 | 34 |
| 13 | baseline(gt) | 0.75 | 58.2 | 74.6 | 47.7 | 47.0 | 73 | 2.3 |
| SQE(ours) | 1.05 | 55.9 | 68.9 | 47.0 | 45.6 | 90 |
+
+* denotes that the score for SQE parameters is only calculated after the parameters are determined by SQE, but not used to tune the parameters.
+
+Table 1. Comparison of the optimal REID threshold determined by ground truth and our self evaluation method on MOT16-02~13.
+
+
+(a)
+
+
+(b)
+
+
+Figure 5. Visualization of $\mathrm{IDF}_1$ and SQE on MOT16-09 (simple scene) when changing the REID threshold.
+(a)
+
+
+(b)
+Figure 6. Visualization of $\mathrm{IDF}_1$ and SQE on MOT16-02 when changing the matching cosine threshold in Deep SORT algorithm.
+
+We summarize the optimal REID threshold determined by $\mathrm{IDF}_1$ and SQE in Table 1, with corresponding evaluation scores under these parameters. Our self evaluation method can approximately quantify tracking performance, specifically, $85\%$ of the optimal parameter differences do not exceed 0.25, and $85\%$ of the corresponding $\mathrm{IDF}_1$ differences do not exceed 3.
+
+Generalization to other tracking algorithms. To illus
+
+trate the robustness and universality of our method, other tracking algorithms are supposed to be tested as a supplementary experiment. We choose Deep SORT, which is one of the highly recognized and open source MOT algorithms in recent years. The REID threshold corresponds to the matching cosine threshold in Deep SORT. This algorithm replaces our interpolation logic with IOU matching, causing the features during occlusion time period to exhibit a small interference peak in the intra distance distribution; therefore, we remove the feature information of these frames when performing self evaluation. As shown in Figure 6, a strong correlation between $\mathrm{IDF}_1$ and SQE is presented, demonstrating the success of our method on other trackers.
+
+Generalization to other parameters. We further test the universality of our method on other parameters. Except for the REID threshold, the merging threshold is another dominant factor affecting final tracking performance. Similarly, we visualize the comparison of $\mathrm{IDF}_1$ and SQE of both complex and simple scenes in Figure 7 and 8. The results still maintain positive correlations. Table 2 shows a high accuracy, with 5 out of 7 videos have an optimal parameter difference below 0.1, and almost all the corresponding $\mathrm{IDF}_1$ differences do not exceed 3.
+
+Practical testing. Our ultimate goal is to find the optimal parameters in realistic scenes where ground truth is unavailable. Additionally in reality the training data is relatively small in scale comparing to the unknown test environment. To test our method in a pragmatic manner, we regard the first 4 training videos as our test set and the last 3 training videos as our training set. Conventionally, the parameters are tuned on the training set and remain constant during testing. In our simulation, we name these pa
+
+| video | method | parameter | IDF1* | IDP* | IDR* | MOTA* | IDS* | Δ (IDF1) |
| 02 | baseline(gt) | 1.00 | 57.9 | 72.7 | 46.1 | 51.7 | 82 | 0.0 |
| SQE(ours) | 1.00 | 57.9 | 72.7 | 46.1 | 51.7 | 82 |
| 04 | baseline(gt) | 1.05 | 82.3 | 94.2 | 73.1 | 76.8 | 23 | 0.6 |
| SQE(ours) | 1.00 | 81.7 | 93.7 | 72.4 | 76.5 | 27 |
| 05 | baseline(gt) | 0.85 | 73.6 | 82.5 | 66.5 | 61.9 | 34 | 0.5 |
| SQE(ours) | 0.75 | 73.1 | 82.8 | 65.5 | 61.4 | 46 |
| 09 | baseline(gt) | 1.00 | 75.9 | 89.2 | 66.0 | 73.2 | 7 | 3.1 |
| SQE(ours) | 0.70 | 72.8 | 85.8 | 63.2 | 72.8 | 12 |
| 10 | baseline(gt) | 1.05 | 71.5 | 75.1 | 68.2 | 70.8 | 77 | 1.6 |
| SQE(ours) | 0.95 | 69.9 | 74.5 | 65.9 | 71.5 | 82 |
| 11 | baseline(gt) | 1.10 | 78.2 | 87.6 | 70.5 | 75.0 | 30 | 2.8 |
| SQE(ours) | 0.85 | 75.4 | 84.7 | 68.0 | 73.9 | 35 |
| 13 | baseline(gt) | 1.05 | 56.7 | 70.7 | 47.3 | 46.2 | 68 | 0.6 |
| SQE(ours) | 1.10 | 56.1 | 69.2 | 47.1 | 45.4 | 72 |
+
+Table 2. Comparison of the optimal merging threshold determined by ground truth and our self evaluation method on MOT16-02~13.
+
+
+(a)
+
+
+(b)
+Figure 7. Visualization of $\mathrm{IDF}_1$ and SQE on MOT16-02 (complex scene) when changing the merging threshold.
+
+
+(a)
+Figure 8. Visualization of $\mathrm{IDF}_1$ and SQE on MOT16-09 (simple scene) when changing the merging threshold.
+
+
+(b)
+
+rameters as the baseline parameters. Conversely, our SQE metric can guide the self-optimization of parameters without ground truth. Thus, it is employed directly to tune the 4 testing videos individually.
+
+In reality we can first acquire baseline parameters as reference on small-scale training data, then conduct self evaluation to further optimize the parameters in a relatively small range. The procedure of computing the customized parameters is as follows: (1) Find baseline parameters; (2) For each
+
+testing video, fix one parameter with reference to baseline, and then tune the other according to SQE alternately; (3) Combine them to be the customized parameters.
+
+Our method is considered to be effectual if the tracker using the customized parameters outperform the tracker using constant training-set-tuned parameters. The result is shown in Table 3, where gt denotes the true optimal parameters on each video. To be rigorous, we use the best parameters found by grid search on the 3 assumed training videos as the baseline. It is apparent that the parameters tuned by SQE achieve considerable improvement comparing to the baseline, and the results are much closer to the true optimum, showing the effectiveness of our method when implemented in a practical manner.
+
+To further illustrate the performance of self-optimization using SQE, we experiment on MOT16 test set and KITTI train set [7]. The baseline parameters are the best parameters found by grid search on MOT16 training set, which outperform empirical parameters by $5.8\% \mathrm{IDF}_1$ already. This setup is based on the updated submitting policy of KITTI1, and we believe it can simulate pedestrian tracking in reality where test scenes varies greatly compared to annotated videos. As shown in Table 4, the parameter self-optimization enabled by SQE elevates the performance of the tracker on these data sets.
+
+Drawbacks and prospects. The above experiments reflect the effectiveness of our proposed SQE metric, while there are still some drawbacks worth noting. Firstly, due to the randomness during model fitting, $dif$ and $sim$ possess several units of uncertainty, resulting in insufficient sensitivity to small changes in $\mathrm{IDF}_1$ . Secondly, current metrics lack physical consistency explanation. $\mathrm{IDF}_1$ is calculated by
+
+| video | method | parameter | IDF1* | IDP* | IDR* | MOTA* | IDS* |
| 02 | gt | 0.85, 0.95 | 59.2 | 79.9 | 47.0 | 52.8 | 80 |
| baseline | 0.75, 1.00 | 56.2 | 78.3 | 43.8 | 50.1 | 61 |
| SQE(ours) | 0.90, 1.00 | 57.9 | 75.5 | 47.0 | 52.8 | 82 |
| 04 | gt | 0.85, 1.05 | 82.6 | 94.6 | 73.3 | 76.7 | 23 |
| baseline | 0.75, 1.05 | 80.9 | 92.9 | 71.6 | 76.3 | 25 |
| SQE(ours) | 0.75, 1.10 | 82.3 | 94.4 | 72.9 | 76.6 | 21 |
| 05 | gt | 0.90, 0.85 | 73.6 | 82.5 | 66.5 | 61.9 | 34 |
| baseline | 0.75, 1.05 | 68.4 | 80.1 | 59.7 | 57.6 | 24 |
| SQE(ours) | 1.00, 0.95 | 72.2 | 81.1 | 65.1 | 62.6 | 25 |
| 09 | gt | 1.20, 0.70 | 76.0 | 88.8 | 66.4 | 73.5 | 8 |
| baseline | 0.75, 1.05 | 71.4 | 84.7 | 61.7 | 72.2 | 6 |
| SQE(ours) | 0.85, 0.90 | 73.0 | 87.1 | 62.8 | 71.2 | 10 |
| overall | gt | - | 76.4 | 90.3 | 66.2 | 69.7 | 145 |
| baseline | - | 74.0 | 88.5 | 63.5 | 68.4 | 116 |
| SQE(ours) | - | 75.5 | 88.8 | 65.6 | 69.5 | 138 |
+
+Table 3. Comparison of different REID and merging threshold selections based on ground truth, optimum of the remaining 3 videos and our SQE metric. Adjust two parameters at the same time.
+
+| dataset | method | IDF1* | IDP* | IDR* | IDS* |
| MOT16 test | baseline | 66.6 | 75.8 | 59.4 | 442 |
| ours | 68.3 | 83.4 | 57.8 | 456 |
| KITTI train** | baseline | 67.4 | 67.2 | 67.7 | 37 |
| ours | 68.5 | 67.9 | 69.1 | 44 |
+
+** we use the 5 videos with the most pedestrians in KITTI train set.
+
+Table 4. Practical testing on MOT16 test set and KITTI train set.
+
+IDTP, IDFP and IDFN, while our method simply records the number of low-quality trajectories. A more precise idea is to estimate IDTP and IDFP relying on the quantity information. Assume that for a trajectory where an identity switch occurs, target A appears $n_1$ frames while target B appears $n_2$ frames. The total length is $L$ and the number of distances in the class with larger values is $N$ . Then A and B satisfy the following conditions:
+
+$$
+\left\{ \begin{array}{l} n _ {1} + n _ {2} = L, \\ n _ {1} \times n _ {2} = N, \end{array} \right. \tag {10}
+$$
+
+which can be easily solved. We can make estimations by:
+
+$$
+\text {I D T P}, \text {I D F P} = \max (n _ {1}, n _ {2}), \min (n _ {1}, n _ {2}). \tag {11}
+$$
+
+Such processing for the intra distance distribution can accurately estimate the number of erroneous frames. Furthermore, the inter distance distribution can help refine the estimations. For example, if there is another trajectory that also tracks A, we only keep the longer one as IDTP according to the calculation rule of $\mathrm{IDF}_1$ . However, more detailed considerations are needed for global precise estimations. In addition, categorizing low-quality trajectories
+
+and estimating erroneous frames may also be conducive to tracker's post-processing so as to improve tracking performance. Finally, the adjustable parameters $k_{1}$ and $k_{2}$ need to be defined more strictly. We plan to investigate these downsides in the future.
+
+# 5. Conclusion
+
+In this paper, we propose a self quality evaluation metric SQE to enable the parameters optimization in the test environment and realistic scenes where ground truth is unavailable. This new perspective can bypass the difficulty of designing an algorithm that perform well in various scenes. We demonstrate that trajectories with different qualities exhibit different single or multiple peaks in feature distance distribution, inspiring us to use a two-class Gaussian mixture model to estimate identification errors. Experiments mainly on the MOT16 Challenge data sets demonstrate the effectiveness of our method in both correlating with existing metrics and enabling parameters self-optimization to achieve better tracking performance. In the end, the drawbacks and prospects for future work are summed up. We believe that our work is instructive for further MOT research.
+
+# 6. Acknowledgement
+
+This research was supported by National Key R&D Program of China (No. 2017YFA0700800).
+
+# References
+
+[1] Anton Andriyenko, Konrad Schindler, and Stefan Roth. Discrete-continuous optimization for multi-target tracking. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 1926–1933. IEEE, 2012.
+
+[2] Jerome Berclaz, Francois Fleuret, Engin Turetken, and Pascal Fua. Multiple object tracking using k-shortest paths optimization. IEEE transactions on pattern analysis and machine intelligence, 33(9):1806-1819, 2011.
+[3] Keni Bernstein and Rainer Stiefelhagen. Evaluating multiple object tracking performance: the clear mot metrics. Journal on Image and Video Processing, 2008:1, 2008.
+[4] Alex Bewley, Zongyuan Ge, Lionel Ott, Fabio Ramos, and Ben Upcroft. Simple online and realtime tracking. In 2016 IEEE International Conference on Image Processing (ICIP), pages 3464-3468. IEEE, 2016.
+[5] Michael D Breitenstein, Fabian Reichlin, Bastian Leibe, Esther Koller-Meier, and Luc Van Gool. Online multiperson tracking-by-detection from a single, uncalibrated camera. IEEE transactions on pattern analysis and machine intelligence, 33(9):1820-1833, 2010.
+[6] Weitao Feng, Zhihao Hu, Wei Wu, Junjie Yan, and Wanli Ouyang. Multi-object tracking with multiple cues and switcher-aware classification. arXiv preprint arXiv:1901.06129, 2019.
+[7] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2012.
+[8] Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97, 1955.
+[9] Philip Lenz, Andreas Geiger, and Raquel Urtasun. Followme: Efficient online min-cost flow tracking with bounded memory and computation. In Proceedings of the IEEE International Conference on Computer Vision, pages 4364-4372, 2015.
+[10] Yuan Li, Chang Huang, and Ram Nevatia. Learning to associate: Hybridboosted multi-target tracker for crowded scene. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 2953-2960. IEEE, 2009.
+[11] Anton Milan, Laura Leal-Taixe, Ian Reid, Stefan Roth, and Konrad Schindler. Mot16: A benchmark for multi-object tracking. arXiv preprint arXiv:1603.00831, 2016.
+[12] Anton Milan, S Hamid Rezatofighi, Anthony Dick, Ian Reid, and Konrad Schindler. Online multi-target tracking using recurrent neural networks. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
+[13] Anh-Tuan Nghiem, Francois Bremond, Monique Thonnat, and Valery Valentin. Etiseo, performance evaluation for video surveillance systems. In 2007 IEEE Conference on Advanced Video and Signal Based Surveillance, pages 476-481. IEEE, 2007.
+[14] Songhwai Oh, Stuart Russell, and Shankar Sastry. Markov chain monte carlo data association for general multiple-target tracking problems. In 2004 43rd IEEE Conference on Decision and Control (CDC)(IEEE Cat. No. 04CH37601), volume 1, pages 735-742. IEEE, 2004.
+[15] Hamed Pirsiavash, Deva Ramanan, and Charless C Fowlkes. Globally-optimal greedy algorithms for tracking a variable number of objects. In CVPR 2011, pages 1201-1208. IEEE, 2011.
+
+[16] Ergys Ristani, Francesco Solera, Roger Zou, Rita Cucchiara, and Carlo Tomasi. Performance measures and a data set for multi-target, multi-camera tracking. In European Conference on Computer Vision, pages 17-35. Springer, 2016.
+[17] Dominic Schuhmacher, Ba-Tuong Vo, and Ba-Ngu Vo. A consistent metric for performance evaluation of multi-object filters. IEEE transactions on signal processing, 56(8):3447-3457, 2008.
+[18] Samuel Schulter, Paul Vernaza, Wongun Choi, and Manmohan Chandraker. Deep network flow for multi-object tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6951-6960, 2017.
+[19] Yichun Shi and Anil K. Jain. Probabilistic face embeddings. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[20] Kevin Smith, Daniel Gatica-Perez, Jean-Marc Odobez, and Sileye Ba. Evaluating multi-object tracking. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05)-Workshops, pages 36-36. IEEE, 2005.
+[21] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and a strong convolutional baseline). In Proceedings of the European Conference on Computer Vision (ECCV), pages 480-496, 2018.
+[22] Siyu Tang, Mykhaylo Andriluka, Bjoern Andres, and Bernt Schiele. Multiple people tracking by lifted multicut and person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3539–3548, 2017.
+[23] Nicolai Wojke, Alex Bewley, and Dietrich Paulus. Simple online and realtime tracking with a deep association metric. In 2017 IEEE International Conference on Image Processing (ICIP), pages 3645-3649. IEEE, 2017.
+[24] Yu Xiang, Alexandre Alahi, and Silvio Savarese. Learning to track: Online multi-object tracking by decision making. In Proceedings of the IEEE international conference on computer vision, pages 4705-4713, 2015.
+[25] Young-Chul Yoon, Du Yong Kim, Kwangjin Yoon, Young-min Song, and Moongu Jeon. Online multiple pedestrian tracking using deep temporal appearance matching association. arXiv preprint arXiv:1907.00831, 2019.
+[26] Jimuyang Zhang, Sanping Zhou, Jinjun Wang, and Dong Huang. Frame-wise motion and appearance for real-time multiple object tracking. arXiv preprint arXiv:1905.02292, 2019.
+[27] Li Zhang, Yuan Li, and Ramakant Nevatia. Global data association for multi-object tracking using network flows. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008.
\ No newline at end of file
diff --git a/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/images.zip b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3154ff4708bae3ea063c2f1d1bbc046caaa95e7b
--- /dev/null
+++ b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a85e1dac51af12aebe4146c2b5d9a7607f9b680a00ff68b089e2aa7321acebb
+size 550841
diff --git a/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/layout.json b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b55620bfd4b6944b1374c32ea7aa349033891d3f
--- /dev/null
+++ b/sqeaselfqualityevaluationmetricforparametersoptimizationinmultiobjecttracking/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:74d9dcdde71a4286d45a5d9686f731e4bec3feef0e759317dc4fd85dbf1628b8
+size 394280
diff --git a/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_content_list.json b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8a263b46c990ccabda84771468e50a0d22ef901e
--- /dev/null
+++ b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f3f0cca7fceaf10b449a69617c386811817fe8fe49fddf92884337e2b411a441
+size 73823
diff --git a/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_model.json b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..80129b4ef15e12def86b212db90d2fbdce0079c3
--- /dev/null
+++ b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:290e2c99f21c7d64acaf38489ee36d5bd13d930032e01d892aeb20324ed5ee4c
+size 91476
diff --git a/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_origin.pdf b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c7592d33da01e932347b4165d09a6212fe2c3c4d
--- /dev/null
+++ b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/541e2688-063d-4511-aba6-242e142c322f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ce85576d70e443919b6c8c4903e6592f19032c4e8f4ac6641d3216539478d691
+size 2515770
diff --git a/squintingatvqamodelsintrospectingvqamodelswithsubquestions/full.md b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f4916a3bf5b76f83e2b8adb13e48c3b8b7184c65
--- /dev/null
+++ b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/full.md
@@ -0,0 +1,301 @@
+# SQuINTing at VQA Models: Becting VQA Models with Sub-Questions
+
+Ramprasaath R. Selvaraju $^{1*}$ Purva Tendulkar $^{1}$ Devi Parikh $^{1}$ Eric Horvitz $^{2}$ Marco Tulio Ribeiro $^{2}$ Besmira Nushi $^{2}$ Ece Kamar $^{2}$ ${}^{1}$ Georgia Institute of Technology, ${}^{2}$ Microsoft Research {ramprs, purva, parikh}@gatech.edu {horvitz, marcotcr, benushi, eckamar}@microsoft.com
+
+# Abstract
+
+Existing VQA datasets contain questions with varying levels of complexity. While the majority of questions in these datasets require perception for recognizing existence, properties, and spatial relationships of entities, a significant portion of questions pose challenges that correspond to reasoning tasks – tasks that can only be answered through a synthesis of perception and knowledge about the world, logic and/or reasoning. Analyzing performance across this distinction allows us to notice when existing VQA models have consistency issues – they answer the reasoning questions correctly but fail on associated low-level perception questions. For example, in Figure 1, models answer the complex reasoning question “Is the banana ripe enough to eat?” correctly, but fail on the associated perception question “Are the bananas mostly green or yellow?” indicating that the model likely answered the reasoning question correctly but for the wrong reason. We quantify the extent to which this phenomenon occurs by creating a new Reasoning split of the VQA dataset and collecting VQA introspect, a new dataset1 which currently consists of 200K new perception questions which serve as sub questions corresponding to the set of perceptual tasks needed to effectively answer the complex reasoning questions in the Reasoning split. Our evaluation shows that state-of-the-art VQA models have comparable performance in answering perception and reasoning questions, but suffer from consistency problems. To address this shortcoming, we propose an approach called Sub-Question Importance-aware Network Tuning (SQuINT), which encourages the model to attend to the same parts of the image when answering the reasoning question and the perception sub question. We show that SQuINT improves model consistency by $\sim 7\%$ , also marginally improving performance on the Reasoning questions in VQA, while also displaying better attention maps.
+
+
+Figure 1: A potential reasoning failure: Current models answer the Reasoning question "Is the banana ripe enough to eat?" correctly with the answer "Yes". We might assume that doing so stems from perceiving relevant concepts correctly - perceiving yellow bananas in this example. But when asked "Are the bananas mostly green or yellow?", the model answers the question incorrectly with "Green" - indicating that the model possibly answered the original Reasoning question for the wrong reasons even if the answer was right. We quantify the extent to which this phenomenon occurs in VQA and introduce a new dataset aimed at stimulating research on well grounded reasoning.
+
+# 1. Introduction
+
+Human cognition is thought to be compositional in nature: the visual system recognizes multiple aspects of a scene which are combined into shapes [7] and understandings. Likewise, complex linguistic expressions are built from simpler ones [5]. Similarly, tasks like Visual Question Answering (VQA) require models to perform inference at multiple levels of abstraction. For example, to answer the question "Is the banana ripe enough to eat?" (Figure 1), a VQA model has to be able to detect the bananas and extract associated properties such as size and color (perception), understand what the question is asking, and reason about how these properties relate to known properties of edible bananas (ripeness) and how they manifest (yellow versus green in color). While "abstraction" is complex and spans distinctions at multiple levels of detail, we focus on separating questions into Perception and Reasoning questions. Perception questions only require visual perception to recognize existence, physical properties or spatial relationships among entities, such as "What color is the banana?" or
+
+"What is to the left of the man?", while Reasoning questions require the composition of multiple perceptual tasks and knowledge that harnesses logic and prior knowledge about the world, such as "Is the banana ripe enough to eat?".
+
+Current VQA datasets [3, 6, 15] contain a mixture of Perception and Reasoning questions, which are considered equivalent for the purposes of evaluation and learning. Categorizing questions into Perception and Reasoning promises to promote a better assessment of visual perception and higher-level reasoning capabilities of models, rather than conflating these capabilities. Furthermore, we believe it is useful to identify the Perception questions that serve as subtasks in the compositional processes required to answer the Reasoning question. By elucidating such "subquestions," we can check whether the model is reasoning appropriately or if it is relying on spurious shortcuts and biases in datasets [1]. For example, we should be cautious about the model's inferential ability if it simultaneously answers "no" to "Are the bananas edible?" and "yellow" to "What color are the bananas?", even if the answer to the former question is correct. The inconsistency between the higher-level reasoning task and the lower-level perception task that it builds on suggests that the system has not effectively learned how to answer the Reasoning question and will not be able to generalize to same or closely related Reasoning question with another image. The fact that these sub-questions are in the same modality (i.e. questions with associated answers) allows for the evaluation of any VQA model, rather than only models that are trained to provide justifications, and it is this key observation that we use to develop an evaluation methodology for Reasoning questions.
+
+The dominant learning paradigm for teaching models to answer VQA tasks assumes that models are given triplets, with no additional annotation on the relationship between the question and the compositional steps required to arrive at the answer. As reasoning questions become more complex, achieving good coverage and generalization with methods used to date will likely require a prohibitive amount of data. Alternatively, we employ a hierarchical decomposition strategy, where we identify and link Reasoning questions with sets of appropriate Perception sub-questions. Such an approach promises to enable new efficiencies via compositional modeling, as well as lead to improvements in the consistency of models for answering Reasoning questions. Explicitly representing dependencies between Reasoning tasks and the corresponding Perception tasks also provides language-based grounding for reasoning questions where visual grounding [14, 18] may be insufficient, e.g., highlighting that the banana is important for the question in Figure 1 does not tell the model how it is important (i.e. that color is an important property rather than size or shape). Again, the fact that such grounding is in question-answer form (which models already have to deal with) is an added benefit. Such annotations allow
+
+for attempts to enforce reasoning devoid of shortcuts that do not generalize, or are not in line with human values and business rules, even if accurate (e.g. racist behavior).
+
+We propose a new split of the VQA dataset, containing only Reasoning questions (defined previously). Furthermore, for questions in the split, we introduce VQA-introspect, a new dataset of 132k associated Perception sub-questions which humans perceive as containing the sub-questions needed to answer the original questions. After validating the quality of the new dataset, we use it to perform fine-grained evaluation of state-of-the-art models, checking whether their reasoning is in line with their perception. We show that state-of-the-art VQA models have similar accuracy in answering perception and reasoning tasks but have problems with consistency; in $28.14\%$ of the cases where models answer the reasoning question correctly, they fail to answer the corresponding perception sub-question, highlighting problems with consistency and the risk that models may be learning to answer reasoning questions through learning common answers and biases.
+
+Finally, we introduce SQuINT - a generic modeling approach that is inspired by the compositional learning paradigm observed in humans. SQuINT incorporates VQA-introspect annotations into learning with a new loss function that encourages image regions important for the subquestions to play a role in answering the main Reasoning questions. Empirical evaluations demonstrate that the approach results in models that are more consistent across Reasoning and associated Perception tasks with no loss of accuracy. We also find that SQuINT improves model attention maps for Reasoning questions, thus making models more trustworthy.
+
+# 2. Related Work
+
+Visual Question Answering [3], one of the most widely studied vision-and-language problems, requires associating image content with natural language questions and answers (thus combining perception, language understanding, background knowledge and reasoning). However, it is possible for models to do well on the task by exploiting language and dataset biases, e.g. answering "yellow" to "What color is the banana?" without regard for the image or by answering "yes" to most yes-no questions [1, 12, 18, 21, 2]. This motivates additional forms of evaluation, e.g. checking if the model can understand question rephrasings [20] or whether it exhibits logical consistency [16]. In this work, we present a novel evaluation of questions that require reasoning capabilities, where we check for consistency between how models answer higher level Reasoning questions and how they answer corresponding Perception sub-questions.
+
+A variety of datasets have been released with attention annotations on the image pointing to regions that are important to answer questions ([4, 10]), with corresponding work
+
+on enforcing such grounding [17, 14, 18]. Our work is complementary to these approaches, as we provide language-based grounding (rather than visual), and further evaluate the link between perception capabilities and how they are composed by models for answering Reasoning tasks. Closer to our work is the dataset of Lisa et al. [10], where natural language justifications are associated with (question, answer) pairs. However, most of the questions contemplated (like much of the VQA dataset) pertain to perception questions (e.g. for the question-answer "What is the person doing? Snowboarding", the justification is "...they are on a snowboard ..."). Furthermore, it is hard to use natural language justifications to evaluate models that do not generate similar rationales (i.e. most SOTA models), or even coming up with metrics for models that do. In contrast, our dataset and evaluation is in the same modality (QA) that models are already trained to handle.
+
+# 3. Reasoning-VQA and VQA-introspect
+
+In the first part of this section, we present an analysis of the common type of questions in the VQA dataset and highlight the need for classifying them into Perception and Reasoning questions. We then define Perception and Reasoning questions and describe our method for constructing the Reasoning split. In the second part, we describe how we create the new VQA-introspect dataset through collecting sub-questions and answers for questions in our Reasoning split. Finally, we describe experiments conducted in order to validate the quality of our collected data.
+
+# 3.1. Perception vs. Reasoning
+
+A common technique for finer grained evaluation of VQA models is grouping instances by answer type (yes/no, number, other) or by the first words of the question (what color, how many, etc) [3]. While useful, such slices are coarse and do not evaluate the model's capabilities at different points in the abstraction scale. For example, questions like "Is this a banana?" and "Is this a healthy food?" start with the same words and expect yes/no answers. While both test if the model can do object recognition, the latter requires additional capabilities in connecting recognition with prior knowledge about which food items are healthy and which are not. This is not to say that Reasoning questions are inherently harder, but that they require both visual understanding and an additional set of skills (logic, prior knowledge, etc) while Perception questions deal mostly with visual understanding. For example, the question "How many round yellow objects are to the right of the smallest square object in the image?" requires very complicated visual understanding, and is arguably harder than "Is the banana ripe enough to eat?", which requires relatively simple visual understanding (color of the bananas) and knowledge about properties of ripe bananas. Regardless of difficulty,
+
+categorizing questions as Perception or Reasoning is useful for both detailed model evaluation based on capabilities and also improving learning, as we demonstrate in later sections. We now proceed to define these categories more formally.
+
+Perception: We define Perception questions as those which can be answered by detecting and recognizing the existence, physical properties and / or spatial relationships between entities, recognizing text / symbols, simple activities and / or counting, and that do not require more than one hop of reasoning or general commonsense knowledge beyond what is visually present in the image. Some examples are: "Is that a cat?" (existence), "Is the ball shiny?" (physical property), "What is next to the table?" (spatial relationship), "What does the sign say?" (text / symbol recognition), "Are the people looking at the camera?" (simple activity), etc. We note that spatial relationship questions have been considered reasoning tasks in previous work [9] as they require lower-level perception tasks in composition to be answered. For our purposes it is useful to separate visual understanding from other types of reasoning and knowledge, and thus we classify such spatial relationships as Perception.
+
+Reasoning : We define Reasoning questions as nonPerception questions which require the synthesis of perception with prior knowledge and / or reasoning in order to be answered. For instance, "Is this room finished or being built?", "At what time of the day would this meal be served?", "Does this water look fresh enough to drink?", "Is this a home or a hotel?", "Are the giraffes in their natural habitat?" are all Reasoning questions.
+
+Our analysis of the perception questions in the VQA dataset revealed that most perception questions have distinct patterns that can be identified with high precision regex-based rules. By hand-crafting such rules (details can be found in [19]) and filtering out perception questions, we identify $18\%$ of the VQA dataset as highly likely to be Reasoning. To check the accuracy of our rules and validate their coverage of Reasoning questions, we designed a crowdsourcing task on Mechanical Turk that instructed workers to identify a given VQA question as Perception or Reasoning, and to subsequently provide sub-questions for the Reasoning questions, as described next. $94.7\%$ of the times, trained workers classified our resulting questions as reasoning questions demonstrating the high precision of the regex-based rules we created.
+
+# 3.2. VQA-introspect data
+
+Given the complexity of distinguishing between Perception / Reasoning and providing sub-questions for Reasoning questions, we first train and filter workers on Amazon Mechanical Turk (AMT) via qualification rounds before we rely on them to generate high-quality sub-questions.
+
+Worker Training - We manually annotate 100 questions
+
+from the VQA dataset as Perception and 100 as Reasoning questions, to serve as examples. We first teach workers the difference between Perception and Reasoning questions by presenting definitions and showing several examples of each, along with explanations. Then, workers are shown (question, answer) pairs and are asked to identify if the given question is a Perception question or a Reasoning question. Finally, for Reasoning questions, we ask workers to add all Perception questions and corresponding answers (in short) that would be necessary to answer the main question (details and interface can be found in [19]). In this qualification HIT, workers have to make 6 Perception and Reasoning judgments, and they qualify if they get 5 or more answers right.
+
+We launched further pilot experiments for the workers who passed the first qualification round, where we manually evaluated the quality of their sub-questions based on whether they were Perception questions grounded in the image and sufficient to answer the main question. Among those 463 workers who passed the first qualification test, 91 were selected (via manual evaluation) as high-quality workers, which finally qualified for attempting our main task.
+
+Main task - In the main data collection, all VQA questions identified as Reasoning by regex-rules and a random subset of the questions identified as Perception were further judged by workers (for validation purposes). We eliminated ambiguous questions by further filtering out questions where there is high worker disagreement about the answer. We required at least 8 out of 10 workers to agree with the majority answer for yes/no questions and 5 out of 10 for all other questions. This labeling step left us with a Reasoning split that corresponds to $\sim 13\%$ of the VQA dataset.
+
+At the next step, each $<$ question, image $>$ pair labeled as Reasoning had sub questions generated by 3 unique workers. Removing duplicate question, answer pairs left on average 2.60 sub-questions per Reasoning question. Qualitative examples from the resulting dataset are presented in Fig. 2.
+
+The resulting VQA-introspect v0.7 train, which contains sub questions for VQAv1 train, has 27441 Reasoning questions and the corresponding 79905 sub questions. The VQA-introspect val has 15448 Reasoning questions (from whole VQAv2 val) and 52573 corresponding sub questions. This Reasoning split is not exhaustive, but is high precision (as demonstrated below) and contains questions that are not ambiguous, and thus is useful for evaluation and learning.
+
+# 3.3. Dataset Quality Validation
+
+In order to confirm that the sub-questions in VQA-introspect are really Perception questions, we did a further
+
+round of evaluation with workers who passed the worker qualification task described in Section 3.2 but had not provided sub-questions for our main task. In this round, $87.8\%$ of sub-questions in VQA-introspect were judged to be Perception questions by at least 2 out of 3 workers.
+
+It is crucial for the semantics of VQA-introspect that the sub-questions are tied to the original Reasoning question. While verifying that the sub-questions are necessary to answer the original question requires workers to think of all possible ways the original question could be answered (and is thus too hard), we devised an experiment to check if the sub-questions provide at least sufficient visual understanding to answer the Reasoning question. In this experiment, workers are shown the sub-questions with answers, and then asked to answer the Reasoning question without seeing the image, thus having to rely only on the visual knowledge conveyed by the sub-questions. At least 2 out of 3 workers were able to answer $89.3\%$ of the Reasoning questions correctly in this regime ( $95.4\%$ of binary Reasoning questions). For comparison, when we asked workers to answer Reasoning questions with no visual knowledge at all (no image and no sub-questions), this accuracy was $52\%$ ( $58\%$ for binary questions). These experiments give us confidence that the sub-questions in VQA-introspect are indeed Perception questions that convey components of visual knowledge which can be composed to answer the original Reasoning questions.
+
+# 4. Dataset Analysis
+
+The distribution of questions in our VQA-introspect dataset is shown in Figure 3. It is interesting to note that comparing these plots with those for the VQA dataset [3] show that the VQA-introspect dataset questions are more specific. For example, there are 0 "why" questions in the dataset which tend to be reasoning questions. Also, for "where" questions, a very common answer in VQA was "outside" but answers are more specific in our VQA-introspect dataset (e.g., "beach", "street"). Figure 4 shows the distribution of question lengths in the Perception and Reasoning splits of VQA and in our VQA-introspect dataset. We see that most questions range from 4 to 10 words. Lengths of questions in the Perception and Reasoning splits are quite similar, although questions in VQA-introspect are slightly longer (the curve is slightly shifted to the right), possibly on account of the increase in specificity/detail of the questions.
+
+One interesting question is whether the main question and the sub-questions deal with the same concepts. In order to explore this, we used noun chunks surrogates for concepts $^{4}$ , and measured how often there was any overlap in concepts between the main question and the associated sub
+
+
+Main Reasoning Question: Is this a keepsake photo? "Yes"
+
+# Perception Sub-questions:
+
+- Is this a black and white photo? "Yes"
+Is the woman wearing a white veil and holding flowers? "Yes"
+Is the woman wearing a veil? "Yes"
+What is the woman next to the man wearing? "Gown"
+
+
+(a)
+
+# Main Reasoning Question:
+
+Does this appear to be an emergency? "Yes"
+
+# Perception Sub-questions:
+
+Are there a lot of ambulances? "Yes"
+- Are people standing in the middle of the street?
+ "Yes"
+Is there a firetruck? "Yes"
+Does the white vehicle say "ambulance"? "Yes"
+Does the red truck say "fire department"? "Yes"
+
+
+(c)
+
+# Main Reasoning Question:
+
+Is this a good idea for a rainy day? "No"
+
+# Perception Sub-questions:
+
+Is there a roof on the bus? "No"
+- Does the vehicle have a roof? "No"
+
+
+(e)
+Figure 2: Qualitative examples of Perception sub-questions in our VQA-introspect dataset for main questions in the Reasoning split of VQA. Main questions are in orange and sub questions are in blue. A single worker may have provided more than one sub questions for the same (image, main question) pair.
+
+# Main Reasoning Question:
+
+Is it evening? "Yes
+
+# Perception Sub-questions:
+
+- Are the lights on the train lit up? "Yes"
+Is there a lot of sunlight in the sky? "No"
+
+
+(b)
+
+# Main Reasoning Question:
+
+Is this giraffe at the zoo? "Yes"
+
+# Perception Sub-questions:
+
+Is the giraffe fenced in? "Yes"
+Is the grass shorter than 3 inches? "Yes"
+Is there a fence? "Yes"
+Is a fence around the giraffe? "Yes"
+
+
+(d)
+
+# Main Reasoning Question:
+
+Could this cause cavities? "Yes"
+
+# Perception Sub-questions:
+
+What food is on the plate? "Dessert"
+Is the boy eating whipped cream? "Yes"
+Is his mouth wide open? "Yes"
+
+
+
+# Main Reasoning Question:
+
+Is the banana ripe enough to eat? "Yes"
+
+# Perception Sub-questions:
+
+- Are these bananas yellow with brown spots on them? "Yes"
+Is the banana yellow? "Yes"
+What color is the banana? "Yellow"
+Is the body of the banana green? "No"
+
+
+(f)
+(h)
+
+# Main Reasoning Question:
+
+How is this train powered? "Electricity"
+
+# Perception Sub-questions:
+
+Are there electric lines? "Yes"
+Is the train attached to a cable? "Yes"
+- Are there wires above the tracks? "Yes"
+
+
+(g)
+
+
+Figure 3: Left: Distribution of questions by their first four words. The arc length is proportional to the number of questions containing the word. White areas are words with contributions too small to show, Right: Distribution of answers per question type
+
+question. Noun-chunks are only a surrogate and may miss semantic overlap otherwise present (e.g. through verb-noun connections like “fenced” and “a fence” in Figure 2 (b), sub-questions). With this caveat, we observe that there is overlap only $19.19\%$ of the time, indicating that Reasoning questions in our split often require knowledge about concepts not explicitly mentioned in the corresponding Perception questions. The lack of overlap indicates that models cannot solely rely on visual perception in answering Rea
+
+soning tasks, but incorporating background knowledge and common sense understanding is necessary. For example, in the question "Is the airplane taking off or landing?", the concepts present are 'airplane' and 'landing', while for the associated sub-question "Are the wheels out?", the concept is 'wheels'. Though 'wheels' do not occur in the main question, the concept is important, in that providing this grounding might help the model explicitly associate the connection between airplane wheels and take-offs / landings.
+
+
+Figure 4: Percentage of questions with different word lengths for the train and val sub-questions of our Sub-VQA dataset.
+
+# 5. Fine grained evaluation of VQA Reasoning
+
+VQA-introspect enables a more detailed evaluation of the performance of current state-of-the-art models on Reasoning questions by checking whether correctness on these questions is consistent with correctness on the associated Perception sub-questions. It is important to notice that a Perception failure (an incorrect answer to a sub-question) may be due to a problem in the vision part of the model or a grounding problem – the model in Figure 5 may know that the banana is mostly yellow and use that information to answer the ripeness question, while, at the same time, fail to associate this knowledge with the word "yellow", or fail to understand what the sub-question is asking. While grounding problems are not strictly visual perception failures, we still consider them Perception failures because the goal of VQA is to answer natural language questions about an image, and the sub-question being considered pertain to Perception knowledge as defined previously. With this caveat, there are four possible outcomes when evaluating Reasoning questions with associated Perception sub-questions, which we divide into four quadrants:
+
+# Q1: Both main & sub-questions correct (M√ S√):
+
+While we cannot claim that the model predicts the main question correctly because of the sub-questions (e.g. the bananas are ripe because they are mostly yellow), the fact that it answers both correctly is consistent with good reasoning, and should give us more confidence in the original prediction.
+
+# Q2: Main correct & sub-question incorrect (M√ SX):
+
+The Perception failure indicates that there might be a reasoning failure. While it is possible that the model is composing other perception knowledge that was not captured by the identified sub-questions (e.g. the bananas are ripe because they have black spots on them), it is also possible (and more likely) that the model is using a spurious shortcut or was correct by random chance.
+
+# Q3: Main incorrect & sub-question correct (M×S✓):
+
+The Perception failure here indicates a clear reasoning
+
+failure, as we validated that the sub-questions are sufficient to answer the main question. In this case, the model knows that the bananas are mostly yellow and still thinks they are not ripe enough, and thus it failed to make the "yellow bananas are ripe" connection.
+
+# Q4: Both main & sub-question incorrect (M× SX):
+
+While the model may not have the reasoning capabilities to answer questions in this quadrant, the Perception failure could explain the incorrect prediction.
+
+In sum, Q2 and Q4 are definitely Perception failures, Q2 likely contains Reasoning failures, Q3 contains Reasoning failures, and we cannot judge Reasoning in Q4.
+
+As an example, we evaluate the Pythia model [11] (SOTA as of 2018) $^5$ along these quadrants (Table 1) for the Reasoning split of VQA. The overall accuracy of the model is $60.26\%$ , while accuracy on Reasoning questions is $65.99\%$ . We note that for $28.14\%$ of the cases, the model is inconsistent, i.e., it answered the main question correctly, but got the sub question wrong. Further, we observe that $14.92\%$ of the times the Pythia model gets all the sub questions wrong when the main question is right - i.e., it seems to be severely wrong on its perception and using other paths (shortcuts or biases) to get the Reasoning question right.
+
+# 6. Improving learned models with VQA-introspect
+
+In this section, we consider how VQA-introspect can be used to improve models that were trained on VQA datasets. Our goal is to reduce the number of possible reasoning or perception failures (M×S× and M×S×) without hurting the original accuracy of the model.
+
+# 6.1. Finetuning
+
+The simplest way to incorporate VQA-introspect into a learned model is to finetune the model on it. However, a few precautions are necessary: we make sure that sub-questions always appear on the same batch as the original question, and use the averaged binary cross entropy loss for the main question and the sub question as a loss function. Furthermore, to avoid catastrophic forgetting [13] of the original VQA data during finetuning, we augment every batch with randomly sampled data from the original VQA dataset. In our empirical evaluations, we compare this approach with finetuning on the same amount of randomly sampled Perception questions from VQAv2.
+
+# 6.2. Sub-Question Importance-aware Network Tuning (SQuINT)
+
+The intuition behind Sub-Question Importance-aware Network Tuning (SQuINT) is that a model should attend to the same regions in the image when answering the Reasoning questions as it attends to when answering the as
+
+
+Figure 5: Our Sub-Question Importance-aware Network Tuning (SQuINT) approach: Given an image, a Reasoning question like "What season is it?" and an associated Perception sub-question like "Is there a Christmas tree pictured on a cell phone?", we pass them through the Pythia architecture [11]. The loss function customised for SQuINT is composed of three components: an attention loss that penalizes for the mismatch between attention for the main-question and the attention for the sub-question based on an image embedding conditioned on sub-question and image features, a cross entropy loss for answer of the main-question and a cross entropy loss for the answer of the sub-question. The loss function encourages the model to get the answers of both the main-question and sub-question right simultaneously, while also encouraging the model to use the right attention regions for the reasoning task.
+
+sociated Perception sub-questions, since they capture the visual components required to answer the main question. SQuINT does this by learning how to attend to sub-question regions of interest and reasoning over them to answer the main question. We now describe how to construct a loss function that captures this intuition.
+
+Attention loss - As described in Section 3, the sub-questions in our dataset are simple perception questions asking about well-grounded objects/entities in the image. Current well-performing models based on attention are generally good at visually grounding regions in the image when asked about simple Perception questions, given that they are trained on VQA datasets which contain large amounts of Perception questions. In order to make the model look at the associated sub-question regions while answering the main question, we apply a Mean Squared Error (MSE) loss over the spatial and bounding box attention weights.
+
+Cross Entropy loss - While the attention loss encourages the model to look at the right regions given a complex Reasoning question, we need a loss that helps the model learn to reason given the right regions. Hence we apply the regular Binary Cross Entropy loss on top of the answer predicted for the Reasoning question given the sub-question attention. In addition we also use the Binary Cross Entropy loss between the predicted and GT answer for the sub-question.
+
+Total SQuINT loss - We jointly train with the attention and cross entropy losses. Let $A_{reas}$ and $A_{sub}$ be the model attention for the main reasoning question and the associated sub-question, and $gt_{reas}$ and $gt_{sub}$ be the ground-truth answers for the main and sub-question respectively. Let $o_{reas}|A_{sub}$ be the predicted answer for the reasoning question given the attention for the sub-question. The SQuINT loss is formally defined as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathbf {S Q u I N T}} = \operatorname {M S E} \left(A _ {r e a s}, A _ {s u b}\right) \\ + \mathrm {B C E} (o _ {\text {r e a s}} | A _ {\text {s u b}}, g t _ {\text {r e a s}}) + \mathrm {B C E} (o _ {\text {s u b}}, g t _ {\text {s u b}}) \\ \end{array}
+$$
+
+The first term encourages the network to look at the same regions for reasoning and associated perception questions, while the second and third terms encourage it to give the right answers to the questions given the attention regions. The loss is simple and can be applied as a modification to any model that uses attention.
+
+# 7. Experiments
+
+In this section, we perform fine grained evaluation of VQA reasoning as detailed in Section 5, using the SOTA model Pythia [11] as a base model (although any model that uses visual attention would suffice). We trained the base model on VQAv1, and evaluated the baseline and all variants on the Reasoning split and corresponding VQA-introspect sub-questions of VQAv2. As detailed in Section 6, Pythia + VQA-introspect data corresponds to finetuning the base model on train VQA-introspect v0.7 sub-questions of VQAv1, while Pythia + VQA-introspect + SQuINT finetunes Pythia + VQA-introspect such that it now attends to the same regions for main questions and associated sub-questions (again, of VQA-introspect v0.7). For direct comparisons with Pythia + VQA-introspect + SQuINT, during Pythia + VQA-introspect finetuning, we added both the main question and sub-question in the same batch. In Table 1, we report the reasoning breakdown detailed in Section 5. We also report a few additional metrics: Consistency refers to how often the model predicts the sub-question correctly given that it answered the main question correctly, while Consistency (balanced) reports the same metric on a balanced version of the sub-questions (to make sure models are not exploiting biases to gain consistency). Attention Correlation refers to the correlation between the attention embeddings of the main and sub-question. Finally, we report Overall accuracy (on the whole evaluation dataset), and accuracy on the Reasoning split (Reasoning Accuracy). Note that our approach does not require sub-questions at test time.
+
+| Method | M/S↑ | M/S↓ | M/S↑ | M/S↓ | Consistency Metric | Consistency% ↑ | Consistency% (balanced) ↑ | Attn Corr ↑ | Overall ↑ | VQA Accuracy Reasoning (M/S↑ + M/S↑) ↑ |
| M/S↓ | M/S↓ |
| Pythia | 47.42 | 18.57 | 20.70 | 13.31 | 71.86 | 69.57 | 0.71 | 60.26 | 65.99 | | |
| Pythia + VQA-introspect data | 52.54 | 13.55 | 22.50 | 11.41 | 79.50 | 75.44 | 0.71 | 60.20 | 66.09 | | |
| Pythia + VQA-introspect + SQuINT | 52.56 | 13.84 | 22.38 | 11.22 | 79.25 | 75.26 | 0.74 | 60.33 | 66.41 | | |
+
+Table 1: Results on held out VQAv2 validation set for (1) Consistency metrics along the four quadrants described in Section 5 and Consistency and Attention Correlation metrics as described in Section 5 (metrics), and (2) Overall and Reasoning accuracy. The Reasoning accuracy is obtained by only looking at the number of times the main question is correct (M✓ S✓ + M✓ SX).
+
+
+Figure 6: Qualitative examples showing the model attention before and after applying SQuINT. (a) shows an image along with the reasoning question, 'Did the giraffe escape from the zoo?', for which the Pythia model looks at somewhat irrelevant regions and answers "Yes" incorrectly. Note how the same model correctly looks at the fence to answer the easier sub-question, 'Is the giraffe fenced in?' After applying SQuINT, which encourages the model to use the perception based sub question attention while answering the reasoning question, it now looks at the fence and correctly answers the main reasoning question.
+
+The results in Table 1 indicate that fine-tuning on VQA-introspect (using data augmentation or SQuINT), increases consistency without hurting accuracy or Reasoning accuracy. Correspondingly, our confidence that it actually learned the necessary concepts when it answered Reasoning questions correctly should increase.
+
+The Attention Correlation numbers indicate that SQuINT really is helping the model use the appropriate visual grounding (same for main-question as sub-questions) at test time, even though the model was trained on VQAv1 and evaluated on VQAv2. This effect does not seem to happen with naive finetuning on VQA-introspect. We present qualitative validation examples in Figure 6, where the base model attends to irrelevant regions when answering the main question (even though it answers correctly), while attending to relevant regions when asked the sub-question. The model finetuned on SQuINT, on the other hand, attends to regions that are actually informative in both main and sub-questions (notice that this is evaluation, and thus the model is not aware of the sub-question when answering the main question and vice versa). This is further indication that SQuINT is helping the model reason in ways that will generalize when it answers Reasoning questions correctly, rather than use shortcuts.
+
+# 8. Discussion and Future Work
+
+The VQA task requires multiple capabilities in different modalities and at different levels of abstraction. We intro-
+
+duced a hard distinction between Perception and Reasoning which we acknowledge to be a simplification of a continuous and complex reality, albeit a useful one. In particular, linking the perception components that are needed (in addition to other forms of reasoning) to answer reasoning questions opens up an array of possibilities for future work, in addition to improving evaluation of current work. We proposed preliminary approaches that seem promising: finetuning on VQA-introspect and SQuINT both improve the consistency of the SOTA model with no discernible loss in accuracy, and SQuINT results in qualitatively better attention maps. We expect future work to use VQA-introspect even more explicitly in the modeling approach, similar to current work in explicitly composing visual knowledge to improve visual reasoning [8]. In addition, similar efforts to ours could be employed at different points in the abstraction scale, e.g. further dividing complex Perception questions into simpler components, or further dividing the Reasoning part into different forms of background knowledge, logic, etc. We consider such efforts crucial in the quest to evaluate and train models that truly generalize, and hope VQA-introspect spurs more research in that direction.
+
+Acknowledgements. The Georgia Tech effort was supported in part by NSF, AFRL, DARPA, ONR YIPs, ARO PECASE, Amazon. 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 U.S. Government, or any sponsor.
+
+# 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 IEEE Conference on Computer Vision and Pattern Recognition, 2018.
+[2] Lisa Anne Hendricks, Kaylee Burns, Kate Saenko, Trevor Darrell, and Anna Rohrbach. Women also snowboard: Overcoming bias in captioning models. In ECCV, 2018.
+[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.
+[4] Abhishek Das, Harsh Agrawal, C. Lawrence Zitnick, Devi Parikh, and Dhruv Batra. Human Attention in Visual Question Answering: Do Humans and Deep Networks Look at the Same Regions? In EMNLP, 2016.
+[5] Jerry A Fodor and Zenon W Pylyshyn. Connectionism and cognitive architecture: A critical analysis. Cognition, 28(1-2):3-71, 1988.
+[6] 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 CVPR, 2017.
+[7] Donald D Hoffman and Whitman A Richards. Parts of recognition. Cognition, 18(1-3):65-96, 1984.
+[8] Drew A Hudson and Christopher D Manning. Compositional attention networks for machine reasoning. arXiv preprint arXiv:1803.03067, 2018.
+[9] Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6700-6709, 2019.
+[10] Dong Huk Park, Lisa Anne Hendricks, Zeynep Akata, Anna Rohrbach, Bernt Schiele, Trevor Darrell, and Marcus Rohrbach. Multimodal explanations: Justifying decisions and pointing to the evidence. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8779-8788, 2018.
+[11] Yu Jiang, Vivek Natarajan, Xinlei Chen, Marcus Rohrbach, Dhruv Batra, and Devi Parikh. Pythia v0. 1: the winning entry to the vqa challenge 2018. arXiv preprint arXiv:1807.09956, 2018.
+[12] Qing Li, Jianlong Fu, Dongfei Yu, Tao Mei, and Jiebo Luo. Tell-and-answer: Towards explainable visual question answering using attributes and captions. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1338-1346, Brussels, Belgium, Oct.-Nov. 2018. Association for Computational Linguistics.
+[13] 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. Elsevier, 1989.
+[14] Tingting Qiao, Jianfeng Dong, and Duanqing Xu. Exploring human-like attention supervision in visual question answering. In AAAI, 2018.
+
+[15] Mengye Ren, Ryan Kiros, and Richard Zemel. Exploring models and data for image question answering. In Advances in Neural Information Processing Systems, pages 2953-2961, 2015.
+[16] Marco Tulio Ribeiro, Carlos Guestrin, and Sameer Singh. Are red roses red? evaluating consistency of question-answering models. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 6174–6184, Florence, Italy, July 2019. Association for Computational Linguistics.
+[17] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, Dhruv Batra, et al. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, 2017.
+[18] Ramprasaath R. Selvaraju, Stefan Lee, Yilin Shen, Hongxia Jin, Shalini Ghosh, Larry Heck, Dhruv Batra, and Devi Parikh. Taking a hint: Leveraging explanations to make vision and language models more grounded. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[19] Ramprasaath R Selvaraju, Purva Tendulkar, Devi Parikh, Eric Horvitz, Marco Ribeiro, Besmira Nushi, and Ece Kamar. Squinting at vqa models: Interrogating vqa models with sub-questions. arXiv preprint arXiv:2001.06927, 2020.
+[20] Meet Shah, Xinlei Chen, Marcus Rohrbach, and Devi Parikh. Cycle-consistency for robust visual question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6649-6658, 2019.
+[21] Peng Zhang, Yash Goyal, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Yin and Yang: Balancing and answering binary visual questions. In CVPR, 2016.
\ No newline at end of file
diff --git a/squintingatvqamodelsintrospectingvqamodelswithsubquestions/images.zip b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d876d12075aefdfee9d35733548f2db75a063b61
--- /dev/null
+++ b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5bcf56450462470f47315bdf9313adcaef6d311e3bbb31df3cbe6d91231632be
+size 346145
diff --git a/squintingatvqamodelsintrospectingvqamodelswithsubquestions/layout.json b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..721d2afdca2e8a177db48f8d4166c2e5710bb4b1
--- /dev/null
+++ b/squintingatvqamodelsintrospectingvqamodelswithsubquestions/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:170906d47b32fe6c65d3773b516ad35fa800dd849393a3d0357de2a90d11ae00
+size 323217
diff --git a/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_content_list.json b/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7733478e2ef350047f50ab6f11f9c372a074d605
--- /dev/null
+++ b/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:356d9f0c383d762823169bff75e09a1817c122a4d52b7e4f9440497de42b8d85
+size 74772
diff --git a/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_model.json b/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c0e0d8b0c3ac0c45ea0acaab835b8fad9c3436bf
--- /dev/null
+++ b/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:62e5b47c4d92f8ddd1912b8de179fb0428cbefc9d570eae7aec2e644a7f39e76
+size 89464
diff --git a/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_origin.pdf b/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c0e8679a447e14f455799a5f99a1d9057ca6c5fb
--- /dev/null
+++ b/ssrnetscalable3dsurfacereconstructionnetwork/2860ba26-e53e-4a23-98ec-94789ff06b66_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d0cf743b9d5729863611a0822a1ffa26def3c26795621f4edba4f0696e83614
+size 3738343
diff --git a/ssrnetscalable3dsurfacereconstructionnetwork/full.md b/ssrnetscalable3dsurfacereconstructionnetwork/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c9b03ed120c64806a440340b0695914fa177f7de
--- /dev/null
+++ b/ssrnetscalable3dsurfacereconstructionnetwork/full.md
@@ -0,0 +1,271 @@
+# SSRNet: Scalable 3D Surface Reconstruction Network
+
+Zhenxing $\mathbf{M}\mathbf{i}^{\dagger}$
+
+Yiming Luo
+
+Wenbing Tao *
+
+National Key Laboratory of Science and Technology on Multi-spectral Information Processing School of Artificial Intelligence and Automation, Huazhong University of Science and Technology, China
+
+{m201772503, yimingluo, wenbingtao}@hust.edu.cn
+
+# Abstract
+
+Existing learning-based surface reconstruction methods from point clouds are still facing challenges in terms of scalability and preservation of details on large-scale point clouds. In this paper, we propose the SSRNet, a novel scalable learning-based method for surface reconstruction. The proposed SSRNet constructs local geometry-aware features for octree vertices and designs a scalable reconstruction pipeline, which not only greatly enhances the predication accuracy of the relative position between the vertices and the implicit surface facilitating the surface reconstruction quality, but also allows dividing the point cloud and octree vertices and processing different parts in parallel for superior scalability on large-scale point clouds with millions of points. Moreover, SSRNet demonstrates outstanding generalization capability and only needs several surface data for training, much less than other learning-based reconstruction methods, which can effectively avoid overfitting. The trained model of SSRNet on one dataset can be directly used on other datasets with superior performance. Finally, the time consumption with SSRNet on a large-scale point cloud is acceptable and competitive. To our knowledge, the proposed SSRNet is the first to really bring a convincing solution to the scalability issue of the learning-based surface reconstruction methods, and is an important step to make learning-based methods competitive with respect to geometry processing methods on real-world and challenging data. Experiments show that our method achieves a breakthrough in scalability and quality compared with state-of-the-art learning-based methods.
+
+# 1. Introduction
+
+Point cloud is an important and widely used representation for 3D data. Surface reconstruction from point clouds (SRPC) has been well studied in computer graphics. A lot
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 1. 2D example of surface reconstruction methods using implicit function. Yellow dots represent points in point cloud. Red dots represent vertices outside the implicit surface. Blue dots represent vertices inside the implicit surface. According to the implicit function value on vertices, the MC method finds the intersections (green $\times$ ) of the grid lines and the implicit surface and then connects these intersections to extract a surface (green line).
+
+
+(d)
+
+of geometric reconstruction methods have been proposed [7, 4, 30, 15, 13, 11, 14, 2]. A commonly used pipeline in geometric reconstruction methods first computes an implicit function on a 3D grid [7, 14]. Then the Marching Cubes (MC) [17] is applied to extract an isosurface from the 3D grid through implicit function values. The grid is usually an adaptive octree. The intersection of two grid lines in an octree is named as octree vertex. Specifically, the implicit function can be an indicator function that indicates whether the vertices are inside or outside the implicit surface. That is, a surface reconstruction problem can be seen as a binary classification problem for octree vertices (See Figure 1).
+
+In real-world reconstruction tasks, point clouds are mainly acquired by scanners or Multi-View Stereo (MVS) methods [26, 31] and are usually dense with more than millions of points and with complex topologies, which bring great challenges to surface reconstruction. With the development of deep learning, a variety of learning-based surface reconstruction methods have been proposed [8, 24, 16, 10, 19, 20]. However, there are still problems for them to reconstruct real-world point clouds for four reasons.
+
+1) The network architectures and output representations of these learning-based methods usually force the learning-based methods to consider all the points at once. Therefore, they can not allow dividing input data and processing dif
+
+
+Figure 2. Examples of reconstructed surfaces of ONet [19] and Ours on ShapeNet [5] and Stanford 3D [27] (Armadillo).
+
+ferent parts separately. When point clouds scale to millions of points, devices may not be able to handle large amounts of memory usage, which will make the model less scalable. For example, the Deep Marching Cubes [16] transforms the entire point cloud into voxel grids at once and directly outputs a irregular mesh, which is less scalable and only applicable to point clouds with thousands of points.
+
+2) Although some methods can be applied to large-scale point clouds, in reality they greatly downsample or aggregate the points into a relative small scale. For example, the Occupancy Networks (ONet) [19] and DeepSDF [20] encode the entire points into a fixed-size latent vector of 512 elements, which greatly limits the representative power. Consequently, they come at the expense of surface quality reconstructed from large-scale point clouds.
+
+3) Even on small-scale point clouds, the existing learning-based methods are good at reconstructing shapes with quite simple topology rather than those complex shapes. In fact, the result surfaces of simple shapes are usually over smoothed. The Figure 2 shows reconstruction examples of a state-of-the-art learning-based method (ONet) [19] and ours. For the simple shapes, ONet gets smooth surfaces. However, for the more complex topology shapes, it can not perfectly reconstruct the relevant details.
+
+4) Some learning-based methods need a large portion of the dataset for training. For example, ONet uses 4/5 of its dataset (about $40K$ 3D shapes) as training set. Thus the network is inevitably more prone to over fitting the dataset. What's more, it can not generalize well among different datasets, while SSRNet needs only several surface data for training and the trained model on one dataset can be directly used on the other datasets with superior performance.
+
+In this paper, we take the advantages of the commonly used implicit function method discussed above for surface reconstruction. Specifically, the implicit function values are 0-1 labels of octree vertices. They indicate whether the octree vertices are in front or at back of the implicit surface. The strategy simplifies the surface reconstruction to binary classification problem, which is simpler and more effective.
+
+The ONet [19] also trains its network in a binary classification manner. However, this strategy does not guarantee high quality results. There are three main limitations in dealing with large-scale data that need to be broken.
+
+1) The scalability of the network. A strong scalability of the classification network is important for tackling large-scale data. However, the commonly used PointNet [21] in reconstruction methods considers entire points at once and is thus less scalable. Our network does not need to input the entire data at once because the tangent convolution [28] operations involved in our network are all performed in a fixed-size local spatial region, and each $1 \times 1$ convolution operation is also independent. Moreover, these network operations are independent from the octree structures. Therefore, our network allows dividing the points and octree vertices through bounding boxes and processing different parts separately so that it wins strong scalability.
+
+2) The ability to reconstruct geometry details. In order to achieve a high classification accuracy for octree vertices, the ability to capture local geometry details is essential. Some methods like ONet[19] and DeepSDF [20] aggregate the features of the entire points into a fixed-size global latent vector (512 elements), which lose a lot of geometry details. This will inevitably lead to a decrease on reconstruction quality. In our network, we focus on learning local geometry information of the implicit surface. Since the implicit surfaces are determined by octree vertex labels, in order to make accurate classification for octree vertices, the most important task is to construct vertex features properly. The octree vertex features in our network are constructed from local neighbor points and take the advantage of local projection information, such as the signed projection distances between octree vertices and their neighbor points, which are commonly used in geometric methods such as the TSDF [7] method and MLS methods [15, 11]. They enable our method to capture local geometry details of large-scale point clouds and directly provide local geometry information for accurate front-back classification. Therefore, our network benefits from geometry-aware features to reconstruct accurate surfaces. Some other methods such as the ONet[19] and DeepSDF [20] construct the features of vertices by directly concatenating 3D coordinates of vertices with the global latent vector of the point cloud. This feature construction method cannot provide explicit information about relative position between vertices and the implicit surface. Therefore, they cannot capture local geometry details well to reconstruct quality surfaces.
+
+3) The generalization ability of the network. Paying too much attention to global feature rather than just considering local information would limit the generalization performance among different types of shapes. The octree vertex features in our network are local geometry-aware. They do not rely on global shape information excessively. There-
+
+fore, it has good generalization capability and does not need too much training data, which avoids overfitting on dataset.
+
+Overall, our contributions can be summarized as follows.
+
+- We design a scalable pipeline for reconstructing surface from real-world point clouds.
+- We construct local geometry-aware octree vertex feature, which leads to accurate classification for octree vertices and good generalization capability among different datasets.
+
+Experiments have shown that our method achieves a significant improvement in scalability and quality compared with state-of-the-art learning-based methods, and is competitive with respect to state-of-the-art geometric processing methods in terms of reconstruction quality and efficiency1.
+
+# 2. Related Work
+
+In this section, we first review some important geometric reconstruction methods to introduce basic concepts. Then we focus on existing learning-based surface reconstruction methods. We mainly analyze whether they are able to scale to large-scale datasets and to capture geometry details in terms of network architectures and output representations.
+
+# 2.1. Geometric reconstruction methods
+
+Geometric reconstruction methods can be broadly categorized into global methods and local methods. The global methods consider all the data at once, such as the radial basis functions (RBFs) methods [4, 30], and the (Screened) Poisson Surface Reconstruction method (PSR) [13, 14].
+
+The local fitting methods usually define a truncated signed distance function (TSDF) [7] on a volumetric grid. The various moving least squares methods (MLS) fit a local distance field or vector fields by spatially varying low-degree polynomials, and blend several nearby points together [15, 11]. The local projection and local least squares fitting used by MLS are similar to the tangent convolution used in our network. Local methods can be well scaled.
+
+There are also other geometric methods with different strategies, such as [2] computing restricted Voronoi cells. More detailed reviews and evaluations of geometric methods can be found in [1] and [32].
+
+# 2.2. Learning-based reconstruction methods
+
+Network architecture. One straightforward network architecture for point clouds is to convert the point clouds into regular 3D voxel grids or adaptive octree grids and apply 3D convolutions [18, 23]. The voxel-based network used in 3D-EPN [8] and the Deep Marching Cubes (DMC) [16] faces cubic growth of computation and memory requirements for
+
+large-scale datasets. The OctNetFusion [24] and 3D-CFCN [3] reconstruct implicit surface from multiple depth images based on OctNet [23], a octree-based network, whose operations are complicated and are highly related to the octree structure. Therefore, they also face computational issues in reconstructing large-scale datasets.
+
+Another type of network architecture learns point features directly. The commonly used point cloud network is PointNet [21]. It encodes global shape features into a latent vector of fixed size. Some reconstruction methods also extract a latent vector from the point cloud, such as ONet [19] and DeepSDF [20]. These networks are able to encode features of a large-scale point cloud into a latent vector. However, the latent vector of a small size limits its representative power for complex point clouds.
+
+There are also network architectures learning local features of point clouds. PointNet++ [22] groups points into overlapping parts, then PointNet is chosen as the local feature learner for each part. The centroids of each parts are selected using iterative farthest point sampling (FPS). The points are grouped around the centroids by ball query that finds all points within a radius to the query point. Using FPS with grouping operations cannot be guaranteed to be performed in a fixed-size spatial region. Therefore, the PointNet++ does not allow dividing input points using bounding boxes and processing each part independently. The tangent convolution network [28] learns local features from neighbor points for semantic segmentation of 3D point clouds. It defines three new network operations: tangent convolution, pooling and unpooling. The neighbor points are collected by ball query. The pooling and unpooling are implemented via hashing onto a regular 3D grid. These operations are performed in a fixed-size spatial region. Therefore, the tangent convolution network can divide points using bounding boxes and process each part independently.
+
+Output representation. The scalability of learning-based reconstruction methods is also greatly influenced by the output representation. The reconstruction methods based on voxel or octree grids usually use the occupancy or TSDF on grids as the output representation. This output representation, together with their network operations, is highly related to the grid structure. Therefore, their scalability is limited. The Deep Marching Cubes [16] and AtlasNet [10] directly produce a triangular surface. The predictions of different parts of the surface are interdependent so they have to consider the whole input point cloud at once.
+
+ONet [19] and DeepSDF [20] learn shape-conditioned classifiers whose decision boundary is the surface. Their representations are similar to the front-back representation of our SSRNet. Although ONet and DeepSDF support to make predictions over 3D locations parallelly, they need to get the global latent vector of the whole point cloud so they do not allow dividing input points.
+
+
+Figure 3. The pipeline of our method. Different parts are processed by our SSRNet parallelly.
+
+# 3. Method
+
+# 3.1. Pipeline
+
+We design a scalable learning-based surface reconstruction method, named SSRNet, which allows dividing the input point clouds and octree vertices. Figure 3 shows the pipeline of our method. Let $\mathcal{P} = \{\mathbf{p}_i|i = 1,\dots,N\}$ be the input point cloud of $N$ points, where $\mathbf{p}_i$ is point coordinate with normal $\mathbf{n}_i$ . We construct an octree from this point cloud and extract the vertices $\mathcal{V} = \{\mathbf{v}_i|i = 1,\dots,M\}$ of the finest level of this octree, where each vertex $\mathbf{v}_i$ is the coordinate. To prevent the whole input data exceeding the GPU memory, we use bounding boxes to divide the point cloud and the vertices into $\{\mathcal{P}_j|j = 1,\dots,K\}$ and $\{\mathcal{V}_j|j = 1,\dots,K\}$ , where $K$ is the number of boxes. The bounding boxes of vertices are not overlapping. The corresponding bounding boxes of points are larger than those of octree vertices, which ensures that all the neighbor points needed by vertices are included in the input. The border effects are thus largely suppressed. This enables our network to make accurate predictions for vertices in the boundary of the bounding box. We do not see any decay of accuracy on the borders of vertex boxes. For the part $j$ , the vertices $\mathcal{V}_j$ and the corresponding points $\mathcal{P}_j$ are fed into SSRNet. The SSRNet classifies each vertex $\mathbf{v}_{ji}$ in $\mathcal{V}_j$ as in front or at back of the implicit surface represented by $\mathcal{P}_j$ . Let the function represented by the network be $f_{\theta}$ , where $\theta$ represents the parameters of the network. Then the key of our method is to classify $\mathbf{v}_{ji}$ in $\mathcal{V}_j$ . It can be formulated as:
+
+$$
+f _ {\theta} \left(\mathcal {P} _ {j}, \mathcal {V} _ {j}, \mathbf {v} _ {j i}\right)\rightarrow \{0, 1 \} \tag {1}
+$$
+
+The front or back of an vertex is defined by the normal direction of its nearest surface. The vertices are all from the finest-level voxels of the octree in order to reconstruct more details. They do not contain vertices far from the actual surface, which brings great challenges in classifying the vertices. It is worth noting that the network operations in SSRNet are not related to the structure of the octree. After all the vertices are labeled, we extract surface using Marching Cubes (MC) and post-process the surface with a simple Laplacian-based mesh smoothing method.
+
+# 3.2. Geometry-aware Vertex Feature
+
+As discussed in the Introduction, the most important features for octree vertex classification are signed projection distances among octree vertices and their neighbor points. In order to get accurate classification for octree vertices and good generalization capability, we design geometry-aware features for octree vertices directly encoding local projection information.
+
+The tangent convolution [28] is defined as the 2D convolution on tangent images which are constructed by local projections of neighbor points. The indices of the projected points used for tangent image can be precomputed, which makes tangent convolution much more efficient. The signals used in tangent images represent local surface geometry, including signed projection distances, normals, etc. Therefore, it has the potential to encode local geometry features for octree vertices.
+
+However, there are problems in applying tangent convolution to octree vertices directly. For a 3D location $\mathbf{p}$ , the normal $\mathbf{n_p}$ of its tangent image is estimated through local covariance analysis [25]. Let $\mathbf{k}$ be the eigenvector related to the smallest eigenvalue of the covariance matrix of $\mathbf{p}$ . The normal of tangent image is defined as $\mathbf{k}$ . Due to the direction of eigenvector $\mathbf{k}$ is ambiguous, it may not be consistent with the real orientations of local implicit surfaces. The signs of projection distances hence do not represent front-back information accurately.
+
+In order to solve this problem, we modify the definition of $\mathbf{n_p}$ . Since the front-back classification is related to neighbor points, we use the input normals of neighbor points as additional constraints to define $\mathbf{n_p}$ . Let $\mathbf{n}_a$ be the average input normal of the neighbor points of $\mathbf{p}$ . In our definition, if the angle between eigenvector $\mathbf{k}$ and $\mathbf{n}_a$ is more than $90^\circ$ , we invert the direction of $\mathbf{k}$ . Then we use it as the normal $\mathbf{n_p}$ of the tangent image. That is, our definition of the tangent image ensures that $\mathbf{n_p}^\top \mathbf{n}_a > 0$ .
+
+The features of octree vertices constructed by modified tangent convolution directly encode front-back information. They are local geometric features and not related to global information of shapes, so our network is scalable and can generalize well among different datasets. It's worth noting that we use neighbor points in the point cloud rather than neighbor vertices to compute the tangent images. It is because our network classifies octree vertices with respect to the surface represented by points from $\mathcal{P}$ , rather than being represented by neighbor vertices.
+
+# 3.3. Network
+
+Network architecture. The network architecture of our SSRNet is illustrated in Figure 4. It contains two parts. The left part is for point feature extraction. The right is for vertex feature construction and label prediction. They are connected by tangent convolution layers for vertices.
+
+The left part of our network encodes the features of the input $N$ points from a point cloud. It is a fully-convolutional U-shaped network with skip connections. It is built by our modified tangent convolution layers. Two pooling operations are used to increase the size of the receptive field. The indices of the projected points used for tangent images and the index matrices used by pooling and unpooling layers are precomputed before the data are fed into the networks.
+
+The right part is the core of our method. The geometry-aware features of octree vertices are firstly constructed by modified tangent convolution, from point features in corresponding scale levels. The indices of neighbors points from point cloud for tangent images of vertices are also precomputed before network operations. Then $1 \times 1$ convolutions and unpooling operations are applied to encode more abstract features and to predict labels for each vertex. The index matrices used by unpooling layers in this part are precomputed when downsampling vertices via grid hashing.
+
+The input signals used by our method are all local signals. We use signed distances from neighbor points to the tangent plane (D), and normals relative to the normal of the tangent plane (N) as input. Since the network operations in SSRNet are all performed in a fixed-size local region, i.e. the modified tangent convolution, the $1 \times 1$ convolution, the pooling and unpooling of points and vertices, our network allows dividing the points and vertices with bounding-boxes and processing each part separately. It is worth noting that bounding boxes used for points are larger than those of octree vertices in order to make accurate predictions for vertices near the boundary.
+
+Implementation details. In our implementation, we down-sample the input points and vertices using grid hashing for pooling and unpooling. Given an octree of depth $D$ , The length of the finest-level edges is $1 / 2^{D}$ . We set the initial receptive field size in our network as $4 / 2^{D}$ . The grid hashing size of input points at three scales are set as $1 / 2^{(D + 2)}$ , $1 / 2^{(D + 1)}$ , $1 / 2^{D}$ . We do not apply gird hashing for vertices in the first scale because the vertices have an initial grid size of $1 / 2^{D}$ originally. The last two grid hashing sizes of vertices are set as $1 / 2^{(D - 1)}$ and $1 / 2^{(D - 2)}$ . In order to retain more surface details for the feature construction of vertices, we set smaller grid hashing sizes for points.
+
+# 3.4. Surface Extraction and Smoothing
+
+We use MC [17] to extract surface from the labeled octree vertices. MC finds the intersections between octree edges and the implicit surface using the labels of vertices. Since we directly use the mid-points of edges as the intersections, the resulting mesh has discretization artifacts inevitably. We use a simple Laplacian-based smoothing method [29] as a post-processing step to refine the mesh.
+
+
+Figure 4. Our network architecture. Arrows of different colors represent different network operations. The inputs of this network include $N$ points and $M$ octree vertices. The initial features of the points have $C$ channels.
+
+# 3.5. Data Preparation
+
+To prepare training data, we first normalize the coordinates of the input point cloud and surfaces. Then an octree is built from the point cloud. The octree building method is adapted from the open-source code of PSR [14]. It ensures that the finest level of the result octree contains not only cubes with points in them, but also their $3 \times 3 \times 3$ neighbor cubes. Therefore, the octree is dense enough to completely reconstruct the surface. We then use the ground truth surface with normals to label these vertices. For datasets without ground truth surfaces, we generate ground truth surfaces through PSR. More detailed introduction of our data preparing method can be found in our supplementary file.
+
+# 4. Experiments
+
+In this section we perform a series of experiments on datasets of different scales to evaluate our method. The datasets are all widely used in 3D-related tasks. We mainly examine the ability to capture geometry details, the scalability and generalization capability of our method on both small-scale and large-scale datasets. Due to the lack of triangular meshes, the ground-truth meshes used for training are all produced by PSR. It is worth noting that we just get ground-truth labels from the triangular surfaces produced by PSR in the experiments due to the lack of public available large-scale surface datasets. However, our labels are not only available from PSR.
+
+# 4.1. Datasets and Evaluation Metrics
+
+Datasets. In order to compare with several state-of-the-art learning-based methods, we do experiments on the same subset of ShapeNet [5] as ONet [19], in which the point clouds are relatively small with tens of thousands of points in each. Furthermore, in order to better evaluate the scalability and generalization capability to handle large-scale point clouds, we choose DTU dataset [12] and Stanford 3D Scanning Repository [27]. Most point clouds in the two datasets contain millions of points.
+
+
+Figure 5. Examples of reconstructed surfaces on testing set of ShapeNet [5] by ONet [19] and our method.
+
+Table 1. Classification Accuracy of SSRNet on Datasets of different scales. ShapeNet-Model and DTU-Model represent the models we trained on ShapeNet [5] and DTU [12] respectively.
+
+| Dataset | ShapeNet [5] | DTU [12] | Stanford [27] |
| ShapeNet-Model | DTU-Model |
| Accuracy (%) | 97.6 | 95.7 | 98.1 | 98.2 |
+
+Evaluation Metrics. The direct metric of our network is the classification accuracy of octree vertices. It is worth mentioning that the vertices in our experiments are all from the finest-level voxels of the octree. With octree of relatively high resolution, these voxels do not contain vertices very far from the actual surface. Therefore, a high classification accuracy matters a lot to the quality of the final mesh. For mesh comparison on ShapeNet, we use the same evaluation metrics with ONet, including the volumetric IoU (higher is better), the Chamfer- $L_{1}$ distance (lower is better) and the normal consistency score (higher is better). On the DTU dataset, we use DTU evaluation method [12], which mainly evaluates DTU Accuracy and DTU Completeness (both lower is better). And for Stanford datasets, Chamfer distance (CD) (lower is better) is adopted in order to evaluate the points of the output meshes, and the CD is also taken into consideration in the evaluation on DTU dataset. For each point in a cloud, CD finds the nearest point in the other point cloud, and averages the square of distances up.
+
+# 4.2. Results on Shapenet
+
+In our first experiment, we evaluate the capacity of our network to capture shape details on ShapeNet. We use the same test split as ONet for fair comparisons. The testing set contains about $10K$ shapes. We only randomly select a subset from the training set of ONet for training. The training set of our method (4K shapes) is 1/10 of the training set of ONet (40K shapes). We do not use a large amount of training data as ONet did mainly for two reasons. On the one hand, it is necessary to eliminate the possibility of overfitting a dataset due to too much training data. On the other hand, our network learns local geometry-aware features so that it can capture more geometry details with less training
+
+data. Therefore, it is unnecessary for us to use too many training samples.
+
+In our experiments, each point cloud in training and testing set contains $100K$ points. We add Gaussian noise with zero mean and standard deviation 0.05 to the point clouds as ONet did. Our network is efficient at processing point clouds with a large number of points, so we do not down-sample the point clouds. We think it is important for Surface Reconstruction from Point Clouds (SRPC) methods to be adaptive to the original data, rather than reducing the amount of input data and the resolution to fit their networks. After all, the representative power of 300 points used by ONet is really limited. The original synthetic models of ShapeNet do not have consistent normals so that we reconstruct surfaces from the ground truth point clouds using PSR on octrees of depth 9 to generate the training data. We use octrees of depth 8 in SSRNet for training and testing.
+
+For mesh comparison, we use the evaluation metrics on ShapeNet mentioned in Section 4.1, including the volumetric IoU, the Chamfer- $L_{1}$ distance and the normal consistency score. We evaluate all shapes in the testing set on these metrics. The results of existing learning based 3D reconstruction approaches, i.e. the 3D-R2N2 [6], PSGN [9], Deep Marching Cubes (DMC) [16] and ONet [19], are obtained from the paper of ONet. As mentioned in ONet, it is not possible to evaluate the IoU for PSGN for the reason that it does not yield watertight meshes. ONet adapted 3D-R2N2 and PSGN for point cloud input by changing the encoders. Although methods in Table 2 use different strategies, they actually solve the same task of SRPC. Quantitative results are shown in Table 2.
+
+The classification accuracy of octree vertices on ShapeNet dataset shows strong robustness of our network. It achieves high classification accuracy of $97.6\%$ on noisy point clouds (See Table 1). The Table 2 shows that our method gets great improvements on these metrics. Compared with the best performance of other methods, we achieve the highest IoU, lower Chamfer- $L_{1}$ distance and higher normal consistency. More specifically, the IoU of our results is about $18\%$ higher than that of ONet. It is worth noting that our network has only 0.49 million parameters,
+
+Table 2. Results of learning-based methods on ShapeNet [5]. NC = Normal Consistency. The volumetric IoU (higher is better), the Chamfer- $L_{1}$ distance (lower is better) and NC (higher is better) are reported.
+
+ | IoU | Chamfer-L1 | NC |
| 3D-R2N2 [6] | 0.565 | 0.169 | 0.719 |
| PSGN [9] | - | 0.202 | - |
| DMC [16] | 0.647 | 0.117 | 0.848 |
| ONet [19] | 0.778 | 0.079 | 0.895 |
| Ours | 0.957 | 0.024 | 0.967 |
+
+Table 3. Surface quality on DTU [12] testing scenes. Surfaces used for evaluation criterias are all reconstructed at octree depth 9. DA=DTU Accuracy, DC=DTU Completeness, CD=Chamfer distance (all lower is better).
+
+| Method | DA | DC | CD |
| Mean | Var. | Mean | Var. | Mean | RMS |
| PSR(trim 8) [14] | 0.473 | 1.33 | 0.327 | 0.220 | 3.16 | 12.5 |
| PSR(trim 9.5) [14] | 0.330 | 0.441 | 0.345 | 0.438 | 1.17 | 4.49 |
| Ours | 0.321 | 0.285 | 0.304 | 0.0888 | 1.46 | 4.42 |
+
+Table 4. Generalization on Stanford 3D [27]. The Chamfer Distances are in units of $10^{-6}$ . Surfaces used for distance criterias are all reconstructed at octree depth 9. Ours-S and Ours-D represent the models we trained on ShapeNet [5] and DTU [12] respectively.
+
+| Data | Accuracy(%) | CD Mean | CD RMS |
| Ours S | Ours D | ONet [19] | Ours S | Ours D | ONet [19] | Ours S | Ours D |
| Armadillo | 98.2 | 97.8 | 93.46 | 0.028 | 0.023 | 168.59 | 0.131 | 0.056 |
| Bunny | 98.2 | 98.7 | 94.88 | 0.064 | 0.057 | 165.44 | 0.134 | 0.087 |
| Dragon | 98.0 | 98.0 | 40.69 | 0.053 | 0.047 | 74.99 | 0.208 | 0.150 |
+
+while ONet has about 13.4 million parameters.
+
+As shown in Figure 5, the surface quality of ours is generally better than those of ONet. Our network is good at capturing local geometry details of shapes of different classes, even with quite different and complex topology. ONet can reconstruct smooth surfaces for shapes with simple topology. However, since the global latent vector encoder in ONet loses shape details, it tends to generate an over-smoothed shape for a complex topology. For more visual results, please see our supplementary materials.
+
+# 4.3. Results on 3D Scans of Larger Scales
+
+Evaluation on DTU dataset. We train and test our network on DTU at octree depth 9. Since the ground truth surfaces of DTU are not available, we reconstruct surfaces using PSR at octree depth 10 to generate training data. We trim PSR surfaces using SurfaceTrimmer software provided in PSR with trimming value 8. We randomly extract batches of points from each training scene to train our network. Even though we use only 6 scenes in training set, we achieve a high accuracy and good generalization capability. Table 3 gives
+
+Table 5. The time performance of our method. We report the first scale point number, first scale octree vertex number and triangle number in our results using million (M) as unit. The preprocessing time (Prep. time) includes octree construction time, downsampling time, tangent images precomputing time and batches computing time. The prediction time (Pred. time) is the time for loading partitioned points and vertices and predicting labels.
+
+| Number | Armadillo | Bunny | Dragon | stl.030 | stl.034 | stl.062 |
| Point /M | 2.16 | 0.361 | 1.71 | 2.43 | 2.01 | 2.19 |
| Vertex /M | 3.29 | 3.62 | 3.07 | 1.07 | 0.766 | 0.922 |
| Triangle /M | 1.18 | 1.52 | 1.16 | 0.42 | 0.31 | 0.36 |
| Batch | 109 | 73 | 77 | 59 | 88 | 86 |
| Time /s | Armadillo | Bunny | Dragon | stl.030 | stl.034 | stl.062 |
| Prep | 19.4 | 8.86 | 16.6 | 10.9 | 9.34 | 9.99 |
| Pred (1 GPU) | 133 | 82.2 | 110.5 | 63.5 | 84.5 | 87.9 |
| Pred (4 GPUs) | 50.5 | 27.3 | 38.2 | 30.4 | 31.1 | 34.3 |
| Total (1 GPU) | 153 | 92.0 | 128 | 75.4 | 94.5 | 98.6 |
| Total (4 GPUs) | 70.6 | 37.1 | 55.7 | 42.3 | 41.1 | 45.0 |
+
+the quantitative results on testing scenes in DTU dataset 2. Qualitative results are shown in Figure 6 (a).
+
+The point clouds in DTU are all open scenes. Although ONet can finish reconstruction tasks of watertight surfaces, it cannot reconstruct surface from point clouds of open scenes. Here we set results of PSR as an evaluation reference. Surfaces reconstructed by PSR for evaluation are also reconstructed at octree depth 9. The results of PSR are always closed surfaces even reconstructed from open scenes. Therefore, we trim them with trimming value 8 and 9.5.
+
+As illustrated in Table 1, our network gets a high average classification accuracy of $95.7\%$ . As Table 3 shows, compared with PSR with trimming value 8, our surfaces perform better on DTU Accuracy, DTU Completeness and CD. As for PSR with trimming value 9.5, we get similar performance on DTU Accuracy and perform better on DTU Completeness. The PSR with trimming value 9.5 is more accurate on CD while it is at cost of completeness. Our method differs from PSR that our method directly produces open surfaces and we do not need to apply a trimming step for our results, so we get more accurate and complete borders than PSR (See Figure 6 (a)). In conclusion, the quality of our method is comparable with PSR on DTU datasets. We perform better with respect to the completeness on open scenes. Detailed figures and videos are also provided in our supplementary materials.
+
+# 4.4. Generalization Capability
+
+In this section we evaluate the generalization capability of our method. It is worth noting that three datasets (ShapeNet, DTU, Stanford 3D) are quite different in terms of data scale and data category. Data in the ShapeNet are all
+
+
+Figure 6. Examples of surfaces of our method and PSR [14] on DTU [12] (a). Generalization testing results of our method and ONet [19] on Stanford 3D [27] (b). Ours-S and Ours-D represent the our models trained on ShapeNet [5] and DTU [12] respectively. Background colors are for better visualization for point clouds.
+
+
+
+synthetic. The DTU only contains real-world scan data of open scenes while the Stanford 3D only has closed scenes. Therefore, tests among these three datasets can well evaluate the generalization performance of SSRNet.
+
+We test two trained models (SSRNet and ONet trained on ShapeNet) on Stanford 3D. Table 1 and Table 4 show that we achieve high average classification accuracy of $98.1\%$ . SSRNet generalizes better than ONet on Stanford 3D in metric of Chamfer Distance. Figure 6 (b) shows that our results achieve outstanding visual effects and reconstruct geometry details of the shapes well.
+
+We also use SSRNet model trained on DTU to test on Stanford 3D. Table 4 shows that our network trained on open scenes can also achieve higher classification accuracy on closed scenes. Besides, classification accuracy of our models trained on ShapeNet and DTU are almost exactly the same, and the evaluation results on CD are also similar. In general, the results prove good generalization capability of our network. One strong benefit is that we do not need to retrain our network on different datasets to complete the reconstruction work.
+
+# 4.5. Efficiency
+
+We test our network on 4 GeForce GTX 1080 Ti GPUs in a Intel Xeon(R) CPU system with $32 \times 2.10$ GHz cores. We implement data preprocessing method with CUDA. In our experiments, we set the maximum number of point and vertex in one batch as 300,000. As is illustrated in Table 5, our method can tackle millions of points and vertices in reasonable time3. As a learning-based method, the time consumption is generally acceptable. Since our network is able to perform predictions parallelly using multi-GPUs, our prediction procedure can be accelerated by more GPUs. As
+
+shown in the table, the predictions with 4 GPUs are about 2.6 times faster than 1 GPU. This reveals the efficiency potential of our method scaling to large datasets. When conditions permitting (more GPUs), it can be accelerated a lot.
+
+# 5. Conclusion
+
+Our SSRNet has many advantages. Firstly, it has strong scalability that allows dividing the input data and processing different parts parallelly. Meanwhile, the network has also proved its efficiency by experimentments in which it reconstructs quality surfaces from point clouds with millions of points in reasonable time. Besides, SSRNet is good at reconstructing geometry details with the help of the geometry-aware features. These features are only related to local neighbor information and do not rely on any global shape information. Paying too much attention to global shape feature rather than just considering local geometry information would limit the generalization capability among different shape types. Thus SSRNet also has good generalization capability and it does not need too much training data, which avoids overfitting.
+
+In conclusion, we have successfully designed a scalable network for quality surface reconstruction from point clouds and make a significant breakthrough compared with existing state-of-the-art learning-based methods. We believe it would be an important step to make learning-based methods competitive with respect to geometry processing algorithms on real-world and challenging data.
+
+# Acknowledgements
+
+This work was supported by the National Natural Science Foundation of China under Grant 61772213, Grant 61991412 and Grant 91748204.
+
+# References
+
+[1] Matthew Berger, Andrea Tagliasacchi, Lee Seversky, Pierre Alliez, Joshua Levine, Andrei Sharf, and Claudio Silva. State of the art in surface reconstruction from point clouds. 2014. 3
+[2] Dobrina Boltcheva and Bruno Lévy. Surface reconstruction by computing restricted voronoi cells in parallel. Computer-Aided Design, 90:123-134, 2017. 1, 3
+[3] Yan-Pei Cao, Zheng-Ning Liu, Zheng-Fei Kuang, Leif Kobbelt, and Shi-Min Hu. Learning to reconstruct high-quality 3d shapes with cascaded fully convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 616-633, 2018. 3
+[4] Jonathan C Carr, Richard K Beatson, Jon B Cherrie, Tim J Mitchell, W Richard Fright, Bruce C McCallum, and Tim R Evans. Reconstruction and representation of 3d objects with radial basis functions. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pages 67-76. ACM, 2001. 1, 3
+[5] 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. 2, 5, 6, 7, 8
+[6] Christopher B Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3d-r2n2: A unified approach for single and multi-view 3d object reconstruction. In European conference on computer vision (ECCV), pages 628-644. Springer, 2016. 6, 7
+[7] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. 1996. 1, 2, 3
+[8] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3d-encoder-predictor cnns and shape synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5868-5877, 2017. 1, 3
+[9] Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 605-613, 2017. 6, 7
+[10] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 216-224, 2018. 1, 3
+[11] Gael Guennebaud and Markus Gross. Algebraic point set surfaces. In ACM Transactions on Graphics (TOG), volume 26, page 23. ACM, 2007. 1, 2, 3
+[12] Rasmus Jensen, Anders Dahl, George Vogiatzis, Engil Tola, and Henrik Aanæs. Large scale multi-view stereopsis evaluation. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, pages 406-413. IEEE, 2014. 5, 6, 7, 8
+[13] Michael Kazhdan, Matthew Bolitho, and Hugues Hoppe. Poisson surface reconstruction. In Proceedings of the fourth Eurographics symposium on Geometry processing, volume 7, 2006. 1, 3
+
+[14] Michael Kazhdan and Hugues Hoppe. Screenedoisson surface reconstruction. ACM Transactions on Graphics (ToG), 32(3):29, 2013. 1, 3, 5, 7, 8
+[15] David Levin. Mesh-independent surface interpolation. In Geometric modeling for scientific visualization, pages 37-49. Springer, 2004. 1, 2, 3
+[16] Yiyi Liao, Simon Donne, and Andreas Geiger. Deep marching cubes: Learning explicit surface representations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2916-2925, 2018. 1, 2, 3, 6, 7
+[17] William E Lorensen and Harvey E Cline. Marching cubes: A high resolution 3d surface construction algorithm. In ACM siggraph computer graphics, volume 21, pages 163-169. ACM, 1987. 1, 5
+[18] Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 922-928. IEEE, 2015. 3
+[19] 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. 1, 2, 3, 5, 6, 7, 8
+[20] 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. 1, 2, 3
+[21] 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 (CVPR), pages 652-660, 2017. 2, 3
+[22] 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. 3
+[23] 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 (CVPR), pages 3577-3586, 2017. 3
+[24] Gernot Riegler, Ali Osman Ulusoy, Horst Bischof, and Andreas Geiger. Octnetfusion: Learning depth fusion from data. In 2017 International Conference on 3D Vision (3DV), pages 57-66. IEEE, 2017. 1, 3
+[25] Samuele Salti, Federico Tombari, and Luigi Di Stefano. Shot: Unique signatures of histograms for surface and texture description. Computer Vision and Image Understanding, 125:251-264, 2014. 4
+[26] Johannes L Schonberger, Enliang Zheng, Jan-Michael Frahm, and Marc Pollefeys. Pixelwise view selection for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pages 501-518. Springer, 2016. 1
+[27] Stanford 3D. The stanford 3d scanning repository, 2013. 2, 5, 6, 7, 8
+
+[28] Maxim Tatarchenko, Jaesik Park, Vladlen Koltun, and Qian-Yi Zhou. Tangent convolutions for dense prediction in 3d. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3887-3896, 2018. 2, 3, 4
+[29] Gabriel Taubin. A signal processing approach to fair surface design. In Proceedings of the 22nd annual conference on Computer graphics and interactive techniques, pages 351-358. ACM, 1995. 5
+[30] Greg Turk and James F O'Brien. Modelling with implicit surfaces that interpolate. ACM Transactions on Graphics (TOG), 21(4):855-873, 2002. 1, 3
+[31] Qingshan Xu and Wenbing Tao. Multi-scale geometric consistency guided multi-view stereo. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1
+[32] Lingli Zhu, Antero Kukko, Juho-Pekka Virtanen, Juha Hyyppä, Harri Kaartinen, Hannu Hyyppä, and Tuomas Turppa. Multisource point clouds, point simplification and surface reconstruction. Remote Sensing, 11(22):2659, 2019. 3
\ No newline at end of file
diff --git a/ssrnetscalable3dsurfacereconstructionnetwork/images.zip b/ssrnetscalable3dsurfacereconstructionnetwork/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b2a34f3ecc77e12cd19cb5a785dc3d59f17caeec
--- /dev/null
+++ b/ssrnetscalable3dsurfacereconstructionnetwork/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5152a368b10e66280ce577e5ed5660fc90be45a58dd6ee26b2e4a169424e0df2
+size 332651
diff --git a/ssrnetscalable3dsurfacereconstructionnetwork/layout.json b/ssrnetscalable3dsurfacereconstructionnetwork/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..242dc8ad51255ade769dde273df1bdd4cf14bde5
--- /dev/null
+++ b/ssrnetscalable3dsurfacereconstructionnetwork/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:71c47f52490227450523f1b302197ae113a3ba66417f2841a99841e1d94da5ee
+size 332968
diff --git a/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_content_list.json b/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d178d0d14fe2f754228ee8c12553017eac93818f
--- /dev/null
+++ b/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7dfc45b8e56c0439eff933316a8cd240de73a9dba663181425ea549132de2532
+size 84269
diff --git a/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_model.json b/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6621a42130ce42195f82bc818ff9de80beb2df99
--- /dev/null
+++ b/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbfa5c32013afad5163622c812f31786212579a48c609097c290eb940df7420f
+size 105163
diff --git a/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_origin.pdf b/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..90ffde6b06f20f4b1d56dbe2279d40f246866982
--- /dev/null
+++ b/stavisspatiotemporalaudiovisualsaliencynetwork/c64cc63b-0301-42a6-8dae-b65fdeed7fc3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35f26ade12ae552ab5a5d2bbe3204ce56b7a0e7712ed0796199bdc4cd220ad4e
+size 1926057
diff --git a/stavisspatiotemporalaudiovisualsaliencynetwork/full.md b/stavisspatiotemporalaudiovisualsaliencynetwork/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9f354236eb0a07312335971d7ab91f6121394388
--- /dev/null
+++ b/stavisspatiotemporalaudiovisualsaliencynetwork/full.md
@@ -0,0 +1,313 @@
+# STAViS: Spatio-Temporal AudioVisual Saliency Network
+
+Antigoni Tsiami, Petros Koutras and Petros Maragos
+School of E.C.E., National Technical University of Athens, Greece
+
+{antsiami, pkoutras, maragos}@cs.ntua.gr
+
+# Abstract
+
+We introduce STAViS1, a spatio-temporal audiovisual saliency network that combines spatio-temporal visual and auditory information in order to efficiently address the problem of saliency estimation in videos. Our approach employs a single network that combines visual saliency and auditory features and learns to appropriately localize sound sources and to fuse the two saliencies in order to obtain a final saliency map. The network has been designed, trained end-to-end, and evaluated on six different databases that contain audiovisual eye-tracking data of a large variety of videos. We compare our method against 8 different state-of-the-art visual saliency models. Evaluation results across databases indicate that our STAViS model outperforms our visual only variant as well as the other state-of-the-art models in the majority of cases. Also, the consistently good performance it achieves for all databases indicates that it is appropriate for estimating saliency "in-the-wild". The code is available at https://github.com/atsiami/STAViS.
+
+# 1. Introduction
+
+Audio is present in the majority of scenes where vision is also present. Nature as well as everyday life offer unlimited examples of multi-sensory and cross-modal events, a large amount of which concern auditory and visual senses. Audiovisual integration is a well studied phenomenon in neuroscience with interesting findings that have motivated research in the area [36, 37, 60]. Many of them provide sufficient evidence that human attention and perception is influenced by audiovisual stimuli in a different way than auditory or visual stimuli in isolation. For example, the well-known McGurk effect [35] proved that attention can be heavily affected by incongruent audiovisual stimuli, leading to illusionary perceptions. On the other hand, congruent ones, like in the pip & pop effect [59], can lead to enhanced attention. Modeling human attention is important in
+
+
+Figure 1. Example frames with their eye-tracking data of a bell tolling. The second row depicts the saliency maps produced by our visual-only saliency network, while the third row is the output of our proposed STAViS network, which succeeds in better capturing human attention.
+
+a variety of applications, like video summarization [28, 16], robotics [15, 30, 67], and virtual reality [54].
+
+Despite the previously mentioned evidence of a strong audiovisual interplay, audio modality has been rather neglected when modeling human attention, with most computer vision research focusing only on visual information. We aim to address the problem of saliency estimation in videos "in-the-wild", namely how bottom-up human attention is modeled, by integrating auditory information into visual saliency, without prior knowledge of the video content. Fig. 1 highlights and motivates the problem we aim to address: tolling bells is an audiovisual event. The depicted frames, with their eye-tracking data superimposed, exhibit an example of human attention in an audiovisual scene. This attention can be much better captured by an audiovisual attention model than by a visual-only one, as the corresponding saliency maps indicate.
+
+In parallel, Convolutional Neural Networks (CNNs) have infiltrated computer vision and have enhanced dramatically the performance in the majority of spatial tasks in computer vision, such as object detection or semantic segmentation [53, 22, 21]. The huge amounts of video data that are becoming more and more available through online sources, enable and at the same time require continuously better performance in tasks like activity recognition,
+
+video saliency, scene analysis or video summarization, imposing the need to exploit not only spatial information, but also temporal [8, 48, 28]. Similar advances have also been achieved in audio processing areas, such as acoustic event detection [45], speech recognition [18, 10], sound localization [57], by using deep learning techniques.
+
+As an additional free of charge source of information, auditory stream has been incorporated in many video-related applications during the last three years [1, 69]. Audio contains rich information that when integrated with spatiotemporal visual information, it facilitates learning and improves performance in many traditionally visual-only tasks. Most importantly, audio comes for free, as it is already included in the majority of videos and synchronized with the visual stream. We are particularly interested in audiovisual attention modeling, through audiovisual saliency, where the main goal is to predict human fixations in a video.
+
+We propose STAViS, a novel spatio-temporal audiovisual saliency network that combines spatio-temporal visual with auditory information to efficiently address the problem of saliency estimation in videos. We mainly aspire to make the next logical step in video saliency prediction by introducing a new audiovisual framework rather than propose just a better visual model. To our best knowledge, our proposed system is the first deep learning saliency approach that employs both video and audio and addresses the fixation prediction problem, except for concurrent work [56] where two independent networks for the two modalities are employed and their outputs are simply concatenated as a late fusion scheme. Our approach employs a single multimodal network that combines visual and auditory information at multiple stages and learns to appropriately fuse the two modalities, in order to obtain a final saliency map. We propose ways to perform sound source localization in the video and subsequently fuse spatio-temporal auditory saliency with spatio-temporal visual saliency, in order to obtain the final audiovisual saliency map.
+
+For visual saliency our approach is extending a state-of-the-art spatio-temporal saliency network, called SUSiNet [28], part of a multi-task network that jointly addresses 3 different problems: saliency estimation, activity recognition and video summarization. Regarding audio, we obtain audio features using SoundNet [3], a state-of-the-art CNN for acoustic event classification. For sound localization, we aim to retrieve the potential correspondences between auditory and visual streams, in the sense of cross-modal semantic concepts. We explore 3 different ways of locating sounds in a video, obtaining an auditory saliency map. Subsequently, we investigate fusion schemes to integrate spatio-temporal and auditory saliencies and obtain a final saliency map. We explore three alternatives as well.
+
+The network has been designed, trained end-to-end and evaluated on 6 different databases that contain audiovisual
+
+eye-tracking data. These databases contain a large variety of videos, ranging from home-made videos to documentaries, and from short, simple videos to Hollywood movies. Our method is compared to 8 different state-of-the-art visual saliency models in all 6 databases. Evaluation results across databases indicate that STAViS model outperforms both the visual variant network and the other methods in the majority of cases. Also, its consistently good performance for all databases, indicates that it is suitable for estimating saliency in videos "in-the-wild".
+
+# 2. Related Work
+
+There is a very broad literature regarding visual saliency, both for classical approaches and for deep learning ones. On the other hand, audiovisual approaches in saliency are limited. Below, we describe the most notable works in visual saliency with deep methods, audiovisual saliency, and other recent audiovisual approaches in similar problems.
+
+Visual Saliency: The early CNN-based approaches for saliency were based on the adaptation of pretrained CNN models for visual recognition tasks [31, 61]. Later, in [44] both shallow and deep CNN were trained end-to-end for saliency prediction while [23, 24] trained the networks by optimizing common saliency evaluation metrics. In [43] the authors employed end-to-end Generative Adversarial Networks (GAN), while [63] has utilized multi-level saliency information from different layers through skip connections. Long Short-term Memory (LSTM) networks have also been used for tracking visual saliency both in static images [11] and video stimuli [64, 65, 34]. In order to improve saliency estimation in videos, many approaches employ multi-stream networks, such as RGB/Optical Flow (OF) [4, 32], RGB/OF/Depth [33], or multiple subnets such as objectness/motion [25] or saliency/gaze [17] pathways. Another recent approach [38] employs a 3D fully convolutional network with temporal aggregation, based on the assumption that the saliency map of any frame can be predicted by considering a limited number of past frames.
+
+Audiovisual saliency models: The first attempts in modeling audiovisual saliency were application-specific [49, 50, 46, 9, 47, 52], employing mostly traditional signal processing techniques both for visual saliency and audio localization. Coutrot and Guyader [13, 12, 14] and Song [55] have tried to more directly validate their models with humans. After estimating the visual saliency map they explicitly weigh the face image regions appropriately to generate an audiovisual saliency map to better account for eye fixations during movie viewing. Also, Min et al. [40, 39] developed an audiovisual attention model for predicting eye fixations in scenes containing moving, sound-generating objects. For auditory attention, they employed an auditory source localization method to localize the sound-generating object on the image and fuse it with visual saliency mod
+
+
+Figure 2. STAViS architecture: the spatio-temporal audiovisual network is based on the ResNet architecture and has one spatio-temporal visual path, one auditory path and their fusion.
+
+els. A more general model that is not application-specific that investigated ways to fuse audio and video for fixation prediction with signal processing techniques has been presented in [58].
+
+Other deep audiovisual approaches: As mentioned before, during the last three years more and more attention is paid on integration of audio in traditionally visual-only problems, such as object localization or segmentation. In [1, 2] audiovisual correspondence in videos is learned without supervision resulting in good video and audio representations as well as in good classification in both modalities. Audiovisual representations learned in a self-supervised way and used for audiovisual scene analysis are also proposed in [51, 42], while in [57], the authors address the problem of audiovisual event localization in unconstrained videos. A system that learns to locate image regions that produce sound and creates a representation of the sound from each pixel is described in [69, 68]. Also, SoundNet [3] exploits the natural synchronization between vision and sound to learn an acoustic representation using two-million unlabeled videos, yielding improved performance in acoustic scene/object classification tasks. In [26], the authors exploit auditory and visual information to build effective models for both audio and video analysis from self-supervised temporal synchronization.
+
+# 3. Spatio-Temporal AudioVisual Saliency Network
+
+The proposed designed spatio-temporal audiovisual network for saliency estimation (Fig. 2) consists of a spatiotemporal visual module that computes visual saliency, an audio representation module that computes auditory features based on [3], a sound source localization module that computes spatio-temporal auditory saliency, an audiovisual saliency estimation module that combines and fuses the visual and auditory saliencies, and finally, the appropriate losses. These are described in detail in the next subsections.
+
+# 3.1. Spatio-Temporal Visual Network
+
+The architecture of our designed spatio-temporal network for visual saliency, depicted in Fig. 2, employs the general ResNet architecture [22] and specifically the 3D extension proposed initially for action classification [20]. The visual network pathway (dark purple color), with parameters $\mathbf{W}_{res}$ , includes the first 4 ResNet convolutional blocks conv1, conv2, conv3, conv4 that provide outputs $X^{1}, X^{2}, X^{3}, X^{4}$ , in different spatial and temporal scales. In parallel, an attention mechanism called Deeply Supervised Attention Module (DSAM) is applied by taking the element-wise product between each channel of the feature map $X^{m}$ and the attention map $M^{m}$ , to enhance the most salient regions of these feature representations:
+
+$$
+\tilde {X} ^ {m} = \left(1 + M ^ {m}\right) \odot X ^ {m}, \quad m = 1, \dots , 4. \tag {1}
+$$
+
+The idea of deep supervision that is the core of DSAM has been used in edge detection [66], object segmentation [7] and static saliency [63], but contrary to these previous works, here DSAM's role is double: It is used both for enhancing visual feature representations as well as for providing the multi-level saliency maps, as depicted by shades of green in Fig. 2. Thus, DSAM parameters $\mathbf{W}_{am}^{m}$ are trained both by the main-path of the visual network and the eyetracking data through the skip connections of the Fig. 2.
+
+Figure 3 shows the architecture of the DSAM module at level $m$ . It includes an averaging pooling in the temporal dimension followed by two spatial convolution layers that provide the saliency features $S^m$ and the activation map $A^m$ . Both representations are up-sampled (using the appropriate deconvolution layers) to the initial image dimensions and used for the deep supervision of the module as well as for the multi-level saliency estimation. A spatial softmax operation applied at the activation map $A^m(x,y)$ yields the attention map $M^m(x,y)$ :
+
+$$
+M ^ {m} (x, y) = \frac {\exp \left(A ^ {m} (x , y)\right)}{\sum_ {x} \sum_ {y} \exp \left(A ^ {m} (x , y)\right)} \tag {2}
+$$
+
+
+Figure 3. Deeply Supervised Attention Module (DSAM) enhances the global network's representations and provides the multi-level saliency maps for spatio-temporal saliency.
+
+# 3.2. Audio Representation Network
+
+For the audio representation we select to work directly on the sound waveforms and employ an 1-D fully convolutional network, rather than compute time-frequency representations and apply 2D CNNs [26, 1, 69]. First, audio is cropped in order to match the visual frames duration (i.e. 16 frames). The employed network can handle variable length audio, thus no sub-sampling is required to address the sampling rate variation from video to video. Subsequently, a Hanning window is applied in order to weigh higher the central audio values representing the current time instance, but also include past and future values with attenuation [58]. Afterwards, for the high-level information encoding we employ a network architecture with parameters $\mathbf{W}_a$ based on the first seven layers of the SoundNet [3]. These layers are followed by a temporal max-pooling layer for obtaining a fixed dimension vector $f_a \in \mathbb{R}^{D_a}$ for the whole sequence.
+
+# 3.3. Sound Source Localization in Videos
+
+The previous module's goal is to produce good audio representations. Our next goal is to exploit these representations in order to detect cross-modal semantic concepts in videos. We essentially aim to retrieve correspondences between audio and spatio-temporal visual information, and thus obtain a spatio-temporal auditory saliency map. This can be viewed also as a spatial sound source localization problem. For example, a moving car, a speaking face or a rustling leaf are cross-modal events, where we need to detect where the audio comes from in the video.
+
+Our approach selects as visual features the output of the 3D conv3 block $X^3$ (that has feature dimension $D_v$ ) as in this layer with have both rich semantic information for the visual stream and quite large resolution in the spatial domain. A temporal average pooling is applied in order to marginal out the temporal dimension and have a global representation $f_v \in \mathbb{R}^{D_v \times N_X \times N_Y}$ for the whole sequence. Since visual and auditory features have different feature dimensions, we re-project both in a hidden dimension $D_h$ by
+
+applying two different affine transformations:
+
+$$
+\tilde {h} _ {a} = \mathbf {U} _ {a} \cdot f _ {a} + \mathbf {b} _ {a}, \quad h _ {v} = \mathbf {U} _ {v} \cdot f _ {v} + \mathbf {b} _ {v}, \tag {3}
+$$
+
+where $\tilde{h}_a\in \mathbb{R}^{D_h}$ , $h_v\in \mathbb{R}^{D_h\times N_X\times N_Y}$ and $\mathbf{U}_a,\mathbf{b}_a,\mathbf{U}_v,\mathbf{b}_v$ are the corresponding learning parameters. We also apply a spatially tiling to the audio features to match the visual features spatial dimensions, getting $h_a\in \mathbb{R}^{D_h\times N_X\times N_Y}$ .
+
+For finding or learning correspondences between the audio and visual features $h_a, h_v$ we have investigated three different approaches. In the first, we simply compute the cosine similarity between the two representation vectors which does not require any learning parameters and provides a single localization map $L_1 \in \mathbb{R}^{N_X \times N_Y}$ . Regarding the second approach, we take the weighted inner product of the vectors $h_a, h_v$ at each pixel $(x,y)$ , and we can get either a single or multiple localization maps $L_2^j \in \mathbb{R}^{N_X \times N_Y}, j = 1, \ldots, N_{out}$ :
+
+$$
+L _ {2} ^ {j} (x, y) = \sum_ {k = 1} ^ {D _ {h}} s ^ {j, k} \cdot h _ {v} ^ {k} (x, y) \cdot h _ {a} ^ {k} (x, y) + \beta^ {j}, \tag {4}
+$$
+
+where $s^{j,k}, \beta^j$ are learning parameters. In the third case, that constitutes also the proposed approach, a bilinear transformation is applied to the incoming multimodal data that can also yield either a single or multiple output maps $L_3^j \in \mathbb{R}^{N_X \times N_Y}$ , $j = 1, \ldots, N_{out}$ :
+
+$$
+\begin{array}{l} L _ {3} ^ {j} (x, y) = h _ {v} (x, y) ^ {T} \cdot \mathbf {M} ^ {j} \cdot h _ {a} (x, y) + \mu^ {j} \\ = \sum_ {l = 1} ^ {D _ {h}} \sum_ {k = 1} ^ {D _ {h}} M ^ {j, l, k} \cdot h _ {v} ^ {l} (x, y) \cdot h _ {a} ^ {k} (x, y) + \mu^ {j}, \tag {5} \\ \end{array}
+$$
+
+where $M^{j,l,k},\mu^j$ are the learning parameters. Note that the previous approaches $(L_{1},L_{2})$ are special cases of this bilinear one $(L_{3})$ , that allows for richer interactions between the inputs. Specifically when the matrices $\mathbf{M}^j$ are diagonal, with $s^{j,k}$ as diagonal elements, we have the case of weighted inner product $(L_{2})$ . When the matrix $\mathbf{M}$ is the unit matrix the result is very close (modulo a normalization factor) to the cosine similarity.
+
+# 3.4. Audiovisual Saliency Estimation
+
+We have now computed an auditory saliency map, expressed via source localization maps. However, there are many aspects in a video that can attract the human attention that may not be related to audio events. Thus, in order to build a multi-modal saliency estimation network that can perform well "in-the-wild" with any kind of stimuli, we need to also include the visual-only information as modeled by the spatio-temporal visual network. For that purpose an important contribution of this paper is the investigation of different ways to perform audiovisual fusion.
+
+The simplest fusion scheme is to learn a linear weighted sum of the visual only map $S^v$ and an audio-related map
+
+$S^a$ (yielded by applying independent fully convolution layers to the multi-level concatenated visual saliency features $V^{j} = (S^{1}|\ldots |S^{m}|\ldots |S^{M})$ and the localization maps $L^j$ respectively): $S_1^{av} = w_v\cdot \sigma (S^v) + w_a\cdot \sigma (S^a)$ , where $\sigma (\cdot)$ denotes the sigmoid activation function.
+
+Moreover, inspired by previous signal processing based approaches for audiovisual saliency [58, 29], we also investigate an attention-based scheme where the audio stream modulates the visual one: $S_2^{av} = \sigma(S^v) \odot (1 + \sigma(S^a))$ . In case of multiple localization maps, we can multiply one by one the concatenated visual saliency features $V^j$ with the localization maps $L^j$ and then apply a fully convolution layer for taking the single saliency map: $\tilde{S}_2^{av,j} = \sigma(V^j) \odot (1 + \sigma(L^j))$ .
+
+However, as depicted in Fig. 2, our main and most general approach that allows more free interaction between the visual and audio-based features maps is to concatenate the multimodal features and then apply a convolution layer for their fusion in one saliency map: $S_3^{av} = \mathbf{W}_{cat} * (V|L) + \beta_{av}$ .
+
+Finally, we can also apply a late fusion scheme of all the previous approaches expressed by a weighted learned sum:
+
+$$
+S _ {f u s} ^ {a v} = \tilde {w} _ {v} \cdot \sigma (S ^ {v}) + \tilde {w} _ {a} \cdot \sigma (S ^ {a}) + w _ {a v} \cdot \sigma (S ^ {3}).
+$$
+
+# 3.5. Saliency Losses
+
+For the training of the parameters $\mathbf{W}_v$ that are associated with the visual stream, we construct a loss that compares the saliency map $S^v$ and the activations $A^m$ with the ground truth maps $Y_{sal}$ obtained by the eye-tracking data:
+
+$$
+\begin{array}{l} \mathcal {L} _ {v} \left(\mathbf {W} _ {v}\right) = \mathcal {D} \left(\mathbf {W} _ {v} \mid \sigma \left(S ^ {v}\right), Y _ {s a l}\right) + \\ \sum_ {m = 1} ^ {4} \mathcal {D} \left(\mathbf {W} _ {A M} ^ {m} \mid \sigma \left(A ^ {m}\right), Y _ {s a l}\right), \tag {6} \\ \end{array}
+$$
+
+where $\sigma(\cdot)$ denotes the sigmoid non-linearity and $\mathcal{D}(\cdot)$ is a loss function between the estimated and the ground truth 2D maps. When we train the parameters $\mathbf{W}_{av}$ of the audiovisual network, we use the trained visual-only network as a starting point and we do not use the skip connections of the DSAM modules:
+
+$$
+\mathcal {L} _ {a v} \left(\mathbf {W} _ {a v}\right) = \mathcal {D} \left(\mathbf {W} _ {a v} \mid \sigma \left(S ^ {a v}\right), Y _ {s a t}\right). \tag {7}
+$$
+
+Several different metrics to evaluate saliency are employed in order to compare the predicted saliency map $P \in [0,1]^{N_X \times N_Y}$ to the eye-tracking data [6]. As ground truth maps we can use either the map of fixation locations $Y_{fix} \in \{0,1\}^{N_X \times N_Y}$ on the image plane of size $N_X \times N_Y$ or the dense saliency map $Y_{den} \in [0,1]^{N_X \times N_Y}$ that is produced by convolving the binary fixation map with a gaussian kernel. Thus, as $\mathcal{D}(\cdot)$ we employ three loss functions associated with the different aspects of saliency evaluation. The first is the cross-entropy loss between the predicted map
+
+$P$ and the dense map $Y_{den}$
+
+$$
+\begin{array}{l} \mathcal {D} _ {C E} (\mathbf {W} | P, Y _ {d e n}) = - \sum_ {x, y} Y _ {d e n} (x, y) \odot \log (P (x, y; \mathbf {W})) \\ + \left(1 - Y _ {d e n} (x, y)\right) \odot (1 - \log (P (x, y; \mathbf {W}))). \tag {8} \\ \end{array}
+$$
+
+The second loss function is based on the linear Correlation Coefficient (CC) [6] that is widely used in saliency evaluation and measures the linear relationship between the predicted saliency $P$ and the dense ground truth map $Y_{den}$ :
+
+$$
+\mathcal {D} _ {C C} (\mathbf {W} | P, Y _ {d e n}) = - \frac {\operatorname {c o v} (P (x , y ; \mathbf {W}) , Y _ {d e n} (x , y))}{\rho (P (x , y ; \mathbf {W})) \cdot \rho (Y _ {d e n} (x , y))}, \tag {9}
+$$
+
+where $\operatorname{cov}, \rho$ denote the covariance and the standard deviation respectively. The last loss is derived from the Normalized Scanpath Saliency (NSS) metric [6], which is computed as the estimated map values $\tilde{P}(x, y; \mathbf{W}) = \frac{P(x, y; \mathbf{W}) - \mu(P(x, y; \mathbf{W}))}{\rho(P(x, y; \mathbf{W}))}$ , after zero mean normalization and unit standardization, at human fixation locations $(Y_{fix}(x, y) = 1)$ :
+
+$$
+\mathcal {D} _ {N S S} (\mathbf {W} | \tilde {P}, Y _ {f i x}) = - \frac {1}{N _ {f}} \sum_ {x, y} \tilde {P} (x, y; \mathbf {W}) \odot Y _ {f i x} (x, y), \tag {10}
+$$
+
+where $N_{f} = \sum_{x,y}Y_{fix}(x,y)$ denotes the total number of fixation points. The final loss of the $i$ -th input sample is given by a weight combination of the losses $\mathcal{L}_{CE}^{i},\mathcal{L}_{CC}^{i},\mathcal{L}_{NSS}^{i}$ that are given either by Eq.(6) or Eq.(7) using the corresponding loss functions $\mathcal{D}_{CE}^{i},\mathcal{D}_{CC}^{i},\mathcal{D}_{NSS}^{i}$ :
+
+$$
+\mathcal {L} _ {s a l} ^ {i} (\mathbf {W}) = w _ {1} \mathcal {L} _ {C E} ^ {i} + w _ {2} \mathcal {L} _ {C C} ^ {i} + w _ {3} \mathcal {L} _ {N S S} ^ {i}, \tag {11}
+$$
+
+where $w_{1},w_{2},w_{3}$ are the weights of each loss type.
+
+# 3.6. Implementation
+
+Our implementation and experimentation with the visual network uses as backbone the 3D ResNet-50 architecture [20] that has showed competitive performance against other deeper architectures for action recognition task, in terms of performance and computational budget. As starting point for $\mathbf{W}_{res}$ we used the weights from the pretrained model in the Kinetics 400 database. For the audio stream we employ the SoundNet (using 7 out of 8 layers) architecture [3] that is based on 1D temporal convolution and has been successfully applied in acoustic scene/event classification tasks. As starting point for our audio representation network parameters $\mathbf{W}_a$ we use the weights from the pretrained model that has been trained on two million videos from Flickr [3]. Training: For training we employ stochastic gradient descent with momentum 0.9, while we assign a weight decay of 1e-5 for regularization. We have also employed effective batchesizes of 128 samples, and multistep learning rate.
+
+
+Figure 4. Sample frames from Coutrot1 database with their eyetracking data, and the corresponding ground truth, spatio-temporal visual, and audiovisual saliency maps as produced by STAViS (visual-only and audiovisual). Also NSS curve over time for visual and audiovisual approaches is depicted.
+
+First we train the visual-only spatio-temporal network and afterwards the whole audiovisual network using the visual network's weights as starting points. Note that DSAM modules' skip connections are used only for visual-only network training. The weights $w_{1}, w_{2}, w_{3}$ for the saliency loss are selected as 0.1, 2, 1 respectively, after experimentation.
+
+Data Augmentation: The input samples in the network consist of 16-frames RGB video clips spatially resized at $112 \times 112$ pixels, as well as the corresponding audio stream. We have also applied data augmentation for random generation of training samples. First, we divided the initial long-duration videos into 90-frame, non-overlapping segments and then generated the 16-frames from each segment by applying a random flipping process, as in [62], but without random cropping. We applied the same spatial transformations to the 16 frames of the video clip and the eye-tracking based saliency map of the median frame, which is considered the clip's ground truth map.
+
+Testing: During testing phase, we obtain an estimated saliency map per frame using a 16-frame sliding window with step 1 without any random flipping.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+In order to train and evaluate the proposed audiovisual saliency network, 6 different datasets are employed, containing audiovisual eye-tracking data: DIEM, AVAD,
+
+
+Figure 5. Sample frames from Coutrot2 database with their eyetracking data, and the corresponding ground truth, spatio-temporal visual, and audiovisual saliency maps as produced by STAViS (visual-only and audiovisual). Also NSS curve for visual and audiovisual approaches is depicted.
+
+| Dataset Method | Overall |
| CC ↑ | NSS ↑ | AUC-J ↑ | sAUC ↑ | SIM ↑ |
| Visual | 0.5260 | 2.54 | 0.8922 | 0.6187 | 0.4088 |
| L1_AudioOnly | 0.5132 | 2.48 | 0.8923 | 0.6220 | 0.4100 |
| L2_AudioOnly | 0.5381 | 2.63 | 0.8969 | 0.6171 | 0.4157 |
| L3_AudioOnly | 0.5226 | 2.59 | 0.8935 | 0.6228 | 0.4027 |
| L1_Sav | 0.5243 | 2.62 | 0.8924 | 0.6224 | 0.4103 |
| L2_Sav | 0.5344 | 2.69 | 0.8944 | 0.6215 | 0.4249 |
| L3_Sav | 0.5354 | 2.71 | 0.8959 | 0.6236 | 0.4278 |
| L1_Sav | 0.5069 | 2.43 | 0.8687 | 0.6223 | 0.2985 |
| L2_Sav | 0.5082 | 2.44 | 0.8699 | 0.6225 | 0.2996 |
| L3_Sav | 0.5066 | 2.46 | 0.8622 | 0.6219 | 0.2981 |
| L3mul_Sav | 0.5271 | 2.56 | 0.8943 | 0.6242 | 0.4132 |
| L3mul_Sav | 0.5414 | 2.73 | 0.8983 | 0.6267 | 0.4241 |
| L3mul_Savfus | 0.5401 | 2.70 | 0.8979 | 0.6261 | 0.4290 |
+
+Table 1. Ablation study: $L_{1}$ , $L_{2}$ and $L_{3}$ refer to the audio localization method: cosine, inner product and bilinear respectively. $S_{1}^{av}$ , $S_{2}^{av}$ , $S_{3}^{av}$ and $S_{fus}^{av}$ refer to the different fusion methods. Superscript "mul" refers to multiple feature maps.
+
+Coutrot1, Coutrot2, SumMe, and ETMD. These databases consist of various types of videos, ranging from very structured small videos to completely unstructured, user-made Youtube videos. Our goal is to train and evaluate the model using different types of audiovisual data, in order to obtain a good performance "in-the-wild" and help the model learn if and when it should use audio to enhance visual saliency. A short description for each database follows.
+
+AVAD: AVAD database [39] contains 45 short clips of 5-10 sec duration with several audiovisual scenes, e.g. dancing, guitar playing, bird signing, etc. A joint audiovisual event
+
+| Dataset Method | DIEM | Coutrot1 | Coutrot2 |
| CC↑ | NSS↑ | AUC-J↑ | sAUC↑ | SIM↑ | CC↑ | NSS↑ | AUC-J↑ | sAUC↑ | SIM↑ | CC↑ | NSS↑ | AUC-J↑ | sAUC↑ | SIM↑ |
| STAViS [STA] | 0.5795 | 2.26 | 0.8838 | 0.6741 | 0.4824 | 0.4722 | 2.11 | 0.8686 | 0.5847 | 0.3935 | 0.7349 | 5.28 | 0.9581 | 0.7106 | 0.5111 |
| STAViS [ST] | 0.5665 | 2.19 | 0.8792 | 0.6648 | 0.4719 | 0.4587 | 1.99 | 0.8617 | 0.5764 | 0.3842 | 0.6529 | 4.19 | 0.9405 | 0.6895 | 0.4470 |
| DeepNet [44] [S] | 0.4075 | 1.52 | 0.8321 | 0.6227 | 0.3183 | 0.3402 | 1.41 | 0.8248 | 0.5597 | 0.2732 | 0.3012 | 1.82 | 0.8966 | 0.6000 | 0.2019 |
| DVA [63] [S] | 0.4779 | 1.97 | 0.8547 | 0.641 | 0.3785 | 0.4306 | 2.07 | 0.8531 | 0.5783 | 0.3324 | 0.4634 | 3.45 | 0.9328 | 0.6324 | 0.2742 |
| SAM [11] [S] | 0.4930 | 2.05 | 0.8592 | 0.6446 | 0.4261 | 0.4329 | 2.11 | 0.8571 | 0.5768 | 0.3672 | 0.4194 | 3.02 | 0.9320 | 0.6152 | 0.3041 |
| SalGAN [43] [S] | 0.4868 | 1.89 | 0.8570 | 0.6609 | 0.3931 | 0.4161 | 1.85 | 0.8536 | 0.5799 | 0.3321 | 0.4398 | 2.96 | 0.9331 | 0.6183 | 0.2909 |
| ACLNet [64, 65] [ST] | 0.5229 | 2.02 | 0.8690 | 0.6221 | 0.4279 | 0.4253 | 1.92 | 0.8502 | 0.5429 | 0.3612 | 0.4485 | 3.16 | 0.9267 | 0.5943 | 0.3229 |
| DeepVS [25] [ST] | 0.4523 | 1.86 | 0.8406 | 0.6256 | 0.3923 | 0.3595 | 1.77 | 0.8306 | 0.5617 | 0.3174 | 0.4494 | 3.79 | 0.9255 | 0.6469 | 0.2590 |
| TASED [38] [ST] | 0.5579 | 2.16 | 0.8812 | 0.6579 | 0.4615 | 0.4799 | 2.18 | 0.8676 | 0.5808 | 0.3884 | 0.4375 | 3.17 | 0.9216 | 0.6118 | 0.3142 |
+
+Table 2. Evaluation results for saliency in DIEM, Coutrot1 and Coutrot2 databases. The proposed method's (STAViS [STA]) results are depicted in the first row, while the second one refers to our visual-only version. In most cases, the proposed network outperforms the existing state-of-the-art methods for saliency estimation according the five evaluation metrics. [STA] stands for spatio-temporal audiovisual, [ST] for spatio-temporal visual models while [S] denotes a spatial only model that is applied to each frame independently.
+
+| Dataset Method | AVAD | SumMe | ETMD |
| CC↑ | NSS↑ | AUC-J↑ | sAUC↑ | SIM↑ | CC↑ | NSS↑ | AUC-J↑ | sAUC↑ | SIM↑ | CC↑ | NSS↑ | AUC-J↑ | sAUC↑ | SIM↑ |
| STAViS [STA] | 0.6086 | 3.18 | 0.9196 | 0.5936 | 0.4578 | 0.4220 | 2.04 | 0.8883 | 0.6562 | 0.3373 | 0.5690 | 2.94 | 0.9316 | 0.7317 | 0.4251 |
| STAViS [ST] | 0.6041 | 3.07 | 0.9157 | 0.5900 | 0.4431 | 0.4180 | 1.98 | 0.8848 | 0.6477 | 0.3325 | 0.5602 | 2.84 | 0.9290 | 0.7278 | 0.4121 |
| DeepNet [44] [S] | 0.3831 | 1.85 | 0.8690 | 0.5616 | 0.2564 | 0.3320 | 1.55 | 0.8488 | 0.6451 | 0.2274 | 0.3879 | 1.90 | 0.8897 | 0.6992 | 0.2253 |
| DVA [63] [S] | 0.5247 | 3.00 | 0.8887 | 0.5820 | 0.3633 | 0.3983 | 2.14 | 0.8681 | 0.6686 | 0.2811 | 0.4965 | 2.72 | 0.9039 | 0.7288 | 0.3165 |
| SAM [11] [S] | 0.5279 | 2.99 | 0.9025 | 0.5777 | 0.4244 | 0.4041 | 2.21 | 0.8717 | 0.6728 | 0.3272 | 0.5068 | 2.78 | 0.9073 | 0.7310 | 0.3790 |
| SalGAN [43] [S] | 0.4912 | 2.55 | 0.8865 | 0.5799 | 0.3608 | 0.3978 | 1.97 | 0.8754 | 0.6882 | 0.2897 | 0.4765 | 2.46 | 0.9035 | 0.7463 | 0.3117 |
| ACLNet [64, 65] [ST] | 0.5809 | 3.17 | 0.9053 | 0.5600 | 0.4463 | 0.3795 | 1.79 | 0.8687 | 0.6092 | 0.2965 | 0.4771 | 2.36 | 0.9152 | 0.6752 | 0.3290 |
| DeepVS [25] [ST] | 0.5281 | 3.01 | 0.8968 | 0.5858 | 0.3914 | 0.3172 | 1.62 | 0.8422 | 0.6120 | 0.2622 | 0.4616 | 2.48 | 0.9041 | 0.6861 | 0.3495 |
| TASED [38] [ST] | 0.6006 | 3.16 | 0.9146 | 0.5898 | 0.4395 | 0.4288 | 2.10 | 0.8840 | 0.6570 | 0.3337 | 0.5093 | 2.63 | 0.9164 | 0.7117 | 0.3660 |
+
+Table 3. Evaluation results for audiovisual saliency in AVAD, SumMe and ETMD databases. The proposed method's (STAViS [STA]) results are depicted in the first row, while the second one refers to our visual-only version. In most cases, the proposed network outperforms the existing state-of-the-art methods for saliency estimation according the five evaluation metrics. [STA] stands for spatio-temporal audiovisual, [ST] for spatio-temporal visual models while [S] denotes a spatial only model that is applied to each frame independently.
+
+per video is always present. Eye-tracking data from 16 participants have been recorded.
+
+Coutrot databases: Coutrot databases [13, 14] are split in Coutrot1 and Coutrot2: Coutrot1 contains 60 clips with dynamic natural scenes split in 4 visual categories: one/several moving objects, landscapes, and faces. Eye-tracking data from 72 participants have been recorded. Coutrot2 contains 15 clips of 4 persons in a meeting and the corresponding eye-tracking data from 40 persons.
+
+DIEM: DIEM database [41] consists of 84 movies of all sorts, sourced from publicly accessible repositories, including advertisements, documentaries, game trailers, movie trailers, music videos, news clips, and time-lapse footage. Thus, the majority of DIEM videos are documentary-like, which means that audio and visual information do not correspond to the same event. Eye movement data from 42 participants were recorded via an Eyelink eye-tracker, while watching the videos in random order and with the audio on.
+
+SumMe: SumMe database [19, 58] contains 25 unstructured videos, i.e. mostly user-made videos, as well as their corresponding multiple-human created summaries, which were acquired in a controlled psychological experiment. Audiovisual eye-tracking data have been collected [58] from 10 viewers, recorded via an Eyelink eye-tracker.
+
+ETMD: ETMD database [27, 58] contains 12 videos from six different hollywood movies. Audiovisual eye-tracking data have been collected [58] from 10 viewers, recorded via an Eyelink eye-tracker.
+
+# 4.2. Experimental Results
+
+Training has been performed by combining data from all datasets: For DIEM, the standard split from literature has been employed [5]. For the other 5 databases, where there is no particular split, we created 3 different splits of the data, in the sense of 3-fold cross-validation, with nonoverlapping videos between train, validation and test sets for each split, uniformly split among datasets. Among these 3 different splits, different videos were placed in each split, namely, if video1 of dataset1 was placed in test set of split1, then it would not appear in any other test set. We ensured that all videos of each dataset would appear once in the test set of one split. The models' final performance was obtained by taking the average among all 3 splits. The same procedure was carried out both for our audiovisual and visual variants, in order to ensure a fair comparison.
+
+For the evaluation of STAViS network, we first investigate the performance of the various sound localization and fusion techniques described in Sec. 3. We pick the method with the best results and compare it to 8 state-of-the-art visual saliency methods (using their publicly available codes and models), in all 6 databases on the same test data. We employ five widely-used evaluation metrics for saliency [6]: CC, NSS, AUC-Judd (AUC-J), shuffled AUC (sAUC) and SIM (similarity). For sAUC we select the negative samples from the union of all viewers' fixations across all other frames except the frame for which we compute the AUC.
+
+Ablation study: Regarding Table 1, we can observe
+
+that bilinear transformation $L_{3}$ achieves better performance compared to the other sound localization methods since the latter can be considered as simpler versions of the bilinear function. Moreover, it can be noted that methods based only on audio localization can achieve quite high scores while they are further improved when fused with pure visual cues. Especially when multiple maps are fused with the visual ones by concatenation $S_{3}^{av}$ , thus allowing for the most interaction between the features, the best performance is achieved in almost all metrics. Competitive performance is also achieved with late fusion, as indicated by the last row of Table 1. Overall, cosine similarity for localization $L_{1}$ performs worst in all cases, since it does not have any learnable parameters, while fusion scheme $S_{2}^{av}$ that has performed well in signal processing based methods [58] does not seem suitable for deep learning approaches. Thus, we pick up method $L_{3}^{mul}S_{3}^{av}$ as our proposed STAViS method. Figures 4, 5 depict some sample frames from Coutrot1 and Coutrot2 along with their corresponding eye-tracking data and the ground truth, visual-only (ours) and the STAViS saliency maps. Attention is much better captured by the proposed STAViS model. They also depict NSS curve over time for visualization and comparison purposes.
+
+Comparisons with state-of-the-art: Next, we proceed with extensive comparisons with 8 different state-of-the-art saliency methods, depicted for the five metrics per database, in Tables 2, 3. Results highlight the superiority of our proposed audiovisual method, as it outperforms almost for all databases and metrics the other state-of-the-art methods. We can observe that all the other state-of-the-art methods, except for TASED, achieve good performance in some databases, but not consistently, meaning that they might perform well for particular types of video but not for all types. For example, ACLNet performs well for AVAD database but not equally well in SumMe which has more unstructured, home-made videos. TASED achieves good performance, even better than STAViS for CC and NSS in Coutrot1 and SumMe, but it does not perform equally well for Coutrot2. Overall, a good performance is achieved from our visual-only version as well.
+
+Discussion: Our proposed spatio-temporal auditory saliency model STAViS performs consistently well across all datasets, achieving the best performance compared to state-of-the-art methods for almost all databases and metrics. It should be noted that these databases contain a large variety of videos types. From documentaries, where there is no audiovisual correspondence, to Hollywood movies and unprocessed user-made videos. Thus our model achieves a good performance "in-the-wild", without any prior knowledge on the content of the video. This performance for this large range could indicate that our model is capable of learning if, where and when auditory saliency integration should be performed. In addition, especially in Coutrot2
+
+
+Figure 6. Sample frame from ETMD, AVAD, DIEM and SumMe databases with their eye-tracking data, and the corresponding ground truth, STAViS, and other spatio-temporal state-of-the-art visual saliency maps for comparisons.
+
+that is the most "audiovisual" database in the sense that all included events/videos consist of audiovisual scenes, our model clearly outperforms the rest by a large margin probably because it better captures the audiovisual correspondences. For visualization purposes, in Fig. 6 a sample frame from ETMD, AVAD, DIEM and SumMe database is presented with its corresponding eye-tracking data in the first row. The second row depicts the ground truth saliency map. The third row includes the corresponding saliency maps from our STAViS model, while the final 3 rows, the same maps for ACLNet, DeepVS and TASED. It can easily be observed that our results are closer to the ground truth.
+
+# 5. Conclusions
+
+We have proposed STAViS, a novel spatio-temporal audiovisual network that efficiently addresses the problem of fixation prediction in videos, i.e. video saliency estimation. It employs an extended state-of-the-art visual saliency network, a state-of-the-art audio representation network and features a sound source localization module that produces one or multiple auditory saliency maps and a fusion module that combines auditory and visual saliency maps in order to produce an audiovisual saliency map. All components have been designed, trained end-to-end, and extensively evaluated in a variety of videos. Results for 5 different metrics in 6 different databases and comparison with 8 state-of-the-art methods indicate the appropriateness and efficiency of this audiovisual approach for saliency modeling.
+
+# References
+
+[1] Relja Arandjelovic and Andrew Zisserman. Look, listen and learn. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), pages 609-617, 2017.
+[2] Relja Arandjelovic and Andrew Zisserman. Objects that sound. In Proc. European Conf. on Computer Vision (ECCV), pages 435-451, 2018.
+[3] Yusuf Aytar, Carl Vondrick, and Antonio Torralba. Soundnet: Learning sound representations from unlabeled video. In Proc. Advances in Neural Information Processing Systems (NIPS), pages 892-900, 2016.
+[4] Cagdas Bak, Aysun Kocak, Erkut Erdem, and Aykut Erdem. Spatio-temporal saliency networks for dynamic saliency prediction. IEEE Trans. Multimedia, 20(7):1688-1698, 2018.
+[5] A. Borji, D. N. Sihite, and L. Itti. Quantitative analysis of human-model agreement in visual saliency modeling: A comparative study. IEEE Trans. Image Process., 22(1):55-69, 2013.
+[6] Zoya Bylinskii, Tilke Judd, Aude Oliva, Antonio Torralba, and Frédo Durand. What do different evaluation metrics tell us about saliency models? arXiv preprint arXiv:1604.03605, 2016.
+[7] Sergi Caelles, Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Laura Leal-Taixe, Daniel Cremers, and Luc Van Gool. One-shot video object segmentation. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017.
+[8] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017.
+[9] Yanxiang Chen, Tam V Nguyen, Mohan S Kankanhalli, Jun Yuan, Shuicheng Yan, and Meng Wang. Audio matters in visual attention. IEEE Trans. Circuits Syst. Video Technol., 24(11):1992-2003, 2014.
+[10] Chung-Cheng Chiu, Tara N Sainath, Yonghui Wu, Rohit Prabhavalkar, Patrick Nguyen, Zhifeng Chen, Anjuli Kannan, Ron J Weiss, Kanishka Rao, Ekaterina Gonina, et al. State-of-the-art speech recognition with sequence-to-sequence models. In Proc. IEEE Int. Conf. Acous., Speech, and Signal Processing (ICASSP), pages 4774-4778. IEEE, 2018.
+[11] Marcella Cornia, Lorenzo Baraldi, Giuseppe Serra, and Rita Cucchiara. Predicting Human Eye Fixations via an LSTM-based Saliency Attentive Model. IEEE Trans. Image Process., 27(10):5142-5154, 2018.
+[12] Antoine Coutrot and Nathalie Guyader. An audiovisual attention model for natural conversation scenes. In Proc. IEEE Int. Conf. on Image Processing (ICIP), pages 1100-1104, 2014.
+[13] Antoine Coutrot and Nathalie Guyader. How saliency, faces, and sound influence gaze in dynamic social scenes. Journal of Vision, 14(8):1-17, 2014.
+[14] Antoine Coutrot and Nathalie Guyader. Multimodal saliency models for videos. In Matei Mancas, Vincent P. Ferrera, Nicolas Riche, and John G. Taylor, editors, From Human Attention to Computational Attention: A Multidisciplinary Approach, pages 291-304. Springer New York, 2016.
+
+[15] Tung Dang, Christos Papachristos, and Kostas Alexis. Visual saliency-aware receding horizon autonomous exploration with application to aerial robotics. In IEEE Int. Conf. on Robotics and Automation (ICRA), pages 2526-2533. IEEE, 2018.
+[16] Georgios Evangelopoulos, Athanasia Zlatintsi, Alexandros Potamianos, Petros Maragos, Konstantinos Rapantzikos, Georgios Skoumas, and Yannis Avrithis. Multimodal saliency and fusion for movie summarization based on aural, visual, textual attention. IEEE Trans. Multimedia, 15(7):1553-1568, Nov. 2013.
+[17] Siavash Gorji and James J. Clark. Going from image to video saliency: Augmenting image salience with dynamic attentional push. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018.
+[18] Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In Proc. IEEE Int. Conf. Acous., Speech, and Signal Processing (ICASSP), pages 6645–6649. IEEE, 2013.
+[19] Michael Gygli, Helmut Grabner, Hayko Riemenschneider, and Luc Van Gool. Creating summaries from user videos. In Proc. European Conf. on Computer Vision (ECCV), pages 505-520, 2014.
+[20] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and imageNet. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018.
+[21] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), 2017.
+[22] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2016.
+[23] Xun Huang, Chengyao Shen, Xavier Boix, and Qi Zhao. Silicon: Reducing the semantic gap in saliency prediction by adapting deep neural networks. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), pages 262-270, 2015.
+[24] Saumya Jetley, Naila Murray, and Eleonora Vig. End-to-end saliency mapping via probability distribution prediction. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 5753-5761, 2016.
+[25] Lai Jiang, Mai Xu, Tie Liu, Minglang Qiao, and Zulin Wang. Deepvs: A deep learning based video saliency prediction approach. In Proc. European Conf. on Computer Vision (ECCV). 2018.
+[26] Bruno Korbar, Du Tran, and Lorenzo Torresani. Cooperative learning of audio and video models from self-supervised synchronization. In Advances in Neural Information Processing Systems, pages 7763-7774, 2018.
+[27] Petros Koutras and Petros Maragos. A perceptually based spatio-temporal computational framework for visual saliency estimation. Signal Process.: Image Communication, 38:15-31, 2015.
+[28] Petros Koutras and Petros Maragos. Susinet: See, understand and summarize it. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition Workshop (CVPRW), 2019.
+
+[29] Petros Koutras, Georgia Panagiotaropoulou, Antigoni Tsiami, and Petros Maragos. Audio-visual temporal saliency modeling validated by fmri data. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition Workshop (CVPRW), pages 2000–2010, 2018.
+[30] Gábor Kovács, Yasuharu Kunii, Takao Maeda, and Hideki Hashimoto. Saliency and spatial information-based landmark selection for mobile robot navigation in natural environments. Advanced Robotics, 33(10):520-535, 2019.
+[31] Matthias Kümmerer, Lucas Theis, and Matthias Bethge. Deep gaze I: Boosting saliency prediction with feature maps trained onImagenet. In Int. Conf. on Learning Representations Workshops (ICLRW), 2015.
+[32] Qiuxia Lai, Wenguan Wang, Hanqiu Sun, and Jianbing Shen. Video saliency prediction using spatiotemporal residual attentive networks. IEEE Trans. Image Process., 29:1113-1126, 2019.
+[33] George Leifman, Dmitry Rudoy, Tristan Swedish, Eduardo Bayro-Corrochano, and Ramesh Raskar. Learning gaze transitions from depth to improve video saliency estimation. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), 2017.
+[34] Panagiotis Linardos, Eva Mohedano, Juan Jose Nieto, Kevin McGuinness, Xavier Giro-i Nieto, and Noel E. O'Connor. Simple vs complex temporal recurrences for video saliency prediction. In British Machine Vision Conf. (BMVC), 2019.
+[35] Harry McGurk and John MacDonald. Hearing lips and seeing voices. Nature, 264:746-748, 1976.
+[36] M Alex Meredith and Barry E Stein. Interactions among converging sensory inputs in the superior colliculus. Science, 221(4608):389-391, 1983.
+[37] M Alex Meredith and Barry E Stein. Visual, auditory, and somatosensory convergence on cells in superior colliculus results in multisensory integration. Journal of Neurophysiology, 56(3):640-662, 1986.
+[38] Kyle Min and Jason J. Corso. Tased-net: Temporally-aggregating spatial encoder-decoder network for video saliency detection. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), pages 2394-2403, 2019.
+[39] Xiongkuo Min, Guangtao Zhai, Ke Gu, and Xiaokang Yang. Fixation prediction through multimodal analysis. ACM Transactions on Multimedia Computing, Communications, and Applications, 13(1), 2017.
+[40] Xiongkuo Min, Guangtao Zhai, Chunjia Hu, and Ke Gu. Fixation prediction through multimodal analysis. In Proc. IEEE Int. Conf. on Visual Communications and Image Processing, 2015.
+[41] Parag K. Mital, Tim J. Smith, Robin Hill, and John M. Henderson. Clustering of gaze during dynamic scene viewing is predicted by motion. Cognitive Computation, 3(1):5-24, 2011.
+[42] Andrew Owens and Alexei A Efros. Audio-visual scene analysis with self-supervised multisensory features. In Proc. European Conf. on Computer Vision (ECCV), pages 631–648, 2018.
+[43] Junting Pan, Cristian Canton, Kevin McGuinness, Noel E. O'Connor, Jordi Torres, Elisa Sayrol, and Xavier Giro-i Ni eto. Salgan: Visual saliency prediction with generative ad
+
+versarial networks. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition Workshop (CVPRW), 2017.
+[44] Junting Pan, Elisa Sayrol, Xavier Giro-i Nieto, Kevin McGuinness, and Noel E. O'Connor. Shallow and deep convolutional networks for saliency prediction. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 598-606, 2016.
+[45] Paul Primus, Hamid Eghbal-zadeh, David Eitelsebner, Khaled Koutini, Andreas Arzt, and Gerhard Widmer. Exploiting parallel audio recordings to enforce device invariance in cnn-based acoustic scene classification. arXiv preprint arXiv:1909.02869, 2019.
+[46] Sudarshan Ramenahalli, Daniel R Mendat, Salvador Durabernal, Eugenio Culurciello, Ernst Niebur, and Andreas Andreou. Audio-visual saliency map: Overview, basic models and hardware implementation. In Proc. Information Sciences and Systems (CISS), pages 1–6, 2013.
+[47] Rémi Ratajczak, Denis Pellerin, Quentin Labourrey, and Catherine Garbay. A fast audiovisual attention model for human detection and localization on a companion robot. In Int. Conf. on Applications and Systems of Visual Paradigms, 2016.
+[48] Jamie Ray, Heng Wang, Du Tran, Yufei Wang, Matt Feiszli, Lorenzo Torresani, and Manohar Paluri. Scenes-objectsactions: A multi-task, multi-label video dataset. In Proc. European Conf. on Computer Vision (ECCV), 2018.
+[49] Jonas Ruesch, Manuel Lopes, Alexandre Bernardino, Jonas Hornstein, José Santos-Victor, and Rolf Pfeifer. Multimodal saliency-based bottom-up attention a framework for the humanoid robot iCub. In IEEE Int. Conf. on Robotics and Automation (ICRA), pages 962-967, 2008.
+[50] Boris Schauerte, Benjamin Kühn, Kristian Kroschel, and Rainer Stiefelhagen. Multimodal saliency-based attention for object-based scene analysis. In IEEE Int. Conf. on Intelligent Robots and Systems (IROS), pages 1173-1179. IEEE, 2011.
+[51] Arda Senocak, Tae-Hyun Oh, Junsik Kim, Ming-Hsuan Yang, and In So Kweon. Learning to localize sound source in visual scenes. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018.
+[52] Naty Sidaty, Mohamed-Chaker Larabi, and Abdelhakim Saadane. Toward an audiovisual attention model for multimodal video content. Neurocomputing, pages 94-111, 2017.
+[53] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In Int. Conf. on Learning Representations (ICLR), 2015.
+[54] Vincent Sitzmann, Ana Serrano, Amy Pavel, Maneesh Agrawala, Diego Gutierrez, Belen Masia, and Gordon Wetzstein. Saliency in vr: How do people explore virtual environments? IEEE Trans. Visualiz. Comp. Graphics, 24(4):1633-1642, 2018.
+[55] Guanghan Song. Effect of sound in videos on gaze: Contribution to audio-visual saliency modeling. PhD thesis, Universite de Grenoble, 2013.
+[56] Hamed R Tavakoli, Ali Borji, Esa Rahtu, and Juho Kannala. Dave: A deep audio-visual embedding for dynamic saliency prediction. arXiv preprint arXiv:1905.10693, 2019.
+
+[57] Yapeng Tian, Jing Shi, Bochen Li, Zhiyao Duan, and Chen-liang Xu. Audio-visual event localization in unconstrained videos. In Proc. European Conf. on Computer Vision (ECCV), pages 247–263, 2018.
+[58] Antigoni Tsiami, Petros Koutras, Athanasios Katsamanis, Argiro Vatakis, and Petros Maragos. A behaviorally inspired fusion approach for computational audiovisual saliency modeling. Signal Processing: Image Communication, 76:186-200, 2019.
+[59] Erik Van der Burg, Christian NL Olivers, Adelbert W Bronkhorst, and Jan Theeuwes. Pip and pop: Nonspatial auditory signals improve spatial visual search. Journal of Experimental Psychology: Human Perception and Performance, 34:1053-1065, 2008.
+[60] Argiro Vatakis and Charles Spence. Crossmodal binding: Evaluating the "unity assumption" using audiovisual speech stimuli. Perception & Psychophysics, 69(5):744-756, 2007.
+[61] Eleonora Vig, Michael Dorr, and David Cox. Large-scale optimization of hierarchical features for saliency prediction in natural images. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 2798-2805, 2014.
+[62] 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 Proc. European Conf. on Computer Vision (ECCV), pages 20-36, 2016.
+[63] Wenguan Wang and Jianbing Shen. Deep visual attention prediction. IEEE Trans. Image Process., 27(5):2368-2378, 2018.
+[64] Wenguan Wang, Jianbing Shen, Fang Guo, Ming-Ming Cheng, and Ali Borji. Revisiting video saliency: A large-scale benchmark and a new model. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2018.
+[65] Wenguan Wang, Jianbing Shen, Jianwen Xie, Ming-Ming Cheng, Haibin Ling, and Ali Borji. Revisiting video saliency prediction in the deep learning era. IEEE Trans. Pattern Anal. Mach. Intell. (PAMI), pages 1-17, 2019.
+[66] Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), 2015.
+[67] Xia Yuan, Juan Yue, and Yanan Zhang. RGB-d saliency detection: Dataset and algorithm for robot vision. In 2018 IEEE Int. Conf. on Robotics and Biomimetics (ROBIO), pages 1028-1033. IEEE, 2018.
+[68] Hang Zhao, Chuang Gan, Wei-Chiu Ma, and Antonio Torralba. The sound of motions. In Proc. IEEE Int. Conf. on Computer Vision (ICCV), pages 1735-1744, 2019.
+[69] Hang Zhao, Chuang Gan, Andrew Rouditchenko, Carl Vondrick, Josh McDermott, and Antonio Torralba. The sound of pixels. In Proc. European Conf. on Computer Vision (ECCV), pages 570-586, 2018.
\ No newline at end of file
diff --git a/stavisspatiotemporalaudiovisualsaliencynetwork/images.zip b/stavisspatiotemporalaudiovisualsaliencynetwork/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7022256cf7e3b8e360d95081f2932840d79a284d
--- /dev/null
+++ b/stavisspatiotemporalaudiovisualsaliencynetwork/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:325da4fb951691e08b2177187b9759c385da12183310472157bcd7e4722ee6da
+size 701946
diff --git a/stavisspatiotemporalaudiovisualsaliencynetwork/layout.json b/stavisspatiotemporalaudiovisualsaliencynetwork/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..fd4e2f876dc2a51da6ea9138c2213a5ed541f7f8
--- /dev/null
+++ b/stavisspatiotemporalaudiovisualsaliencynetwork/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0142176e04a663a23c36bdaa9847b12a436bdf4578fc84f967a5efa29cb18927
+size 385105
diff --git a/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_content_list.json b/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..3fa9f4297c96d2a879a79ea9661ff32ca9d5bf72
--- /dev/null
+++ b/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:efa52c0a46eb569218a470cbcdeea010c35402c4f63899183838228ca168278f
+size 64169
diff --git a/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_model.json b/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9f0bd767ac1b57c66916c9f826e7e304f8fd77e4
--- /dev/null
+++ b/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e1dd9d87e867f0b8ed0da174474322fe882262c55735a734cd7034a331cf975
+size 78557
diff --git a/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_origin.pdf b/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4a46aeb50b41ad08993d6c64b1772612cd6b788b
--- /dev/null
+++ b/stefannscenetexteditorusingfontadaptiveneuralnetwork/9d363466-cfe8-454c-a0c3-00b45ac89658_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:309c8aec9e964efb82351e78bc58151011fd3a2ba1b077d3fc4637c44e82e664
+size 2489280
diff --git a/stefannscenetexteditorusingfontadaptiveneuralnetwork/full.md b/stefannscenetexteditorusingfontadaptiveneuralnetwork/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9b0137bef29073a63f4ba277ab1bdbe564969441
--- /dev/null
+++ b/stefannscenetexteditorusingfontadaptiveneuralnetwork/full.md
@@ -0,0 +1,241 @@
+# STEFANN: Scene Text Editor using Font Adaptive Neural Network
+
+Prasun Roy $^{1*}$ , Saumik Bhattacharya $^{2*}$ , Subhankar Ghosh $^{1*}$ , and Umapada Pal $^{1}$ $^{1}$ Indian Statistical Institute, Kolkata, India
+ $^{2}$ Indian Institute of Technology, Kharagpur, India
+
+https://prasunroy.github.io/steffann
+
+# Abstract
+
+Textual information in a captured scene plays an important role in scene interpretation and decision making. Though there exist methods that can successfully detect and interpret complex text regions present in a scene, to the best of our knowledge, there is no significant prior work that aims to modify the textual information in an image. The ability to edit text directly on images has several advantages including error correction, text restoration and image reusability. In this paper, we propose a method to modify text in an image at character-level. We approach the problem in two stages. At first, the unobserved character (target) is generated from an observed character (source) being modified. We propose two different neural network architectures - (a) FANnet to achieve structural consistency with source font and (b) Colornet to preserve source color. Next, we replace the source character with the generated character maintaining both geometric and visual consistency with neighboring characters. Our method works as a unified platform for modifying text in images. We present the effectiveness of our method on COCO-Text and ICDAR datasets both qualitatively and quantitatively.
+
+# 1. Introduction
+
+Text is widely present in different design and scene images. It contains important contextual information for the readers. However, if any alteration is required in the text present in an image, it becomes extremely difficult for several reasons. For instance, a limited number of observed characters makes it difficult to generate unobserved characters with sufficient visual consistency. Also, different natural conditions, like brightness, contrast, shadow, perspective distortion, complex background, etc., make it harder to replace a character directly in an image. The main motivation of this work is to design an algorithm for editing textual information present in images in a convenient way similar to
+
+
+Figure 1. Examples of text editing using STEFANN: (a) Original images from ICDAR dataset; (b) Edited images. It can be observed that STEFANN can edit multiple characters in a word (top row) as well as an entire word (bottom row) in a text region.
+
+
+
+the conventional text editors.
+
+Earlier, researchers have proposed font synthesis algorithms based on different geometrical features of fonts [6, 24, 27]. These geometrical models neither generalize the wide variety of available fonts nor can be applied directly to an image for character synthesis. Later, researchers have addressed the problem of generating unobserved characters of a particular font from some defined or random set of observations using deep learning algorithms [4, 7, 31]. With the emergence of Generative Adversarial Network (GAN) models, the problem of character synthesis has also been addressed using GAN-based algorithms [2, 19]. Though GAN-based font synthesis could be used to estimate the target character, several challenges make the direct implementation of font synthesis for scene images difficult. Firstly, most of the GAN-based font synthesis models require an explicit recognition of the source character. As recognition of text in scene images is itself a challenging problem, it is preferable if the target characters can be generated without
+
+a recognition step. Otherwise, any error in the recognition process would accumulate, and make the entire text editing process unstable. Secondly, it is often observed that a particular word in an image may have a mixture of different font types, sizes, colors, etc. Even depending on the relative location of the camera and the texts in the scene, each character may experience a different amount of perspective distortion. Some GAN-based models [2, 19] require multiple observations of a font-type to faithfully generate unobserved characters. A multiple observation-based generation strategy requires a rigorous distortion removal step before applying generative algorithms. Thus, rather than a word-level generation, we follow a character-level generative model to accommodate maximum flexibility.
+
+Contributions: To the best of our knowledge, this is the first work that attempts to modify texts in scene images. For this purpose, we design a generative network that adapts to the font features of a single character and generates other necessary characters. We also propose a model to transfer the color of the source character to the target character. The entire process works without any explicit character recognition.
+
+To restrict the complexity of our problem, we limit our discussion to the scene texts with upper-case non-overlapping characters. However, we demonstrate in Figs. 5 and 13 that the proposed method can also be applied for lower-case characters and numerals.
+
+# 2. Related Works
+
+Because of its large potential, character synthesis from a few examples is a well-known problem. Previously, several pieces of work tried to address the problem using geometrical modeling of fonts [6, 24, 27]. Different synthesis models are also proposed by researchers explicitly for Chinese font generation [19, 37]. Along with statistical models [24] and bilinear factorization [30], machine learning algorithms are used to transfer font features. Recently, deep learning techniques also become popular in the font synthesis problem. Supervised [31] and definite samples [4] of observations are used to generate the unknown samples using deep neural architecture. Recently, Generative Adversarial Network (GAN) models are found to be effective in different image synthesis problems. GANs can be used in image style transfer [10], structure generation [13] or in both [2]. Some of these algorithms achieved promising results in generating font structures [7, 19], whereas some exhibits the potential to generate complex fonts with color [2]. To the best of our knowledge, these generative algorithms work with text images that are produced using design software, and their applicability to edit real scene images are unknown. Moreover, most of the algorithms [2, 4] require explicit recognition of the source characters to generate the unseen character set. This may create difficulty in our prob
+
+lem as text recognition in scene images is itself a challenging problem [3, 11, 21] and any error in the recognition step may affect the entire generative process. Character generation from multiple observations is also challenging for scene images as the observed characters may have distinctively different characteristics like font types, sizes, colors, perspective distortions, etc.
+
+Convolutional Neural Network (CNN) is proved to be effective in style transfer with generative models [10, 17, 18]. Recently, CNN models are used to generate style and structure with different visual features [9]. We propose a CNN-based character generation network that works without any explicit recognition of the source characters. For a natural-looking generation, it is also important to transfer the color and texture of the source character to the generated character. Color transfer is a widely explored topic in image processing [25, 28, 35]. Though these traditional approaches are good for transferring global colors in images, most of them are inappropriate for transferring colors in more localized character regions. Recently, GANs are also employed in color transfer problem [2, 16]. In this work, we introduce a CNN-based color transfer model that takes the color information present in the source character and transfer it to the generated target character. The proposed color transfer model not only transfers solid colors from source to target character, it can also transfer gradient colors keeping subtle visual consistency.
+
+# 3. Methodology
+
+The proposed method is composed of the following steps: (1) Selection of the source character to be replaced, (2) Generation of the binary target character, (3) Color transfer and (4) Character placement. In the first step, we manually select the text area that requires to be modified. Then, the algorithm detects the bounding boxes of each character in the selected text region. Next, we manually select the bounding box around the character to be modified and also specify the target character. Based on these user inputs, the target character is generated, colorized and placed in the inpainted region of the source character.
+
+# 3.1. Selection of the source character
+
+Let us assume that $I$ is an image that has multiple text regions, and $\Omega$ is the domain of a text region that requires modification. The region $\Omega$ can be selected using any text detection algorithm [5, 20, 36]. Alternatively, a user can select the corner points of a polygon that bounds a word to define $\Omega$ . In this work, we use EAST [38] to tentatively mark the text regions, followed by a manual quadrilateral corner selection to define $\Omega$ . After selecting the text region, we apply the MSER algorithm [8] to detect the binary masks of individual characters present in the region $\Omega$ . However, MSER alone cannot generate a sharp mask for most of the
+
+
+Figure 2. Architecture of FANnet and Colornet. At first, the target character ('N') is generated from the source character ('H') by FANnet keeping structural consistency. Then, the source color is transferred to the target by Colornet preserving visual consistency. Layer names in the figure are: conv = 2D convolution, FC = fully-connected, up-conv = upsampling + convolution.
+
+
+
+
+Figure 3. Generation of target characters using FANnet. In each image block, the upper row shows the ground truth and the bottom row shows the generated characters when the network has observed one particular source character ('A') in each case.
+
+characters. Thus, we calculate the final binarized image $I_{c}$ defined as
+
+$$
+I _ {c} (\mathbf {p}) = \left\{ \begin{array}{l l} I _ {M} (\mathbf {p}) \odot I _ {B} (\mathbf {p}) & \text {i f} \mathbf {p} \in \Omega \\ 0 & \text {o t h e r w i s e} \end{array} \right.
+$$
+
+where $I_{M}$ is the binarized output of the MSER algorithm [8] when applied on $I$ , $I_{B}$ is the binarized image of $I$ and $\odot$ denotes the element-wise product of matrices. The image $I_{c}$ contains the binarized characters in the selected region $\Omega$ . If the color of the source character is darker than its background, we apply inverse binarization on $I$ to get $I_{B}$ .
+
+Assuming the characters are non-overlapping, we apply a connected component analysis and compute the minimum bounding rectangles of each connected component. If there are $N$ number of connected components present in a scene, $C_n \subseteq \Omega$ denotes the $n^{\mathrm{th}}$ connected area where $0 < n \leq N$ . The bounding boxes $B_n$ contain the same indices as the
+
+
+Figure 4. Color transfer using Colornet: (a) Binary target character; (b) Color source character; (c) Ground truth; (d) Color transferred image. It can be observed that Colornet can successfully transfer solid color as well as gradient color.
+
+connected areas that they are bounding. The user specifies the indices that they wish to edit. We define $\Theta$ as the set of indices that require modification, such that $|\Theta| \leq N$ , where $|.|$ denotes the cardinality of a set. The binarized images $I_{C_\theta}$ associated with components $C_\theta$ , $\theta \in \Theta$ are the source characters, and with proper padding followed by scaling (discussed in Sec. 3.2), they individually act as the input of the font generation network. Each $I_{C_\theta}$ has the same dimension with the bounding box $B_\theta$ .
+
+# 3.2. Generation of the binary target character
+
+Conventionally, most of the neural networks take square images as input. However, as $I_{C_{\theta}}$ may have different aspect ratios depending on the source character, font type, font size etc., a direct resizing of $I_{C_{\theta}}$ would distort the actual font features of the character. Rather, we pad $I_{C_{\theta}}$ maintaining its aspect ratio to generate a square binary image $I_{\theta}$ of size $m_{\theta} \times m_{\theta}$ such that, $m_{\theta} = \max(h_{\theta}, w_{\theta})$ , where $h_{\theta}$ and $w_{\theta}$ are the height and width of bounding box $B_{\theta}$ respectively, and $\max(.)$ is a mathematical operation that finds the maximum value. We pad both sides of $I_{C_{\theta}}$ along $x$ and $y$ axes with $p_x$ and $p_y$ respectively to generate $I_{\theta}$ such that
+
+$$
+p _ {x} = \left[ \frac {m _ {\theta} - w _ {\theta}}{2} \right], p _ {y} = \left[ \frac {m _ {\theta} - h _ {\theta}}{2} \right]
+$$
+
+followed by reshaping $I_{\theta}$ to a square dimension of $64 \times 64$ .
+
+# 3.2.1 Font Adaptive Neural Network (FANnet)
+
+Our generative font adaptive neural network (FANnet) takes two different inputs - an image of the source character of size $64 \times 64$ and a one-hot encoding $\mathbf{v}$ of length 26 of the target character. For example, if our target character is 'H', then $\mathbf{v}$ has the value 1 at index 7 and 0 in every other location. The input image passes through three convolution layers having 16, 16 and 1 filters respectively, followed by flattening and a fully-connected (FC) layer FC1. The encoded vector $\mathbf{v}$ also passes through an FC layer FC2. The outputs of FC1 and FC2 give 512 dimensional latent representations of respective inputs. Outputs of FC1 and FC2 are concatenated and followed by two more FC layers, FC3 and FC4 having 1024 neurons each. The expanding part of the network contains reshaping to a dimension $8 \times 8 \times 16$ followed by three 'up-conv' layers having 16, 16 and 1 filters respectively. Each 'up-conv' layer contains an upsampling followed by a 2D convolution. All the convolution layers have kernel size $3 \times 3$ and ReLU activation. The architecture of FANnet is shown in Fig. 2. The network minimizes the mean absolute error (MAE) while training with Adam optimizer [14] with learning rate $lr = 10^{-3}$ , momentum parameters $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ and regularization parameter $\epsilon = 10^{-7}$ .
+
+We train FANnet with 1000 fonts with all 26 upper-case character images as inputs and 26 different one-hot encoded vectors for each input. It implies that for 1000 fonts, we train the model to generate any of the 26 upper-case target character images from any of the 26 upper-case source character images. Thus, our training dataset has a total of 0.6760 million input pairs. The validation set contains 0.2028 million input pairs generated from another 300 fonts. We select all the fonts from Google Fonts database [12]. We apply the Otsu thresholding technique [22] on the grayscale output image of FANnet to get a binary target image.
+
+# 3.3. Color transfer
+
+It is important to have a faithful transfer of color from the source character for a visually consistent generation of the target character. We propose a CNN based architecture, named Colornet, that takes two images as input - colored source character image and binary target character image. It generates the target character image with transferred color from the source character image. Each input image goes through a 2D convolution layer, Conv1_col and Conv2_col for input1 and input2 respectively. The outputs of Conv1_col and Conv2_col are batch-normalized and concatenated, which is followed by three blocks of convolution layers with two max-pooling layers in between. The expanding part of Colornet contains two 'up-conv' layers followed by a 2D convolution. All the convolution layers have kernel size $3 \times 3$ and Leaky-ReLU activation with $\alpha = 0.2$ . The architecture of Colornet is shown in Fig. 2. The net
+
+work minimizes the mean absolute error (MAE) while training with Adam optimizer that has the same parameter settings as mentioned in Sec. 3.2.1.
+
+We train Colornet with synthetically generated image pairs. For each image pair, the color source image and the binary target image both are generated using the same font type randomly selected from 1300 fonts. The source color images contain both solid and gradient colors so that the network can learn to transfer a wide range of color variations. We perform a bitwise-AND between the output of Colornet and the binary target image to get the final colored target character image.
+
+# 3.4. Character placement
+
+Even after the generation of target characters, the placement requires several careful operations. First, we need to remove the source character from $I$ so that the generated target character can be placed. We use image inpainting [29] using $W(I_{C_{\theta}}, \psi)$ as a mask to remove the source character, where $W(I_{b}, \psi)$ is the dilation operation on any binary image $I_{b}$ using the structural element $\psi$ . In our experiments, we consider $\psi = 3 \times 3$ . To begin the target character placement, first the output of Colornet is resized to the dimension of $I_{\theta}$ . We consider that the resized color target character is $R_{\theta}$ with minimum rectangular bounding box $B_{\theta}^{R}$ . If $B_{\theta}^{R}$ is smaller or larger than $B_{\theta}$ , then we need to remove or add the region $B_{\theta} \setminus B_{\theta}^{R}$ accordingly so that we have the space to position $R_{\theta}$ with proper inter-character spacing. We apply the content-aware seam carving technique [1] to manipulate the non-overlapping region. It is important to mention that if $B_{\theta}^{R}$ is smaller than $B_{\theta}$ then after seam carving, the entire text region $\Omega$ will shrink to a region $\Omega_{s}$ , and we also need to inpaint the region $\Omega \setminus \Omega_{s}$ for consistency. However, both the regions $B_{\theta} \setminus B_{\theta}^{R}$ and $\Omega \setminus \Omega_{s}$ are considerably small and are easy to inpaint for upper-case characters. Finally, we place the generated target character on the seam carved image such that the centroid of $B_{\theta}^{R}$ overlaps with the centroid of $B_{\theta}$ .
+
+# 4. Results
+
+We tested our algorithm on COCO-Text and ICDAR datasets. The images in the datasets are scene images with texts written with different unknown fonts. In Fig. 5, we show some of the images that are edited using STEFANN. In each image pair, the left image is the original image and the right image is the edited image. In some of the images, several characters are edited in a particular text region, whereas in some images, several text regions are edited in a single image. It can be observed that not only the font features and colors are transferred successfully to the target characters, but also the inter-character spacing is main
+
+
+Figure 5. Images edited using STEFANN. In each image pair, the left image is the original image and the right image is the edited image. It can be observed that STEFANN can faithfully edit texts even in the presence of specular reflection, shadow, perspective distortion, etc. It is also possible to edit lower-case characters and numerals in a scene image. STEFANN can easily edit multiple characters and multiple text regions in an image. More results are included in the supplementary materials.
+
+tained in most of the cases. Though all the images are natural scene images and contain different lighting conditions, fonts, perspective distortions, backgrounds, etc., in all the cases STEFANN is able to edit the images without any significant visual inconsistency.
+
+Evaluation and ablation study of FANnet: To evaluate the performance of the proposed FANnet model, we take one particular source character and generate all possible target characters. We repeat this process for every font in the test set. The outputs for some randomly selected fonts are shown in Fig. 3. Here, we only provide an image of character 'A' as the source in each case and generate all 26 characters. To quantify the generation quality of FANnet, we select one source character at a time as input and measure the average structural similarity index (ASSIM) [34] of all 26 generated target characters against respective ground truth images over a set of 300 test fonts. In Fig. 6, we show the average SSIM of the generated characters for each different
+
+
+Figure 6. Average SSIM of the generated characters for each different source character.
+
+source character. It can be seen from the ASSIM scores that some characters, like 'I' and 'L', are less informative as they
+
+Table 1. Ablation study of FANet architecture. Layer names are similar to Fig. 2.
+
+| # | Excluded layer(s) | ASSIM |
| 1 | up-conv1 + up-conv2 | 0.5664 |
| 2 | FC4 + up-conv2 | 0.6426 |
| 3 | FC1 + FC2 + up-conv2 | 0.6718 |
| 4 | None (Proposed FANnet) | 0.7712 |
| 5 | All (FCN) | 0.1332 |
+
+produce lower ASSIM values, whereas characters, like ‘B’ and ‘M’, are structurally more informative in the generation process.
+
+We perform ablation studies using ASSIM score to validate the proposed FANnet architecture. The results are shown in Table 1. As Fully Convolutional Networks (FCN) are often used in generative models, we tried to develop FANnet using FCN models at first. Unfortunately, none of the developed FCN architecture for FANnet worked properly. To demonstrate it, we have included an FCN architecture in Table 1 which is similar to ColorNet with two inputs - one is the source character image and another is the target character in standard 'Times New Roman' font. Table 1 clearly shows the motivation of the proposed FANnet model as it achieves the highest ASSIM score in the ablation study. In our ablation study, when the 'up-conv' layer is removed, it is replaced with an upsampling layer by a factor of 2 to maintain the image size. During the ablation study, replacement of ReLU activation with Leaky-ReLU activation gives an ASSIM score of 0.4819. To further analyze the robustness of the generative model, we build another network with the same architecture as described in Sec. 3.2.1, and train it with lower-case character images of the same font database. The output of the model is shown in Fig. 7(a) when only a lower-case character (character 'a') is given as the source image and all the lower-case characters are generated. As shown in Fig. 7(b) and Fig. 7(c), we also observe that the model can transfer some font features even when a lower-case character is provided as the input and we try to generate the upper-case characters or vice versa.
+
+Evaluation and ablation study of Colornet: The performance of the proposed Colornet is shown in Fig. 4 for both solid and gradient colors. It can be observed that in both cases, Colornet can faithfully transfer the font color of source characters to target characters. As shown in Fig. 4, the model works equally well for all alphanumeric characters including lower-case and upper-case letters. To understand the functionality of the layers in Colornet, we perform an ablation study and select the best model architecture that faithfully transfers the color. We compare the proposed Colornet architecture with two other variants - Colornet-L and Colornet-F. In Colornet-L, we remove 'Block conv3' and 'up-conv1' layers to perform layer ablation. In Colornet-F,
+
+
+
+
+
+
+Figure 7. Additional generation results of target characters using FANnet: In each image block, the upper row shows the ground truth, and the bottom row shows the generated characters when the network observes only one particular character: (a) lower-case target characters generated from a lower-case source character ('a'); (b) upper-case target characters generated from a lower-case source character ('a'); (c) lower-case target characters generated from an upper-case source character ('A').
+
+
+Figure 8. Color transfer results for different models: (a) Binary target character; (b) Color source character; (c) Ground truth; (d) Output of the proposed Colornet model; (e) Output of Colornet-L; (f) Output of Colornet-F. It can be observed that the Colornet architecture discussed in Sec. 3.3 transfers the color from source to target without any significant visual distortion.
+
+we reduce the number of convolution filters to 16 in both 'Conv1_col' and 'Conv2_col' layers to perform filter ablation. The results of color transfer for all three Colornet variants are shown in Fig. 8. It can be observed that Colornet-L produces visible color distortion in the generated images, whereas some color information are not present in the images generated by Colornet-F.
+
+Comparison with other methods: To the best of our knowledge, there is no significant prior work that aims to
+
+ | Single observation (Green=Input to both the models) | Multiple observations for MC-GAN (Yellow=MC-GAN inputs,Red=FANnet input) |
| Ground truth | ABCDEFGHIJKLMNOPQRSTUVWXYZ | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| MC-GAN | ABCDEFGHIJKLMNOPQRSTUVWXYZ | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| FANnet | ABCDEFGHIJKLMNOPQRSTUVWXYZ | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| Ground truth | ABCDEFGHIJKLMNOPQRSTUVWXYZ | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| MC-GAN | ABCDEFGHIJKLMNOPQRSTUVWXYZ | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| FANnet | ABCDEFGHIJKLMNOPQRSTUVWXYZ | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
+
+Table 2. Comparison of synthetic character generation between MC-GAN and FANnet.
+
+| MC-GAN
+(1 observation) | MC-GAN
+(3 random observations) | FANnet
+(1 observation) |
| nRMSE | ASSIM | nRMSE | ASSIM | nRMSE | ASSIM |
| 0.4568 | 0.4098 | 0.3628 | 0.5485 | 0.4504 | 0.4614 |
+
+edit textual information in natural scene images directly. MC-GAN [2] is a recent font synthesis algorithm, but to apply it on scene text a robust recognition algorithm is necessary. Thus on many occasions, it is not possible to apply and evaluate its performance on scene images. However, the generative performance of the proposed FANnet is compared with MC-GAN as shown in Fig. 9. We observe that given a single observation of a source character, FANnet outperforms MC-GAN, but as the number of observations increases, MC-GAN performs better than FANnet. This is also shown in Table 2 where we measure the quality of the generated characters using nRMSE and ASSIM scores. The comparison is done on the dataset [2] which is originally used to train MC-GAN with multiple observations. But in this case, FANnet is not re-trained on this dataset which also shows the adaptive capability of FANnet. In another experiment, we randomly select 1000 fonts for training and 300 fonts for testing from the MC-GAN dataset. When we retrain FANnet with this new dataset, we get an ASSIM score of 0.4836 over the test set. For MC-GAN, we get ASSIM scores of 0.3912 (single observation) and 0.5679 (3 random observations) over the same test set.
+
+We also perform a comparison among MC-GAN [2], Project Naptha [15] and STEFANN assisted text editing schemes on scene images as shown in Fig. 10. For MC-GAN assisted editor, we replace FANnet and Colornet with MC-GAN cascaded with Tesseract v4 OCR engine [26]. Project Naptha provides a web browser extension that allows users to manipulate texts in images. It can be observed that the generative capability of MC-GAN is directly affected by recognition accuracy of the OCR and variation of scale and color among source characters, whereas Project Naptha suffers from weak font adaptability and inpainting.
+
+To understand the perceptual quality of the generated characters, we take opinions from 115 users for 50 differ
+
+
+Figure 9. Comparison between MC-GAN and the proposed FANnet architecture. The green color indicates input to both the models when only one observation is available. Yellow colors indicate input to MC-GAN and the red box indicates input to FANnet when 3 random observations are available. The evaluation is performed on the MC-GAN dataset.
+Figure 10. Comparison among MC-GAN, Project Naptha and STEFANN assisted text editing on scene images. Top row: Original images. Text regions to be edited are highlighted with green bounding boxes. OCR predictions for these text regions are shown in respective insets. Middle row: MC-GAN or Project Naptha assisted text editing. Bottom row: STEFANN assisted text editing.
+
+
+Figure 11. Effectiveness of seam carving. In each column, top row shows the original image, middle row shows the edited image without seam carving and bottom row shows the edited image with seam carving.
+
+ent fancy fonts randomly taken from the MC-GAN dataset to evaluate the generation quality of MC-GAN and FANnet. For a single source character, $100\%$ of users opine that the generation of FANnet is better than MC-GAN. For 3 random source characters, $67.5\%$ of users suggest that the generation of FANnet is preferable over MC-GAN.
+
+Visual consistency during character placement: Automatic seam carving of the text region is an important step to perform perceptually consistent modifications maintaining the inter-character distance. Seam carving is particularly required when the target character is 'I'. It can be seen from Fig. 11 that the edited images with seam carving look
+
+visually more consistent than those without seam carving.
+
+Evaluation of overall generation quality: To evaluate the overall quality of editing, we perform two opinion based evaluations with 136 viewers. First, they are asked to detect whether the displayed image is edited or not from a set of 50 unedited and 50 edited images shown at random. We get $15.6\%$ true-positive (TP), $37.1\%$ true-negative (TN), $12.8\%$ false-positive (FP) and $34.4\%$ false-negative (FN), which shows that the response is almost random. Next, the same viewers are asked to mark the edited character(s) from another set of 50 edited images. In this case, only $11.6\%$ of edited characters are correctly identified by the viewers.
+
+# 5. Discussion and Conclusion
+
+The major objective of STEFANN is to perform image editing for error correction, text restoration, image reusability, etc. Few such use cases are shown in Fig. 12. Apart from these, with proper training, it can be used in font adaptive image-based machine translation and font synthesis. To the best of our knowledge, this is the first attempt to develop a unified platform to edit texts directly in images with minimal manual effort. STEFANN handles scene text editing efficiently for single or multiple characters while preserving visual consistency and maintaining inter-character spacing. Its performance is affected by extreme perspective distortion, high occlusion, large rotation, etc. which is expected as these effects are not present in the training data. Also, it should be noted that while training FANnet, we use Google Fonts [12] which contains a limited number of artistic fonts, and we train Colornet with only solid and gradient colors. Thus at present, STEFANN does not accommodate editing complex artistic fonts or unusual texture patterns. The proposed FANnet architecture can also be used to generate lower-case target characters with similar architecture as discussed in Sec. 3.2.1. However in the case of lower-case characters, it is difficult to predict the size of the target character only from the size of the source character. It is mainly because lower-case characters are placed in different 'text zones' [23] and the source character may not be replaced directly if the target character falls into a different text zone. In Fig. 13, we show some images where we edit the lowercase characters with STEFANN. In Fig. 14, we also show some cases where STEFANN fails to edit the text faithfully. The major reason behind the failed cases is an inappropriate generation of the target character. In some cases, the generated characters are not consistent with the same characters present in the scene [Fig. 14(a)], whereas in some cases the font features are not transferred properly [Fig. 14(b)]. We also demonstrate that STEFANN currently fails to work with extreme perspective distortion, high occlusion or large rotation [Fig. 14(c)]. In all the editing examples shown in this paper, the number of characters in a text region is not changed. One of the main limitations
+
+
+Figure 12. Application of STEFANN. Misspelled words (bounded in Red) are corrected (bounded in Green) in scene images.
+
+
+
+
+Figure 13. Some images where lower-case characters are edited using STEFANN.
+
+
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 14. Some images where STEFANN fails to edit text with sufficient visual consistency.
+
+of the present methodology is that the font generative model FANnet generates images with dimension $64 \times 64$ . While editing high-resolution text regions, a rigorous upsampling is often required to match the size of the source character. This may introduce severe distortion of the upsampled target character image due to interpolation. In the future, we plan to integrate super-resolution [32, 33] to generate very high-resolution character images that are necessary to edit any design or illustration. Also, we use MSER to extract text regions for further processing. So, if MSER fails to extract the character properly, the generation results will be poor. However, this can be rectified using better character segmentation algorithms. It is worth mentioning that robust image authentication and digital forensic techniques should be integrated with such software to minimize the risk of probable misuses of realistic text editing in images.
+
+# Acknowledgements
+
+We would like to thank NVIDIA Corporation for providing a TITAN X GPU through the GPU Grant Program.
+
+# References
+
+[1] Shai Avidan and Ariel Shamir. Seam carving for content-aware image resizing. In ACM SIGGRAPH, 2007. 4
+[2] Samaneh Azadi, Matthew Fisher, Vladimir G Kim, Zhaowen Wang, Eli Shechtman, and Trevor Darrell. Multi-content GAN for few-shot font style transfer. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2, 7
+[3] Fan Bai, Zhanzhan Cheng, Yi Niu, Shiliang Pu, and Shuigeng Zhou. Edit probability for scene text recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[4] Shumeet Baluja. Learning typographic style: from discrimination to synthesis. Machine Vision and Applications, 2017, 1, 2
+[5] Michal Busta, Lukas Neumann, and Jiri Matas. Deep TextSpotter: An end-to-end trainable scene text localization and recognition framework. In The IEEE International Conference on Computer Vision (ICCV), 2017. 2
+[6] Neill DF Campbell and Jan Kautz. Learning a manifold of fonts. ACM Transactions on Graphics (TOG), 2014. 1, 2
+[7] Jie Chang and Yujun Gu. Chinese typography transfer. arXiv preprint arXiv:1707.04904, 2017. 1, 2
+[8] Huizhong Chen, Sam S Tsai, Georg Schroth, David M Chen, Radek Grzeszcuk, and Bernd Girod. Robust text detection in natural images with edge-enhanced maximally stable extremal regions. In The IEEE International Conference on Image Processing (ICIP), 2011. 2, 3
+[9] Alexey Dosovitskiy, Jost Tobias Springenberg, Maxim Tatarchenko, and Thomas Brox. Learning to generate chairs, tables and cars with convolutional networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2016. 2
+[10] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
+[11] Ankush Gupta, Andrea Vedaldi, and Andrew Zisserman. Learning to read by spelling: Towards unsupervised text recognition. arXiv preprint arXiv:1809.08675, 2018. 2
+[12] Google Inc. Google Fonts. https://fonts.google.com/, 2010.4, 8
+[13] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-Image translation with conditional adversarial networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[14] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. 4
+[15] Kevin Kwok and Guillermo Webster. Project Naptha. https://projectnaptha.com/, 2013.7
+[16] Chongyi Li, Jichang Guo, and Chunle Guo. Emerging from water: Underwater image color correction based on weakly supervised color transfer. IEEE Signal Processing Letters, 2018. 2
+[17] Chuan Li and Michael Wand. Combining markov random fields and convolutional neural networks for image synthesis.
+
+In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
+[18] Jing Liao, Yuan Yao, Lu Yuan, Gang Hua, and Sing Bing Kang. Visual attribute transfer through deep image analogy. In ACM SIGGRAPH, 2017. 2
+[19] Pengyuan Lyu, Xiang Bai, Cong Yao, Zhen Zhu, Tengteng Huang, and Wenyu Liu. Auto-encoder guided GAN for Chinese calligraphy synthesis. In International Conference on Document Analysis and Recognition (ICDAR), 2017. 1, 2
+[20] Pengyuan Lyu, Cong Yao, Wenhao Wu, Shuicheng Yan, and Xiang Bai. Multi-oriented scene text detection via corner localization and region segmentation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[21] Lukas Neumann. Scene text localization and recognition in images and videos. PhD thesis, Department of Cybernetics, Faculty of Electrical Engineering, Czech Technical University, 2017. 2
+[22] Nobuyuki Otsu. A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics (TSMC), 1979. 4
+[23] U Pal and BB Chaudhuri. Automatic separation of machine-printed and hand-written text lines. In International Conference on Document Analysis and Recognition (ICDAR), 1999. 8
+[24] Huy Quoc Phan, Hongbo Fu, and Antoni B Chan. FlexyFont: Learning transferring rules for flexible typeface synthesis. In Computer Graphics Forum, 2015. 1, 2
+[25] Erik Reinhard, Michael Adhikhmin, Bruce Gooch, and Peter Shirley. Color transfer between images. IEEE Computer Graphics and Applications, 2001. 2
+[26] Ray Smith. An overview of the Tesseract OCR engine. In International Conference on Document Analysis and Recognition (ICDAR), 2007. 7
+[27] Rapee Suveeranont and Takeo Igarashi. Example-based automatic font generation. In International Symposium on Smart Graphics, 2010. 1, 2
+[28] Yu-Wing Tai, Jiaya Jia, and Chi-Keung Tang. Local color transfer via probabilistic segmentation by expectation-maximization. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2005. 2
+[29] Alexandru Telea. An image inpainting technique based on the fast marching method. Journal of Graphics Tools, 2004. 4
+[30] Joshua B Tenenbaum and William T Freeman. Separating style and content with bilinear models. Neural Computation, 2000. 2
+[31] Paul Upchurch, Noah Snavely, and Kavita Bala. From A to Z: Supervised transfer of style and content using deep neural network generators. arXiv preprint arXiv:1603.02003, 2016. 1, 2
+[32] Xintao Wang, Ke Yu, Chao Dong, and Chen Change Loy. Recovering realistic texture in image super-resolution by deep spatial feature transform. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 8
+[33] 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 The European Conference on Computer Vision Workshops (ECCVW), 2018. 8
+[34] Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE Transactions on Image Processing (TIP), 2004. 5
+[35] Tomihisa Welsh, Michael Ashikhmin, and Klaus Mueller. Transferring color to greyscale images. In ACM SIGGRAPH, 2002. 2
+[36] Xu-Cheng Yin, Xuwang Yin, Kaizhu Huang, and Hong-Wei Hao. Robust text detection in natural scene images. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2013. 2
+[37] Baoyao Zhou, Weihong Wang, and Zhanghui Chen. Easy generation of personal Chinese handwritten fonts. In The IEEE International Conference on Multimedia and Expo (ICME), 2011. 2
+[38] Xinyu Zhou, Cong Yao, He Wen, Yuzhi Wang, Shuchang Zhou, Weiran He, and Jiajun Liang. EAST: An efficient and accurate scene text detector. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
\ No newline at end of file
diff --git a/stefannscenetexteditorusingfontadaptiveneuralnetwork/images.zip b/stefannscenetexteditorusingfontadaptiveneuralnetwork/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ae765a7e1c37eaac69fa0d46ba13079b52666308
--- /dev/null
+++ b/stefannscenetexteditorusingfontadaptiveneuralnetwork/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23a3d44d4d902cf28171a8336f5fc308f7edd19b02e463ebbf49bfa46b27da25
+size 1063368
diff --git a/stefannscenetexteditorusingfontadaptiveneuralnetwork/layout.json b/stefannscenetexteditorusingfontadaptiveneuralnetwork/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..180b3ac221d1a61e7e5f78161e3b4fbf28074adb
--- /dev/null
+++ b/stefannscenetexteditorusingfontadaptiveneuralnetwork/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:04ec6998485227d7e32d07cec80b7ebc85406f9feaed97c317ac9d233e86d66e
+size 338584
diff --git a/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_content_list.json b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0c450cf1c909bd76df832522e271b95521d19245
--- /dev/null
+++ b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c343210a08e4f7a9a0162d640a47da6011f6716cb29df5a21db4ecec0e689deb
+size 75450
diff --git a/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_model.json b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b02ad43b4689253c63980ab71955941bbadb1b18
--- /dev/null
+++ b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e29c3a0abf59e5467cba92035374f117b5708414827198389201c1971688f4fd
+size 88854
diff --git a/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_origin.pdf b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f9e872bbbb0aa9058b99e3f9493c1d753995cb48
--- /dev/null
+++ b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/1731e244-4298-491b-b8ad-05d3017b70b1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e0b18dac104a4c8abad0e827ec309097cbcc2e4f7210990a6bc4f361c945d77a
+size 868024
diff --git a/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/full.md b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f2ac10cc941490f1c456eb6de011ca9cb7568896
--- /dev/null
+++ b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/full.md
@@ -0,0 +1,307 @@
+# STINet: Spatio-Temporal-Interactive Network for Pedestrian Detection and Trajectory Prediction
+
+Zhishuai Zhang $^{1,2*}$ Jiyang Gao $^{1}$ Junhua Mao $^{1}$ Yukai Liu $^{1}$ Dragomir Anguelov $^{1}$ Congcong Li $^{1}$ Waymo LLC ${}^{2}$ Johns Hopkins University
+
+zhang99@jhu.edu, {jiyanggao, junhuamao, liuyukai, dragomir,Congcongli}@waymo.com
+
+# Abstract
+
+Detecting pedestrians and predicting future trajectories for them are critical tasks for numerous applications, such as autonomous driving. Previous methods either treat the detection and prediction as separate tasks or simply add a trajectory regression head on top of a detector. In this work, we present a novel end-to-end two-stage network: Spatio-Temporal-Interactive Network (STINet). In addition to 3D geometry modeling of pedestrians, we model the temporal information for each of the pedestrians. To do so, our method predicts both current and past locations in the first stage, so that each pedestrian can be linked across frames and the comprehensive spatio-temporal information can be captured in the second stage. Also, we model the interaction among objects with an interaction graph, to gather the information among the neighboring objects. Comprehensive experiments on the Lyft Dataset and the recently released large-scale Waymo Open Dataset for both object detection and future trajectory prediction validate the effectiveness of the proposed method. For the Waymo Open Dataset, we achieve a bird-eyes-view (BEV) detection AP of 80.73 and trajectory prediction average displacement error (ADE) of $33.67\mathrm{cm}$ for pedestrians, which establish the state-of-the-art for both tasks.
+
+# 1. Introduction
+
+To drive safely and smoothly, self-driving cars (SDC) not only need to detect where the objects are currently (i.e. object detection), but also need to predict where they will go in the future (i.e. trajectory prediction). Among the objects, pedestrian is an important and difficult type. The difficulty comes from the complicated properties of pedestrian appearance and behavior, e.g. deformable shape and interpersonal relations [7]. In this paper, we tackle the problem of joint pedestrian detection and trajectory prediction from a sequence of point clouds, as illustrated in Figure 1.
+
+
+Figure 1. Given a sequence of current and past point clouds, our task is to detect pedestrians in the current frame, and predict the future trajectory of them. In this figure, white points are input point cloud sequence (stacked for visualization), yellow boxes are detected objects, and the cyan lines are predicted future trajectory.
+
+Traditionally, this problem is tackled by dividing the perception pipeline into multiple modules: object detection [6, 13, 15, 16, 20, 21, 29, 30], tracking [18] and trajectory prediction [2, 7, 9]; latter modules take the outputs from the former modules. Although such strategy makes each sub-module easy to design and implement, it sacrifices the potential advantage of joint optimization. Latter modules can lose critical information bottle-necked by the interfaces between sub-modules, e.g. a pedestrian's future trajectory depends on many useful geometry features from the raw sensor data, which may be abstracted away in the detection/tracking stage. To this end, researchers recently have proposed several end-to-end neural networks to detect objects and predict trajectories simultaneously. FaF [17] and IntentNet [4] are two of the representative methods, which are designed based on single stage detectors (SSD) [16]; in addition to original anchor classification and regression of SSD, they also regress a future trajectory for each anchor.
+
+We observed that there are two major issues that are critical for joint detection and trajectory prediction, but are not addressed by previous end-to-end methods: 1) Temporal modeling on object level: existence and future trajectory of an object are embedded in both current and past
+
+frames. Current methods simply reuse single-stage detector and fuse the temporal information in the backbone CNN in an object-agnostic manner either via feature concatenation or 3D CNN [4, 17]. Such coarse level fusion can lose fine-grained temporal information for each object, which is critical for both tasks. 2) Interaction modeling among objects: the future trajectory of an object could be influenced by the other objects. E.g., a pedestrian walking inside a group may tend to follow others. Existing methods [4, 17] do not explicitly model interactions among objects.
+
+To address the aforementioned issues, we propose an end-to-end Spatio-Temporal-Interactive network (STINet) to model pedestrians' temporal and interactive information jointly. The proposed network takes a sequence of point clouds as input, detects current location and predicts future trajectory for pedestrians. Specifically, there are three subcomponents in STINet: backbone network, proposal generation network, and proposal prediction network. In the backbone net, we adopted a similar structure as PointPillars [13], and applied it on each frame of the point cloud, the output feature maps from multi-frames are then combined. The proposal generation network takes feature maps from the backbone net and generates potential pedestrian instances with both their current and past locations (i.e. temporal proposals); such temporal proposals allow us to link the same object across different frames. In the third module (i.e. prediction network), we use the temporal proposals to explicitly gather the geometry appearance and temporal dynamics for each object. To reason the interaction among pedestrians, we build a graph layer to gather the information from surrounding pedestrians. After extracting the above spatial-temporal-interactive feature for each proposal, the detection and prediction head uses the feature to regress current detection bounding box and future trajectory.
+
+Comprehensive experiments are conducted on Waymo Open Dataset [1] and Lyft Dataset [12] to demonstrate the effectiveness of the STINet. Specifically, it achieves an average precision of 80.73 for bird-eyes-view pedestrian detection, and an average displacement error of $33.67~\mathrm{cm}$ for trajectory prediction on Waymo Open Dataset. It achieves real-time inference speeds and takes only $74.6~\mathrm{ms}$ for inference on a range of $100\mathrm{m}$ by $100\mathrm{m}$ .
+
+The main contributions of our work come in four folds:
+
+- We build an end-to-end network tailored to model pedestrian past, current and future simultaneously.
+- We propose to generate temporal proposals with both current and past boxes. This enables learning a comprehensive spatio-temporal representation for pedestrians with their geometry, dynamic movement and history path in an end-to-end manner without explicitly associating object across frames.
+- We propose to build a graph among pedestrians to rea
+
+son the interactions to further improve trajectory prediction quality.
+
+- We establish the state-of-the-art performance for both detection and trajectory prediction on the Lyft Dataset and the recent large-scale challenging Waymo Open Dataset.
+
+# 2. Related work
+
+# 2.1. Object detection
+
+Object detection is a fundamental task in computer vision and autonomous driving. Recent approaches can be divided into two folds: single-stage detection [15, 16, 20] and two-stage detection [6, 21]. Single-stage detectors do classification and regression directly on backbone features, while two-stage detectors generate proposals based on backbone features, and extract proposal features for second-stage classification and regression. Single-stage detectors have simpler structure and faster speed, however, they lose the possibility to flexibly deal with complex objects behaviors, e.g., explicitly capturing pedestrians moving across frames with different speeds and history paths. In this work, we follow the two-stage detection framework and predict object boxes for both current and past frames as proposals, which are further processed to extract their geometry and movement features.
+
+# 2.2. Temporal proposals
+
+Temporal proposals have been shown beneficial in action localization in [10, 11]. They showed associating temporal proposals from different video clips can help to leverage the temporal continuity of video frames. [25] proposed to link temporal proposals throughout the video to improve video object detection. In our work, we also exploit temporal proposals and step further to investigate and propose how to build comprehensive spatio-temporal representations of proposals to improve future trajectory prediction. This is a hard task since there are no inputs available for the future. Also we investigate to learn interactions between proposals via a graph. We show that these spatio-temporal features can effectively model objects' dynamics and provide accurate detection and prediction of their future trajectory.
+
+# 2.3. Relational reasoning
+
+An agent's behavior could be influenced by other agents and it is naturally connected to relational reasoning [3, 23]. Graph neural networks have shown its strong capability in relational modeling in recent years. Wang et al. formulated the video as a space-time graph, show the effectiveness on the video classification task [26]. Sun et al. designed a relational recurrent network for action detection and anticipation [24]. Yang et al. proposed to build an object relationship graph for the task of scene graph generation [28].
+
+
+Figure 2. The overview of the proposed method. It takes a sequence of point clouds as input, detects pedestrians and predicts their future trajectories simultaneously. The point clouds are processed by Pillar Feature Encoding [13, 30] to generate Pillar Features. Then each Pillar Feature is fed into a backbone ResUNet [22] to get backbone features. A Temporal Region Proposal Network (T-RPN) takes backbone features and generated temporal proposal with past and current boxes for each object. Spatio-Temporal-Interactive (STI) Feature Extractor learns features for each temporal proposal which are used for final detection and trajectory prediction.
+
+# 2.4. Trajectory prediction
+
+Predicting the future trajectory of objects is an important task, especially for autonomous driving. Previous research has been conducted based on perception objects as inputs [2, 5, 7, 9, 14]. Recently FaF [17] and IntentNet [4] focused on end-to-end trajectory prediction from raw point clouds as input. However, they simply re-used single-stage detection framework and added new regression heads on it. In our work, we exploit temporal region proposal network and explicitly model Spatio-Temporal-Interaction (STI) representations of pedestrians, and our experiments show that the proposed STI modeling is superior on both detection and trajectory prediction for pedestrians.
+
+# 3. Proposed method
+
+In this section, we discuss our proposed network in details. The overview of our proposed method is shown in Figure 2, which can be divided into three steps. For each of these steps, we discuss in the following subsections.
+
+# 3.1. Backbone network
+
+The backbone of our network is illustrated in Figure 3. The input is a sequence of point clouds with $t'$ frames noted as $[\mathrm{PC}_{-(t' - 1)},\mathrm{PC}_{-(t' - 2)},\dots ,\mathrm{PC}_0]$ , which corresponds to the lidar sensor input from the past $t^{\prime} - 1$ frames as well as the current frame. All point clouds are calibrated to SDC's pose at the current frame so that the ego-motion is discarded. To build rich pillar features while keeping a feasible memory usage, we generate $t$ pillar features from the $t^{\prime}$ input frames. Consecutive $t^{\prime} / t$ point clouds $\mathrm{PC}_{-(j + 1)t' / t + 1},\dots ,\mathrm{PC}_{-jt' / t}$ are processed with Voxelization [13, 30] and then concatenated to generate a pseudo image $I_{j}$ (i.e. Pillar Features) with shape $H\times W\times C_{in}$ .
+
+
+Figure 3. Backbone of proposed network. Upper: overview of the backbone. The input point cloud sequence is fed to Voxelization and Point net to generate pseudo images, which are then processed by ResNet U-Net to generate final backbone feature sequence. Lower: detailed design of ResNet U-Net.
+
+Thus the output of Pillar Feature Encoding is a sequence of $t$ Pillar Features $[I_{-(t - 1)}, I_{-(t - 2)}, \dots, I_0]$ .
+
+Next we adopt a similar backbone CNN network proposed as in [22], as shown in the lower part of Figure 3. Each of the Pillar Features $I_{j}$ is first processed by three ResNet-style blocks to generate intermediate features with shape $\mathbb{R}^{H\times W\times C_0},\mathbb{R}^{\frac{1}{2} H\times \frac{1}{2} W\times C_1}$ and $\mathbb{R}^{\frac{1}{4} H\times \frac{1}{4} W\times C_2}$ . Then we use deconvolution layers to upsample them to the same spatial shape with $I_{j}$ . The concatenation of the upsampled features serve as the backbone feature of $I_{j}$ , noted as $B_{j}$ .
+
+# 3.2. Temporal proposal generation
+
+In order to explicitly model objects' current and past knowledge, we propose a temporal region proposal network (T-RPN) to generate object proposals with both current and past boxes. T-RPN takes the backbone feature sequence $[B_{-(t-1)}, B_{-(t-2)}, \dots, B_0]$ as the input, concatenates them in the channel dimension and applies a $1 \times 1$ convolution to generate a temporal-aware feature map. Classification, current frame regression and past frames regression are generated by applying $1 \times 1$ convolutional layers over the temporal-aware feature map, to classify and regress the pre-defined anchors.
+
+The temporal region proposal network is supervised by ground-truth objects' current and past locations. For each anchor $\mathbf{a} = (x^a, y^a, w^a, l^a, h^a)$ ( $x, y, w, l, h$ correspond to x coordinate of box center, y coordinate of box center, width of box, length of box and heading of box respectively), it is assigned to a ground-truth object with largest IoU of the current frame box $\mathbf{g}\mathbf{t} = (x_0^{gt}, y_0^{gt}, w^{gt}, l^{gt}, h_0^{gt})$ . Similar to SECOND [27], we compute the regression target in order to learn the difference between the pre-defined anchors and the corresponding ground-truth boxes. For the current frame, we generate a 5-d regression target $\mathbf{d}_0^a = (dx_0^a, dy_0^a, dw^a, dl^a, dh_0^a)$ :
+
+$$
+d x _ {0} ^ {a} = \left(x _ {0} ^ {g t} - x ^ {a}\right) / \sqrt {\left(x ^ {a}\right) ^ {2} + \left(y ^ {a}\right) ^ {2}} \tag {1}
+$$
+
+$$
+d y _ {0} ^ {a} = \left(y _ {0} ^ {g t} - y ^ {a}\right) / \sqrt {\left(x ^ {a}\right) ^ {2} + \left(y ^ {a}\right) ^ {2}} \tag {2}
+$$
+
+$$
+d w ^ {a} = \log \frac {w ^ {g t}}{w ^ {a}} \tag {3}
+$$
+
+$$
+d l ^ {a} = \log \frac {l ^ {g t}}{l ^ {a}} \tag {4}
+$$
+
+$$
+d h _ {0} ^ {a} = \sin \frac {h _ {0} ^ {g t} - h ^ {a}}{2} \tag {5}
+$$
+
+With similar equations, we also compute $t - 1$ past regression targets for anchor a against the same ground-truth object: $\mathbf{d}_j^a = (dx_j^a, dy_j^a, dh_j^a)$ for $j \in \{-1, -2, \dots, -(t - 1)\}$ . Width and length are not considered for the past regression since we assume the object size does not change across different frames. For each anchor a, the classification target $s^a$ is assigned as 1 if the assigned ground-truth object has an IoU greater than $th^+$ at the current frame. If the IoU is smaller than $th^-$ , classification target is assigned as 0. Otherwise the classification target is $-1$ and the anchor is ignored for computing loss.
+
+For each anchor $\mathbf{a}$ , T-RPN predicts a classification score $\hat{s}^a$ , a current regression vector $\hat{\mathbf{d}}_0^a = (\hat{dx}_0^a, \hat{dy}_0^a, \hat{dw}^a, \hat{dl}^a, \hat{dh}_0^a)$ and $t - 1$ past regression vectors $\hat{\mathbf{d}}_j^a = (\hat{dx}_j^a, \hat{dy}_j^a, \hat{dh}_j^a)$ from the aforementioned $1 \times 1$ convolutional layers. The objective of T-RPN is the weighted sum of classification loss, current frame regression loss and past frames regression loss as defined in the equations below, where $\mathbb{1}(x)$
+
+is the indicator function and returns 1 if $x$ is true otherwise 0.
+
+$$
+\mathcal {L} _ {\mathrm {T} - \mathrm {R P N}} = \lambda_ {\mathrm {c l s}} \mathcal {L} _ {\mathrm {c l s}} + \lambda_ {\text {c u r} - \text {r e g}} \mathcal {L} _ {\text {c u r} - \text {r e g}} + \lambda_ {\text {p a s t} - \text {r e g}} \mathcal {L} _ {\text {p a s t} - \text {r e g}} \tag {6}
+$$
+
+$$
+\mathcal {L} _ {\mathrm {c l s}} = \frac {\sum_ {\mathbf {a}} \operatorname {C r o s s E n t r o p y} \left(s ^ {a} , \hat {s} ^ {a}\right) \mathbb {1} \left(s ^ {a} \geq 0\right)}{\sum_ {\mathbf {a}} \mathbb {1} \left(s ^ {a} \geq 0\right)} \tag {7}
+$$
+
+$$
+\mathcal {L} _ {\text {c u r} \cdot \text {r e g}} = \frac {\sum_ {\mathbf {a}} \operatorname {S m o o t h L 1} \left(\mathbf {d} _ {0} ^ {a} , \hat {\mathbf {d}} _ {0} ^ {a}\right) \mathbb {1} \left(s ^ {a} \geq 1\right)}{\sum_ {\mathbf {a}} \mathbb {1} \left(s ^ {a} \geq 1\right)} \tag {8}
+$$
+
+$$
+\mathcal {L} _ {\text {p a s t - r e g}} = \sum_ {j = 1} ^ {t - 1} \frac {\sum_ {\mathbf {a}} \operatorname {S m o o t h L 1} \left(\mathbf {d} _ {- j} ^ {a} , \hat {\mathbf {d}} _ {- j} ^ {a}\right) \mathbb {1} \left(s ^ {a} \geq 1\right)}{\sum_ {\mathbf {a}} \mathbb {1} \left(s ^ {a} \geq 1\right)} \tag {9}
+$$
+
+For proposal generation, classification scores and regression vectors are applied on pre-defined anchors to generate temporal proposals, by reversing Equations 1-5. Thus each temporal proposal has a confidence score as well as the regressed boxes for the current and past frames. After that, non-maximum suppression is applied on the current frame boxes of temporal proposals to remove redundancy.
+
+# 3.3. Proposal prediction
+
+# 3.3.1 Spatio-temporal-interactive feature extraction
+
+Given backbone features $[B_{-(t - 1)},\dots ,B_0]$ and temporal proposals, spatio-temporal-interactive features are learned for each temporal proposal to capture the comprehensive information for detection and trajectory prediction. Different ways for modeling objects are combined to achieve this.
+
+Local geometry feature: To extract object geometry knowledge, we use the proposal boxes at j-th frame (i.e. $x_{j},y_{j},w,l,$ and $h_j$ ) to crop features from $B_{j}$ , as shown in the lower left part of Figure 4. This is an extension of traditional proposal feature cropping used in Faster-RCNN [21], to gather position-discarded local geometry features from each frame. To simplify the implementation on TPU, we rotate the 5-DoF box $(x_{j},y_{j},w,l,h_{j})$ to the closest standing box $(x_{min,j},y_{min,j},x_{max,j},y_{max,j})$ for ROIAign [8]. Local dynamic feature: As illustrated in the lower middle part of Figure 4, we use a meta box (drawn in yellow) which covers the whole movement of the pedestrian to crop features for all $B_{j}$ 's. The meta box is the smallest box which contains all current and history proposal boxes. Formally, after transferring all rotated proposal boxes $(x_{j},y_{j},w,l,h_{j})$ to the closest standing boxes $(x_{min,j},y_{min,j},x_{max,j},y_{max,j})$ , the meta box is computed with the following equations:
+
+$$
+x _ {m i n} = \min _ {j} (x _ {m i n, j}); y _ {m i n} = \min _ {j} (y _ {m i n, j})
+$$
+
+$$
+x _ {m a x} = \max _ {j} (x _ {m a x, j}); y _ {m a x} = \max _ {j} (y _ {m a x, j})
+$$
+
+This feature captures the direction, curvature and speed of the object, which are useful for future trajectory prediction.
+
+
+Figure 4. Spatial-Temporal-Interactive Feature Extractor (STIFE): Local geometry, local dynamic and history path features are extracted given a temporal proposal. For local geometry and local dynamics features, the yellow areas are used for feature extraction. Relational reasoning is performed across proposals' local features to generate interactive features.
+
+History path feature: In order to directly encode objects' past movement, we exploit the location displacement over different frames as the history path feature. To be specific, given a temporal proposal with $x_{j}$ , $y_{j}$ as the box centers, the history path feature is MLP([ $x_{0} - x_{-1}, y_{0} - y_{-1}, x_{0} - x_{-2}, y_{0} - y_{-2}, \dots, x_{0} - x_{-(t-1)}, y_{0} - y_{-(t-1)}$ ]).
+
+To aggregate spatial and temporal knowledge for each proposal, the concatenation of local geometry feature and the local dynamic feature is fed into a ResNet block followed by a global average pooling. The pooled feature is then concatenated with the history path feature, and serves as the proposal-local feature, noted as $f_{i}$ for the i-th temporal proposal.
+
+As discussed before, the future trajectory of a pedestrian could be influenced by the surrounding pedestrians' behaviors. In order to model such interactions among pedestrians, we design an interaction layer which uses a graph to propagate information among objects, as shown in the middle part of Figure 4. Specifically, we represent each temporal proposal as a graph node $i$ ; the embedding of node $i$ is noted as $f_{i}$ , which is the corresponding proposal-local feature. The edge $v_{ij}$ represents the interaction score between node $i$ and node $j$ . $v_{ij}$ is learned from $f_{i}$ and $f_{j}$ , which can be represented as below.
+
+$$
+v _ {i j} = \alpha \left(\left[ \phi_ {1} \left(f _ {i}\right); \phi_ {2} \left(f _ {j}\right) \right]\right)
+$$
+
+where $\alpha$ and $\phi$ 's can be any learnable functions. In our implementation, we use fully-connected layer for $\alpha$ and $\phi$ 's.
+
+Given the interaction scores among all pairs of nodes, we can gather the information for each node from the neighboring nodes. Specifically, the interaction embedding $g_{i}$ gathered for node $i$ is calculated as follows:
+
+$$
+g _ {i} = \sum_ {j} \frac {\exp \left\{v _ {i j} \right\}}{V _ {i}} \gamma ([ f _ {i}; f _ {j} ])
+$$
+
+where $V_{i} = \sum_{j}\exp \{v_{ij}\}$ is the normalization constant, and $\gamma$ is a mapping function (a fully-connected layer is adopted in our implementation).
+
+# 3.3.2 Proposal classification and regression
+
+Given proposal-local features $f_{i}$ for each temporal proposals, two fully-connected layers are applied to do classification and regression respectively for the current frame. To be aligned with our intuitions, the proposal-local feature $f_{i}$ combined with the interaction feature $g_{i}$ is used to predict future frame boxes, by one fully-connected layer with $3t$ output channels where $t$ is the number of future frames to predict and 3 stands for x coordinate, y coordinate and heading respectively. During the training, temporal proposals are assigned classification and regression targets with the same strategy discussed in Subsection 3.2 and the objective is the weighted sum of classification loss, current frame regression loss and future frames regression loss similar to Equations 6-9. During inference, each proposal is predicted with a classification score and current/future boxes. Nonmaximum suppression is applied on them based on the IoU between their current boxes, to remove redundancy.
+
+# 4. Experiment
+
+# 4.1. Experiment settings
+
+Dataset: We conduct experiments on the Waymo Open Dataset (WOD) [1] and the Lyft Dataset (Lyft) [12]. WOD contains lidar data from 5 sensors and labels for 1000 segments. Each segment contains roughly 200 frames and has a length of 20 seconds. Train and validation subsets have 798 and 202 segments respectively. To model the history and predict the future, we take 1 second history frames and 3 second future frames for each example and extract examples from the center 16 seconds $(1s\sim 17s)$ from each segment. Thus 126,437 train examples and 31,998 validation examples are extracted, and each of them contains history frames of 1 second and future frames of 3 seconds. We sample 6 frames including 5 history frames and the current frame, with $t_{\mathrm{input}} = \{-1.0, -0.8, -0.6, -0.4, -0.2, 0\}$ , and the point clouds from those frames are fed into the network as inputs. In order to build richer voxel features while saving computation and memory, every two frames are combined
+
+| Model | MF | TS | DE@1↓ | DE@2↓ | DE@3↓ | ADE↓ | HR@1↑ | HR@2↑ | HR@3↑ |
| IntentNet | ✓ | | 21.17±0.02 | 39.74±0.07 | 61.60±0.12 | 36.04±0.12 | 93.18±0.03 | 76.50±0.08 | 61.60±0.12 |
| MF-FRCNN | ✓ | ✓ | 20.87±0.08 | 39.23±0.14 | 60.59±0.22 | 35.57±0.13 | 93.45±0.05 | 76.69±0.18 | 61.57±0.21 |
| STINet | ✓ | ✓ | 19.63±0.03 | 37.07±0.08 | 57.60±0.14 | 33.67±0.07 | 94.36±0.05 | 78.91±0.06 | 64.43±0.15 |
+
+Table 1. Trajectory prediction performance for different models on WOD. MF indicates whether the corresponding model takes multiple frames as input. TS indicates whether the model has a two-stage framework. $\uparrow$ and $\downarrow$ indicate the higher/ lower numbers are better for the corresponding metric. DE and ADE are in centimeters. For models implemented by us, we train and evaluate the model for five times and compute the average and standard deviation shown around $\pm$ in the table.
+
+| Model | MF | TS | BEV AP ↑ |
| PointPillar [29] | | | 68.57 |
| MVF [29] | | | 74.38 |
| StarNet [19] | | | 72.50 |
| IntentNet [4]1 | ✓ | | 79.43±0.10 |
| MF-FRCNN | ✓ | ✓ | 79.69±0.19 |
| STINet | ✓ | ✓ | 80.73±0.26 |
+
+Table 2. Detection performance for different methods on WOD. MF indicates whether the corresponding model takes multiple frames as input. TS indicates whether the model has a two-stage framework. BEV AP is computed with an IoU threshold of 0.5. $\uparrow$ indicates the higher numbers are better for the corresponding metric.
+
+by concatenating the voxelization output features thus we have three pillar features as discussed in Subsection 3.1. For the future prediction, we predict trajectory for 6 future frames with $t_{\mathrm{future}} = \{0.5, 1.0, 1.5, 2.0, 2.5, 3.0\}$ . The range is $150\mathrm{m}$ by $150\mathrm{m}$ around the self-driving car, and we use a pillar size of $31.25\mathrm{cm}$ by $31.25\mathrm{cm}$ to generate pillar features of shape $480 \times 480$ . Lyft contains lidar data from 1 sensor and labels for only 180 segments, with 140 and 40 segments for train and validation respectively. With the same settings, 14,840 and 4,240 examples are extracted for train and validation. Each example has 1-second history and 3-second future. We have $t_{\mathrm{future}} = \{0.6, 1.2, 1.8, 2.4, 3.0\}$ for Lyft due to its $5\mathrm{Hz}$ sampling rate.
+
+Evaluation metric: The evaluation metric for detection is BEV AP (Bird-Eyes-View Average Precision) with the IoU threshold set to 0.5. Objects with fewer than 5 points are considered hard and are excluded during evaluation. For trajectory prediction, we employ the metrics used in [4, 9]. For $t \in t_{\mathrm{future}}$ , we compute the DE@t (Displacement Error) and the HR@t (Hit Rate) with a displacement error threshold of 0.5m. We also compute the ADE (Average Displacement Error) which equals to $\frac{1}{|t_{\mathrm{future}}|} \sum_{t \in t_{\mathrm{future}}} \mathrm{DE} @ t$ .
+
+Implementation: Our models are implemented in TensorFlow and we train the model with Adam optimizer on TPUv3 for 140k and 70k iterations for Waymo Open Dataset and Lyft Dataset respectively. The learning rate is $4 \times 10^{-4}$ and batch size is 1 per TPU. We use 32 TPU cores together for the training, thus the effective batch size is 32.
+
+We also implement IntentNet [4] and Faster-RCNN [21] in TensorFlow as the baselines, which are noted as "IntentNet" and "MF-FRCNN". Our implemented IntentNet (1) takes multiple frames as input and share the same backbone net as STINet; (2) removes the intent classification part, and only regresses a future trajectory. MF-FRCNN refers to a Faster-RCNN [21] model with several changes: (1) It uses the same backbone net as STINet, please refer to Section 3.1; (2) for each object proposal, in addition to the bounding box, we also regress future trajectories and headings. Note that the difference between proposals from MF-FRCNN and our method is that MF-FRCNN only predicts the current box of objects, while our method exploits a novel Temporal RPN which also generates the corresponding history boxes associated to each current box.
+
+# 4.2. Results on Waymo Open Dataset
+
+The main results on Waymo Open Dataset of pedestrian detection and trajectory prediction are summarized in Table 2 and Table 1. For detection we compare our proposed method (in the last row) with the current state-of-the-art detectors [19, 29] and our method surpasses the off-the-shelf baselines by a very large margin, improving the BEV AP from 74.38 to 80.73. To avoid the effects from multiframe inputs and different implementation details, we also compare with our implementation of IntentNet and multiframe Faster RCNN [21], which are noted as "IntentNet" and "MF-FRCNN" in Table 2. Our proposed method outperforms all baselines and it confirms the effectiveness of our T-RPN and the STI modeling of proposals.
+
+In Table 1 we compare the trajectory prediction performance between our proposed method, IntentNet and MF-FRCNN. Our proposed method surpasses all competitors by a large margin, and the improvement is larger than the improvement on detection. It aligns with our intuition since T-RPN and STI modeling are designed to better model objects' movement and more useful to forecast their trajectory.
+
+For a detailed comparison of STINet and MF-FRCNN, we evaluate the detection and trajectory prediction by breaking down the objects into five bins based on the future trajectory length in 3s. The five bins are $0 \sim 2.5\mathrm{m}$ , $2.5 \sim 5\mathrm{m}$ , $5 \sim 7.5\mathrm{m}$ , $7.5 \sim 10\mathrm{m}$ and $10\mathrm{m} \sim \infty$ respectively. We report BEV AP, ADE and the relative improvement in Table 3 and 4. The STINet is consistently better than MF-FRCNN
+
+| Model | 0~2.5 | 2.5~5 | 5~7.5 | 7.5~10 | 10~∞ |
| MF-FRCNN | 63.07 | 90.44 | 93.27 | 88.00 | 77.15 |
| STINet | 64.23 | 91.15 | 94.46 | 88.97 | 80.50 |
| Δ% | 1.8% | 0.8% | 1.3% | 1.1% | 4.3% |
+
+Table 3. Bird-eyes-view average precision (BEV-AP) breakdown comparison of MF-FRCNN and STINet on WOD. Objects are split into five bins based on the future trajectory length with a bin size of $2.5\mathrm{m}$ . Last row is the relative improvement of STINet.
+
+| Model | 0~2.5 | 2.5~5 | 5~7.5 | 7.5~10 | 10~∞ |
| MF-FRCNN | 26.90 | 37.56 | 46.39 | 104.60 | 173.50 |
| STINet | 26.73 | 35.42 | 41.18 | 89.74 | 137.17 |
| Δ% | 0.6% | 6.0% | 11.2% | 14.2% | 20.9% |
+
+Table 4. Average displacement error (ADE, in centimeters) breakdown comparison of MF-FRCNN and STINet on WOD. Objects are split into five bins based on the future trajectory length with a bin size of $2.5\mathrm{m}$ . Last row is the relative improvement of STINet.
+
+| Model | BEV AP ↑ | DE@3 ↓ | ADE ↓ | HR@3 ↑ |
| MF-FRCNN | 33.90 | 82.61 | 51.11 | 49.74 |
| STINet | 37.15 | 76.17 | 46.09 | 50.73 |
+
+Table 5. Detection and trajectory prediction performance on Lyft.
+
+| LG | LD | BEV AP ↑ | DE@3 ↓ | ADE ↓ | HR@3 ↑ |
| ✓ | | 80.38 | 64.15 | 37.67 | 58.46 |
| ✓ | 79.69 | 59.71 | 34.96 | 62.22 |
| ✓ | ✓ | 80.53 | 58.95 | 34.49 | 62.99 |
+
+Table 6. Ablation studies on local geometry and local dynamic features (noted as LG and LD in the table respectively). All entries are trained without History Path and Interactive features.
+
+| L+G | Path | DE@3 ↓ | ADE ↓ | HR@3 ↑ |
| ✓ | | 58.95 | 34.49 | 62.99 |
| ✓ | ✓ | 58.04 | 33.92 | 63.87 |
| † | ✓ | 67.80 | 39.86 | 52.25 |
+
+Table 7. Ablation studies on history path feature. $\dagger$ indicates the corresponding feature is used only for detection and ignored while prediction the trajectory.
+
+for both tasks. For trajectory prediction on objects moving more than $5\mathrm{m}$ , the relative improvements are significant and consistently more than $10\%$ . It confirms that the proposed method can leverage the details of history information and provide much better trajectory predictions, especially for pedestrians with a larger movement.
+
+# 4.3. Results on Lyft Dataset
+
+The detection and trajectory prediction results on the Lyft Dataset are summarized in Table 5. The performances on both tasks are improved largely and the results confirm the effectiveness of proposed method a small-scale dataset.
+
+# 4.4. Ablation studies
+
+In this section we conduct ablation experiments to analyze the contribution of each component and compare our
+
+| Breakdown | I | DE@3 ↓ | ADE ↓ | HR@3 ↑ |
| All | | 58.04 | 33.92 | 63.87 |
| ✓ | 57.60 | 33.67 | 64.43 |
| Group | | 49.67 | 30.85 | 64.87 |
| ✓ | 48.89 | 30.40 | 65.55 |
+
+Table 8. Ablation studies on interaction features. 'I' indicates whether the proposal interaction modeling is adopted. "All" and "Group" correspond to evaluation on all pedestrians and pedestrians belonging to a group with at least 5 pedestrians respectively.
+
+model with potential alternative methods on the Waymo Open Dataset. The results are summarized below. For clarity, we only show DE@3, ADE and HR@3 for trajectory prediction. The other metrics have the same tendency.
+
+Effect of local geometry and local dynamic features: We conduct experiments to analyze the effect of local geometry and local dynamic features, summarized in Table 6. The local geometry feature is good at detection and the local dynamic feature is good at trajectory prediction. Geometry feature itself does not work well for trajectory prediction since it ignores dynamics for better detection. By combining both of the features, the benefits in detection and trajectory prediction can be obtained simultaneously.
+
+Effect of history path: Although objects' geometry and movement are already represented by local geometry dynamic features, taking history path as an extra feature can give another performance gain by improving the DE@3 from 58.95 to 58.04 and the HR@3 from 62.99 to 63.87 (as shown in the first two row of Table 7). This suggests the history path, as the easiest and most direct representation of objects' movement, can still help based on the rich representations. However history path itself is far from enough to give accurate trajectory prediction, suggested by the poor performance in the last row of Table 7.
+
+Effect of proposal interaction modeling: To demonstrate the effectiveness of the proposed pedestrian interaction modeling, we measure the performance for all pedestrians as well as pedestrians in a group. Specifically, we design a heuristic rule (based on locations and speeds) to discover pedestrian groups and assign each pedestrian a group label on the evaluation set. The details about the grouping algorithm can be found in supplementary. We evaluate the trajectory prediction performance on all pedestrians and the pedestrians belonging to a group with at least 5 pedestrians, shown in Table 8. The interaction modeling improves trajectory prediction performance on "all pedestrians" and achieve a larger boost for pedestrians that belong to groups (DE@3 improved from 49.67 to 48.89 by $1.6\%$ ).
+
+# 4.5. Model inference speed
+
+We measure the inference speed of our proposed model as well as baseline models on context range of $100\mathrm{m}$ by
+
+
+
+
+Figure 5. Qualitative examples of STINet. The blue box are detected pedestrians. The cyan and yellow lines are predicted future and history trajectories of STINet respectively.
+
+100m as well as 150m by 150m. All models are implemented in TensorFlow and the inference is executed on a single NVIDIA Tesla V100 GPU. For the context range of 100m by 100m, IntentNet, MF-FRCNN and STINet have inference time of 60.9, 69.4 and 74.6ms respectively. Both two-stage models (MF-FRCNN and STINet) are slower than the single-stage model, and STINet is slightly slower than MF-FRCNN. However, all three models can achieve a real-time inference speed higher than 10Hz. For the maximum range of Waymo Open Dataset, i.e., 150m by 150m, three models have inference time of 122.9, 132.1 and 144.7ms respectively.
+
+# 4.6. Qualitative results
+
+The visualization for the predictions of STINet is shown in Figure 5. The blue boxes are the detected pedestrians. The cyan and yellow lines are the predicted future and history trajectory for each detected pedestrian respectively. We show two scenarios where the SDC is stationary in the upper sub-figure and the SDC is moving fast in the lower sub-figure. It demonstrates that our model detects and predicts very accurately in both cases.
+
+Figure 6 shows a detailed comparison between STINet and MF-FRCNN against the ground-truth for trajectory prediction. Green boxes are the ground-truth boxes. Yellow, pink and cyan lines are the ground-truth future trajec
+
+
+
+
+Figure 6. Comparison between MF-FRCNN and STINet. The yellow line is the ground-truth future trajectory for pedestrians. The pink and cyan lines are the predicted future trajectory from MF-FRCNN and STINet respectively. It is clear that our proposed method gives a much better prediction compared with the baseline, for all three pedestrians. Upper: the overview of three pedestrians. Lower: zoom-in visualization for three pedestrians.
+
+
+
+
+
+tory as well as the predicted future trajectories from MF-FRCNN and STINet respectively. For the left two pedestrians who are walking in a straight line, both MF-FRCNN and STINet predict future trajectory reasonably well but the MF-FRCNN still has a small error compared with the ground-truth; for the right-most pedestrian who is making a slight left turn, MF-FRCNN fails to capture the details of its movement and gives an unsatisfactory prediction, while STINet gives a much better trajectory prediction.
+
+# 5. Conclusion
+
+In this paper, we propose STINet to perform joint detection and trajectory prediction with raw lidar point clouds as the input. We propose to build temporal proposals with pedestrians' both current and past boxes and learn a rich representation for each temporal proposal, with local geometry, dynamic movement, history path and interaction features. We show that by explicitly modeling the spatiotemporal-interaction features, both detection and trajectory prediction quality can be drastically improved compared with single-stage and two-stage baselines. This also makes us to re-think the importance of introducing second-stage and proposals, especially for the joint detection and trajectory prediction task. Comprehensive experiments and comparisons with baselines and state-of-the-arts confirm the effectiveness of our proposed method, and our method significantly improves the prediction quality while still achieves the real-time inference speed which makes our model practical to be used in real-world applications. Combining camera/map data and utilizing longer history with LSTMs could be investigated to further improve the prediction and we will explore them in future work.
+
+# References
+
+[1] Waymo open dataset: An autonomous driving dataset, 2019. 2, 5
+[2] Alexandre Alahi, Kratarth Goel, Vignesh Ramanathan, Alexandre Robicquet, Li Fei-Fei, and Silvio Savarese. Social lstm: Human trajectory prediction in crowded spaces. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 961–971, 2016. 1, 3
+[3] Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. 2
+[4] Sergio Casas, Wenjie Luo, and Raquel Urtasun. Intentnet: Learning to predict intention from raw sensor data. In Conference on Robot Learning, pages 947-956, 2018. 1, 2, 3, 6
+[5] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3d tracking and forecasting with rich maps. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8748-8757, 2019. 3
+[6] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015. 1, 2
+[7] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018. 1, 3
+[8] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 4
+[9] Joey Hong, Benjamin Sapp, and James Philbin. Rules of the road: Predicting driving behavior with a convolutional model of semantic interactions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8454-8462, 2019. 1, 3, 6
+[10] 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. 2
+[11] Vicky Kalogeiton, Philippe Weinzaepfel, Vittorio Ferrari, and Cordelia Schmid. Action tubelet detector for spatiotemporal action localization. In Proceedings of the IEEE International Conference on Computer Vision, pages 4405-4413, 2017. 2
+[12] R. Kesten, M. Usman, J. Houston, T. Pandya, K. Nadhamuni, A. Ferreira, M. Yuan, B. Low, A. Jain, P. Ondruska, S. Omari, S. Shah, A. Kulkarni, A. Kazakova, C. Tao, L. Platinsky, W. Jiang, and V. Shet. Lyft level 5 av dataset 2019. https://level5.lyft.com/dataset/, 2019. 2, 5
+[13] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In Proceedings of the
+
+IEEE Conference on Computer Vision and Pattern Recognition, pages 12697-12705, 2019. 1, 2, 3
+[14] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 336-345, 2017. 3
+[15] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980-2988, 2017. 1, 2
+[16] 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, 2
+[17] Wenjie Luo, Bin Yang, and Raquel Urtasun. Fast and furious: Real time end-to-end 3d detection, tracking and motion forecasting with a single convolutional net. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 3569-3577, 2018. 1, 2, 3
+[18] Anton Milan, S Hamid Rezatofighi, Anthony Dick, Ian Reid, and Konrad Schindler. Online multi-target tracking using recurrent neural networks. In Thirty-First AAAI Conference on Artificial Intelligence, 2017. 1
+[19] Jiquan Ngiam, Benjamin Caine, Wei Han, Brandon Yang, Yuning Chai, Pei Sun, Yin Zhou, Xi Yi, Ouais Alsharif, Patrick Nguyen, et al. Starnet: Targeted computation for object detection in point clouds. arXiv preprint arXiv:1908.11069, 2019. 6
+[20] 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, 2
+[21] 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, 4, 6
+[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, pages 234-241. Springer, 2015. 3
+[23] Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pages 4967-4976, 2017. 2
+[24] Chen Sun, Abhinav Shrivastava, Carl Vondrick, Rahul Sukthankar, Kevin Murphy, and Cordelia Schmid. Relational action forecasting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 273-283, 2019. 2
+[25] Peng Tang, Chunyu Wang, Xinggang Wang, Wenyu Liu, Wenjun Zeng, and Jingdong Wang. Object detection in videos by high quality object linking. IEEE transactions on pattern analysis and machine intelligence, 2019. 2
+
+[26] Xiaolong Wang and Abhinav Gupta. Videos as space-time region graphs. In Proceedings of the European Conference on Computer Vision (ECCV), pages 399-417, 2018. 2
+[27] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018. 4
+[28] Jianwei Yang, Jiasen Lu, Stefan Lee, Dhruv Batra, and Devi Parikh. Graph r-cnn for scene graph generation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 670-685, 2018. 2
+[29] Yin Zhou, Pei Sun, Yu Zhang, Dragomir Anguelov, Jiyang Gao, Tom Ouyang, James Guo, Jiquan Ngiam, and Vijay Vasudevan. End-to-end multi-view fusion for 3d object detection in lidar point clouds. arXiv preprint arXiv:1910.06528, 2019. 1, 6
+[30] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4490-4499, 2018. 1, 3
\ No newline at end of file
diff --git a/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/images.zip b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f74345693e3d669e4fe639d7296e99fd6b0b24a9
--- /dev/null
+++ b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3321bcc87db00840e62c976f2c5d6fdcf1bd94cee0990d08178d50c8340d3ef8
+size 549364
diff --git a/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/layout.json b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..29d7595288a1e5a5d6d60eb764cde894105f88f0
--- /dev/null
+++ b/stinetspatiotemporalinteractivenetworkforpedestriandetectionandtrajectoryprediction/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a62022e2fa1a0bce930f7829120115e039e33bb162815d69933c96e383cc0bc
+size 375064