SlowGuess commited on
Commit
b64d613
·
verified ·
1 Parent(s): 6c4c2e5

Add Batch 548f5650-f492-455b-8a93-5a18612eb0b6

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. ghostnetmorefeaturesfromcheapoperations/0b1360cb-d641-41c4-85f9-7e11897bad66_content_list.json +3 -0
  2. ghostnetmorefeaturesfromcheapoperations/0b1360cb-d641-41c4-85f9-7e11897bad66_model.json +3 -0
  3. ghostnetmorefeaturesfromcheapoperations/0b1360cb-d641-41c4-85f9-7e11897bad66_origin.pdf +3 -0
  4. ghostnetmorefeaturesfromcheapoperations/full.md +302 -0
  5. ghostnetmorefeaturesfromcheapoperations/images.zip +3 -0
  6. ghostnetmorefeaturesfromcheapoperations/layout.json +3 -0
  7. globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/6b2d38db-299d-46c9-9bdb-c75d30d19a91_content_list.json +3 -0
  8. globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/6b2d38db-299d-46c9-9bdb-c75d30d19a91_model.json +3 -0
  9. globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/6b2d38db-299d-46c9-9bdb-c75d30d19a91_origin.pdf +3 -0
  10. globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/full.md +280 -0
  11. globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/images.zip +3 -0
  12. globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/layout.json +3 -0
  13. globallocalgcnlargescalelabelnoisecleansingforfacerecognition/d846373b-08a0-4831-9584-6e628e86218b_content_list.json +3 -0
  14. globallocalgcnlargescalelabelnoisecleansingforfacerecognition/d846373b-08a0-4831-9584-6e628e86218b_model.json +3 -0
  15. globallocalgcnlargescalelabelnoisecleansingforfacerecognition/d846373b-08a0-4831-9584-6e628e86218b_origin.pdf +3 -0
  16. globallocalgcnlargescalelabelnoisecleansingforfacerecognition/full.md +319 -0
  17. globallocalgcnlargescalelabelnoisecleansingforfacerecognition/images.zip +3 -0
  18. globallocalgcnlargescalelabelnoisecleansingforfacerecognition/layout.json +3 -0
  19. globallyoptimalcontrastmaximisationforeventbasedmotionestimation/32a720c6-93ff-4f45-beaf-f5ea8452f3b6_content_list.json +3 -0
  20. globallyoptimalcontrastmaximisationforeventbasedmotionestimation/32a720c6-93ff-4f45-beaf-f5ea8452f3b6_model.json +3 -0
  21. globallyoptimalcontrastmaximisationforeventbasedmotionestimation/32a720c6-93ff-4f45-beaf-f5ea8452f3b6_origin.pdf +3 -0
  22. globallyoptimalcontrastmaximisationforeventbasedmotionestimation/full.md +626 -0
  23. globallyoptimalcontrastmaximisationforeventbasedmotionestimation/images.zip +3 -0
  24. globallyoptimalcontrastmaximisationforeventbasedmotionestimation/layout.json +3 -0
  25. globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/54e9554d-ccd8-4776-8940-4947667b2725_content_list.json +3 -0
  26. globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/54e9554d-ccd8-4776-8940-4947667b2725_model.json +3 -0
  27. globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/54e9554d-ccd8-4776-8940-4947667b2725_origin.pdf +3 -0
  28. globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/full.md +431 -0
  29. globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/images.zip +3 -0
  30. globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/layout.json +3 -0
  31. globaltextureenhancementforfakefacedetectioninthewild/d048fd97-adf3-40c1-923f-beb4286675c8_content_list.json +3 -0
  32. globaltextureenhancementforfakefacedetectioninthewild/d048fd97-adf3-40c1-923f-beb4286675c8_model.json +3 -0
  33. globaltextureenhancementforfakefacedetectioninthewild/d048fd97-adf3-40c1-923f-beb4286675c8_origin.pdf +3 -0
  34. globaltextureenhancementforfakefacedetectioninthewild/full.md +325 -0
  35. globaltextureenhancementforfakefacedetectioninthewild/images.zip +3 -0
  36. globaltextureenhancementforfakefacedetectioninthewild/layout.json +3 -0
  37. goingdeeperwithleanpointnetworks/f8e614fe-33e3-4139-890f-9241c1545f45_content_list.json +3 -0
  38. goingdeeperwithleanpointnetworks/f8e614fe-33e3-4139-890f-9241c1545f45_model.json +3 -0
  39. goingdeeperwithleanpointnetworks/f8e614fe-33e3-4139-890f-9241c1545f45_origin.pdf +3 -0
  40. goingdeeperwithleanpointnetworks/full.md +261 -0
  41. goingdeeperwithleanpointnetworks/images.zip +3 -0
  42. goingdeeperwithleanpointnetworks/layout.json +3 -0
  43. goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/dee3b80a-8222-4d7f-845f-47109519ff7f_content_list.json +3 -0
  44. goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/dee3b80a-8222-4d7f-845f-47109519ff7f_model.json +3 -0
  45. goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/dee3b80a-8222-4d7f-845f-47109519ff7f_origin.pdf +3 -0
  46. goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/full.md +303 -0
  47. goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/images.zip +3 -0
  48. goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/layout.json +3 -0
  49. googlelandmarksdatasetv2alargescalebenchmarkforinstancelevelrecognitionandretrieval/830eb049-2d51-45b8-a3ed-f877bb803562_content_list.json +3 -0
  50. googlelandmarksdatasetv2alargescalebenchmarkforinstancelevelrecognitionandretrieval/830eb049-2d51-45b8-a3ed-f877bb803562_model.json +3 -0
ghostnetmorefeaturesfromcheapoperations/0b1360cb-d641-41c4-85f9-7e11897bad66_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fc8c1676acaf10e7a4745a4d238989ca39b96e905c3b5958f0a43e018423b7c
3
+ size 76667
ghostnetmorefeaturesfromcheapoperations/0b1360cb-d641-41c4-85f9-7e11897bad66_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7c981de5d98aa394ac7d538c8e0615551db43c9ac262fc65ee7c2ef7ec76225
3
+ size 97032
ghostnetmorefeaturesfromcheapoperations/0b1360cb-d641-41c4-85f9-7e11897bad66_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54468cb3ccbfb6ddceb089165dcda5048b087964e4ae8b1ef5f4a74b064f0b4f
3
+ size 473897
ghostnetmorefeaturesfromcheapoperations/full.md ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GhostNet: More Features from Cheap Operations
2
+
3
+ Kai Han $^{1}$ Yunhe Wang $^{1}$ Qi Tian $^{1*}$ Jianyuan Guo $^{2}$ Chunjing Xu $^{1}$ Chang Xu $^{3}$ $^{1}$ Noah's Ark Lab, Huawei Technologies. $^{2}$ Peking University.
4
+ $^{3}$ School of Computer Science, Faculty of Engineering, University of Sydney.
5
+
6
+ {kai.han,yunhe.wang,tian.qil,xuchunjing}@huawei.com jyguo@pku.edu.cn c.xu@sydney.edu.au
7
+
8
+ # Abstract
9
+
10
+ Deploying convolutional neural networks (CNNs) on embedded devices is difficult due to the limited memory and computation resources. The redundancy in feature maps is an important characteristic of those successful CNNs, but has rarely been investigated in neural architecture design. This paper proposes a novel Ghost module to generate more feature maps from cheap operations. Based on a set of intrinsic feature maps, we apply a series of linear transformations with cheap cost to generate many ghost feature maps that could fully reveal information underlying intrinsic features. The proposed Ghost module can be taken as a plug-and-play component to upgrade existing convolutional neural networks. Ghost bottlenecks are designed to stack Ghost modules, and then the lightweight Ghost-Net can be easily established. Experiments conducted on benchmarks demonstrate that the proposed Ghost module is an impressive alternative of convolution layers in baseline models, and our GhostNet can achieve higher recognition performance (e.g. $75.7\%$ top-1 accuracy) than MobileNetV3 with similar computational cost on the ImageNet ILSVRC2012 classification dataset. Code is available at https://github.com/huawei-noah/ghostnet.
11
+
12
+ # 1. Introduction
13
+
14
+ Deep convolutional neural networks have shown excellent performance on various computer vision tasks, such as image recognition [30, 13], object detection [43, 33], and semantic segmentation [4]. Traditional CNNs usually need a large number of parameters and floating point operations (FLOPs) to achieve a satisfactory accuracy, e.g. ResNet-50 [16] has about $25.6\mathrm{M}$ parameters and requires 4.1B FLOPs to process an image of size $224 \times 224$ . Thus, the recent trend of deep neural network design is to explore portable and efficient network architectures with acceptable performance for mobile devices (e.g. smart phones and self-driving cars).
15
+
16
+ ![](images/deeb198a1ecfaa3568c7969d08ad9c4ce24ac54d0f788e6cefc39b302cdff69e.jpg)
17
+ Figure 1. Visualization of some feature maps generated by the first residual group in ResNet-50, where three similar feature map pair examples are annotated with boxes of the same color. One feature map in the pair can be approximately obtained by transforming the other one through cheap operations (denoted by spanners).
18
+
19
+ Over the years, a series of methods have been proposed to investigate compact deep neural networks such as network pruning [14, 39], low-bit quantization [42, 26], knowledge distillation [19, 57], etc. Han et al. [14] proposed to prune the unimportant weights in neural networks. [31] utilized $\ell_1$ -norm regularization to prune filters for efficient CNNs. [42] quantized the weights and the activations to 1-bit data for achieving large compression and speed-up ratios. [19] introduced knowledge distillation for transferring knowledge from a larger model to a smaller model. However, performance of these methods are often upper bounded by pre-trained deep neural networks that have been taken as their baselines.
20
+
21
+ Besides them, efficient neural architecture design has a very high potential for establishing highly efficient deep networks with fewer parameters and calculations, and recently has achieved considerable success. This kind of methods can also provide new search unit for automatic search methods [62, 55, 5]. For instance, MobileNet [21, 44, 20] utilized the depthwise and pointwise convolutions to construct a unit for approximating the original convolutional layer with larger filters and achieved comparable performance. ShuffleNet [61, 40] further explored a channel shuffle operation
22
+
23
+ to enhance the performance of lightweight models.
24
+
25
+ Abundant and even redundant information in the feature maps of well-trained deep neural networks often guarantees a comprehensive understanding of the input data. For example, Figure 1 presents some feature maps of an input image generated by ResNet-50, and there exist many similar pairs of feature maps, like a ghost of each another. Redundancy in feature maps could be an important characteristic for a successful deep neural network. Instead of avoiding the redundant feature maps, we tend to embrace them, but in a cost-efficient way.
26
+
27
+ In this paper, we introduce a novel Ghost module to generate more features by using fewer parameters. Specifically, an ordinary convolutional layer in deep neural networks will be split into two parts. The first part involves ordinary convolutions but their total number will be rigorously controlled. Given the intrinsic feature maps from the first part, a series of simple linear operations are then applied for generating more feature maps. Without changing the size of output feature map, the overall required number of parameters and computational complexities in this Ghost module have been decreased, compared with those in vanilla convolutional neural networks. Based on Ghost module, we establish an efficient neural architecture, namely, GhostNet. We first replace original convolutional layers in benchmark neural architectures to demonstrate the effectiveness of Ghost modules, and then verify the superiority of our GhostNets on several benchmark visual datasets. Experimental results show that, the proposed Ghost module is able to decrease computational costs of generic convolutional layer while preserving similar recognition performance, and GhostNets can surpass state-of-the-art efficient deep models such as MobileNetV3 [20], on various tasks with fast inference on mobile devices.
28
+
29
+ The rest of the paper is organized as follows: section 2 briefly concludes the related work in the area, followed by the proposed Ghost module and GhostNet in section 3, the experiments and analysis in section 4, and finally, conclusion in section 5.
30
+
31
+ # 2. Related Work
32
+
33
+ Here we revisit the existing methods for lightening neural networks in two parts: model compression and compact model design.
34
+
35
+ # 2.1. Model Compression
36
+
37
+ For a given neural network, model compression aims to reduce the computation, energy and storage cost [14, 48, 11, 54]. Pruning connections [15, 14, 50] cuts out the unimportant connections between neurons. Channel pruning [51, 18, 31, 39, 59, 23, 35] further targets on removing useless channels for easier acceleration in practice. Model quantization [42, 24, 26] represents weights or activations
38
+
39
+ in neural networks with discrete values for compression and calculation acceleration. Specifically, binarization methods [24, 42, 38, 45] with only 1-bit values can extremely accelerate the model by efficient binary operations. Tensor decomposition [27, 9] reduces the parameters or computation by exploiting the redundancy and low-rank property in weights. Knowledge distillation [19, 12, 3] utilizes larger models to teach smaller ones, which improves the performance of smaller models. The performances of these methods usually depend on the given pre-trained models. The improvement on basic operations and architectures will make them go further.
40
+
41
+ # 2.2. Compact Model Design
42
+
43
+ With the need for deploying neural networks on embedded devices, a series of compact models are proposed in recent years [7, 21, 44, 20, 61, 40, 53, 56]. Xception [7] utilizes depthwise convolution operation for more efficient use of model parameters. MobileNets [21] are a series of light weight deep neural networks based on depthwise separable convolutions. MobileNetV2 [44] proposes inverted residual block and MobileNetV3 [20] further utilizes AutoML technology [62, 55, 10] achieving better performance with fewer FLOPs. ShuffleNet [61] introduces channel shuffle operation to improve the information flow exchange between channel groups. ShuffleNetV2 [40] further considers the actual speed on target hardware for compact model design. Although these models obtain great performance with very few FLOPs, the correlation and redundancy between feature maps has never been well exploited.
44
+
45
+ # 3. Approach
46
+
47
+ In this section, we will first introduce the Ghost module to utilize a few small filters to generate more feature maps from the original convolutional layer, and then develop a new GhostNet with an extremely efficient architecture and high performance.
48
+
49
+ # 3.1. Ghost Module for More Features
50
+
51
+ Deep convolutional neural networks [30, 46, 16] often consist of a large number of convolutions that results in massive computational costs. Although recent works such as MobileNet [21, 44] and ShuffleNet [40] have introduced depthwise convolution or shuffle operation to build efficient CNNs using smaller convolution filters (floating-number operations), the remaining $1 \times 1$ convolution layers would still occupy considerable memory and FLOPs.
52
+
53
+ Given the widely existing redundancy in intermediate feature maps calculated by mainstream CNNs as shown in Figure 1, we propose to reduce the required resources, i.e. convolution filters used for generating them. In practice, given the input data $X \in \mathbb{R}^{c \times h \times w}$ , where $c$ is the number of input channels and $h$ and $w$ are the height and width of
54
+
55
+ the input data, respectively, the operation of an arbitrary convolutional layer for producing $n$ feature maps can be formulated as
56
+
57
+ $$
58
+ Y = X * f + b, \tag {1}
59
+ $$
60
+
61
+ where $*$ is the convolution operation, $b$ is the bias term, $Y\in \mathbb{R}^{h^{\prime}\times w^{\prime}\times n}$ is the output feature map with $n$ channels, and $f\in \mathbb{R}^{c\times k\times k\times n}$ is the convolution filters in this layer. In addition, $h^\prime$ and $w^{\prime}$ are the height and width of the output data, and $k\times k$ is the kernel size of convolution filters $f$ , respectively. During this convolution procedure, the required number of FLOPs can be calculated as $n\cdot h^{\prime}\cdot w^{\prime}\cdot c\cdot k\cdot k$ , which is often as large as hundreds of thousands since the number of filters $n$ and the channel number $c$ are generally very large (e.g. 256 or 512).
62
+
63
+ ![](images/493d3eb8674a83e95cb4b0dbc9affca672b6a498b4cb5a89f15410314572bf6b.jpg)
64
+ (a) The convolutional layer.
65
+
66
+ ![](images/68974320b4fc48f78cd0f4bc9ee1da3c7182c9ac806fb3e7392e74e72e64cf89.jpg)
67
+ (b) The Ghost module.
68
+ Figure 2. An illustration of the convolutional layer and the proposed Ghost module for outputting the same number of feature maps. $\Phi$ represents the cheap operation.
69
+
70
+ According to Eq. 1, the number of parameters (in $f$ and $b$ ) to be optimized is explicitly determined by the dimensions of input and output feature maps. As observed in Figure 1, the output feature maps of convolutional layers often contain much redundancy, and some of them could be similar with each other. We point out that it is unnecessary to generate these redundant feature maps one by one with large number of FLOPs and parameters. Suppose that the output feature maps are "ghosts" of a handful of intrinsic feature maps with some cheap transformations. These intrinsic feature maps are often of smaller size and produced by ordinary convolution filters. Specifically, $m$ intrinsic feature maps $Y' \in \mathbb{R}^{h' \times w' \times m}$ are generated using a primary convolution:
71
+
72
+ $$
73
+ Y ^ {\prime} = X * f ^ {\prime}, \tag {2}
74
+ $$
75
+
76
+ where $f' \in \mathbb{R}^{c \times k \times k \times m}$ is the utilized filters, $m \leq n$ and the bias term is omitted for simplicity. The hyper-parameters
77
+
78
+ such as filter size, stride, padding, are the same as those in the ordinary convolution (Eq. 1) to keep the spatial size (i.e. $h'$ and $w'$ ) of the output feature maps consistent. To further obtain the desired $n$ feature maps, we propose to apply a series of cheap linear operations on each intrinsic feature in $Y'$ to generate $s$ ghost features according to the following function:
79
+
80
+ $$
81
+ y _ {i j} = \Phi_ {i, j} \left(y _ {i} ^ {\prime}\right), \quad \forall i = 1, \dots , m, \quad j = 1, \dots , s, \tag {3}
82
+ $$
83
+
84
+ where $y_{i}^{\prime}$ is the $i$ -th intrinsic feature map in $Y^{\prime}$ , $\Phi_{i,j}$ in the above function is the $j$ -th (except the last one) linear operation for generating the $j$ -th ghost feature map $y_{ij}$ , that is to say, $y_{i}^{\prime}$ can have one or more ghost feature maps $\{y_{ij}\}_{j=1}^{s}$ . The last $\Phi_{i,s}$ is the identity mapping for preserving the intrinsic feature maps as shown in Figure 2(b). By utilizing Eq. 3, we can obtain $n = m \cdot s$ feature maps $Y = [y_{11}, y_{12}, \dots, y_{ms}]$ as the output data of a Ghost module as shown in Figure 2(b). Note that the linear operations $\Phi$ operate on each channel whose computational cost is much less than the ordinary convolution. In practice, there could be several different linear operations in a Ghost module, e.g. $3 \times 3$ and $5 \times 5$ linear kernels, which will be analyzed in the experiment part.
85
+
86
+ Difference from Existing Methods. The proposed Ghost module has major differences from existing efficient convolution schemes. i) Compared with the units in [21, 61] which utilize $1 \times 1$ pointwise convolution widely, the primary convolution in Ghost module can have customized kernel size. ii) Existing methods [21, 44, 61, 40] adopt pointwise convolutions to process features across channels and then take depthwise convolution to process spatial information. In contrast, Ghost module adopts ordinary convolution to first generate a few intrinsic feature maps, and then utilizes cheap linear operations to augment the features and increase the channels. iii) The operation to process each feature map is limited to depthwise convolution or shift operation in previous efficient architectures [21, 61, 53, 28], while linear operations in Ghost module can have large diversity. iv) In addition, the identity mapping is paralleled with linear transformations in Ghost module to preserve the intrinsic feature maps.
87
+
88
+ Analysis on Complexities. Since we can utilize the proposed Ghost module in Eq. 3 to generate the same number of feature maps as that of an ordinary convolutional layer, we can easily integrate the Ghost module into existing well-designed neural architectures to reduce the computation costs. Here we further analyze the profit on memory usage and theoretical speed-up by employing the Ghost module. For example, there are 1 identity mapping and $m \cdot (s - 1) = \frac{n}{s} \cdot (s - 1)$ linear operations, and the averaged kernel size of each linear operation is equal to $d \times d$ . Ideally, the $n \cdot (s - 1)$ linear operations can have different shapes and parameters, but the online inference will be obstructed especially considering
89
+
90
+ the utility of CPU or GPU cards. Thus, we suggest to take linear operations of the same size (e.g. $3 \times 3$ or $5 \times 5$ ) in one Ghost module for efficient implementation. The theoretical speed-up ratio of upgrading ordinary convolution with the Ghost module is
91
+
92
+ $$
93
+ \begin{array}{l} r _ {s} = \frac {n \cdot h ^ {\prime} \cdot w ^ {\prime} \cdot c \cdot k \cdot k}{\frac {n}{s} \cdot h ^ {\prime} \cdot w ^ {\prime} \cdot c \cdot k \cdot k + (s - 1) \cdot \frac {n}{s} \cdot h ^ {\prime} \cdot w ^ {\prime} \cdot d \cdot d} \\ = \frac {c \cdot k \cdot k}{\frac {1}{s} \cdot c \cdot k \cdot k + \frac {s - 1}{s} \cdot d \cdot d} \approx \frac {s \cdot c}{s + c - 1} \approx s, \tag {4} \\ \end{array}
94
+ $$
95
+
96
+ where $d \times d$ has the similar magnitude as that of $k \times k$ , and $s \ll c$ . Similarly, the compression ratio can be calculated as
97
+
98
+ $$
99
+ r _ {c} = \frac {n \cdot c \cdot k \cdot k}{\frac {n}{s} \cdot c \cdot k \cdot k + (s - 1) \cdot \frac {n}{s} \cdot d \cdot d} \approx \frac {s \cdot c}{s + c - 1} \approx s, \tag {5}
100
+ $$
101
+
102
+ which is equal to that of the speed-up ratio by utilizing the proposed Ghost module.
103
+
104
+ ![](images/509e8639324b0c1c7e1357bce108ee07d37d8ca617690c01521c9de4cb40714f.jpg)
105
+ Figure 3. Ghost bottleneck. Left: Ghost bottleneck with stride=1; right: Ghost bottleneck with stride=2.
106
+
107
+ ![](images/e7af7dbc271ac4748a09f10ec1e4d1e58a72cae3f5476fe33447835f5ce94072.jpg)
108
+ Stride=2 bottleneck
109
+
110
+ # 3.2. Building Efficient CNNs
111
+
112
+ Ghost Bottlenecks. Taking the advantages of Ghost module, we introduce the Ghost bottleneck (G-bneck) specially designed for small CNNs. As shown in Figure 3, the Ghost bottleneck appears to be similar to the basic residual block in ResNet [16] in which several convolutional layers and shortcuts are integrated. The proposed ghost bottleneck mainly consists of two stacked Ghost modules. The first Ghost module acts as an expansion layer increasing the number of channels. We refer the ratio between the number of the output channels and that of the input as expansion ratio. The second Ghost module reduces the number of channels to match the shortcut path. Then the shortcut is connected between the inputs and the outputs of these two Ghost modules. The batch normalization (BN) [25] and ReLU nonlinearity are applied after each layer, except that ReLU is not used after the second Ghost module as suggested by MobileNetV2 [44].
113
+
114
+ Table 1. Overall architecture of GhostNet. G-bneck denotes Ghost bottleneck. #exp means expansion size. #out means the number of output channels. SE denotes whether using SE module.
115
+
116
+ <table><tr><td>Input</td><td>Operator</td><td>#exp</td><td>#out</td><td>SE</td><td>Stride</td></tr><tr><td>2242 × 3</td><td>Conv2d 3×3</td><td>-</td><td>16</td><td>-</td><td>2</td></tr><tr><td>1122 × 16</td><td>G-bneck</td><td>16</td><td>16</td><td>-</td><td>1</td></tr><tr><td>1122 × 16</td><td>G-bneck</td><td>48</td><td>24</td><td>-</td><td>2</td></tr><tr><td>562 × 24</td><td>G-bneck</td><td>72</td><td>24</td><td>-</td><td>1</td></tr><tr><td>562 × 24</td><td>G-bneck</td><td>72</td><td>40</td><td>1</td><td>2</td></tr><tr><td>282 × 40</td><td>G-bneck</td><td>120</td><td>40</td><td>1</td><td>1</td></tr><tr><td>282 × 40</td><td>G-bneck</td><td>240</td><td>80</td><td>-</td><td>2</td></tr><tr><td>142 × 80</td><td>G-bneck</td><td>200</td><td>80</td><td>-</td><td>1</td></tr><tr><td>142 × 80</td><td>G-bneck</td><td>184</td><td>80</td><td>-</td><td>1</td></tr><tr><td>142 × 80</td><td>G-bneck</td><td>184</td><td>80</td><td>-</td><td>1</td></tr><tr><td>142 × 80</td><td>G-bneck</td><td>480</td><td>112</td><td>1</td><td>1</td></tr><tr><td>142 × 112</td><td>G-bneck</td><td>672</td><td>112</td><td>1</td><td>1</td></tr><tr><td>142 × 112</td><td>G-bneck</td><td>672</td><td>160</td><td>1</td><td>2</td></tr><tr><td>72 × 160</td><td>G-bneck</td><td>960</td><td>160</td><td>-</td><td>1</td></tr><tr><td>72 × 160</td><td>G-bneck</td><td>960</td><td>160</td><td>1</td><td>1</td></tr><tr><td>72 × 160</td><td>G-bneck</td><td>960</td><td>160</td><td>-</td><td>1</td></tr><tr><td>72 × 160</td><td>G-bneck</td><td>960</td><td>160</td><td>1</td><td>1</td></tr><tr><td>72 × 160</td><td>Conv2d 1×1</td><td>-</td><td>960</td><td>-</td><td>1</td></tr><tr><td>72 × 960</td><td>AvgPool 7×7</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>12 × 960</td><td>Conv2d 1×1</td><td>-</td><td>1280</td><td>-</td><td>1</td></tr><tr><td>12 × 1280</td><td>FC</td><td>-</td><td>1000</td><td>-</td><td>-</td></tr></table>
117
+
118
+ The Ghost bottleneck described above is for stride $= 1$ . As for the case where stride $= 2$ , the shortcut path is implemented by a downsampling layer and a depthwise convolution with stride $= 2$ is inserted between the two Ghost modules. In practice, the primary convolution in Ghost module here is pointwise convolution for its efficiency.
119
+
120
+ GhostNet. Building on the ghost bottleneck, we propose GhostNet as presented in Table 7. We basically follow the architecture of MobileNetV3 [20] for its superiority and replace the bottleneck block in MobileNetV3 with our Ghost bottleneck. GhostNet mainly consists of a stack of Ghost bottlenecks with the Ghost modules as the building block. The first layer is a standard convolutional layer with 16 filters, then a series of Ghost bottlenecks with gradually increased channels are followed. These Ghost bottlenecks are grouped into different stages according to the sizes of their input feature maps. All the Ghost bottlenecks are applied with stride=1 except that the last one in each stage is with stride=2. At last a global average pooling and a convolutional layer are utilized to transform the feature maps to a 1280-dimensional feature vector for final classification. The squeeze and excite (SE) module [22] is also applied to the residual layer in some ghost bottlenecks as in Table 7. In contrast to MobileNetV3, we do not use hard-swish nonlinearity function due to its large latency. The presented architecture provides a basic design for reference, although further hyper-parameters tuning or automatic architecture searching based ghost module will
121
+
122
+ further boost the performance.
123
+
124
+ Width Multiplier. Although the given architecture in Table 7 can already provide low latency and guaranteed accuracy, in some scenarios we may require smaller and faster models or higher accuracy on specific tasks. To customize the network for the desired needs, we can simply multiply a factor $\alpha$ on the number of channels uniformly at each layer. This factor $\alpha$ is called width multiplier as it can change the width of the entire network. We denote GhostNet with width multiplier $\alpha$ as GhostNet- $\alpha \times$ . Width multiplier can control the model size and the computational cost quadratically by roughly $\alpha^2$ . Usually smaller $\alpha$ leads to lower latency and lower performance, and vice versa.
125
+
126
+ # 4. Experiments
127
+
128
+ In this section, we first replace the original convolutional layers by the proposed Ghost module to verify its effectiveness. Then, the GhostNet architecture built using the new module will be further tested on the image classification and object detection benchmarks.
129
+
130
+ Datasets and Settings. To verify the effectiveness of the proposed Ghost module and GhostNet architecture, we conduct experiments on several benchmark visual datasets, including CIFAR-10 [29], ImageNet ILSVRC 2012 dataset [8], and MS COCO object detection benchmark [34].
131
+
132
+ CIFAR-10 dataset is utilized for analyzing the properties of the proposed method, which consists of $60,000 \times 32$ color images in 10 classes, with 50,000 training images and 10,000 test images. A common data augmentation scheme including random crop and mirroring [16, 18] is adopted. ImageNet is a large-scale image dataset which contains over $1.2M$ training images and $50K$ validation images belonging to 1,000 classes. The common data preprocessing strategy including random crop and flip [16] is applied during training. We also conduct object detection experiments on MS COCO dataset [34]. Following common practice [32, 33], we train models on COCO trainval35k split (union of $80K$ training images and a random $35K$ subset of images from validation set) and evaluate on the minival split with $5K$ images.
133
+
134
+ # 4.1. Efficiency of Ghost Module
135
+
136
+ # 4.1.1 Toy Experiments.
137
+
138
+ We have presented a diagram in Figure 1 to point out that there are some similar feature map pairs, which can be efficiently generated using some efficient linear operations. Here we first conduct a toy experiment to observe the reconstruction error between raw feature maps and the generated ghost feature maps. Taking three pairs in Figure 1 (i.e. red, greed, and blue) as examples, features are extracted using
139
+
140
+ the first residual block of ResNet-50 [16]. Taking the feature on the left as input and the other one as output, we utilize a small depthwise convolution filter to learn the mapping, i.e. the linear operation $\Phi$ between them. The size of the convolution filter $d$ is ranged from 1 to 7, MSE (mean squared error) values of each pair with different $d$ are shown in Table 2.
141
+
142
+ Table 2. MSE error v.s. different kernel sizes.
143
+
144
+ <table><tr><td>MSE (10-3)</td><td>d=1</td><td>d=3</td><td>d=5</td><td>d=7</td></tr><tr><td>red pair</td><td>4.0</td><td>3.3</td><td>3.3</td><td>3.2</td></tr><tr><td>green pair</td><td>25.0</td><td>24.3</td><td>24.1</td><td>23.9</td></tr><tr><td>blue pair</td><td>12.1</td><td>11.2</td><td>11.1</td><td>11.0</td></tr></table>
145
+
146
+ It can be found in Table 2 that all the MSE values are extremely small, which demonstrates that there are strong correlations between feature maps in deep neural networks and these redundant feature maps could be generated from several intrinsic feature maps. Besides convolutions used in the above experiments, we can also explore some other low-cost linear operations to construct the Ghost module such as affine transformation and wavelet transformation. However, convolution is an efficient operation already well support by current hardware and it can cover a number of widely used linear operations such as smoothing, blurring, motion, etc. Moreover, although we can also learn the size of each filter w.r.t. the linear operation $\Phi$ , the irregular module will reduce the efficiency of computing units (e.g. CPU and GPU). Thus, we suggest to let $d$ in a Ghost module be a fixed value and utilize depthwise convolution to implement Eq. 3 for building highly efficient deep neural networks in the following experiments.
147
+
148
+ Table 3. The performance of the proposed Ghost module with different $d$ on CIFAR-10.
149
+
150
+ <table><tr><td>d</td><td>Weights (M)</td><td>FLOPs (M)</td><td>Acc. (%)</td></tr><tr><td>VGG-16</td><td>15.0</td><td>313</td><td>93.6</td></tr><tr><td>1</td><td>7.6</td><td>157</td><td>93.5</td></tr><tr><td>3</td><td>7.7</td><td>158</td><td>93.7</td></tr><tr><td>5</td><td>7.7</td><td>160</td><td>93.4</td></tr><tr><td>7</td><td>7.7</td><td>163</td><td>93.1</td></tr></table>
151
+
152
+ Table 4. The performance of the proposed Ghost module with different $s$ on CIFAR-10.
153
+
154
+ <table><tr><td>s</td><td>Weights (M)</td><td>FLOPs (M)</td><td>Acc. (%)</td></tr><tr><td>VGG-16</td><td>15.0</td><td>313</td><td>93.6</td></tr><tr><td>2</td><td>7.7</td><td>158</td><td>93.7</td></tr><tr><td>3</td><td>5.2</td><td>107</td><td>93.4</td></tr><tr><td>4</td><td>4.0</td><td>80</td><td>93.0</td></tr><tr><td>5</td><td>3.3</td><td>65</td><td>92.9</td></tr></table>
155
+
156
+ # 4.1.2 CIFAR-10.
157
+
158
+ We evaluate the proposed Ghost module on two popular network architectures, i.e. VGG-16 [46] and ResNet-56 [16],
159
+
160
+ on CIFAR-10 dataset. Since VGG-16 is originally designed for ImageNet, we use its variant [60] which is widely used in literatures for conducting the following experiments. All the convolutional layers in these two models are replaced by the proposed Ghost module, and the new models are denoted as Ghost-VGG-16 and Ghost-ResNet-56, respectively. Our training strategy closely follows the settings in [16], including momentum, learning rate, etc. We first analyze the effects of the two hyper-parameters $s$ and $d$ in Ghost module, and then compare the Ghost-models with the state-of-the-art methods.
161
+
162
+ Analysis on Hyper-parameters. As described in Eq. 3, the proposed Ghost Module for efficient deep neural networks has two hyper-parameters, i.e. $s$ for generating $m = n / s$ intrinsic feature maps, and kernel size $d \times d$ of linear operations (i.e. the size of depthwise convolution filters) for calculating ghost feature maps. The impact of these two parameters are tested on the VGG-16 architecture.
163
+
164
+ First, we fix $s = 2$ and tune $d$ in $\{1,3,5,7\}$ , and list the results on CIFAR-10 validation set in Table 3. We can see that the proposed Ghost module with $d = 3$ performs better than smaller or larger ones. This is because that kernels of size $1 \times 1$ cannot introduce spatial information on feature maps, while larger kernels such as $d = 5$ or $d = 7$ lead to overfitting and more computations. Therefore, we adopt $d = 3$ in the following experiments for effectiveness and efficiency.
165
+
166
+ After investigating the kernel sizes used in the proposed Ghost module, we keep $d = 3$ and tune the other hyperparameter $s$ in the range of $\{2,3,4,5\}$ . In fact, $s$ is directly related to the computational costs of the resulting network, that is, larger $s$ leads to larger compression and speed-up ratio as analyzed in Eq. 5 and Eq. 4. From the results in Table 4, when we increase $s$ , the FLOPs are reduced significantly and the accuracy decreases gradually, which is as expected. Especially when $s = 2$ which means compress VGG-16 by $2\times$ , our method performs even slightly better than the original model, indicating the superiority of the proposed Ghost module.
167
+
168
+ Table 5. Comparison of state-of-the-art methods for compressing VGG-16 and ResNet-56 on CIFAR-10. - represents no reported results available.
169
+
170
+ <table><tr><td>Model</td><td>Weights</td><td>FLOPs</td><td>Acc. (%)</td></tr><tr><td>VGG-16</td><td>15M</td><td>313M</td><td>93.6</td></tr><tr><td>\( \ell_1 \)-VGG-16 [31, 37]</td><td>5.4M</td><td>206M</td><td>93.4</td></tr><tr><td>SBP-VGG-16 [18]</td><td>-</td><td>136M</td><td>92.5</td></tr><tr><td>Ghost-VGG-16 (s=2)</td><td>7.7M</td><td>158M</td><td>93.7</td></tr><tr><td>ResNet-56</td><td>0.85M</td><td>125M</td><td>93.0</td></tr><tr><td>CP-ResNet-56 [18]</td><td>-</td><td>63M</td><td>92.0</td></tr><tr><td>\( \ell_1 \)-ResNet-56 [31, 37]</td><td>0.73M</td><td>91M</td><td>92.5</td></tr><tr><td>AMC-ResNet-56 [17]</td><td>-</td><td>63M</td><td>91.9</td></tr><tr><td>Ghost-ResNet-56 (s=2)</td><td>0.43M</td><td>63M</td><td>92.7</td></tr></table>
171
+
172
+ Comparison with State-of-the-arts. We compare Ghost-Net with several representative state-of-the-art models on both VGG-16 and ResNet-56 architectures. The compared methods include different types of model compression approaches, $\ell_1$ pruning [31, 37], SBP [18], channel pruning (CP) [18] and AMC [17]. For VGG-16, our model can obtain an accuracy slightly higher than the original one with a $2\times$ acceleration, which indicates that there is considerable redundancy in the VGG model. Our Ghost-VGG-16 ( $s = 2$ ) outperforms the competitors with the highest performance $(93.7\%)$ but with significantly fewer FLOPs. For ResNet-56 which is already much smaller than VGG-16, our model can achieve comparable accuracy with baseline with $2\times$ speed-up. We can also see that other state-of-the-art models with similar or larger computational cost obtain lower accuracy than ours.
173
+
174
+ Visualization of Feature Maps. We also visualize the feature maps of our ghost module as shown in Figure 4. Although the generated feature maps are from the primary feature maps, they exactly have significant difference which means the generated features are flexible enough to satisfy the need for the specific task.
175
+
176
+ ![](images/ff16d2131c58172a4cf4fc109472298d31411951f53fea0f8b763a36a5cd7701.jpg)
177
+ Figure 4. The feature maps in the 2nd layer of Ghost-VGG-16. The left-top image is the input, the feature maps in the left red box are from the primary convolution, and the feature maps in the right green box are after the depthwise transformation.
178
+
179
+ ![](images/1ef305c620e27b9706e3cdb6e837d8ecc2df3921eeb5d1fda4f4585198c7f5a7.jpg)
180
+ Figure 5. The feature maps in the 2nd layer of vanilla VGG-16.
181
+
182
+ # 4.1.3 Large Models on ImageNet
183
+
184
+ We next embed the Ghost module in the standard ResNet-50 [16] and conduct experiments on the large-scale ImageNet dataset. ResNet-50 has about 25.6M parameters and 4.1B FLOPs with a top-5 error of $7.8\%$ . We use our Ghost
185
+
186
+ Table 6. Comparison of state-of-the-art methods for compressing ResNet-50 on ImageNet dataset.
187
+
188
+ <table><tr><td>Model</td><td>Weights (M)</td><td>FLOPs (B)</td><td>Top-1 Acc. (%)</td><td>Top-5 Acc. (%)</td></tr><tr><td>ResNet-50 [16]</td><td>25.6</td><td>4.1</td><td>75.3</td><td>92.2</td></tr><tr><td>Thinet-ResNet-50 [39]</td><td>16.9</td><td>2.6</td><td>72.1</td><td>90.3</td></tr><tr><td>NISP-ResNet-50-B [59]</td><td>14.4</td><td>2.3</td><td>-</td><td>90.8</td></tr><tr><td>Versatile-ResNet-50 [49]</td><td>11.0</td><td>3.0</td><td>74.5</td><td>91.8</td></tr><tr><td>SSS-ResNet-50 [23]</td><td>-</td><td>2.8</td><td>74.2</td><td>91.9</td></tr><tr><td>Ghost-ResNet-50 (s=2)</td><td>13.0</td><td>2.2</td><td>75.0</td><td>92.3</td></tr><tr><td>Shift-ResNet-50 [53]</td><td>6.0</td><td>-</td><td>70.6</td><td>90.1</td></tr><tr><td>Taylor-FO-BN-ResNet-50 [41]</td><td>7.9</td><td>1.3</td><td>71.7</td><td>-</td></tr><tr><td>Slimmable-ResNet-50 0.5× [58]</td><td>6.9</td><td>1.1</td><td>72.1</td><td>-</td></tr><tr><td>MetaPruning-ResNet-50 [36]</td><td>-</td><td>1.0</td><td>73.4</td><td>-</td></tr><tr><td>Ghost-ResNet-50 (s=4)</td><td>6.5</td><td>1.2</td><td>74.1</td><td>91.9</td></tr></table>
189
+
190
+ module to replace all the convolutional layers in ResNet-50 to obtain compact models and compare the results with several state-of-the-art methods, as detailed in Table 6. The training settings such as the optimizer, the learning rate, and the batch size, are totally the same as those in [16] for fair comparisons.
191
+
192
+ From the results in Table 6, we can see that our Ghost-ResNet-50 ( $s = 2$ ) obtains about $2 \times$ acceleration and compression ratio, while maintaining the accuracy as that of the original ResNet-50. Compared with the recent state-of-the-art methods including Thinet [39], NISP [59], Versatile filters [49] and Sparse structure selection (SSS) [23], our method can obtain significantly better performance under the $2 \times$ acceleration setting. When we further increase $s$ to 4, Ghost-based model has only a $0.3\%$ accuracy drop with an about $4 \times$ computation speed-up ratio. In contrast, compared methods [53, 58] with similar weights or FLOPs have much lower performance than ours.
193
+
194
+ # 4.2. GhostNet on Visual Benchmarks
195
+
196
+ After demonstrating the superiority of the proposed Ghost module for efficiently generating feature maps, we then evaluate the well designed GhostNet architecture as shown in Table 7 using Ghost bottlenecks on image classification and object detection tasks, respectively.
197
+
198
+ # 4.2.1 ImageNet Classification
199
+
200
+ To verify the superiority of the proposed GhostNet, we conduct experiments on ImageNet classification task. We follow most of the training settings used in [61], except that the initial learning rate is set to 0.4 when batch size is 1,024 on 8 GPUs. All the results are reported with single crop top-1 performance on ImageNet validation set. For GhostNet, we set kernel size $k = 1$ in the primary convolution and $s = 2$ and $d = 3$ in all the Ghost modules for simplicity.
201
+
202
+ Several modern small network architectures are selected as competitors, including MobileNet series [21, 44, 20], ShuffleNet series [61, 40], ProxylessNAS [2], FBNet [52], MnasNet [47], etc. The results are summarized in Table 7.
203
+
204
+ The models are grouped into three levels of computational complexity typically for mobile applications, i.e. $\sim 50$ , $\sim 150$ , and $200 - 300$ MFLOPs. From the results, we can see that generally larger FLOPs lead to higher accuracy in these small networks which shows the effectiveness of them. Our GhostNet outperforms other competitors consistently at various computational complexity levels, since GhostNet is more efficient in utilizing computation resources for generating feature maps.
205
+
206
+ ![](images/c809065613d53374a52d1c549c6a6c21ec2d7b263d6ffd89a128de18e4bd8d47.jpg)
207
+ Figure 6. Top-1 accuracy v.s. FLOPs on ImageNet dataset.
208
+
209
+ ![](images/43e9d7d2165fa0722f53108fdc068d615d6a0ee195306cf6919c3a126ef23862.jpg)
210
+ Figure 7. Top-1 accuracy v.s. latency on ImageNet dataset.
211
+
212
+ Table 7. Comparison of state-of-the-art small networks over classification accuracy, the number of weights and FLOPs on ImageNet dataset.
213
+
214
+ <table><tr><td>Model</td><td>Weights (M)</td><td>FLOPs (M)</td><td>Top-1 Acc. (%)</td><td>Top-5 Acc. (%)</td></tr><tr><td>ShuffleNetV1 0.5× (g=8) [61]</td><td>1.0</td><td>40</td><td>58.8</td><td>81.0</td></tr><tr><td>MobileNetV2 0.35× [44]</td><td>1.7</td><td>59</td><td>60.3</td><td>82.9</td></tr><tr><td>ShuffleNetV2 0.5× [40]</td><td>1.4</td><td>41</td><td>61.1</td><td>82.6</td></tr><tr><td>MobileNetV3 Small 0.75× [20]</td><td>2.4</td><td>44</td><td>65.4</td><td>-</td></tr><tr><td>GhostNet 0.5×</td><td>2.6</td><td>42</td><td>66.2</td><td>86.6</td></tr><tr><td>MobileNetV1 0.5× [21]</td><td>1.3</td><td>150</td><td>63.3</td><td>84.9</td></tr><tr><td>MobileNetV2 0.6× [44, 40]</td><td>2.2</td><td>141</td><td>66.7</td><td>-</td></tr><tr><td>ShuffleNetV1 1.0× (g=3) [61]</td><td>1.9</td><td>138</td><td>67.8</td><td>87.7</td></tr><tr><td>ShuffleNetV2 1.0× [40]</td><td>2.3</td><td>146</td><td>69.4</td><td>88.9</td></tr><tr><td>MobileNetV3 Large 0.75× [20]</td><td>4.0</td><td>155</td><td>73.3</td><td>-</td></tr><tr><td>GhostNet 1.0×</td><td>5.2</td><td>141</td><td>73.9</td><td>91.4</td></tr><tr><td>MobileNetV2 1.0× [44]</td><td>3.5</td><td>300</td><td>71.8</td><td>91.0</td></tr><tr><td>ShuffleNetV2 1.5× [40]</td><td>3.5</td><td>299</td><td>72.6</td><td>90.6</td></tr><tr><td>FE-Net 1.0× [6]</td><td>3.7</td><td>301</td><td>72.9</td><td>-</td></tr><tr><td>FBNet-B [52]</td><td>4.5</td><td>295</td><td>74.1</td><td>-</td></tr><tr><td>ProxylessNAS [2]</td><td>4.1</td><td>320</td><td>74.6</td><td>92.2</td></tr><tr><td>MnasNet-A1 [47]</td><td>3.9</td><td>312</td><td>75.2</td><td>92.5</td></tr><tr><td>MobileNetV3 Large 1.0× [20]</td><td>5.4</td><td>219</td><td>75.2</td><td>-</td></tr><tr><td>GhostNet 1.3×</td><td>7.3</td><td>226</td><td>75.7</td><td>92.7</td></tr></table>
215
+
216
+ Actual Inference Speed. Since the proposed GhostNet is designed for mobile applications, we further measure the actual inference speed of GhostNet on an ARM-based mobile phone using the TFLite tool [1]. Following the common settings in [21, 44], we use single-threaded mode with batch size 1. From the results in Figure 7, we can see that GhostNet obtain about $0.5\%$ higher top-1 accuracy than MobileNetV3 with the same latency, and GhostNet need less runtime to achieve similar performance. For example, GhostNet with $75.0\%$ accuracy only has $40~\mathrm{ms}$ latency, while MobileNetV3 with similar accuracy requires about $45~\mathrm{ms}$ to process one image. Overall, our models generally outperform the famous state-of-art models, i.e. MobileNet series [21, 44, 20], ProxylessNAS [2], FBNet [52], and MnasNet [47].
217
+
218
+ # 4.2.2 Object Detection
219
+
220
+ In order to further evaluate the generalization ability of GhostNet, we conduct object detection experiments on MS COCO dataset. We use the trainval35k split as training data and report the results in mean Average Precision (mAP) on minival split, following [32, 33]. Both the two-stage Faster R-CNN with Feature Pyramid Networks (FPN) [43, 32] and the one-stage RetinaNet [33] are used as our framework and GhostNet acts as a drop-in replacement for the backbone feature extractor. We train all the models using SGD for 12 epochs from ImageNet pretrained weights with the hyperparameters suggested in [32, 33]. The input images are resized to a short side of 800 and a long side not exceeding 1333. Table 8 shows the detection results, where the FLOPs are calculated using $224 \times 224$ images as common practice. With significantly lower computational costs, GhostNet achieves similar mAP with MobileNetV2 and MobileNetV3,
221
+
222
+ both on one-stage RetinaNet and two-stage Faster R-CNN frameworks.
223
+
224
+ Table 8. Results on MS COCO dataset.
225
+
226
+ <table><tr><td>Backbone</td><td>Detection Framework</td><td>Backbone FLOPs</td><td>mAP</td></tr><tr><td>MobileNetV2 1.0× [44]</td><td rowspan="3">RetinaNet</td><td>300M</td><td>26.7%</td></tr><tr><td>MobileNetV3 1.0× [20]</td><td>219M</td><td>26.4%</td></tr><tr><td>GhostNet 1.1×</td><td>164M</td><td>26.6%</td></tr><tr><td>MobileNetV2 1.0× [44]</td><td rowspan="3">Faster R-CNN</td><td>300M</td><td>27.5%</td></tr><tr><td>MobileNetV3 1.0× [20]</td><td>219M</td><td>26.9%</td></tr><tr><td>GhostNet 1.1×</td><td>164M</td><td>26.9%</td></tr></table>
227
+
228
+ # 5. Conclusion
229
+
230
+ To reduce the computational costs of recent deep neural networks, this paper presents a novel Ghost module for building efficient neural architectures. The basic Ghost module splits the original convolutional layer into two parts and utilizes fewer filters to generate several intrinsic feature maps. Then, a certain number of cheap transformation operations will be further applied for generating ghost feature maps efficiently. The experiments conducted on benchmark models and datasets illustrate that the proposed method is a plug-and-play module for converting original models to compact ones while remaining the comparable performance. In addition, the GhostNet built using the proposed new module outperforms state-of-the-art portable neural architectures, in both terms of efficiency and accuracy.
231
+
232
+ # Acknowledgment
233
+
234
+ We thank anonymous reviewers for their helpful comments. Chang Xu was supported by the Australian Research Council under Project DE180101438.
235
+
236
+ # References
237
+
238
+ [1] Martin Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Schlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaogiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. Software available from tensorflow.org.
239
+ [2] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR, 2019.
240
+ [3] Hanting Chen, Yunhe Wang, Chang Xu, Zhaohui Yang, Chuanjian Liu, Boxin Shi, Chunjing Xu, Chao Xu, and Qi Tian. Data-free learning of student networks. In ICCV, 2019.
241
+ [4] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Semantic image segmentation with deep convolutional nets and fully connected crfs. In ICLR, 2016.
242
+ [5] Wuyang Chen, Xinyu Gong, Xianming Liu, Qian Zhang, Yuan Li, and Zhangyang Wang. Fasterseg: Searching for faster real-time semantic segmentation. In ICLR, 2020.
243
+ [6] Weijie Chen, Di Xie, Yuan Zhang, and Shiliang Pu. All you need is a few shifts: Designing efficient convolutional neural networks for image classification. In CVPR, 2019.
244
+ [7] François Chollet. Xception: Deep learning with depthwise separable convolutions. In CVPR, pages 1251-1258, 2017.
245
+ [8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248-255. IEEE, 2009.
246
+ [9] Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In NeurIPS, pages 1269-1277, 2014.
247
+ [10] Xinyu Gong, Shiyu Chang, Yifan Jiang, and Zhangyang Wang. Autogan: Neural architecture search for generative adversarial networks. In ICCV, 2019.
248
+ [11] Shupeng Gui, Haotao N Wang, Haichuan Yang, Chen Yu, Zhangyang Wang, and Ji Liu. Model compression with adversarial robustness: A unified optimization framework. In NeurIPS, 2019.
249
+ [12] Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. In NeurIPS, 2018.
250
+ [13] Kai Han, Jianyuan Guo, Chao Zhang, and Mingjian Zhu. Attribute-aware attention model for fine-grained representation learning. In ACM MM, 2018.
251
+ [14] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016.
252
+
253
+ [15] Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In NeurIPS, pages 1135-1143, 2015.
254
+ [16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
255
+ [17] Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. Amc: Automl for model compression and acceleration on mobile devices. In ECCV, 2018.
256
+ [18] Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In ICCV, 2017.
257
+ [19] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
258
+ [20] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. In ICCV, 2019.
259
+ [21] 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.
260
+ [22] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018.
261
+ [23] Zehao Huang and Naiyan Wang. Data-driven sparse structure selection for deep neural networks. In ECCV, pages 304-320, 2018.
262
+ [24] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In NeurIPS, pages 4107-4115, 2016.
263
+ [25] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
264
+ [26] 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 CVPR, pages 2704-2713, 2018.
265
+ [27] Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. In BMVC, 2014.
266
+ [28] Yunho Jeon and Junmo Kim. Constructing fast network through deconstruction of convolution. In NeurIPS, 2018.
267
+ [29] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, CiteSeer, 2009.
268
+ [30] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In NeurIPS, pages 1097-1105, 2012.
269
+ [31] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. In ICLR, 2017.
270
+ [32] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017.
271
+
272
+ [33] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In ICCV, 2017.
273
+ [34] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dálár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV. Springer, 2014.
274
+ [35] Chuanjian Liu, Yunhe Wang, Kai Han, Chunjing Xu, and Chang Xu. Learning instance-wise sparsity for accelerating deep models. In IJCAI, 2019.
275
+ [36] Zechun Liu, Haoyuan Mu, Xiangyu Zhang, Zichao Guo, Xin Yang, Tim Kwang-Ting Cheng, and Jian Sun. Metapruning: Meta learning for automatic neural network channel pruning. In ICCV, 2019.
276
+ [37] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In ICLR, 2019.
277
+ [38] Zechun Liu, Baoyuan Wu, Wenhan Luo, Xin Yang, Wei Liu, and Kwang-Ting Cheng. Bi-real net: Enhancing the performance of 1-bit cnns with improved representational capability and advanced training algorithm. In ECCV, 2018.
278
+ [39] Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In ICCV, pages 5058-5066, 2017.
279
+ [40] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In ECCV, 2018.
280
+ [41] Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance estimation for neural network pruning. In CVPR, 2019.
281
+ [42] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In ECCV, pages 525-542. Springer, 2016.
282
+ [43] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NeurIPS, 2015.
283
+ [44] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, pages 4510-4520, 2018.
284
+ [45] Mingzhu Shen, Kai Han, Chunjing Xu, and Yunhe Wang. Searching for accurate binary neural architectures. In ICCV Workshops, 2019.
285
+ [46] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
286
+ [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 CVPR, pages 2820-2828, 2019.
287
+ [48] Yue Wang, Ziyu Jiang, Xiaohan Chen, Pengfei Xu, Yang Zhao, Yingyan Lin, and Zhangyang Wang. E2-train: Training state-of-the-art cnns with over $80\%$ energy savings. In NeurIPS, 2019.
288
+ [49] Yunhe Wang, Chang Xu, Chunjing Xu, Chao Xu, and Dacheng Tao. Learning versatile filters for efficient convolutional neural networks. In NeurIPS, 2018.
289
+
290
+ [50] Yunhe Wang, Chang Xu, Shan You, Dacheng Tao, and Chao Xu. Cnnpack: packing convolutional neural networks in the frequency domain. In NeurIPS, pages 253-261, 2016.
291
+ [51] Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NeurIPS, pages 2074-2082, 2016.
292
+ [52] Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In CVPR, pages 10734-10742, 2019.
293
+ [53] Bichen Wu, Alvin Wan, Xiangyu Yue, Peter Jin, Sicheng Zhao, Noah Golmant, Amir Gholaminejad, Joseph Gonzalez, and Kurt Keutzer. Shift: A zero flop, zero parameter alternative to spatial convolutions. In CVPR, 2018.
294
+ [54] Yixing Xu, Yunhe Wang, Hanting Chen, Kai Han, XU Chunjing, Dacheng Tao, and Chang Xu. Positive-unlabeled compression on the cloud. In NeurIPS, 2019.
295
+ [55] Zhaohui Yang, Yunhe Wang, Xinghao Chen, Boxin Shi, Chao Xu, Chunjing Xu, Qi Tian, and Chang Xu. Cars: Continuous evolution for efficient neural architecture search. arXiv preprint arXiv:1909.04977, 2019.
296
+ [56] Zhaohui Yang, Yunhe Wang, Chuanjian Liu, Hanting Chen, Chunjing Xu, Boxin Shi, Chao Xu, and Chang Xu. Legonet: Efficient convolutional neural networks with lego filters. In ICML, 2019.
297
+ [57] Shan You, Chang Xu, Chao Xu, and Dacheng Tao. Learning from multiple teacher networks. In SIGKDD, 2017.
298
+ [58] Jiahui Yu, Linjie Yang, Ning Xu, Jianchao Yang, and Thomas Huang. Slimmable neural networks. In ICLR, 2019.
299
+ [59] Ruichi Yu, Ang Li, Chun-Fu Chen, Jui-Hsin Lai, Vlad I Morariu, Xintong Han, Mingfei Gao, Ching-Yung Lin, and Larry S Davis. Nisp: Pruning networks using neuron importance score propagation. In CVPR, 2018.
300
+ [60] Sergey Zagoruyko. 92.45 on cifar-10 in torch, 2015. URL http://torch.ch/blog/2015/07/30/cifar.html.
301
+ [61] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. CVPR, 2018.
302
+ [62] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In CVPR, pages 8697-8710, 2018.
ghostnetmorefeaturesfromcheapoperations/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80d54c813d3b93752a94d52c8003076aa29125d9f1d2bdb9a241f9197c5516e3
3
+ size 586334
ghostnetmorefeaturesfromcheapoperations/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:340ebd173091f1920fd97cc1f2f25b182f3b302491e7b1c4715c9ee2cdc77ac0
3
+ size 424505
globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/6b2d38db-299d-46c9-9bdb-c75d30d19a91_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f22bec6640c788574bf7ef8c9c663f23b1f28a97e98f38478acf84c50fa543f
3
+ size 77769
globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/6b2d38db-299d-46c9-9bdb-c75d30d19a91_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b203ab8688b792459bb1a08faa583b112ff6b99b7c8c7e9dc7b319f3dce59dd
3
+ size 96002
globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/6b2d38db-299d-46c9-9bdb-c75d30d19a91_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34c17393a23fb9cfc0e5372a9a18e4c6655ebc8ca0da829762a7934046891bdd
3
+ size 1129036
globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/full.md ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Global-Local Bidirectional Reasoning for Unsupervised Representation Learning of 3D Point Clouds
2
+
3
+ Yongming Rao $^{1,2,3}$ , Jiwen Lu $^{1,2,3*}$ , Jie Zhou $^{1,2,3,4}$
4
+
5
+ <sup>1</sup>Department of Automation, Tsinghua University, China
6
+
7
+ $^{2}$ State Key Lab of Intelligent Technologies and Systems, China
8
+
9
+ <sup>3</sup>Beijing National Research Center for Information Science and Technology, China
10
+
11
+ $^{4}$ Tsinghua Shenzhen International Graduate School, Tsinghua University, China
12
+
13
+ raoyongming95@gmail.com; {lujiwen, jzhou}@tsinghua.edu.cn
14
+
15
+ # Abstract
16
+
17
+ Local and global patterns of an object are closely related. Although each part of an object is incomplete, the underlying attributes about the object are shared among all parts, which makes reasoning the whole object from a single part possible. We hypothesize that a powerful representation of a 3D object should model the attributes that are shared between parts and the whole object, and distinguishable from other objects. Based on this hypothesis, we propose to learn point cloud representation by bidirectional reasoning between the local structures at different abstraction hierarchies and the global shape without human supervision. Experimental results on various benchmark datasets demonstrate the unsupervisedly learned representation is even better than supervised representation in discriminative power, generalization ability, and robustness. We show that unsupervisedly trained point cloud models can outperform their supervised counterparts on downstream classification tasks. Most notably, by simply increasing the channel width of an SSG PointNet++<sup>1</sup>, our unsupervised model surpasses the state-of-the-art supervised methods on both synthetic and real-world 3D object classification datasets. We expect our observations to offer a new perspective on learning better representation from data structures instead of human annotations for point cloud understanding.<sup>2</sup>
18
+
19
+ # 1. Introduction
20
+
21
+ Facilitating machines to understand the 3D world is crucial to many important real-world applications, such as autonomous driving, augmented reality and robotics. One core problem on 3D geometric data such as point clouds is learn
22
+
23
+ ![](images/41d0359d6319f1cf4fc3428a53fb4e60a86b15e4d4fbf51e100d6405f799a7ac.jpg)
24
+ Figure 1: Illustration of our main idea. We propose to learn representation unsupervisedly from data structures by training the networks to solve two problems: reasoning the whole object from a single part and reasoning detailed structures from the global representation.
25
+
26
+ ing powerful representations that are discriminative, generic and robust. To tackle this problem, current state-of-the-arts on point cloud analysis [2,26,28,33,38,43,49,51,54] are established with the help of extensive human-annotated supervised information. However, manually labeled data require the high cost of human labor and may limit the generalization ability of the learned models. Therefore, unsupervised learning is an attractive direction to obtain generic and robust representations for 3D object understanding.
27
+
28
+ Learning useful representations from unlabeled data is a fundamental and challenging problem for point cloud analysis. While several efforts have been devoted to learn representation of a point cloud without human supervision [1,8,14, 18,26,31,47,55,56], these methods are mainly based on self-supervision signals provided by generation or reconstruction tasks, including self-reconstruction [1,8,14,26,47,55,56], local-to-global reconstruction [18,31] and distribution estimation [1,26]. These methods have proven to be effective
29
+
30
+ in capturing structural and low-level information of point clouds, but usually fail to learn high-level semantic information from point clouds. Therefore, unsupervised models still perform far behind the state-of-the-art supervised model. The goal of this work is to explore an unsupervised learning algorithm that can learn both structural information and semantic knowledge to promote the quality of unsupervisedly learned representation.
31
+
32
+ Different from images where local patches are noisy and usually independent from the whole image (for example, given a patch of a dog, we cannot identify whether this image is about animals or the people nearby), the underlying semantic and structural information is shared in all parts of a 3D object. This distinct property of 3D objects makes reasoning the whole object from a single part possible. Based on this observation, we hypothesize that a powerful representation of a 3D object should model the underlying attributes that are shared between parts and the whole object and distinguishable from other objects. As shown in Figure 1, given a point cloud of a tail of an airplane, a good representation of the tail should reflect the type of the corresponding airplane. Simultaneously, the representation of the whole airplane should contain all the necessary details to infer the local structures of this airplane.
33
+
34
+ In this paper, we propose a new scheme for unsupervised point cloud representation learning by bidirectional reasoning between local representations at different abstraction hierarchies in a network and global representation of a 3D object. Our method is simple yet effective, which can be applied to a wide range of deep learning methods for point cloud understanding. While most existing unsupervised learning methods focus on exploiting structure information by learning various autoencoders, our method aims to capture the underlying semantic knowledge shared between local structures and global shape in 3D point clouds. Specifically, the proposed Global-Local Reasoning (GLR) consists of two sub-tasks: 1) local-to-global reasoning: we formulate the problem of capturing shared attributes between local parts and global shape as a self-supervised metric learning problem, where local features are encouraged to be closer to the global feature of the same object than features of other objects, such that the distinct semantic information of each object can be extracted by local representations; 2) global-to-local reasoning: we further use the self-supervised tasks including self-reconstruction and normal estimation to learn global features that contain necessary structural information of 3D objects.
35
+
36
+ Our experimental results on several benchmark datasets demonstrate that the unsupervisedly learned point cloud representation is even more discriminative, generalizable and robust than supervised representation in downstream object classification tasks. Our unsupervisedly trained models can consistently outperform their supervised counterparts. With
37
+
38
+ our unsupervised learning method, we show a simple and light-weight SSG PointNet++ [38] model can achieve very competitive results with supervised methods (92.2% classification accuracy on ModelNet40 [52]). By simply increasing the channel width, we further obtain 93.0% and 87.2% single view accuracy on ModelNet40 and ScanObjectNN [46] benchmarks respectively, surpassing the state-of-the-art unsupervised and supervised methods, while the supervised version of this model suffers from overfitting.
39
+
40
+ # 2. Related Work
41
+
42
+ Deep Learning on 3D Point Clouds: Recent years have witnessed rapid development on 3D point cloud analysis thanks to the deep learning techniques that are designed to consume 3D point clouds directly [28, 33, 37, 38, 49]. PointNet [26] pioneers this line of works and designed a deep network that can handle unordered and unstructured 3D points by independently learning on each point and fusing point features with max pooling. Though efficient, PointNet fails to capture local structures, which have proven to be crucial to the success of CNNs. PointNet++ [38] is proposed to mitigate this issue by developing a hierarchical grouping architecture to extract local features progressively at different abstraction levels. The subsequent works such as PointCNN [28], PointConv [51] and Relation-Shape CNN [33] also focus on local structures of point cloud and further improve the quality of captured features. Since only the relation between local and global features is needed, our method is suited for all these PointNet++ variants. While recent works push state-of-the-art of point cloud deep learning by promoting the capacity of networks, this work offers a new route to learn powerful representation in an unsupervised fashion, without any human annotations.
43
+
44
+ Unsupervised Representation Learning: Unsupervised learning has been an important group of methods in computer vision since the earliest day [13], which aims to learn transformations of the data that make the subsequent downstream problem solving easier [5]. Classical deep methods for unsupervised learning such as autoencoders [21], generative adversarial networks [16] and autoregressive models [35] learn representation by faithfully reconstructing the input data, which focus on low-level variations in data and is not very useful for downstream tasks like classification. Recent works on self-supervised learning present a powerful family of models that can learn discriminative representations with rich semantic knowledge. This group of methods design various problem generators such that models need to learn useful information from data in order to solve these generated problems [3, 10, 11, 19, 44]. In this work, we also follow this line and propose to learn point cloud representation by solving the global-local bidirectional reasoning problem.
45
+
46
+ There are several prior attempts on learning representa
47
+
48
+ ![](images/ce9247d5ee013c0ec9063fb28ff09f8e16a8d030c13dfbf021b2dc5fd33388cd.jpg)
49
+ Figure 2: The overall framework of our unsupervised feature learning approach. The representation is learned by connecting local structures and global shape. We map the local representations at different levels and global representations to shared feature space and use a self-supervised metric learning objective to mine semantic knowledge from data. By further incorporating self-reconstruction and normal estimation tasks, a powerful representation that contains rich semantic and structural information can be learned.
50
+
51
+ tion of a point cloud without human supervision [1,8, 14, 18, 26, 31, 47, 55, 56]. These methods discover useful information in the 3D point cloud by performing data reconstruction, which has proven to be effective in learning structural information. However, because of lacking effective semantic supervision, previous methods limit the networks' ability in downstream tasks. Our method resolves this issue by incorporating semantic supervision with structural supervision. With the exploration of high-level semantic knowledge, our method is able to learn discriminative representation like supervised method while maintaining the robustness and generalization of unsupervised representation.
52
+
53
+ # 3. Approach
54
+
55
+ The core of 3D point cloud understanding is to learning discriminative, generic and robust representations that can capture the underlying shape. To achieve this goal in an unsupervised manner, we propose to point cloud representation by solving a bidirectional reasoning problem between the local structures and the global shape. The overall framework of our method is presented in Figure 2.
56
+
57
+ # 3.1. Hierarchical Point Cloud Feature Learning
58
+
59
+ We begin by reviewing the hierarchical point cloud feature learning framework firstly proposed in PointNet++ [38], on which our method is built.
60
+
61
+ Consider a set of 3D points $P \subset \mathbb{R}^3$ with $N$ elements, in which each point $p_i$ is represented by a 3D coordinate. To learn features based on these 3D coordinates, PointNet [37] proposes to use a symmetric function $f$ that is invariant to point permutations to transfer point set into feature space:
62
+
63
+ $$
64
+ f (P) = \mathcal {A} (h (p _ {1}), h (p _ {2}), \dots , h (p _ {N})), \tag {1}
65
+ $$
66
+
67
+ where $h$ is a multi-layer perceptron network that processes each point independently and shares parameters for all points
68
+
69
+ and $\mathcal{A}$ is a symmetric aggregation function like max pooling to summarize features from each point. Since each point is processed independently by $h$ , the structural information among points is captured only by the aggregation function $\mathcal{A}$ . Therefore, PointNet lacks the ability to capture local context. To address this issue, PointNet++ and its variants [28, 33, 51] use a hierarchical structure to learn point cloud feature progressively at different abstraction levels. Specifically, at the $\ell$ -th level, point set is abstracted by using iterative furthest point sampling [38] to produce a new set $P^{\ell} \subset P^{\ell-1}$ with fewer points and we can extract the local geometrical feature $\mathbf{f}_i^\ell$ by applying a small PointNet on the local point subset around the centroid for each point $p_i^\ell \in P^\ell$ . The global representation of the point cloud $\mathbf{g}$ is then obtained by applying another small PointNet model on the points and features at the highest abstraction level.
70
+
71
+ Almost all previous works [2,26,28,33,38,43,49,51,54] on supervised point cloud learning employ an end-to-end training paradigm, where the representation is learned directly from the annotated labels. Although achieved promising performance, these methods neglect the intrinsic semantic and structure information contained in the point clouds themselves. In this work, we focus on exploring this property of point cloud and provide a very competitive alternative for point cloud representation learning.
72
+
73
+ To discover the structure and semantic information from data without human annotations, we propose two problems for the networks to solve: local-to-global reasoning and global-to-local reasoning, which aim to unsupervisedly learn semantic and structural knowledge respectively.
74
+
75
+ # 3.2. Local-to-Global Reasoning
76
+
77
+ Humans are able to recognize many objects even when only a small part of the object is presented. This fact inspires us to exploit the relation between local parts and global shape
78
+
79
+ as a free and plentiful supervisory signal for training a rich representation for point cloud understanding. Therefore, the goal of local-to-global reasoning is to mine the shared semantic knowledge among different abstraction hierarchies of point clouds. Since global representation usually can better capture the semantic information of 3D objects than local representations, local-to-goal reasoning operates by predicting global representation from local ones. To evaluate the predictions, we formulate the prediction as a self-supervised metric learning problem and use a multi-class N-pair loss [40] to supervise the prediction task. Inspired the idea of instance discrimination [53], to learn the distinct semantic information for each object, we treat the global representation of the current object as the positive sample and use the global representation of other objects as the negative samples. In the following, we describe the details of the local-to-global reasoning.
80
+
81
+ Prediction Networks: Since the local features $\{\mathbf{f}_i^\ell, \forall i, \ell\}$ and global feature $\mathbf{g}$ have different numbers of channels, we cannot directly measure the similarity of them. Thus, we first use prediction networks $\{\phi^\ell, \forall \ell\}$ and $\varphi$ to embed them into a shared feature space, respectively. The prediction networks can be implemented as multi-layer perceptron (MLP) networks and the prediction networks are shared at each abstraction level.
82
+
83
+ Self-Supervised Metric Learning: A straightforward method to optimize the predictions is to minimize the absolute overall differences between $\phi^{\ell}(\mathbf{f}_i^\ell)$ and $\varphi (\mathbf{g})$ , i.e. minimize $\sum_{i,\ell}||\phi^{\ell}(\mathbf{f}_{i}^{\ell}) - \varphi (\mathbf{g})||$ . However, this objective may lead to degenerate representations that map all inputs to a constant value. Therefore, we choose to supervise the relative quality of the predictions with an unsupervised metric learning task. Specifically, for each embedded local representation $\mathbf{f}_i^\ell$ , we enforce its embedding to be closer to the embedded global representation of the same object than any other object. The local-to-global reasoning objective can be written as:
84
+
85
+ $$
86
+ \mathcal {L} _ {\mathrm {G 2 L}} ^ {i, \ell} = \log (1 + \sum_ {\mathbf {g} _ {k} \neq \mathbf {g}} \exp \left(s \phi^ {\ell} \left(\mathbf {f} _ {i} ^ {\ell}\right) ^ {\top} \varphi \left(\mathbf {g} _ {k}\right) - s \phi^ {\ell} \left(\mathbf {f} _ {i} ^ {\ell}\right) ^ {\top} \varphi (\mathbf {g})\right) \tag {2}
87
+ $$
88
+
89
+ and
90
+
91
+ $$
92
+ \begin{array}{l} \mathcal {L} _ {\mathrm {G} 2 \mathrm {L}} = \frac {1}{M} \sum_ {i, \ell} \mathcal {L} _ {\mathrm {G} 2 \mathrm {L}} ^ {i, \ell} (3) \\ = - \frac {1}{M} \sum_ {i, \ell} \log \frac {\exp \left(s \phi^ {\ell} \left(\mathbf {f} _ {i} ^ {\ell}\right) ^ {\top} \varphi (\mathbf {g})\right)}{\sum_ {k} \exp \left(s \phi^ {\ell} \left(\mathbf {f} _ {i} ^ {\ell}\right) ^ {\top} \varphi (\mathbf {g} _ {k})\right)}, (3) \\ \end{array}
93
+ $$
94
+
95
+ where $\{\mathbf{g}_k, k = 1,2,\dots,m\}$ are the global representations of different point sets in the mini-batch with batch size $m$ and $M$ is the number of local features. Inspired by the studies on metric learning for face recognition [9,30,48] that perform metric learning on features on a hypersphere, we normalize
96
+
97
+ the outputs of prediction networks before computing similarities and use a constant value $s = 64$ [9] to re-scale the features. Empirically, our experiments show that forcing features to be distributed on a hypersphere with a radius of $s$ will significantly stabilize the training process and improve the discriminative ability of the learned features.
98
+
99
+ Discussions: The proposed local-to-global reasoning is connected to mutual information maximization methods [3, 19, 22, 44] for unsupervised image representation learning. The multi-class N-pair loss can be viewed as a variant of InfoNCE [36]. Therefore, minimizing the $\mathcal{L}_{\mathrm{G2L}}$ maximizes the lower bound of the mutual information between local representations and global representation. From this perspective, our method captures the underlying semantic knowledge of a 3D object by maximizing the mutual information of features at different hierarchies. Unlike previous works that performs adversarial learning between the mutual information estimator and the feature encoder [22] or maximizes the mutual information of seen patches and unseen patches [19], different views of images [3] or different modalities of images [44], our work explores the distinct property of point clouds by connecting local and global structures of a 3D object. Furthermore, our local-to-global loss offers a metric learning view of InfoNCE, which is different from previous works that are based on Noise-Contrastive Estimation [34]. Benefiting our modifications inspired by metric learning and face recognition methods, we observe that our loss is more effective and stable than previous methods on point cloud understanding tasks in our experiments.
100
+
101
+ # 3.3. Global-to-Local Reasoning
102
+
103
+ Since discovering knowledge that is helpful for downstream tasks from unlabeled data is usually quite intractable, local-to-global reasoning may not necessarily lead to useful representations. This fact is also pointed out by studies on mutual information maximization methods [44, 45], where evidence shows that larger mutual information may not guarantee a better performance for downstream tasks [45]. Intuitively, since the local-to-global reasoning only supervises the local representation to be close to the global one, the quality of global representation is critical. This is, if the global representation is well initiated, decent supervision to local representation will be offered, thus creating a virtuous circle for the learning of local and global features. On the contrary, the learning process may obtain unpredictable results for the bad initial state of global representation. To avoid this issue, we propose an auxiliary global-to-local reasoning task to supervise the networks for learning useful representation corporately. Specifically, we employ two low-level generation tasks, including self-reconstruction and normal estimation as two self-supervision signals, such that global representation needs to capture the basic structural information of point clouds.
104
+
105
+ Self-Reconstruction: Self-reconstruction, or point autoencoding, is a widely used technique for unsupervised point cloud representation learning [1,8,14,26,47,55,56]. To perform self-reconstruction, we adopt the folding-based [55] decoder $D$ to deform the canonical 2D grid onto 3D coordinates of a point cloud conditioned on the global representation $\mathbf{g}$ . The reconstruction error is defined as Chamfer Distance [12]:
106
+
107
+ $$
108
+ \mathcal {L} _ {\text {r e c o n}} = \sum_ {p \in P} \min _ {x \in D (\mathbf {g})} \| x - p \| _ {2} + \sum_ {x \in D (\mathbf {g})} \min _ {p \in P} \| x - p \| _ {2}. \tag {4}
109
+ $$
110
+
111
+ Normal Estimation: Normal estimation is a more challenging task that requires a higher level understanding of the underlying surface information of a 3D shape. Different from previous works [33] that pursue the estimation precision, we use this task as a supervisory signal to improve global representation. Thus, we simply concatenate the 3D coordinates with the global representation and employ a shared light-weight MLP $\sigma$ to produce the estimated normals. The cosine loss is used to measure the estimation error:
112
+
113
+ $$
114
+ \mathcal {L} _ {\text {n o r m a l}} = 1 - \frac {1}{N} \sum \cos (\sigma ([ p _ {i}, \varphi (\mathbf {g}) ]), p _ {i} ^ {\text {n o r m a l}}). \tag {5}
115
+ $$
116
+
117
+ Combining the local-to-global reasoning and the global-to-local reasoning, we arrive at the global-local bidirectional reasoning objective:
118
+
119
+ $$
120
+ \mathcal {L} _ {\mathrm {G L R}} = \mathcal {L} _ {\mathrm {L 2 G}} + \mathcal {L} _ {\mathrm {G 2 L}} = \mathcal {L} _ {\mathrm {L 2 G}} + \mathcal {L} _ {\text {r e c o n}} + \mathcal {L} _ {\text {n o r m a l}}. \tag {6}
121
+ $$
122
+
123
+ # 3.4. Point Cloud Analysis with GLR
124
+
125
+ Unsupervised Learning with GLR: Point cloud representation can be unsupervisedly learned by enforcing networks to solve the proposed global-local reasoning (GLR) problems, where the representation can be used in various downstream point cloud analysis applications like object classification. The quality of unsupervisedly learned representation is usually evaluated by linear separability of classification task, where a supervised linear SVM [6] model or single-layer neural network is trained on unsupervised representations to measure the test accuracy. For PointNet++ [38] model and its variants, we use the aggregated representation for classification task, which is obtained by summarizing embedded global and local representations:
126
+
127
+ $$
128
+ \mathbf {f} = \left[ \mathcal {A} \left(\left\{\phi^ {1} \left(\mathbf {f} _ {i} ^ {1}\right) \right\}\right), \dots , \mathcal {A} \left(\left\{\phi^ {L} \left(\mathbf {f} _ {i} ^ {L} \right\}\right)\right), \varphi (\mathbf {g}) \right], \tag {7}
129
+ $$
130
+
131
+ where we use a max pooling operation $\mathcal{A}$ to aggregate local features of each abstraction level from 1 to $L$ and concatenate these features with the global feature.
132
+
133
+ Hybrid Learning with GLR: Since supervisedly learned global representation can be viewed as a good initialization for the proposed GLR framework, our method is also compatible with supervised learning methods, where GLR serves as an auxiliary loss to further improve the robustness of representations.
134
+
135
+ Implementation: All of our models is trained on a single GTX 1080ti GPU with deep learning library Pytorch [42]. To show our method can be used for various point cloud networks, we consider two baseline models: PointNet++ [38] and Relation-Shape CNN (RSCNN) [33]. Note that for both baseline models, we use the Single-Scale Grouping (SSG) [38] as the point grouping module, which is more than $3 \times$ smaller than Multi-Scale Grouping (MSG) [38] module used in original PointNet++ model. Besides, we divide the MLP used in each set abstraction layer into two fully connected layers and use them before and after aggregation operation, respectively. Our experiments show this modification can reduce computation and improve performance while keeping the number of parameters unchanged. For unsupervised learning setting, we train a linear SVM [6] on unsupervised representations of the training data and report the classification accuracy on the test set. For supervised learning and hybrid learning settings, we use the aforementioned aggregated representation for fair comparison and employ a two-layer classifier where dropout technique [41] with a ratio of $50\%$ is used for each layer. Our models are trained using Adam [24] optimizer with a base learning rate of 0.001, and we decay the learning rate by 0.7 every 20 epochs. The models are trained for 200 epochs, where the momentum for Batch Normalization [23] layers starts with 0.9 and decays with a rate of 0.5 every 20 epochs, following the practice of [33, 38]. Detailed model configurations can be found in Supplementary Material.
136
+
137
+ # 4. Experiments
138
+
139
+ We extensively evaluate our method on several widely used point cloud classification benchmark datasets including ModelNet10/40 [52], ScanObjectNN [46] and ScanNet [7]. We start by evaluating our method on the discriminative power, generalization ability and robustness across datasets and comparing with the state-of-the-art unsupervised and supervised methods. We then provide detailed experiments to analyze our method on model design and complexity. Finally, we visualize the learned representations to have an intuitive understanding of our method. The following describes the details of the experiments, results and analysis.
140
+
141
+ # 4.1. Unsupervised Point Cloud Recognition
142
+
143
+ Setup: We tested our method on ModelNet40/10 [52] and ScanObjectNN [46] benchmarks to compare with the state-of-the-arts. ModelNet40 and ModelNet10 comprise 9832/3991 training objects and 2468/908 test objects in 40 and 10 classes respectively, where the points are sampled from CAD models. ScanObjectNN [46] is a real-world data, where 2902 3D objects are extracted from scans. To conduct cross dataset evaluation, we used the "object-only" split in all our experiments. ScanNet [7] was also used in our cross data evaluation experiments, where we followed the
144
+
145
+ ![](images/93aae931b506ba54d5b7cb326a30f5e5e6dd5f83accddc53f99d87156046d269.jpg)
146
+ Figure 3: ModelNet40 classification accuracy $(\%)$ of our unsupervised models and their supervised counterparts.
147
+
148
+ ![](images/346c2ff25178ab3db431e3c6f7d050433ff86ed93267c0e1e38c90079fa657c5.jpg)
149
+
150
+ Table 1: Classification accuracy (%) of three different training strategies on ModelNet40.
151
+
152
+ <table><tr><td>Backbone</td><td>Unsupervised</td><td>Supervised</td><td>Hybrid</td></tr><tr><td>PN++ (Small)</td><td>92.22</td><td>91.69</td><td>92.42</td></tr><tr><td>PN++ (Large)</td><td>93.02</td><td>92.01</td><td>92.76</td></tr><tr><td>RSCNN (Small)</td><td>92.17</td><td>91.65</td><td>92.26</td></tr><tr><td>RSCNN (Large)</td><td>92.94</td><td>92.14</td><td>92.78</td></tr></table>
153
+
154
+ practice in [28] to obtain point cloud from indoor scenes according to the instance segmentation labels. In all our experiments, we sample 1024 points for each point cloud for training and evaluation and all our results are measured using a single view without using the multi-view voting trick to show the neat performance of different models. Surface normal information was used to provide unsupervised signals for our models trained on ModelNet and we did not use it as input. For the models trained on ScanObjectNN and ScanNet, we only used the self-reconstruction loss for global-to-local reasoning.
155
+
156
+ Comparisons with the supervised counterparts: We first compared our method with the supervised baselines as presented in Figure 3, where we report the classification accuracy on ModelNet40 using the basic models $(1\times)$ and wider models (1.5 to $6\times$ channel width). Note that we used the same network architecture and training settings for our models and their counterparts for a fair comparison. Clearly, our unsupervised models with different channel widths consistently outperform the supervised counterparts. As increasing the model capacity, our models can achieve better performance and reach the highest accuracy using $5\times$ PointNet++ and $4\times$ RSCNN backbones. In the following experiments, we denote the basic $1\times$ models and the best models as "Small" and "Large" models respectively. Besides, we further compared three different training strategies: unsupervised learning, supervised learning and hybrid learning, which are presented in Table 1. We see hybrid learning can outperform both supervised and unsupervised models when the networks are small, but the unsupervised method achieves the best performance when large networks are used.
157
+
158
+ Table 2: Comparisons of the classification accuracy (\%) of our method against the state-of-the-art unsupervised 3D representation learning methods on ModelNet40 and ModelNet10. † indicates that the model is trained on ShapeNet.
159
+
160
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Input</td><td colspan="2">Accuracy</td></tr><tr><td>MN40</td><td>MN10</td></tr><tr><td>TL Network [15]</td><td>voxel</td><td>74.40</td><td>-</td></tr><tr><td>VConv-DAE [39]</td><td>voxel</td><td>75.50</td><td>80.50</td></tr><tr><td>3DGAN [50]</td><td>voxel</td><td>83.30</td><td>91.00</td></tr><tr><td>VSL [29]</td><td>voxel</td><td>84.50</td><td>91.00</td></tr><tr><td>VIPGAN [17]</td><td>views</td><td>91.98</td><td>94.05</td></tr><tr><td>\( LGAN^† \)[1]</td><td>points</td><td>85.70</td><td>95.30</td></tr><tr><td>LGAN [1]</td><td>points</td><td>87.27</td><td>92.18</td></tr><tr><td>\( FoldingNet^† \)[55]</td><td>points</td><td>88.40</td><td>94.40</td></tr><tr><td>\( FoldingNet \)[55]</td><td>points</td><td>84.36</td><td>91.85</td></tr><tr><td>\( MRTNet^† \)[14]</td><td>points</td><td>86.40</td><td>-</td></tr><tr><td>3D-PointCapsNet [56]</td><td>points</td><td>88.90</td><td>-</td></tr><tr><td>MAP-VAE [18]</td><td>points</td><td>90.15</td><td>94.82</td></tr><tr><td>Ours w/ \( PN++ \)(Small)</td><td>points</td><td>92.22</td><td>94.82</td></tr><tr><td>Ours w/ \( PN++ \)(Large)</td><td>points</td><td>93.02</td><td>95.53</td></tr><tr><td>Ours w/ RSCNN (Small)</td><td>points</td><td>92.17</td><td>94.60</td></tr><tr><td>Ours w/ RSCNN (Large)</td><td>points</td><td>92.94</td><td>95.50</td></tr></table>
161
+
162
+ We conjecture that the supervised models are prone to overfitting more severely to the training set. All these results reveal that our unsupervised representation is more discriminative and generalizable than its supervised counterpart.
163
+
164
+ Comparisons with the unsupervised state-of-the-arts: To show the effectiveness of the proposed global-local reasoning method, we compared several variants of our models with the state-of-the-art unsupervised representation learning methods in Table 2. Except for point-based methods, we also compare with some advanced voxel and view based methods. Note that we only use ModelNet40 as the training data, while some methods are trained on larger ShapeNet [52] dataset. Nevertheless, our models outperform all other methods by a large margin. As can be observed, our small PointNet++ model surpasses state-of-the-art methods and our large model significantly advances the best point cloud model (MAP-VAE) by $2.87\%$ on ModelNet40.
165
+
166
+ Comparisons with the supervised state-of-the-arts: More notably, our method can even achieve very competitive results compared to state-of-the-art supervised methods in an unsupervised manner. We compared our method with the supervised methods on both the widely used synthetic dataset ModelNet and the recently proposed real-world dataset ScanObjectNN. Our unsupervised representation was trained on ModelNet40 and a linear SVM is then trained on the target dataset to produce predictions. The results are summarized in Table 3 and Table 4. Surprisingly, our unsupervised learned representation can outperform all other
167
+
168
+ Table 3: Comparisons of the single-view classification accuracy (\%) of our method against the state-of-the-art supervised point cloud models on ModelNet40. We also list results that use more points, normal information ("nor") or/and multi-view voting trick ("vote") in gray as references. Besides, we show the supervised baselines of our models.
169
+
170
+ <table><tr><td>Method</td><td>#Points</td><td>Supervised</td><td>Acc.</td></tr><tr><td>PointNet [37]</td><td>1k</td><td>✓</td><td>89.2</td></tr><tr><td>PointNet++ [38]</td><td>1k</td><td>✓</td><td>90.5</td></tr><tr><td>PointNet++ [38] (vote)</td><td>1k</td><td>✓</td><td>90.7</td></tr><tr><td>SO-Net [27]</td><td>1k</td><td>✓</td><td>92.5</td></tr><tr><td>PointCNN [28]</td><td>1k</td><td>✓</td><td>92.5</td></tr><tr><td>DGCNN [49]</td><td>1k</td><td>✓</td><td>92.9</td></tr><tr><td>DensePoint [32]</td><td>1k</td><td>✓</td><td>92.8</td></tr><tr><td>DensePoint [32] (vote)</td><td>1k</td><td>✓</td><td>93.2</td></tr><tr><td>RSCNN [33]</td><td>1k</td><td>✓</td><td>92.9</td></tr><tr><td>RSCNN [33] (vote)</td><td>1k</td><td>✓</td><td>93.6</td></tr><tr><td>DGCNN [49]</td><td>2k</td><td>✓</td><td>93.5</td></tr><tr><td>PointNet++ [38] (vote, nor)</td><td>5k</td><td>✓</td><td>91.9</td></tr><tr><td>SO-Net [27] (nor)</td><td>5k</td><td>✓</td><td>93.4</td></tr><tr><td>KPConv [43]</td><td>~ 6.8k</td><td>✓</td><td>92.9</td></tr><tr><td>PN++ (Large)</td><td>1k</td><td>✓</td><td>92.1</td></tr><tr><td>Ours w/ PN++ (Large)</td><td>1k</td><td>✗</td><td>93.0</td></tr><tr><td>RSCNN (Large)</td><td>1k</td><td>✓</td><td>92.0</td></tr><tr><td>Ours w/ RSCNN (Large)</td><td>1k</td><td>✗</td><td>92.9</td></tr></table>
171
+
172
+ Table 4: Comparisons of the single-view classification accuracy $(\%)$ of our method against the state-of-the-art supervised point cloud models on ScanObjectNN.
173
+
174
+ <table><tr><td>Method</td><td>Supervised</td><td>Accuracy</td></tr><tr><td>3DmFV [4]</td><td>✓</td><td>73.8</td></tr><tr><td>PointNet [37]</td><td>✓</td><td>79.2</td></tr><tr><td>SpiderCNN [54]</td><td>✓</td><td>79.5</td></tr><tr><td>PointNet++ [38]</td><td>✓</td><td>84.3</td></tr><tr><td>DGCNN [49]</td><td>✓</td><td>86.2</td></tr><tr><td>PointCNN [28]</td><td>✓</td><td>85.5</td></tr><tr><td>Ours w/ PN++ (Large)</td><td>✗</td><td>87.2</td></tr><tr><td>Ours w/ RSCNN (Large)</td><td>✗</td><td>86.9</td></tr></table>
175
+
176
+ state-of-the-arts methods in the single-view setting<sup>3</sup> on both datasets. Since only a linear classifier is applied, these results demonstrate that our representation is much more discriminative than the supervised representation on the test set. Moreover, we observe that our representation can achieve very strong results on ScanObjectNN without finetuning. As the categories in ModelNet and ScanObjectNN are different, this evidence indicates that our method can discover semantic knowledge shared in different kinds of objects.
177
+
178
+ Table 5: Cross dataset evaluation. We evaluate generalization ability of unsupervised and supervised representations to unseen datasets. We report the classification accuracy (\%) measured using a linear SVM trained on the target dataset. (Sup.: supervised)
179
+
180
+ <table><tr><td>Task</td><td>Sup.</td><td>Ours</td><td>Δ</td></tr><tr><td>ModelNet10 → ModelNet30</td><td>85.45</td><td>92.34</td><td>+6.89</td></tr><tr><td>ModelNet30 → ModelNet10</td><td>91.32</td><td>95.47</td><td>+4.15</td></tr><tr><td>ModelNet40 → ScanObjectNN</td><td>65.92</td><td>87.22</td><td>+21.30</td></tr><tr><td>ScanObjectNN → ModelNet40</td><td>78.76</td><td>90.80</td><td>+12.04</td></tr><tr><td>ModelNet40 → ScanNet</td><td>77.31</td><td>89.23</td><td>+11.92</td></tr><tr><td>ScanNet → ModelNet40</td><td>80.38</td><td>91.32</td><td>+10.94</td></tr><tr><td>ScanObjectNN → ScanNet</td><td>84.31</td><td>87.96</td><td>+3.63</td></tr><tr><td>ScanNet → ScanObjectNN</td><td>82.44</td><td>85.43</td><td>+2.99</td></tr></table>
181
+
182
+ ![](images/e588eed72a6b518d36b18f075963061261ca64b74fdfa66f4fa17c6e00a66b61.jpg)
183
+ Figure 4: The robustness of our method on sampling density and the number of training samples compared to the supervised baseline.
184
+
185
+ ![](images/4301191b22d319bc0badb2918814d31e267acd49247d523cf8451c3378428841.jpg)
186
+
187
+ Cross Dataset Evaluation: To further explore the generalization ability of the learned representation, we conducted extensive cross data evaluation experiments on ModelNet, ScanObjectNN and ScanNet, which are varying in categories and sources. Our experiments were conducted based on the unsupervised representations of the PointNet++ large model and we compared the results with the supervised version of this model. Specifically, we trained the features using supervised or unsupervised learning methods on the source dataset and used a linear SVM trained on the target dataset to perform classification. The results are presented in Table 5, where we used the rest 30 categories in ModelNet40 apart from 10 categories in ModelNet10 to form the ModelNet30 dataset. We see the unsupervisedly learned representation has much stronger transferability than the supervised counterparts and our models generalize well to various unseen data since we learn from data structures instead of labels. Our method can maintain strong performance even in cross data evaluation, which reflects the unsupervised representation can be a generic representation of 3D objects cross datasets.
188
+
189
+ Robustness Analysis: The robustness of our method on sampling density and the number of training samples is shown in Figure 4. For the former, we tested the model
190
+
191
+ Table 6: Ablation study of our method. We report the classification accuracy (\%) on ModelNet40. $(\mathcal{L}_{\mathrm{L2G}})$ : local-to-global reasoning, $\mathcal{L}_{\mathrm{recon}}$ : self-reconstruction, Agg: multi-level feature aggregation in Eq. (7), $\mathcal{L}_{\mathrm{normal}}$ : normal estimation, SN: training on ShapeNet.)
192
+
193
+ <table><tr><td>Model</td><td>\( {\mathcal{L}}_{\mathrm{L}2\mathrm{G}} \)</td><td>\( {\mathcal{L}}_{\text{recon }} \)</td><td>Agg.</td><td>\( {\mathcal{L}}_{\text{normal }} \)</td><td>SN</td><td>Acc.</td></tr><tr><td>A</td><td></td><td>✓</td><td></td><td></td><td></td><td>86.77</td></tr><tr><td>B</td><td>✓</td><td></td><td></td><td></td><td></td><td>90.02</td></tr><tr><td>C</td><td>✓</td><td>✓</td><td></td><td></td><td></td><td>90.96</td></tr><tr><td>D</td><td>✓</td><td>✓</td><td>✓</td><td></td><td></td><td>91.69</td></tr><tr><td>E</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td></td><td>92.22</td></tr><tr><td>F</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>92.30</td></tr></table>
194
+
195
+ Table 7: Complexity analysis. We report the FLOPs and GPU inference throughput with batch size 16. Measured on NVIDIA GTX 1080Ti GPU. (pc/s: point cloud(s) per second)
196
+
197
+ <table><tr><td>Model</td><td>FLOPs</td><td>Throughput</td><td>Acc.</td></tr><tr><td>MSG PN++ [38]</td><td>1.68G</td><td>113pc/s</td><td>90.5</td></tr><tr><td>SSG RSCNN [33]</td><td>0.30G</td><td>634pc/s</td><td>92.2</td></tr><tr><td>Our PN++ (Small)</td><td>0.31G</td><td>731pc/s</td><td>92.2</td></tr><tr><td>MSG PN++ [38] (12 votes)</td><td>14.15G</td><td>9pc/s</td><td>90.7</td></tr><tr><td>SSG RSCNN [33] (10 votes)</td><td>2.95G</td><td>63pc/s</td><td>92.7</td></tr><tr><td>Our PN++ (Large)</td><td>5.65G</td><td>194pc/s</td><td>93.0</td></tr></table>
198
+
199
+ trained with 1024 points with sparser points of 1024, 512, 256, 128 and 64. Note that different from previous works [33, 38], we did not perform random input dropout during training. For the latter, we trained the representation with randomly sampled $100\%$ , $50\%$ , $25\%$ , $10\%$ and $1\%$ ModelNet40 training set and trained the linear classifier on the whole set. We used the PointNet++ large model in this experiment. Generally, we see our models are much more robust than their supervised versions. Notably, our method can maintain decent performance even when using only $10\%$ (983 samples) and $1\%$ (98 samples) training samples and achieve $91.4\%$ and $89.3\%$ accuracy on ModelNet40 respectively.
200
+
201
+ Visualization: To have an intuitive understanding of our method, we visualized the unsupervised learn features. The results are presented in the supplementary material.
202
+
203
+ # 4.2. Method Design Analysis
204
+
205
+ Ablation Study: To examine the effectiveness of our designs, we conducted a detailed ablation study based on the small PointNet++ network. The results are summarized in Table 6. The baseline model A can be viewed as a variant of FoldingNet [55], which was trained by self-reconstruction loss only and gets a low classification accuracy of $86.77\%$ . We see the model trained by the proposed local-to-global reasoning task (model B) can significantly improve the baseline
206
+
207
+ model by $3.25\%$ . This convincingly verifies its effectiveness. Then, when incorporating these two losses, the accuracy can be further improved to $90.96\%$ . We also observe a $0.73\%$ improvement by aggregating local and global representations (model D). Our full model can be obtained by adding normal estimation supervision (model E), which achieves a notable $92.22\%$ accuracy on ModelNet40 with a very lightweight network. In addition, we also investigated the training set size by adding more training data (model F) from ShapeNet [52], but obtaining a slight improvement on accuracy $(0.08\%)$ . We conjecture that ModelNet is large enough for learning a good representation. Thus we conducted most of the experiments on ModelNet.
208
+
209
+ Complexity Analysis: Table 7 shows the model complexity in theoretical computation cost (in FLOPs) and actual inference throughput on GPU of our models and several state-of-the-art methods. We see our large model requires considerable computation cost but maintains an acceptable actual cost on GPU due to the simplicity of the SSG model. These results reveal that increasing channel width can achieve a better trade-off on speed and accuracy compared to voting. For computational cost-sensitive applications, we think our learned model can provide strong supervision to train lighter models for real-time applications by model distillation [20] or generating pseudo labels [25], which is an interesting direction for future research.
210
+
211
+ # 5. Conclusion
212
+
213
+ We have proposed a new scheme for unsupervised representation learning of 3D point clouds by bidirectional global-local reasoning. Comprehensive experimental studies have demonstrated our unsupervisedly learned representation can surpass its supervised counterpart and achieve state-of-the-art performance on several widely used benchmarks. We expect our method to open a new door for learning better point cloud representation from data structures instead of human annotation. Transferring the learned knowledge to more efficient models and extending our method to more point cloud analysis scenarios like segmentation and detection are interesting directions in future work.
214
+
215
+ # Acknowledgement
216
+
217
+ This work was supported in part by the National Key Research and Development Program of China under Grant 2017YFA0700802, in part by the National Natural Science Foundation of China under Grant 61822603, Grant U1813218, Grant U1713214, and Grant 61672306, in part by Beijing Academy of Artificial Intelligence (BAAI), in part by a grant from the Institute for Guo Qiang, Tsinghua University, in part by the Shenzhen Fundamental Research Fund (Subject Arrangement) under Grant JCYJ20170412170602564, and in part by Tsinghua University Initiative Scientific Research Program.
218
+
219
+ # References
220
+
221
+ [1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3d point clouds. In ICML, 2018. 1, 3, 5, 6
222
+ [2] Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. arXiv preprint arXiv:1803.10091, 2018. 1, 3
223
+ [3] Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019. 2, 4
224
+ [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
225
+ [5] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. T-PAMI, 35(8):1798-1828, 2013. 2
226
+ [6] Corinna Cortes and Vladimir Vapnik. Support-vector networks. Machine learning, 20(3):273-297, 1995. 5
227
+ [7] Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In CVPR, pages 5828-5839, 2017. 5
228
+ [8] Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppf-foldnet: Unsupervised learning of rotation invariant 3d local descriptors. In ECCV, pages 602-618, 2018. 1, 3, 5
229
+ [9] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In CVPR, pages 4690–4699, 2019. 4
230
+ [10] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In ICCV, pages 1422-1430, 2015. 2
231
+ [11] Carl Doersch and Andrew Zisserman. Multi-task self-supervised visual learning. In ICCV, pages 2051-2060, 2017. 2
232
+ [12] Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In CVPR, pages 605-613, 2017. 5
233
+ [13] Kunihiko Fukushima and Sei Miyake. Neocognitron: A self-organizing neural network model for a mechanism of visual pattern recognition. In Competition and cooperation in neural nets, pages 267–285. Springer, 1982. 2
234
+ [14] Matheus Gadelha, Rui Wang, and Subhransu Maji. Multiresolution tree networks for 3d point cloud processing. In ECCV, pages 103-118, 2018. 1, 3, 5, 6
235
+ [15] Rohit Girdhar, David F Fouhey, Mikel Rodriguez, and Abhinav Gupta. Learning a predictable and generative vector representation for objects. In ECCV, pages 484-499. Springer, 2016. 6
236
+ [16] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, pages 2672-2680, 2014. 2
237
+ [17] 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
238
+
239
+ to support local view predictions. In AAAI, volume 33, pages 8376-8384, 2019. 6
240
+ [18] 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. ICCV, 2019. 1, 3, 6
241
+ [19] Olivier J Henaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019. 2, 4
242
+ [20] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 8
243
+ [21] Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. science, 313(5786):504-507, 2006. 2
244
+ [22] R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. *ICLR*, 2019. 4
245
+ [23] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 5
246
+ [24] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
247
+ [25] Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In ICMLW, volume 3, page 2, 2013. 8
248
+ [26] Chun-Liang Li, Manzil Zaheer, Yang Zhang, Barnabas Poc-zos, and Ruslan Salakhutdinov. Point cloud gan. arXiv preprint arXiv:1810.05795, 2018. 1, 2, 3, 5
249
+ [27] Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. In CVPR, pages 9397–9406, 2018. 7
250
+ [28] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In NeurIPS, pages 828-838, 2018. 1, 2, 3, 6, 7
251
+ [29] Shikun Liu, Lee Giles, and Alexander Ororbia. Learning a hierarchical latent-variable model of 3d shapes. In $3DV$ , pages 542-551. IEEE, 2018. 6
252
+ [30] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherface: Deep hypersphere embedding for face recognition. In CVPR, pages 212-220, 2017. 4
253
+ [31] Xinhai Liu, Zhizhong Han, Xin Wen, Yu-Shen Liu, and Matthias Zwicker. L2g auto-encoder: Understanding point clouds by local-to-global reconstruction with hierarchical self-attention. In ACM MM, pages 989–997. ACM, 2019. 1, 3
254
+ [32] Yongcheng Liu, Bin Fan, Gaofeng Meng, Jiwen Lu, Shiming Xiang, and Chunhong Pan. Densepoint: Learning densely contextual representation for efficient point cloud processing. In ICCV, pages 5239-5248, 2019. 7
255
+ [33] Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. In CVPR, pages 8895-8904, 2019. 1, 2, 3, 5, 7, 8
256
+
257
+ [34] Andriy Mnih and Koray Kavukcuoglu. Learning word embeddings efficiently with noise-contrastive estimation. In NeurIPS, pages 2265–2273, 2013. 4
258
+ [35] Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016. 2
259
+ [36] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 4
260
+ [37] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. CVPR, 1(2):4, 2017. 2, 3, 7
261
+ [38] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In NeurIPS, pages 5099-5108, 2017. 1, 2, 3, 5, 7, 8
262
+ [39] Abhishek Sharma, Oliver Grau, and Mario Fritz. Vconv-dae: Deep volumetric shape learning without object labels. In ECCV, pages 236-250. Springer, 2016. 6
263
+ [40] Kihyuk Sohn. Improved deep metric learning with multi-class n-pair loss objective. In NeurIPS, pages 1857-1865, 2016. 4
264
+ [41] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. JMLR, 15(1):1929-1958, 2014. 5
265
+ [42] Benoit Steiner, Zachary DeVito, Soumith Chintala, Sam Gross, Adam Paszke, Francisco Massa, Adam Lerer, Gregory Chanan, Zeming Lin, Edward Yang, et al. Pytorch: An imperative style, high-performance deep learning library. NeurIPS, 32, 2019. 5
266
+ [43] Hugues Thomas, Charles R Qi, Jean-Emmanuel Deschaud, Beatz Marcotegui, Francois Goulette, and Leonidas J Guibas. Kpconv: Flexible and deformable convolution for point clouds. ICCV, 2019. 1, 3, 7
267
+ [44] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019. 2, 4
268
+ [45] Michael Tschannen, Josip Djolonga, Paul K. Rubenstein, Sylvain Gelly, and Lucic Mario. On mutual information maximization for representation learning. arXiv preprint arXiv:1907.13625, 2019. 4
269
+ [46] Mikaela Angelina Uy, Quang-Hieu Pham, Binh-Son Hua, Thanh Nguyen, and Sai-Kit Yeung. Revisiting point cloud classification: A new benchmark dataset and classification model on real-world data. In ICCV, pages 1588–1597, 2019. 2, 5
270
+ [47] Diego Valsesia, Giulia Fracastoro, and Enrico Magli. Learning localized generative models for 3d point clouds via graph convolution. In ICLR, 2019. 1, 3, 5
271
+ [48] Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou, Zhifeng Li, and Wei Liu. Cosface: Large margin cosine loss for deep face recognition. In CVPR, pages 5265-5274, 2018. 4
272
+ [49] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. TOG, 2019. 1, 2, 3, 7
273
+
274
+ [50] 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 NeurIPS, pages 82–90, 2016. 6
275
+ [51] Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In CVPR, pages 9621-9630, 2019. 1, 2, 3
276
+ [52] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In CVPR, pages 1912-1920, 2015. 2, 5, 6, 8
277
+ [53] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, pages 3733-3742, 2018. 4
278
+ [54] Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. SpiderCNN: Deep learning on point sets with parameterized convolutional filters. ECCV, 2018. 1, 3, 7
279
+ [55] Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In CVPR, pages 206–215, 2018. 1, 3, 5, 6, 8
280
+ [56] Yongheng Zhao, Tolga Birdal, Haowen Deng, and Federico Tombari. 3d point capsule networks. In CVPR, pages 1009-1018, 2019. 1, 3, 5, 6
globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ede7f3af1c856b3076875a1f72bea31228428aad5a8dfa895f74af82fc458de2
3
+ size 426955
globallocalbidirectionalreasoningforunsupervisedrepresentationlearningof3dpointclouds/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e19a6ea28eb23ab18003fdf1bb17bfcea46f141bac9395bb55f6bd225f9268c
3
+ size 344243
globallocalgcnlargescalelabelnoisecleansingforfacerecognition/d846373b-08a0-4831-9584-6e628e86218b_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd9ee0cc662620d8519425c99e4c152f177918bef7ecdf452ac6aca9c3302367
3
+ size 78263
globallocalgcnlargescalelabelnoisecleansingforfacerecognition/d846373b-08a0-4831-9584-6e628e86218b_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:046f5b028226eaf12fab02170e6044c448ba5a0b388259547c70d7fe9618cc75
3
+ size 98798
globallocalgcnlargescalelabelnoisecleansingforfacerecognition/d846373b-08a0-4831-9584-6e628e86218b_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5501ba15c0a6ddbb6a65571a0be1974a601f76f178cbbf2aabccc64e6df9136f
3
+ size 1825976
globallocalgcnlargescalelabelnoisecleansingforfacerecognition/full.md ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Global-Local GCN: Large-Scale Label Noise Cleansing for Face Recognition
2
+
3
+ Yaobin Zhang, Weihong Deng*, Mei Wang, Jiani Hu
4
+ Beijing University of Posts and Telecommunications
5
+
6
+ {zhangyaobin, whdeng, wangmeil, jnhu}@bupt.edu.cn
7
+
8
+ Xian Li, Dongyue Zhao, Dongchao Wen
9
+ Canon Information Technology (Beijing) Co., Ltd
10
+ {lixian, zhaodongyue, wendongchao}@canon-ib.com.cn
11
+
12
+ # Abstract
13
+
14
+ In the field of face recognition, large-scale web-collected datasets are essential for learning discriminative representations, but they suffer from noisy identity labels, such as outliers and label flips. It is beneficial to automatically cleanse their label noise for improving recognition accuracy. Unfortunately, existing cleansing methods cannot accurately identify noise in the wild. To solve this problem, we propose an effective automatic label noise cleansing framework for face recognition datasets, FaceGraph. Using two cascaded graph convolutional networks, FaceGraph performs global-to-local discrimination to select useful data in a noisy environment. Extensive experiments show that cleansing widely used datasets, such as CASIA-WebFace, VGGFace2, MegaFace2, and MS-Celeb-1M, using the proposed method can improve the recognition performance of state-of-the-art representation learning methods like Arcface. Further, we cleanse massive self-collected celebrity data, namely MillionCelebs, to provide 18.8M images of 636K identities. Training with the new data, Arcface surpasses state-of-the-art performance by a notable margin to reach $95.62\%$ TPR at 1e-5 FPR on the IJB-C benchmark.
15
+
16
+ # 1. Introduction
17
+
18
+ Label noise cleansing is a long-term issue in building up a dataset [9, 10, 24, 25, 30, 32]. Many studies [7, 20, 43, 44, 48, 58] point out that a noisy dataset is very harmful to model training. In recent years, the face recognition community witnesses a boost in datasets, from the first widely used deep training set CASIA-WebFace (CASIA) [54] to MS-Celeb-1M (MS1M) [21], UMDFace [8] and VGGFace2 [12]. The increasing data scale helps improve the face recognition accuracy, but the label noise also keeps increasing with their scale [43]. Therefore, to construct an effective face recognition training set, on the one
19
+
20
+ ![](images/d6c40cf65900ae4bf393c8ca8dcc7a725e4da8d88dce56755ebbc1580fb1ee48.jpg)
21
+
22
+ ![](images/9695ce3da1b33393600b991929fd39cdba168661dec10690d369f6b39cbe6114.jpg)
23
+
24
+ ![](images/292e758a5548d5e6d2cd40ba371551399294ed69d0137d50f093b778d8452e25.jpg)
25
+ (a) Raw data
26
+ (c) Edge prediction
27
+ Figure 1: Three ideas for face data cleansing. (a) Face data in one identity. (b) Center-based: select images according to their distance to the identity center. (c) Graph-based edge prediction: predict edges on a graph, and pick nodes in the biggest component. (d) Graph-based node prediction: directly predict whether a node is a signal or noise on a graph.
28
+
29
+ ![](images/a8e4b31ab08718cd7de02181d37b32fa9298512a7b72a2f3c3895b7b9fda38f5.jpg)
30
+ (b) Center-based
31
+ (d) Node prediction (ours)
32
+
33
+ hand, it is necessary to collect as many face images as possible. On the other hand, there must be a reliable data cleansing method to detect and reduce label noise in the dataset.
34
+
35
+ Figure 1 compares two existing ideas with ours for cleansing large-scale face recognition datasets. As opposed to noise, the correctly labeled images are denoted as "signals". Suppose there are 10 face samples for an identity, five of which are signals (green box) and the others are noise (red box). Center-based algorithms (Figure 1b) compute the center of each identity and then select samples that are closer to the center as signals. They usually ignore the relationships between samples and rely heavily on the rate
36
+
37
+ of signals [7, 54]. In fact, signals can gather together in the feature space, while noise is usually similar to only a few samples. This can be well represented by the graph structure. Considering a face image as a node on the graph, Figure 1c predicts edges between nodes according to their pairwise relationships, then picks nodes in the biggest component as signals. There is a strong assumption in this type of work [14, 36, 47] that all signals are connected. Many graph information other than node relationships is also lost. In this paper, the cleansing idea in Figure 1d is adopted, i.e., directly predicts whether the nodes are signals or noise on the graph. It is more robust to big noise because of its decentralized graph structure. Further, using graph convolution techniques, the cleansing model not only learns node-wise relationships but also performs global awareness on the graph to get more discriminative node representations.
38
+
39
+ We find that a single-stage Graph Convolutional Network (GCN) can make global predictions to get good results on many graph-based tasks [13, 29, 41, 49, 53, 59], but sometimes ignores local details of the graph, causing widespread prediction errors in some difficult local regions. To solve this problem, our proposed FaceGraph leverages a cascaded framework with two stages of carefully designed GCNs, namely Global Graph Net and Local Graph Net, to make predictions in a global-to-local manner. The first network makes global graph prediction, then the second network makes local-aware refinement. To efficiently train them, a novel propagation function and some training schemes such as multi-task learning and cooperative learning are designed. In the data cleansing task, FaceGraph outperforms a single-stage GCN by a notable margin and can remove noise more accurately than previous methods.
40
+
41
+ To verify the proposed method on real data, we cleanse four widely used large-scale face datasets CASIA [54], MegaFace2 [36], MS1M [21], and VGGFace2 [12]. The effectiveness is assessed in terms of the comparative recognition performance of Arcface [15] trained on different datasets. The results show that datasets cleansed by FaceGraph effectively improve the face recognition performance compared with the ones cleansed by previous methods. Furthermore, to address the problems of low number of identities and high noise rate in the existing face datasets [43, 44], we take a great effort to collect and cleanse a large-scale face dataset, MillionCelebs, using the proposed method. The cleansed MillionCelebs dataset provides 18.8M images of 636K identities, which can largely facilitate the study of large-scale deep face recognition. For instance, the Arcface method trained by this new dataset outperforms state-of-the-art performance on the IJB-C by a notable margin.
42
+
43
+ The main contributions can be summarized as follows: (1) We propose the first GCN-based label noise cleansing method for face recognition datasets, significantly enhancing the cleansing performance. (2) A two-stage global-local
44
+
45
+ GCN framework is designed with performance far beyond a single-stage network. (3) The MillionCelebs dataset is collected and cleansed to promote state-of-the-art face recognition performance and facilitate the study on large-scale deep learning. MillionCelebs is better than existing public datasets in terms of data size and the number of identities.
46
+
47
+ # 2. Related Work
48
+
49
+ Label Noise Cleansing. The label noise cleansing methods can be divided into graph-based and non-graph-based. Except for some manual reviewing work [8, 43], non-graph-based methods are usually straightforward and easier to manipulate, but their effects are limited. Angelova et al. [5] adopt data pruning to build a dataset. CASIA-WebFace [54] cleanses every subject by taking its "main photo" as a seed to accept other faces constrained by similarities and tags. VGGFace [38] and VGGFace2 [12] train SVM classifiers to reject outliers. Celeb500k [11] trains a CNN-based label predictor to select samples in a bootstrapping manner.
50
+
51
+ Differently, graph-based methods fully consider the data structure. Mode filters [18, 19] recognize noise on a graph by semi-supervised learning. RT [47] iteratively removes noise by instance pruning. MegaFace2 [28] clusters images according to the average pairwise distance in one identity. Unfortunately, most graph-based cleansing attempts have artificially designed parameters, which are hard to take full advantage of the data information. This paper develops a graph-based automatic learnable cleansing algorithm.
52
+
53
+ Graph Convolutional Networks. Following the idea of CNNs, GCN is proposed to process problems with non-Euclidean data [49]. The work on semi-supervised classification [29] provides the basic propagation formulation of a multi-layer GCN. Some work [13, 33, 41, 51, 53] modifies it to apply GCN into different categories, such as knowledge base construction and text classification. GraphSAGE [22] learns a principle of aggregation to extend GCN into inductive representation learning. GAT [42] learns a graph attention model in feature propagation. In the computer vision community, GPP [59] predicts positive neighbors in person re-identification. Zhong et al. [57] deploy GCN for anomaly detection. Some other work [45, 52] uses GCN to do face clustering. Different from clustering, the cleansing task needs to select one subgroup from a big group of data, while the others are dropped. In this paper, we explore the introduction of GCN into the field of face dataset cleansing.
54
+
55
+ # 3. Methodology
56
+
57
+ # 3.1. Overview
58
+
59
+ Consider a large-scale face image dataset with label noise, for instance, the celebrity images return by searching keywords on the web. Since the images are naturally
60
+
61
+ ![](images/ea1a073c2b145da9b5ac5f69bdedb14aa751d021f8ea97408e03549588a4bc1c.jpg)
62
+ Figure 2: Overview of FaceGraph. Images in one identity are represented as nodes, and a $k$ -NN graph is built based on deep features. A two-stage cascaded global-local cleansing is performed. In the first stage, GGN classifies all nodes globally. Based on its result, local subgraphs are built for difficult regions, and all subgraphs go through the parameters shared LGNs. The prediction results of LGNs are fused to update GGN result as the output graph. High-scoring nodes are picked as signals.
63
+
64
+ grouped by the name of the celebrity, we apply the proposed method to cleanse label noise for each group separately. This procedure largely saves manual labor to label the images. Since the performance of deep face recognition has surpassed human significantly [39], it is possible to achieve better cleansing results than manual labeling. Assume that $n$ face samples in one identity are represented as $d$ -dimensional $l2$ -normalized features $\boldsymbol{x}_i$ , $i \in \{1, 2, \dots, n\}$ . So the identity can be represented as matrix $X = [\boldsymbol{x}_1, \boldsymbol{x}_2, \dots, \boldsymbol{x}_n]^T \in \mathbb{R}^{n \times d}$ . The cleansing task predicts labels $Y = [\boldsymbol{y}_1, \boldsymbol{y}_2, \dots, \boldsymbol{y}_n]^T$ for all $n$ instances, where $\boldsymbol{y}_i \in \{0, 1\}$ , 1 representing signals and 0 representing noise. As shown in Figure 2, FaceGraph is proposed to address the label noise problem with cascaded global-local GCNs: first making global sense (Section 3.2), then locally refining the result with rebuilt subgraphs (Section 3.3).
65
+
66
+ # 3.2. Global Graph Net
67
+
68
+ Global Graph Net (GGN) is a $L$ -layer node classification graph convolutional network. Based on the pairwise cosine similarity $S$ of feature matrix $X$
69
+
70
+ $$
71
+ S = X X ^ {T}, \tag {1}
72
+ $$
73
+
74
+ a $k$ -NN graph $\mathcal{G}$ is built. Taking $\mathcal{G}$ as input, GGN judges nodes on the graph are signals or noise. Figure 3 shows the GGN forward propagation algorithm. The general GCN layer-wise forward propagation formula of node $i$ is
75
+
76
+ $$
77
+ \boldsymbol {h} _ {i} ^ {(l + 1)} = \sigma \left[ F _ {j \in \mathcal {N} _ {i}} \left(\boldsymbol {h} _ {j} ^ {(l)}\right) \mathbf {W} ^ {(l)} \right] \tag {2}
78
+ $$
79
+
80
+ where $\pmb{h}_j^{(l)}$ means the $l$ -th layer output of node $j$ , $\pmb{h}_j^{(0)} = \pmb{x}_j$ . $\mathcal{N}_i$ is a collection of all neighbors of node $i$ (include itself). $F: \mathbb{R}^{m \times d_{in}} \to \mathbb{R}^{d'}$ is a transforming function that transforms the features of node $i$ and its neighbors into one feature of $d'$ dimension, $m$ is the number of elements in $\mathcal{N}_i$ . $\mathbf{W}^{(l)} \in \mathbb{R}^{d' \times d_{out}}$ is a learnable matrix in the $l$ -th layer. $\sigma$ denotes the activation function. Therefore, the forward
81
+
82
+ propagation of a node can be regarded as alternately performing the following two operations: first executing feature transformation $F$ according to its neighbors, then passing through a fully connected layer $\mathbf{W}$ with activation $\sigma$ .
83
+
84
+ Since there are big differences between the identities in a face recognition dataset, strong generalization ability is very essential to cleanse it. Following the idea of GraphSAGE [22] that learns a generalizable aggregator, we design the transforming function $F$ in Equation 2 as
85
+
86
+ $$
87
+ F _ {j \in \mathcal {N} _ {i}} \left(\boldsymbol {h} _ {j} ^ {(l)}\right) = \left[ \boldsymbol {h} _ {i} ^ {(l)} \| A g g r e g a t e _ {j \in \mathcal {N} _ {i}} \left(\tilde {s _ {i j}} \boldsymbol {h} _ {j} ^ {(l)}\right) \right] \tag {3}
88
+ $$
89
+
90
+ where $\tilde{s_{ij}} = \frac{S_{ij}}{\sqrt{D_iD_j}}$ is the normalized similarity score between node $i$ and $j$ , which appears as a weight term in the function. $D_{i}$ is the degree of node $i$ [29]. Aggregate is a learnable aggregating principal function, and $\| \cdot$ is the concatenation operator. Considering that face recognition is mainly based on pairwise similarity, the similarity matrix $S$ is used to help the aggregation process. For node $i$ , the features of its neighbors are weighted by $\tilde{s_{ij}}$ when aggregating, so that the neighbors with low similarity to node $i$ are forced to provide less weighted aggregating information. Then the aggregated vector is directly concatenated with $h_i$ by a "shortcut" to obtain a $d^{\prime} = 2d$ dimensional vector. This shortcut reserves the original node information along with the information from the aggregated neighbors. Aggregate is designed as the sum of the outputs of a neuron:
91
+
92
+ $$
93
+ A g g r e g a t e _ {j \in \mathcal {N} _ {i}} \left(\boldsymbol {h} _ {j} ^ {(l)}\right) = \sum_ {j \in \mathcal {N} _ {i}} \sigma \left(\boldsymbol {h} _ {j} ^ {(l)} \mathbf {A} ^ {(l)} + \mathbf {b} ^ {(l)}\right) \tag {4}
94
+ $$
95
+
96
+ where $\mathbf{A}^{(l)}$ and $\mathbf{b}^{(l)}$ are deployed to learn the face aggregating principle in the $l$ -th layer. At the last layer, we deploy $\mathbf{W}^{(L)} \in \mathbb{R}^{d' \times 1}$ and sigmoid activation to predict scores for all nodes. The nodes whose score is higher than a threshold are judged as signals. In back-propagation, Stochastic
97
+
98
+ ![](images/0900e22db1ebe4c63ee92a063667efb5b4d2591ce64b0ecf2b22853faca1decc.jpg)
99
+ Figure 3: Global Graph Net architecture and forward propagation algorithm of node $i$ between layer $(l)$ and $(l + 1)$ .
100
+
101
+ Gradient Descent (SGD) by the binary cross-entropy loss is used. For a graph with $N$ nodes, the GGN loss is
102
+
103
+ $$
104
+ \mathcal {L} _ {G} = - \frac {1}{N} \sum_ {i = 1} ^ {N} \left[ \hat {\boldsymbol {y}} _ {i} \cdot \log \boldsymbol {y} _ {i} + (1 - \hat {\boldsymbol {y}} _ {i}) \cdot \log (1 - \boldsymbol {y} _ {i}) \right] \tag {5}
105
+ $$
106
+
107
+ where $\pmb{y}_i$ is the network output score of node $i$ between 0 and 1, and $\hat{\pmb{y}}_i\in \{0,1\}$ is the label of node $i$ .
108
+
109
+ # 3.3. Local Graph Net
110
+
111
+ GGN can handle most simple cases but may ignore local details on a complicated graph and output scores around 0.5 for hard nodes in some local regions, e.g., boundary nodes that are simultaneously adjacent to multiple signals and noise. The second stage network, Local Graph Net (LGN), is designed to solve these hard nodes. We define "low confidence nodes" as nodes that GGN outputs scores between 0.2 and 0.8, and define "high confidence nodes" the complement of low confidence nodes. Low confidence nodes are randomly selected as "local centers" on the graph, then their one-hop and two-hop neighbors are taken to build the local subgraphs. There are two special cases: (a) If one subgraph does not contain any GGN predicted signals, which means it takes very limited graph information, this subgraph is discarded. (b) If GGN predicts all nodes with high confidence, then no "centers" can be found, we pick the nodes that GGN predicts as signals to construct the only one subgraph.
112
+
113
+ All generated subgraphs go through parameters shared LGNs for subtle discrimination. LGN is designed the same as GGN in network architecture and outputs scores like GGN as well. For every node, if it is included in at least one subgraph, we obtain its final score by averaging its results from all LGNs that output scores for it. On the contrary, if it is not included in any of the local subgraphs, which means it is neither a local center nor within two-hop range of any local centers, this node is easy to judge and we obtain its final score by simply taking the GGN judgment result of it.
114
+
115
+ ![](images/07f6d0c4f70093ad645aaa0bb5a9bf0da842b518a385bb79f5fe7e22a8feae4d.jpg)
116
+ (a) Images under ID: 0c4f6bn
117
+
118
+ ![](images/6af4e6008b3766073d19c903e0b5c06d53b7351259fe7b0ff1531b5a6e8a47db.jpg)
119
+ (b) Four kinds of garbage classes
120
+ Figure 4: Examples of signals and garbage classes. (a) Images of a randomly selected identity from MillionCelebs. (b) Four kinds of garbage classes: fake faces, unrecognizable faces, blurred faces, and face-like patterns.
121
+
122
+ Multi-task Learning. In order to let LGN learn to identify useless images from different perspectives, a multi-task learning framework is designed. The node classification task predicts scores for the nodes, and the graph classification task predicts scores for the graph to refuse "garbage class" noise. The two tasks promote each other, which allows LGN to better distinguish the difference between outliers and garbages, so it can improve the recognition of both types of noise. "Garbage class" noise is inevitable in face datasets. Images in a garbage class are all wrongly accepted by the face detector and have nothing to help in learning human faces. Figure 4 shows a good class and four kinds of garbage classes in our dataset. With the supervision of the graph classification task, LGN can directly refuse the entire graph if it is judged as a garbage class. All graph classification results of LGNs vote to make the final decision. GGN is not designed as multi-task learning because its big intraclass noise can interfere with the graph classification judgment. In back-propagation, the LGN loss $\mathcal{L}_L$ is a linear sum of two binary cross-entropy loss by a weight term $\lambda$ : node classification loss $\mathcal{L}_n$ and graph classification loss $\mathcal{L}_g$ .
123
+
124
+ $$
125
+ \mathcal {L} _ {L} = \mathcal {L} _ {n} + \lambda \mathcal {L} _ {g} \tag {6}
126
+ $$
127
+
128
+ $\mathcal{L}_n$ supervises the node predictions like $\mathcal{L}_G$ . Differently, to calculate $\mathcal{L}_n$ , low confidence nodes are given more weights so that LGN can focus on hard local information. $\mathcal{L}_g$ supervises the network prediction of garbage classes. To calculate it, output features of the second to the last layer of all nodes predicted as signals are averaged as the graph feature. It passes through a fully connected layer with sigmoid activation to obtain the garbage class prediction score.
129
+
130
+ # 3.4. Discussion
131
+
132
+ In order to unify both global and local scales, an end-to-end "Cooperative Learning" (CL) scheme is designed as shown in Figure 5. For a graph data batch, one CL iteration
133
+
134
+ ![](images/a5a879d1716feebbdfb760517af142c4ba8eca52936729046bc789fc6f944436.jpg)
135
+ Figure 5: The three-step training scheme "Cooperative Learning". The solid line represents forward propagation and the dotted line represents back propagation.
136
+
137
+ includes three learning steps. First, update GGN with $\mathcal{L}_G$ . Then take output features of the second to the last layer of GGN as the input of LGN, and LGN is updated with $\mathcal{L}_L$ . Finally, the gradient of $\mathcal{L}_L$ is multiplied by a scaling factor $\alpha$ to back-propagate to GGN, and GGN is updated again. CL helps the two networks promote each other: In feedforward, LGN can learn local predictions from easy to hard based on the real-time classification results of GGN to help convergence, and in back-propagation, GGN can improve its global predictions with gradients from hard local regions.
138
+
139
+ The intra-class label noise is cleansed, but the label flip noise still exists, i.e., face images in one class may actually belong to the person of another class, or two classes may contain face images of the same person. To solve these problems, we average the features of cleansed images in each class to get its feature center. Two classes whose center distance is less than a threshold are combined into one class. Then we compare features of all discarded images with all centers, and put one image into one class if it has a high similarity with the center of that class. Finally, following Cao et al. [12], we use the VLAD descriptor clustering [6, 27] to remove duplicated images in the dataset.
140
+
141
+ # 4. Experiments
142
+
143
+ # 4.1. Experimental Setup
144
+
145
+ Evaluation Metrics The label noise of data is categorized as outliers, label flips, and garbage classes. In order to evaluate the data cleansing performance, we build a labeled simulation dataset by randomly selecting 2,000 identities for training and 2,000 identities for testing from IMDb-Face [43], which is a manually cleansed face recognition dataset with noise level under $2\%$ . The clustering metrics BCubed precision (P), recall (R) and F1-measure (F) [4] are adapted for the cleansing tasks. Unlike clustering tasks that every sample should be assigned with a specific classification label, outliers in the cleansing task do not belong to any class and should be discarded. So we do not take outliers
146
+
147
+ <table><tr><td>Datasets</td><td># photos</td><td># subjects</td><td>Noisy</td></tr><tr><td>CASIA-WebFace [54]</td><td>0.5M</td><td>10K</td><td>×</td></tr><tr><td>IMDb-Face [43]</td><td>1.7M</td><td>59K</td><td>×</td></tr><tr><td>VGGFace2 [12]</td><td>3.3M</td><td>9K</td><td>×</td></tr><tr><td>MegaFace2 [36]</td><td>4.7M</td><td>672K</td><td>✓</td></tr><tr><td>MS-Celeb-1M [21]</td><td>7.5M</td><td>100K</td><td>✓</td></tr><tr><td>MillionCelebs</td><td>87.0M</td><td>1M</td><td>✓</td></tr><tr><td>- MegaFace2 [36]</td><td>20.0M</td><td>734K</td><td>×</td></tr><tr><td>- FaceGraph</td><td>18.8M</td><td>636K</td><td>×</td></tr></table>
148
+
149
+ Table 1: Training datasets used in our experiments. “√” in the last column means label noise rate $>30\%$ .
150
+
151
+ and samples mistaken as outliers into the iteration of accumulating P and R. Alternatively, signal rate (SR) and the number of images remained in the cleansed dataset (# remained) are calculated to measure the ability to identify and remove outliers. For the real data validation, we evaluate face recognition performance of ResNet [23] models trained on original and cleansed datasets by the Arcface loss [15]. Ten-fold verification sets [12, 17, 26, 35, 40, 55, 56] are used to test face verification accuracy. The MegaFace Challenge 1 [28] evaluates face recognition performance under 1M distractors environment. The IJB benchmarks [34, 46] evaluate template-wise face recognition performance.
152
+
153
+ Implementation Details Table 1 shows face training sets used in our experiments, where “-X” means the dataset is cleansed by method “X”. To guarantee the reliability of graph structures, we obtain 512-dimensional face features from a ResNet100 Arcface model trained with cleansed MS1M, then build 3-NN graphs with self-loop on all nodes. GCNs are designed as 5 layers with 256-dimensional hidden features. The learning rate is 0.001 with weight decay 0.0005 and graph batch size 50. $\alpha$ and $\lambda$ are set 1 and 0.5.
154
+
155
+ # 4.2. Experiments on Simulation Datasets
156
+
157
+ In this section, we add noise to the simulation dataset and re-cleanse it: We gradually replace its images with randomly selected images from the rest of IMDb-Face as outliers, and randomly put images from one identity to another as label flips. Besides, the simulation dataset is always polluted by $10\%$ "garbage class" noise selected from MS1M [21]. Comparative methods include method of Bansel et al. [7], MegaFace2 [36], VGGFace2 [12] and Celeb500k [11]. GCN [29] and GraphSAGE [22] are also trained in the same way as FaceGraph. An ablation study is made with four setups: only GGN, separately trained FaceGraph (GGN + LGN), and CL trained FaceGraph with (CL + MT) or without (CL) multi-task learning. In the absence of multi-task learning, networks are trained to predict all nodes as noise for garbage classes. For a fair comparison, the garbage removal strategy of MegaFace2 [36] is applied
158
+
159
+ <table><tr><td>Cleansing Methods</td><td>F (%)</td><td>SR (%)</td><td># remained</td></tr><tr><td>Noisy</td><td>-</td><td>-</td><td>54436</td></tr><tr><td>Bansel et al. [7]</td><td>83.30</td><td>77.10</td><td>30128</td></tr><tr><td>VGGFace2 [12]</td><td>48.04</td><td>41.43</td><td>35481</td></tr><tr><td>Celeb500k [11]</td><td>73.07</td><td>72.29</td><td>17187</td></tr><tr><td>MegaFace2 [36]</td><td>82.67</td><td>81.67</td><td>26711</td></tr><tr><td>GCN [29]</td><td>85.31</td><td>87.06</td><td>20616</td></tr><tr><td>GraphSAGE [22]</td><td>85.59</td><td>83.26</td><td>26985</td></tr><tr><td>GGN</td><td>89.09</td><td>81.99</td><td>28660</td></tr><tr><td>FaceGraph - GGN+LGN</td><td>89.86</td><td>78.63</td><td>29053</td></tr><tr><td>FaceGraph - CL</td><td>89.47</td><td>81.97</td><td>28729</td></tr><tr><td>FaceGraph - CL+MT</td><td>90.03</td><td>95.59</td><td>24071</td></tr></table>
160
+
161
+ Table 2: F-score, signal rate and the number of remained images of different methods under garbage rate $10\%$ , outlier rate $30\%$ , and label flip rate $30\%$ .
162
+
163
+ ![](images/64a0c3b330907caf6fa41eafc6d3efced18cb616b94242a2298d1004d411e7a1.jpg)
164
+ (a) GGN
165
+ Figure 6: FaceGraph output graph of one class in the test set. The numbers on nodes are the prediction scores of networks (in percentage). Wrongly judged nodes (blue) of GGN are corrected by the second-stage LGN, so all noise (gray) and signals (red) are successfully classified.
166
+
167
+ ![](images/a3da529155d20cf9202dca3bc7bb7ec46542f1c407694100c8d9a2a5eb58332c.jpg)
168
+ (b) GGN + LGN
169
+
170
+ to methods that do not consider garbage classes.
171
+
172
+ In Table 2, we cleanse a dataset with $30\%$ outliers and $30\%$ label flips. It is observed that the GCN-based methods remain stronger discrimination ability while comparable methods lose power in a big noise environment. For FaceGraph, when we separately train two-stage networks, it performs $3.36\%$ worse than a single GGN in signal rate, meaning LGN cannot learn local details efficiently. However, when trained with "CL", FaceGraph maintains the same level signal rate with more images remained than a single GGN, and reaches a higher F at $89.47\%$ . To explore how LGN affects judgment, we visualize the output graph of one class in test sets as in Figure 6. We find that the low confidence nodes, especially wrong nodes, tend to gather together to form some "local regions" that are difficult to deal with. Our algorithm reasonably builds more subgraphs in the difficult regions, so the final judgment of the nodes in these regions can fuse more opinions. It is also observed that the wrong nodes in GGN usually occur in large complicated graphs, while a two-hop range maintains most information for valid graph convolution, so LGNs can focus
173
+
174
+ ![](images/59a50162d232036a2d96cd8d897dc736875e0dc4e9719f7472d7138c31b490e7.jpg)
175
+ (a) F varies with label flip rate
176
+
177
+ ![](images/cc8c8d92ea93cd36337384059725f925303172577c347e20f7a5f382972b151f.jpg)
178
+ (b) F varies with outlier rate
179
+
180
+ ![](images/178629ba6414e38bdff3b73bd21632d42eb1ffdc8712dd0f2b6dc296866be832.jpg)
181
+ Figure 7: Model robustness at different noise levels. The FaceGraph model is stable with the noise rate changing.
182
+ Figure 8: ROC curves and AUCs of recognizing useless images. The FaceGraph models can discard useless images with higher confidence than other GCN-based methods.
183
+
184
+ on the data distribution of local and hard cases by receiving only small subgraphs as input to simplify the prediction.
185
+
186
+ Figure 7 shows cleansing the dataset with gradually contaminated noise. In 7a, we set the outliers at $30\%$ , and vary the label flips from $0\%$ to $60\%$ in steps of $20\%$ ; In 7b, we set the label flips at $30\%$ , and vary the outliers from $0\%$ to $60\%$ in steps of $20\%$ . Celeb500k's model [11] is excluded from comparison because it is trained for specific classes without generalization ability. We find that algorithms have similar performance when the noise rate is low. However, artificial designed methods, especially SVM trained VGGFace2's method [12], drop sharply at high noise rate, while the FaceGraph model is robust to different noise levels.
187
+
188
+ ROC curves in Figure 8 compare the ability to remove useless images (outliers and garbage classes) of GCN-based methods. For calculation convenience, we adjust outliers to $60\%$ and do not add label flips. FaceGraph methods all reach higher AUC than GCN and GraphSAGE, for example, a single GGN model surpasses GCN [29] by $8.9\%$ and GraphSAGE [22] by $1.8\%$ . Except "GGN + LGN", FaceGraph methods have much higher TPR at FPR less than 1e-3, which means that they are more confident to remove obvious outliers and garbages. Under the same circumstance, "CL" outperforms "GGN + LGN" by $1.9\%$ AUC. "CL + MT" achieves the highest F $(90.03\%)$ , SR $(95.59\%)$ and
189
+
190
+ <table><tr><td>Training Datasets</td><td>LFW</td><td>CFP-FP</td><td>AgeDB</td><td>CALFW</td><td>CPLFW</td><td>SLLFW</td><td>VGG2-FP</td><td>Average</td></tr><tr><td>CASIA [54]</td><td>99.38</td><td>95.19</td><td>94.55</td><td>92.28</td><td>85.90</td><td>98.17</td><td>93.38</td><td>94.12</td></tr><tr><td>-Cleansed by [3]</td><td>99.30</td><td>95.01</td><td>94.45</td><td>92.15</td><td>86.22</td><td>97.93</td><td>93.18</td><td>94.03</td></tr><tr><td>-FaceGraph</td><td>99.42</td><td>95.19</td><td>94.65</td><td>92.55</td><td>86.43</td><td>97.88</td><td>93.78</td><td>94.27</td></tr><tr><td>VGGFace2 [12]</td><td>99.58</td><td>96.93</td><td>95.73</td><td>93.63</td><td>92.07</td><td>98.87</td><td>95.80</td><td>96.08</td></tr><tr><td>-FaceGraph</td><td>99.62</td><td>97.03</td><td>95.98</td><td>93.53</td><td>92.13</td><td>98.88</td><td>96.04</td><td>96.17</td></tr><tr><td>MegaFace2 [36]</td><td>99.57</td><td>91.67</td><td>89.40</td><td>89.82</td><td>83.52</td><td>98.13</td><td>91.98</td><td>92.01</td></tr><tr><td>-FaceGraph</td><td>99.58</td><td>92.93</td><td>89.80</td><td>89.15</td><td>84.92</td><td>98.32</td><td>92.46</td><td>92.45</td></tr><tr><td>MS1M [21]</td><td>99.60</td><td>94.16</td><td>96.40</td><td>93.06</td><td>86.83</td><td>98.98</td><td>93.70</td><td>94.67</td></tr><tr><td>-IBUG [16]</td><td>99.80</td><td>92.76</td><td>97.70</td><td>95.35</td><td>87.45</td><td>99.48</td><td>93.04</td><td>95.08</td></tr><tr><td>-DeepGlint [1]</td><td>99.80</td><td>93.66</td><td>97.82</td><td>95.63</td><td>88.75</td><td>99.43</td><td>92.16</td><td>95.32</td></tr><tr><td>-FaceGraph</td><td>99.80</td><td>96.90</td><td>97.92</td><td>95.67</td><td>92.27</td><td>99.50</td><td>95.42</td><td>96.78</td></tr></table>
191
+
192
+ Table 3: Cleansse 4 face recognition datasets and train deep models by Arcface [15] to test face verification accuracy $(\%)$ FaceGraph cleansed versions surpass others on at least 6 out of 7 verification sets, and always enhance the average accuracy.
193
+
194
+ ![](images/8161f1671181d2bd61276a2b7af086ca0c05ae61606cc38648028a3c5f434097.jpg)
195
+
196
+ ![](images/9b4f1fa750fc864e5c5372da890db74d65a028f85ab0f800e291d429578099a7.jpg)
197
+ (c) Before cleansing
198
+
199
+ ![](images/629d2cface9b301c34fcddd01b80f001f5bd05d1e239e8042f666b6ff10e187f.jpg)
200
+
201
+ ![](images/f5eea1a3cd1796bfeb4d97c6b09570146a02297afff159cdb0c454a81183b750.jpg)
202
+ (d) After cleansing
203
+ Figure 9: Visualization of cleansing randomly selected 8 classes from MS1M. (a)(b) t-SNE [31] data distribution; (c)(d) Histogram of pairwise cosine similarity in one class.
204
+
205
+ AUC $(97.7\%)$ while keeping the number of remained images moderate, showing that multi-task learning not only helps to recognize garbage classes but also helps to cleanse outliers and label flips, because the model can better distinguish the difference between different types of noise.
206
+
207
+ # 4.3. Experiments on Existing Datasets
208
+
209
+ A noise-free dataset can significantly enhance the face recognition performance [7, 20, 43], but existing face recognition datasets mostly suffer from label noise problem [43]. In this section, four widely used face datasets are cleansed by the "FaceGraph - CL+MT" model. Considering the data size, CASIA [54] is trained with ResNet34 [23], while others are trained with ResNet50 [23]. Identities that contain less than 8 images in the MegaFace2 dataset [36] are deleted because too many identities with a small number of images can affect its convergence. Table 3 compares face verifi
210
+
211
+ cation performances of the original and cleansed datasets. With a smaller amount of data, FaceGraph achieves the highest average accuracy for all datasets and performs better on at least 6 out of 7 test sets. For a dataset with big noise like MS1M [21], FaceGraph gets significant improvement on all test sets and enhances the average recognition accuracy by $2.11\%$ . On the cross-pose and cross-age tests, MS1M-FaceGraph outperforms MS1M by $2.61\%$ on CALFW [56] and $5.44\%$ on CPLFW [55], showing that FaceGraph can master large pose and age gap cases, reserving variations of the same person. Therefore, FaceGraph makes a good trade-off between cleanliness and diversity.
212
+
213
+ Randomly selecting 8 classes from MS1M [21], Figure 9 visualizes the feature space distribution using t-SNE [31] embeddings and the histogram of intra-class pairwise similarity of images before and after cleansing. In Figure 9a9b, every class is represented by one color. The original data distribution is very scattered. After cleansing, most scattered samples in one class are discarded, leaving one group that can gather together. In Figure 9c9d, there are two main peaks in the histogram before cleansing, which are at similarity 0.0 and 0.5. The former is obviously caused by the label noise. After cleansing, the peak at 0.0 disappears, meaning that the noise is removed successfully. Moreover, FaceGraph does not eliminate all low-similarity pairs. There are still a few pairs around 0.0 to reserve face variation.
214
+
215
+ # 4.4. Experiments on Large-Scale Cleansing
216
+
217
+ MillionCelebs A large-scale face recognition training set, namely MillionCelebs, is collected according to a celebrity name list released by Guo et al. [21]. We download 50-100 images for each celebrity from the Internet Image Search Engine, detect faces with MTCNN [50], then align and crop the images to $112 \times 112$ face warps. In this way, we get 87.0M face images of 1M identities. FaceGraph is used to cleanse these images, then we carefully remove
218
+
219
+ ![](images/f5f127f32a6e2ea93f7842d04c328230f777a918e748704bc51ef5c8fa2e7bbf.jpg)
220
+ Figure 10: Demography statistics of MC-FaceGraph.
221
+
222
+ ![](images/a00014ef514a6fc1fd28a1d6d853186c039003b63f79bc178c86aa16c7ba18c5.jpg)
223
+
224
+ ![](images/aa0307e19e7ed8775bcda7e4bd601deaf181dd4eb868271b5691d004bc2200cd.jpg)
225
+
226
+ identities overlapping with LFW [26], FaceScrub [37] and IJB [34, 46]. Finally, we obtain a cleansed version with 18.8M faces of 636.2k identities, namely MC-FaceGraph. Figure 10 shows demography statistics of MC-FaceGraph extracted from Freebase [2]. It has a great variety in the distribution of human ethnicity and age. Most importantly, it is a large-scale dataset with very high cleanliness, which can significantly improve the face recognition performance.
227
+
228
+ To verify the value of FaceGraph in large-scale applications, a ResNet100 [23] face recognition model is trained with MC-FaceGraph. Training with initial SGD learning rate 0.1, weight decay 0.0005 and batch size 720, we decrease the learning rate by 0.1 at the 366,000th, 498,000th, 638,000th iterations, and stop at the 748,000th iteration. Comparable models are trained under the same environment with different training sets. For a fair comparison, the cleansing method of MegaFace2 [36] is also applied to cleanse MillionCelebs, noted as "MC-MegaFace2" [36].
229
+
230
+ MegaFace MegaFace Challenge 1 [28] is a large-scale face recognition challenge that tests the model performance under one million distractors. It measures TPR at 1e-6 FPR for verification and Rank-1 retrieval performance for identification. In Table 4, adopting FaceScrub [37] as probe set and using the wash list provided by DeepInsight [15], the results of two MillionCelebs cleansed versions do not differ a lot, but they all outperform other training datasets by a large margin. For instance, the identification accuracy of MC-FaceGraph is $0.67\%$ higher than MS1M-V2 [15] to reach $99.02\%$ . It nearly saturates the MegaFace Challenge on both identification and verification protocols.
231
+
232
+ IJB The IJB-B [46] and IJB-C [34] benchmarks test template-wise face recognition performance. The verification TPR at 1e-5 FPR and identification Rank-1 are reported in Table 5. MC-FaceGraph trained model surpasses all candidates by a large margin. Figure 11 compares ROC curves of listed methods. Two MillionCelebs versions have the same level performance at higher FPR. However, verification accuracy of the MC-MegaFace2 [36] drops sharply at 1e-4 FPR, and becomes worse than many small-scale datasets at 1e-5 FPR. This shows that a large number of identities and images do not necessarily mean an increase in face recognition performance. If there are strict requirements for identifying negative pairs, it is essential to train with a dataset of great cleanliness to learn detailed features.
233
+
234
+ <table><tr><td>Training Datasets</td><td>Ver.(%)</td><td>Id.(%)</td></tr><tr><td>CASIA [54]</td><td>97.11</td><td>92.93</td></tr><tr><td>Asian [1]</td><td>94.90</td><td>91.21</td></tr><tr><td>IMDb-Face [43]</td><td>97.87</td><td>96.26</td></tr><tr><td>VGGFace2 [12]</td><td>98.00</td><td>95.54</td></tr><tr><td>MS1M-IBUG [16]</td><td>98.25</td><td>97.53</td></tr><tr><td>MS1M-V2 [15]</td><td>98.48</td><td>98.35</td></tr><tr><td>MC - MegaFace2 [36]</td><td>98.97</td><td>98.96</td></tr><tr><td>MC - FaceGraph</td><td>98.94</td><td>99.02</td></tr></table>
235
+
236
+ Table 4: Verification TPR (@FPR=1e-6) and identification Rank-1 on the MegaFace Challenge 1 [28]. "MC-X" means MillionCelebs cleansed by method "X".
237
+
238
+ <table><tr><td rowspan="2">Training Datasets</td><td colspan="2">IJB-B</td><td colspan="2">IJB-C</td></tr><tr><td>Ver.(%)</td><td>Id.(%)</td><td>Ver.(%)</td><td>Id.(%)</td></tr><tr><td>CASIA [54]</td><td>62.42</td><td>86.70</td><td>69.61</td><td>88.05</td></tr><tr><td>Asian [1]</td><td>79.12</td><td>91.29</td><td>82.64</td><td>92.26</td></tr><tr><td>IMDb-Face [43]</td><td>64.87</td><td>93.41</td><td>66.85</td><td>94.52</td></tr><tr><td>VGGFace2 [12]</td><td>41.64</td><td>93.20</td><td>59.33</td><td>94.44</td></tr><tr><td>MS1M-IBUG [16]</td><td>80.27</td><td>92.19</td><td>88.16</td><td>93.54</td></tr><tr><td>MS1M-V2 [15]</td><td>89.33</td><td>94.50</td><td>93.15</td><td>95.72</td></tr><tr><td>MC - MegaFace2 [36]</td><td>62.67</td><td>95.04</td><td>76.29</td><td>96.10</td></tr><tr><td>MC - FaceGraph</td><td>92.82</td><td>95.76</td><td>95.62</td><td>96.93</td></tr></table>
239
+
240
+ Table 5: Verification TPR (@FPR=1e-5) and identification Rank-1 on the IJB-B [46] and IJB-C [34] benchmarks.
241
+
242
+ ![](images/9f246f9e1cc84fbb6c53d68dc3f3104e10b14cdf28a429648ddb74dedbd8d418.jpg)
243
+ (a) IJB-B
244
+
245
+ ![](images/ceb2e19018775f913f41c3cf8a9c65513bc1de132e0624667df37c6aa05d25f2.jpg)
246
+ (b) IJB-C
247
+ Figure 11: Verification ROC curves on IJB-B and IJB-C. MC-FaceGraph keeps good performance at very strict FPR.
248
+
249
+ # 5. Conclusion
250
+
251
+ In this paper, we propose a novel label noise cleansing method FaceGraph and build a large-scale face recognition dataset MillionCelebs. In the experiments, FaceGraph provides high-quality cleansing results, surpassing existing methods in the ability to find and reject label noise. The MillionCelebs dataset cleansed by FaceGraph also achieves remarkable performance on many benchmarks.
252
+
253
+ Acknowledgments This work was supported by Canon Information Technology (Beijing) Co., Ltd. under Grant No. OLA19023.
254
+
255
+ # References
256
+
257
+ [1] Challenge 3: Face feature test/trillion pairs. trillionpairs deepglint.com.
258
+ [2] Freebase data dump. www.freebase.com.
259
+ [3] Github: happynear/faceverification. http://github.com/happynear/FaceVerification/.
260
+ [4] Enrique Amigó, Julio Gonzalo, Javier Artiles, and Felisa Verdejo. A comparison of extrinsic clustering evaluation metrics based on formal constraints. Information retrieval, 12(4):461-486, 2009.
261
+ [5] Anelia Angelova, Yaser Abu-Mostafam, and Pietro Perona. Pruning training sets for learning of object categories. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), volume 1, pages 494-501. IEEE, 2005.
262
+ [6] Relja Arandjelovic and Andrew Zisserman. All about vlad. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 1578-1585, 2013.
263
+ [7] Ankan Bansal, Carlos Castillo, Rajeev Ranjan, and Rama Chellappa. The do's and don'ts for cnn-based face verification. In Proceedings of the IEEE International Conference on Computer Vision, pages 2545-2554, 2017.
264
+ [8] Ankan Bansal, Anirudh Nanduri, Carlos D Castillo, Rajeev Ranjan, and Rama Chellappa. Umdfaces: An annotated face dataset for training deep networks. In 2017 IEEE International Joint Conference on Biometrics (IJCB), pages 464-473. IEEE, 2017.
265
+ [9] Carla E Brodley and Mark A Friedl. Identifying mislabeled training data. Journal of artificial intelligence research, 11:131-167, 1999.
266
+ [10] Carla E Brodley, Mark A Friedl, et al. Identifying and eliminating mislabeled training instances. In Proceedings of the National Conference on Artificial Intelligence, pages 799-805, 1996.
267
+ [11] Jiajiong Cao, Yingming Li, and Zhongfei Zhang. Celeb-500k: A large training dataset for face recognition. In 2018 25th IEEE International Conference on Image Processing (ICIP), pages 2406–2410. IEEE, 2018.
268
+ [12] Qiong Cao, Li Shen, Weidi Xie, Omkar M Parkhi, and Andrew Zisserman. Vggface2: A dataset for recognising faces across pose and age. In Automatic Face &amp; Gesture Recognition (FG 2018), 2018 13th IEEE International Conference on, pages 67-74. IEEE, 2018.
269
+ [13] Zhengdao Chen, Xiang Li, and Joan Bruna. Supervised community detection with line graph neural networks. arXiv preprint arXiv:1705.08415, 2017.
270
+ [14] Sarah Jane Delany, Nicola Segata, and Brian Mac Namee. Profiling instances in noise reduction. Knowledge-Based Systems, 31:28-40, 2012.
271
+ [15] 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.
272
+ [16] Jiankang Deng, Yuxiang Zhou, and Stefanos Zafeiriou. Marginal loss for deep face recognition. In Proceedings
273
+
274
+ of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 60-68, 2017.
275
+ [17] Weihong Deng, Jiani Hu, Nanhai Zhang, Binghui Chen, and Jun Guo. Fine-grained face verification: Fglfw database, baselines, and human-dcmn partnership. Pattern Recognition, 66:63-73, 2017.
276
+ [18] Weiwei Du and Kiichi Urahama. Error-correcting semi-supervised learning with mode-filter on graphs. In 2009 IEEE 12th International Conference on Computer Vision Workshops, ICCV Workshops, pages 2095-2100. IEEE, 2009.
277
+ [19] Weiwei Du and Kiichi Urahama. Error-correcting semi-supervised pattern recognition with mode filter on graphs. In 2010 2nd International Symposium on Aware Computing, pages 6-11. IEEE, 2010.
278
+ [20] Benoit Frénay and Michel Verleysen. Classification in the presence of label noise: a survey. IEEE transactions on neural networks and learning systems, 25(5):845-869, 2013.
279
+ [21] 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.
280
+ [22] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, pages 1024-1034, 2017.
281
+ [23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
282
+ [24] Mauricio A Hernández and Salvatore J Stolfo. Real-world data is dirty: Data cleansing and the merge/purge problem. Data mining and knowledge discovery, 2(1):9-37, 1998.
283
+ [25] Ray J Hickey. Noise modelling and evaluating learning from examples. Artificial Intelligence, 82(1-2):157-179, 1996.
284
+ [26] 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. In Workshop on faces in 'Real-Life' Images: detection, alignment, and recognition, 2008.
285
+ [27] Herve Jegou, Florent Perronnin, Matthijs Douze, Jorge Sánchez, Patrick Perez, and Cordelia Schmid. Aggregating local image descriptors into compact codes. IEEE transactions on pattern analysis and machine intelligence, 34(9):1704-1716, 2011.
286
+ [28] 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.
287
+ [29] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
288
+ [30] Stéphane Lallich, Fabrice Muhlenbach, and Djamel A Zighed. Improving classification by removing or relabeling mislabeled instances. In International Symposium on Methodologies for Intelligent Systems, pages 5-15. Springer, 2002.
289
+
290
+ [31] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579-2605, 2008.
291
+ [32] Jonathan I Maletic and Andrian Marcus. Data cleansing: Beyond integrity analysis. In $Iq$ , pages 200–209. CiteSeer, 2000.
292
+ [33] Diego Marcheggiani and Ivan Titov. Encoding sentences with graph convolutional networks for semantic role labeling. arXiv preprint arXiv:1703.04826, 2017.
293
+ [34] 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.
294
+ [35] Stylianos Moschoglou, Athanasios Papaioannou, Christos Sagonas, Jiankang Deng, Irene Kotsia, and Stefanos Zafeiriou. Agedb: The first manually collected, in-the-wild age database. In Computer Vision and Pattern Recognition Workshops, pages 1997-2005, 2017.
295
+ [36] Aaron Nech and Ira Kemelmacher-Shlizerman. Level playing field for million scale face recognition. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3406-3415. IEEE, 2017.
296
+ [37] 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.
297
+ [38] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, et al. Deep face recognition. In bmvc, volume 1, page 6, 2015.
298
+ [39] P Jonathon Phillips, Amy N Yates, Ying Hu, Carina A Hahn, Eilidh Noyes, Kelsey Jackson, Jacqueline G Cava-zos, Geraldine Jeckeln, Rajeev Ranjan, Swami Sankaranarayanan, et al. Face recognition accuracy of forensic examiners, superrecognizers, and face recognition algorithms. Proceedings of the National Academy of Sciences, 115(24):6171-6176, 2018.
299
+ [40] C.D. Castillo V.M. Patel R. Chellappa D.W. Jacobs S. Sen Gupta, J.C. Cheng. Frontal to profile face verification in the wild. In IEEE Conference on Applications of Computer Vision, February 2016.
300
+ [41] 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.
301
+ [42] Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
302
+ [43] Fei Wang, Liren Chen, Cheng Li, Shiyao Huang, Yanjie Chen, Chen Qian, and Chen Change Loy. The devil of face recognition is in the noise. In European Conference on Computer Vision, pages 780-795. Springer, 2018.
303
+ [44] Mei Wang and Weihong Deng. Deep face recognition: A survey. arXiv preprint arXiv:1804.06655, 2018.
304
+ [45] Zhongdao Wang, Liang Zheng, Yali Li, and Shengjin Wang. Linkage based face clustering via graph convolution network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1117-1125, 2019.
305
+
306
+ [46] Cameron Whitelam, Emma Taborsky, Austin Blanton, Brianna Maze, Jocelyn Adams, Tim Miller, Nathan Kalka, Anil K Jain, James A Duncan, Kristen Allen, et al. Iarpa janus benchmark-b face dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 90-98, 2017.
307
+ [47] D Randall Wilson and Tony R Martinez. Instance pruning techniques. In ICML, volume 97, pages 400-411, 1997.
308
+ [48] Xiang Wu, Ran He, Zhenan Sun, and Tieniu Tan. A light cnn for deep face representation with noisy labels. IEEE Transactions on Information Forensics and Security, 13(11):2884-2896, 2018.
309
+ [49] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S Yu. A comprehensive survey on graph neural networks. arXiv preprint arXiv:1901.00596, 2019.
310
+ [50] Jia Xiang and Gengming Zhu. Joint face detection and facial expression recognition with mtcnn. In Information Science and Control Engineering (ICISCE), 2017 4th International Conference on, pages 424-427. IEEE, 2017.
311
+ [51] Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In Thirty-second AAAI conference on artificial intelligence, 2018.
312
+ [52] Lei Yang, Xiaohang Zhan, Dapeng Chen, Junjie Yan, Chen Change Loy, and Dahua Lin. Learning to cluster faces on an affinity graph. pages 2298-2306, 2019.
313
+ [53] Liang Yao, Chengsheng Mao, and Yuan Luo. Graph convolutional networks for text classification. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 7370-7377, 2019.
314
+ [54] Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z Li. Learning face representation from scratch. arXiv preprint arXiv:1411.7923, 2014.
315
+ [55] T. Zheng and W. Deng. Cross-posed lfw: A database for studying cross-posed face recognition in unconstrained environments. Technical Report 18-01, Beijing University of Posts and Telecommunications, February 2018.
316
+ [56] Tianyue Zheng, Weihong Deng, and Jiani Hu. Cross-age LFW: A database for studying cross-age face recognition in unconstrained environments. CoRR, abs/1708.08197, 2017.
317
+ [57] Jia-Xing Zhong, Nannan Li, Weijie Kong, Shan Liu, Thomas H Li, and Ge Li. Graph convolutional label noise cleaner: Train a plug-and-play action classifier for anomaly detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1237-1246, 2019.
318
+ [58] Yaoyao Zhong, Weihong Deng, Mei Wang, Jiani Hu, Jianteng Peng, Xunqiang Tao, and Yaohai Huang. Unequaltraining for deep face recognition with long-tailed noisy data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7812-7821, 2019.
319
+ [59] Zhun Zhong, Liang Zheng, Zhiming Luo, Shaozi Li, and Yi Yang. Learning to adapt invariance in memory for person re-identification. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
globallocalgcnlargescalelabelnoisecleansingforfacerecognition/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:235a7fe755ef9f5a62999427626a551d33c2c50defdfbdabc888677d4cf6f8be
3
+ size 631444
globallocalgcnlargescalelabelnoisecleansingforfacerecognition/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7ab2e40d29095668f32cae8e506c0064af866f22bb066e8e2f71e5c62c2006d
3
+ size 422244
globallyoptimalcontrastmaximisationforeventbasedmotionestimation/32a720c6-93ff-4f45-beaf-f5ea8452f3b6_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d68ae1ac29ff5c7a616402253f6ecbea40a88bbaea905c623f903411ccb2fbb6
3
+ size 96050
globallyoptimalcontrastmaximisationforeventbasedmotionestimation/32a720c6-93ff-4f45-beaf-f5ea8452f3b6_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:537932cbecb1f351f4cf12bc74655bd4e075a3a106295851654edd4629e7a2ed
3
+ size 116379
globallyoptimalcontrastmaximisationforeventbasedmotionestimation/32a720c6-93ff-4f45-beaf-f5ea8452f3b6_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:042f9c92b987a953f89b52a27d05d9de5814970e9935b2bef22b750763ef7ca6
3
+ size 1694491
globallyoptimalcontrastmaximisationforeventbasedmotionestimation/full.md ADDED
@@ -0,0 +1,626 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Globally Optimal Contrast Maximisation for Event-based Motion Estimation
2
+
3
+ Daqi Liu Álvaro Parra Tat-Jun Chin
4
+
5
+ School of Computer Science, The University of Adelaide
6
+
7
+ {daqi.liu, alvaro.parrabustos, tat-jun.chin}@adelaide.edu.au
8
+
9
+ # Abstract
10
+
11
+ Contrast maximisation estimates the motion captured in an event stream by maximising the sharpness of the motion-compensated event image. To carry out contrast maximisation, many previous works employ iterative optimisation algorithms, such as conjugate gradient, which require good initialisation to avoid converging to bad local minima. To alleviate this weakness, we propose a new globally optimal event-based motion estimation algorithm. Based on branch-and-bound (BnB), our method solves rotational (3DoF) motion estimation on event streams, which supports practical applications such as video stabilisation and attitude estimation. Underpinning our method are novel bounding functions for contrast maximisation, whose theoretical validity is rigorously established. We show concrete examples from public datasets where globally optimal solutions are vital to the success of contrast maximisation. Despite its exact nature, our algorithm is currently able to process a 50,000-event input in $\approx 300$ seconds (a locally optimal solver takes $\approx 30$ seconds on the same input). The potential for GPU acceleration will also be discussed.
12
+
13
+ # 1. Introduction
14
+
15
+ By asynchronously detecting brightness changes, event cameras offer a fundamentally different way to detect and characterise physical motion. Currently, active research is being conducted to employ event cameras in many areas, such as robotics/UAVs [9, 21], autonomous driving[22, 31, 32], and spacecraft navigation [7, 8]. While the utility of event cameras extends beyond motion perception, e.g., object recognition and tracking [26, 28], the focus of our work is on estimating visual motion using event cameras.
16
+
17
+ Due to the different nature of the data, new approaches are required to extract motion from event streams. A recent successful framework is contrast maximisation (CM) [13]. Given an event stream, CM aims to find the motion parameters that yield the sharpest motion-compensated event image; see Fig. 1. Intuitively, the correct motion parameters will align corresponding events, thereby producing an im
18
+
19
+ ![](images/0133fe322f99e2e2b8feae7e24e27f1b2f2d72406857535c51e4b42d2a73bc86.jpg)
20
+ (a) Event stream (w/o polarity).
21
+
22
+ ![](images/fb0c83573c5a6c6e84f106225e093bd5894f0f636ad68d85ccbc1c7bebc22d39.jpg)
23
+ (b) Contrast $= 0.9993$ (identity).
24
+
25
+ ![](images/bb7bae18e2457a13dffb7f0ed251dfb41f4a1095e0490ff218b9322d287c791e.jpg)
26
+ (c) Contrast $= 1.0103$ (local).
27
+
28
+ ![](images/d4e8ad37d1d64e43f3a32c545d17125efd4a913876588898eab78d58408f47de.jpg)
29
+ (d) Contrast $= 1.9748$ (global).
30
+ Figure 1. (a) $10\mathrm{ms}$ event stream under rotational motion [14]. Since event polarity is not used in our work, the events are plotted in the same colour. (b) Event image without motion compensation (identity transformation). (c)(d) Event images produced with locally and globally optimal contrast maximisation.
31
+
32
+ age with high contrast. We formally define CM below.
33
+
34
+ Event image Let $\mathcal{E} = \{e_i\}_i^N$ be an event stream recorded over time duration $\mathcal{T} = [0,t_{\mathrm{max}}]$ . Each event $e_i = (\mathbf{u}_i,t_i,p_i)$ contains an image position $\mathbf{u}_i$ , time stamp $t_i \in \mathcal{T}$ , and polarity $p_i \in \{-1, + 1\}$ . We assume $\mathcal{E}$ was produced under camera motion $\mathcal{M}$ over a 3D scene, thus each $e_i$ is associated with a scene point that triggered the event.
35
+
36
+ We parameterise $\mathcal{M}$ by a vector $\omega \in \Omega$ , and let $X = \{\mathbf{x}_j\}_{j=1}^P$ be the centre coordinates of the pixels in the image plane of the event sensor. Under CM, the event image $H_c$ is defined as a function of $\omega$ , and the intensity at pixel $\mathbf{x}_j$ is
37
+
38
+ $$
39
+ H _ {c} \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) = \sum_ {i = 1} ^ {N} \delta \left(\mathbf {x} _ {j} - f \left(\mathbf {u} _ {i}, t _ {i}; \boldsymbol {\omega}\right)\right), \tag {1}
40
+ $$
41
+
42
+ where $\delta$ is a kernel function (e.g., Gaussian). Following [13, Sec. 2.1], we do not use event polarities in (1). $H_{c}$
43
+
44
+ is regarded to be captured at time 0, and the function
45
+
46
+ $$
47
+ \mathbf {u} _ {i} ^ {\prime} = f \left(\mathbf {u} _ {i}, t _ {i}; \omega\right) \tag {2}
48
+ $$
49
+
50
+ warps $\mathbf{u}_i$ to $\mathbf{u}_i'$ in $H_c$ by "undoing" the motion $\mathcal{M}$ between time 0 and $t_i$ . Intuitively, $\mathbf{u}_i'$ is the image position of the 3D scene point that triggered $e_i$ , if it was observed at time 0.
51
+
52
+ In practice, the region of support of the kernel $\delta$ in (1) is small w.r.t. image dimensions, e.g., Gaussian kernels with bandwidth $\sigma = 1$ pixel were used in [13, Sec. 2]. This motivates the usage of "discrete" event images
53
+
54
+ $$
55
+ H _ {d} \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) = \sum_ {i = 1} ^ {N} \mathbb {I} \left(f \left(\mathbf {u} _ {i}, t _ {i}; \boldsymbol {\omega}\right) \text {l i e s i n p i x e l} \mathbf {x} _ {j}\right), \tag {3}
56
+ $$
57
+
58
+ where $\mathbb{I}$ returns 1 if the input predicate is true, and 0 otherwise. As we will show later, conducting CM using $H_{c}$ (with small bandwidth) and $H_{d}$ yields almost identical results.
59
+
60
+ Contrast maximisation The contrast of an event image $H$ (continuous or discrete) is the variance of its pixel values. Since $H$ depends on $\omega$ , the contrast is also a function of $\omega$
61
+
62
+ $$
63
+ C (\boldsymbol {\omega}) = \frac {1}{P} \sum_ {j = 1} ^ {P} \left(H \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) - \mu (\boldsymbol {\omega})\right) ^ {2}, \tag {4}
64
+ $$
65
+
66
+ where $\mu (\omega)$ is the mean intensity
67
+
68
+ $$
69
+ \mu (\boldsymbol {\omega}) = \frac {1}{P} \sum_ {j = 1} ^ {P} H \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right). \tag {5}
70
+ $$
71
+
72
+ CM [13] estimates $\mathcal{M}$ by maximising the contrast of $H$ , i.e.,
73
+
74
+ $$
75
+ \max _ {\boldsymbol {\omega} \in \Omega} C (\boldsymbol {\omega}). \tag {6}
76
+ $$
77
+
78
+ The intuition is that the correct $\omega$ will allow $\mathcal{M}$ to align events that correspond to the same scene points in $H$ , thus leading to a sharp or high-contrast event image; see Fig. 1.
79
+
80
+ Global versus local solutions By globally optimal (or "global") solution to CM (6), we mean $\omega^{*} \in \Omega$ such that
81
+
82
+ $$
83
+ C \left(\boldsymbol {\omega} ^ {*}\right) \geq C (\boldsymbol {\omega}) \forall \boldsymbol {\omega} \in \Omega . \tag {7}
84
+ $$
85
+
86
+ A solution $\hat{\omega}$ is approximate if $C(\hat{\omega}) < C(\omega^{*})$ . Also, a solution is locally optimal (or "local") if it is the maximiser of its neighbourhood [24, Chap. 2]. All global solutions are locally optimal, but the converse is not true.
87
+
88
+ # 1.1. Previous works
89
+
90
+ Previous works on CM (e.g., [11, 13, 28, 29]) apply nonlinear optimisation (e.g., conjugate gradient) to solve (6). Given an initial solution $\omega^{(0)}$ , the solution is successively updated until convergence to a locally optimal solution. In practice, if the local solution is a bad approximate solution,
91
+
92
+ there can be significant differences in its quality compared to the global solution; see Fig. 1. This can occur when $\omega^{(0)}$ is too distant from good solutions, or $C(\omega)$ is too nonconcave (e.g., when $\delta$ has a very small bandwidth). Thus, algorithms that can find $\omega^*$ are desirable.
93
+
94
+ Recent improvements to CM include modifying the objective function to better suit the targeted settings [11, 29]. However, the optimisation work horse remains locally optimal methods. Other frameworks for event processing [6, 7, 12, 18, 19, 20] conduct filtering, Hough transform, or specialised optimisation schemes; these are generally less flexible than CM [13]. There is also active research in applying deep learning to event data [27, 33, 35, 36], which require a separate training phase on large datasets.
95
+
96
+ Contributions We focus on estimating rotational motion from events, which is useful for several applications, e.g., video stabilisation [14] and attitude estimation [8].
97
+
98
+ Specifically, we propose a BnB method for globally optimal CM for rotation estimation. Unlike previous CM techniques, our algorithm does not require external initialisations $\omega^{(0)}$ , and can guarantee finding the global solution $\omega^{*}$ to (6). Our core contributions are novel bounding functions for CM, whose theoretical validity are established. As we will show in Sec. 4, while local methods generally produce acceptable results [13, 14], they often fail during periods with fast rotational motions. On the other hand, our global method always returns accurate results.
99
+
100
+ # 2. Rotation estimation from events
101
+
102
+ If duration $\mathcal{T}$ is small (e.g., $t_{\mathrm{max}} = 10ms$ ), a fixed axis of rotation and constant angular velocity can be assumed for $\mathcal{M}$ [13]. Following [13, Sec. 3], $\mathcal{M}$ can be parametrised as a 3-vector $\omega$ , where the direction of $\omega$ is the axis of rotation, and the length $\| \omega \|_2$ of $\omega$ is the angular rate of change. Between time 0 and $t$ , the rotation undergone is
103
+
104
+ $$
105
+ \mathbf {R} (t; \omega) = \exp ([ \omega t ] _ {\times}), \tag {8}
106
+ $$
107
+
108
+ where $\omega t$ is the axis-angle representation of the rotation, $[\omega t]_{\times}$ is the skew symmetric form of $\omega t$ , and $\exp$ is the exponential map (see [1] for details).
109
+
110
+ Let $\mathbf{K}$ be the $3\times 3$ intrinsic matrix of the event camera $(\mathbf{K}$ is known after calibration [2, 34]). The warp (2) is thus
111
+
112
+ $$
113
+ f \left(\mathbf {u} _ {i}, t _ {i}; \omega\right) = \frac {\mathbf {K} ^ {(1 : 2)} \mathbf {R} \left(t _ {i} ; \omega\right) \tilde {\mathbf {u}} _ {i}}{\mathbf {K} ^ {(3)} \mathbf {R} \left(t _ {i} ; \omega\right) \tilde {\mathbf {u}} _ {i}}, \tag {9}
114
+ $$
115
+
116
+ where $\tilde{\mathbf{u}}_i = [\mathbf{u}_i^T 1]^T$ is the homogeneous version of $\mathbf{u}_i$ , and $\mathbf{K}^{(1:2)}$ and $\mathbf{K}^{(3)}$ are respectively the first-two rows and third row of $\mathbf{K}$ . Intuitively, (9) rotates the ray that passes through $\mathbf{u}_i$ using $\mathbf{R}(t_i; \boldsymbol{\omega})$ , then projects the rotated ray onto $H$ .
117
+
118
+ Following [13, Sec. 3], we also assume a known maximum angular rate $r_{\mathrm{max}}$ . The domain is thus an $r_{\mathrm{max}}$ -ball
119
+
120
+ $$
121
+ \Omega = \left\{\omega \in \mathbb {R} ^ {3} \mid \| \omega \| _ {2} \leq r _ {\max } \right\}, \tag {10}
122
+ $$
123
+
124
+ and our problem reduces to maximising $C(\omega)$ over this ball, based on the rotational motion model (9).
125
+
126
+ # 2.1. Main algorithm
127
+
128
+ Algorithm 1 summarises our BnB algorithm to achieve globally optimal CM for rotation estimation. Starting from the tightest bounding cube $\mathbb{B}$ on the $r_{\mathrm{max}}$ -ball $\Omega$ (the initial $\mathbb{B}$ is thus of size $(2r_{\mathrm{max}})^3$ ), the algorithm recursively subdivides $\mathbb{B}$ and prunes the subcubes until the global solution is found. A lower bound $\underline{C}$ and upper bound $\overline{C}(\mathbb{B})$ are used to prune each $\mathbb{B}$ . When the difference between the bounds is smaller than $\tau$ , the algorithm terminates with $\hat{\omega}$ being the global solution $\omega^*$ (up to error $\tau$ , which can be chosen to be arbitrarily small). See [15, 16] for details of BnB.
129
+
130
+ As alluded to above, our core contributions are novel and effective bounding functions for CM using BnB. We describe our bounding functions in the next section.
131
+
132
+ Algorithm 1 BnB for rotation estimation from events.
133
+ Require: Event stream $\mathcal{E} = \{e_i\}_{i=1}^N$ , maximum angular rate of change $r_{\mathrm{max}}$ , convergence threshold $\tau$ .
134
+ 1: $q \gets$ Initialise priority queue.
135
+ 2: $\mathbb{B} \gets$ Cube in $\mathbb{R}^3$ of size $(2r_{\mathrm{max}})^3$ centred at origin.
136
+ 3: $\omega_c \gets$ Centre of $\mathbb{B}$ .
137
+ 4: $\hat{\omega} \gets \omega_c$ .
138
+ 5: Insert $\mathbb{B}$ into $q$ with priority $\overline{C}(\mathbb{B})$ .
139
+ 6: while $q$ is not empty do
140
+ 7: $\mathbb{B} \gets$ Dequeue top item from $q$ .
141
+ 8: If $\overline{C}(\mathbb{B}) - C(\hat{\omega}) \leq \tau$ , then terminate.
142
+ 9: $\omega_c \gets$ Centre of $\mathbb{B}$ .
143
+ 10: If $C(\omega_c) \geq C(\hat{\omega})$ , then $\hat{\omega} \gets \omega_c$ .
144
+ 11: Uniformly subdivide $\mathbb{B}$ into 8 subcubes $\mathbb{B}_1, \ldots, \mathbb{B}_8$ .
145
+ 12: for $i = 1, \dots, 8$ do
146
+ 13: if $\overline{C}(\mathbb{B}_i) \geq C(\hat{\omega})$ then
147
+ 14: Insert $\mathbb{B}_i$ into $q$ with priority $\overline{C}(\mathbb{B}_i)$ .
148
+ 15: end if
149
+ 16: end for
150
+ 17: end while
151
+ 18: return $\hat{\omega}$ as $\boldsymbol{\omega}^*$ .
152
+
153
+ # 3. Bounds for contrast maximisation
154
+
155
+ To search for the maximum of $C(\omega)$ using BnB, a lower and upper bound on the objective are required.
156
+
157
+ The lower bound $\underline{C}$ must satisfy the condition
158
+
159
+ $$
160
+ \underline {{C}} \leq \max _ {\boldsymbol {\omega} \in \Omega} C (\boldsymbol {\omega}), \tag {11}
161
+ $$
162
+
163
+ which is trivially achieved by any (suboptimal) solution. In Algorithm 1, the current best solution $\hat{\omega}$ is used to provide $\underline{C}$ , which is iteratively raised as the search progresses.
164
+
165
+ The upper bound $\overline{C} (\mathbb{B})$ is defined over a region (a subcube) $\mathbb{B}$ of $\Omega$ , and must satisfy the condition
166
+
167
+ $$
168
+ \overline {{C}} (\mathbb {B}) \geq \max _ {\boldsymbol {\omega} \in \mathbb {B}} C (\boldsymbol {\omega}). \tag {A1}
169
+ $$
170
+
171
+ Also, as $\mathbb{B}$ collapses to a single point $\omega$ , $\overline{C}(\mathbb{B})$ should equate to $C(\omega)$ ; more formally,
172
+
173
+ $$
174
+ \overline {{C}} (\mathbb {B}) \rightarrow C (\omega) \text {w h e n} \mathbb {B} \rightarrow \omega . \tag {A2}
175
+ $$
176
+
177
+ See [16] for the rationale of the above conditions for BnB.
178
+
179
+ Deriving the upper bound is a more involved process. Our starting point is to rewrite (4) as
180
+
181
+ $$
182
+ C (\boldsymbol {\omega}) = \frac {1}{P} \sum_ {j = 1} ^ {P} H \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) ^ {2} - \mu (\boldsymbol {\omega}) ^ {2}, \tag {12}
183
+ $$
184
+
185
+ which motivates a bound based on two components
186
+
187
+ $$
188
+ \overline {{C}} (\mathbb {B}) := \frac {1}{P} \bar {S} (\mathbb {B}) - \underline {{\mu}} (\mathbb {B}) ^ {2}, \tag {13}
189
+ $$
190
+
191
+ where $\overline{S} (\mathbb{B})$ is an upper bound
192
+
193
+ $$
194
+ \overline {{S}} (\mathbb {B}) \geq \max _ {\boldsymbol {\omega} \in \mathbb {B}} \sum_ {j = 1} ^ {P} H \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) ^ {2} \tag {14}
195
+ $$
196
+
197
+ on the "sum of squares (SoS)" component, and
198
+
199
+ $$
200
+ \underline {{\mu}} (\mathbb {B}) \leq \min _ {\boldsymbol {\omega} \in \mathbb {B}} \mu (\boldsymbol {\omega}) \tag {15}
201
+ $$
202
+
203
+ is a lower bound of the mean pixel value. Given (14) and (15), then (13) satisfies A1. If equality holds in (14) and (15) when $\mathbb{B}$ is singleton, then (13) also satisfies A2.
204
+
205
+ In Secs. 3.1 and 3.2, we develop $\overline{S}(\mathbb{B})$ for continuous and discrete event images, before deriving $\underline{\mu}(\mathbb{B})$ in Sec. 3.3.
206
+
207
+ # 3.1. SoS bound for continuous event image
208
+
209
+ For the continuous event image $H_{c}$ (1), our SoS upper bound (denoted $\overline{S}_c$ ) is defined as
210
+
211
+ $$
212
+ \bar {S} _ {c} (\mathbb {B}) := \sum_ {j = 1} ^ {P} \bar {H} _ {c} \left(\mathbf {x} _ {j}; \mathbb {B}\right) ^ {2}, \tag {16}
213
+ $$
214
+
215
+ where $\overline{H}_c(\mathbf{x}_j;\mathbb{B})$ is an upper bound on the value of $H_{c}$ at $\mathbf{x}_j$ . To obtain $\overline{H}_c(\mathbf{x}_j;\mathbb{B})$ , we bound the position
216
+
217
+ $$
218
+ \left\{\mathbf {u} _ {i} ^ {\prime} = f \left(\mathbf {u} _ {i}, t _ {i}; \omega\right) \mid \omega \in \mathbb {B} \right\} \tag {17}
219
+ $$
220
+
221
+ of each warped event, under all possible $\omega \in \mathbb{B}$ for the warping function (9). To this end, let $\omega_{\mathbf{c}}$ be the centre of a cube $\mathbb{B}$ , and $\omega_{\mathbf{p}}$ and $\omega_{\mathbf{q}}$ be opposite corners of $\mathbb{B}$ . Define
222
+
223
+ $$
224
+ \alpha_ {i} (\mathbb {B}) := 0. 5 \left\| \omega_ {\mathbf {p}} t _ {i} - \omega_ {\mathbf {q}} t _ {i} \right\| _ {2}. \tag {18}
225
+ $$
226
+
227
+ ![](images/f769c00722b6ace823a3142bbef5b1903c365f35eaf77376724ac93672984196.jpg)
228
+ (a)
229
+
230
+ ![](images/80041fff41a99eaf5bc328e9502f9d255208e1c7ec7a1c5672b88f339e136b04.jpg)
231
+ (b)
232
+ Figure 2. (a) The vector $R(t_i, \omega) \tilde{\mathbf{u}}_i$ for all $\omega \in \mathbb{B}$ lies in the cone $\mathcal{V}_i(\mathbb{B})$ , and the projection of $\mathcal{V}_i(\mathbb{B})$ onto the image plane is an elliptical region $\mathcal{L}_i(\mathbb{B})$ . (b) Example with $5 \times 5$ pixel image and $N = 5$ events; there are thus $N = 5$ discs $\{\mathcal{D}_i(\mathbb{B})\}_{i=1}^5$ on the image. The value in a pixel is the number of discs that intersect the pixel. Pixels with the same color are from the same connected component (CC); there are 9 CCs in this example. (c)(d) Incidence matrix $\mathbf{M}$ corresponding to the example in (b). The solution of IQP and R-IQP are indicated respectively in (c) and (d), where entries $(i, k)$ of $\mathbf{Z}$ that are set to 1 are marked in red. The dominant columns of $\mathbf{M}$ are outlined in green, and their corresponding CCs are also outlined in green in (b).
233
+
234
+ ![](images/88196c187752d042b7bab82f6ce8fba0641298ec2a5639945bf8633525bf78e8.jpg)
235
+ (c)
236
+
237
+ ![](images/87331ffe19c2c9824d49216a5bc1de347386ad3e733ba042172e79090ae8b233.jpg)
238
+ (d)
239
+
240
+ Then, the following inequality can be established
241
+
242
+ $$
243
+ \angle \left(\mathbf {R} \left(t _ {i}; \omega_ {\mathbf {c}}\right) \tilde {\mathbf {u}} _ {i}, \mathbf {R} \left(t _ {i}; \omega\right) \tilde {\mathbf {u}} _ {i}\right) \leq \alpha_ {i} (\mathbb {B}), \tag {19}
244
+ $$
245
+
246
+ which is an extension of [15, Lemma 3.2]. Intuitively, (19) states that the rotated vector $\mathbf{R}(t_i;\omega)\tilde{\mathbf{u}}_i$ under all $\omega \in \mathbb{B}$ must lie within the cone
247
+
248
+ $$
249
+ \mathcal {V} _ {i} (\mathbb {B}) := \left\{\tilde {\mathbf {u}} \in \mathbb {R} ^ {3} \mid \angle \left(\mathbf {R} \left(t _ {i}; \omega_ {\mathbf {c}}\right) \tilde {\mathbf {u}} _ {i}, \tilde {\mathbf {u}}\right) \leq \alpha_ {i} (\mathbb {B}) \right\}. \tag {20}
250
+ $$
251
+
252
+ Fig. 2a illustrates the cone $\mathcal{V}_i(\mathbb{B})$ . Now, the pinhole projection of all the rays in $\mathcal{V}_i(\mathbb{B})$ yields the 2D region
253
+
254
+ $$
255
+ \mathcal {L} _ {i} (\mathbb {B}) = \left\{\mathbf {x} = \frac {\mathbf {K} ^ {(1 : 2)} \tilde {\mathbf {u}}}{\mathbf {K} ^ {(3)} \tilde {\mathbf {u}}} \mid \tilde {\mathbf {u}} \in \mathcal {V} _ {i} (\mathbb {B}) \right\}, \tag {21}
256
+ $$
257
+
258
+ which is an elliptical region [23, Chap. 2]; see Fig. 2a. Further, the centre $\mathbf{c}_i(\mathbb{B})$ , semi-major axis $\mathbf{y}_i(\mathbb{B})$ and semiminor axis $\mathbf{z}_i(\mathbb{B})$ of $\mathcal{L}_i(\mathbb{B})$ can be analytically determined (see the supplementary material). We further define
259
+
260
+ $$
261
+ \mathcal {D} _ {i} (\mathbb {B}) = \left\{\mathbf {x} \in \mathbb {R} ^ {2} \mid \| \mathbf {x} - \mathbf {c} _ {i} (\mathbb {B}) \| \leq \| \mathbf {y} _ {i} (\mathbb {B}) \| \right\}, \tag {22}
262
+ $$
263
+
264
+ i.e., the smallest disc that contains $\mathcal{L}_i(\mathbb{B})$ .
265
+
266
+ By construction, $\mathcal{D}_i(\mathbb{B})$ fully contains the set of positions that $\mathbf{u}_i^{\prime}$ can take for all $\omega \in \mathbb{B}$ , i.e., the set (17). We thus define the upper bound on the pixel values of $H_{c}$ as
267
+
268
+ $$
269
+ \overline {{H}} _ {c} \left(\mathbf {x} _ {j}; \mathbb {B}\right) = \sum_ {i = 1} ^ {N} \boldsymbol {\delta} \left(\max \left(\left\| \mathbf {x} _ {j} - \mathbf {c} _ {i} (\mathbb {B}) \right\| - \left\| \mathbf {y} _ {i} (\mathbb {B}) \right\|, 0\right)\right). \tag {23}
270
+ $$
271
+
272
+ Intuitively, we take the distance of $\mathbf{x}_j$ to the boundary of $\mathcal{D}_i(\mathbb{B})$ to calculate the intensity, and if $\mathbf{x}_j$ is within the disc then the distance is zero.
273
+
274
+ Lemma 1.
275
+
276
+ $$
277
+ \overline {{H}} _ {c} \left(\mathbf {x} _ {j}; \mathbb {B}\right) \geq \max _ {\boldsymbol {\omega} \in \mathbb {B}} H _ {c} \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) \tag {24}
278
+ $$
279
+
280
+ with equality achieved if $\mathbb{B}$ is singleton, i.e., $\mathbb{B} = \{\omega\}$ .
281
+
282
+ Proof. See supplementary material.
283
+
284
+ ![](images/dd2b050e6e425df9aff81532f43691ea5671d773e2b0b391622b643ab0000d54.jpg)
285
+
286
+ Given Lemma 1, it is clear that $\overline{S}_c(\mathbb{B})$ satisfies the conditions (see Sec. 3) to be a valid component in the upper bound (13) for the continuous event image $H_{c}$ .
287
+
288
+ # 3.2. SoS bound for discrete event image
289
+
290
+ Given the $N$ discs $\{\mathcal{D}_i(\mathbb{B})\}_{i = 1}^N$ associated with the $N$ events, define the intersection matrix $\mathbf{T}\in \{0,1\}^{N\times P}$ ..
291
+
292
+ $$
293
+ \mathbf {T} _ {i, j} = \left\{ \begin{array}{l l} 1 & \mathcal {D} _ {i} (\mathbb {B}) \text {i n t e r s e c t s p i x e l} \mathbf {x} _ {j}; \\ 0 & \text {o t h e r w i s e .} \end{array} \right. \tag {25}
294
+ $$
295
+
296
+ The disc-pixel intersections can be computed efficiently using established techniques [10, 30]. We assume $\sum_{j=1}^{P} \mathbf{T}_{i,j} > 0$ for all $i$ , i.e., each disc intersects at least one pixel. If there are discs that lie beyond the image plane, we ignore these discs without loss of generality.
297
+
298
+ A direct extension of $\overline{H}_c$ (23) to the discrete case would be to calculate the pixel upper bound value as
299
+
300
+ $$
301
+ \overline {{H}} _ {d} (\mathbf {x} _ {j}; \mathbb {B}) = \sum_ {i = 1} ^ {N} \mathbf {T} _ {i, j}, \tag {26}
302
+ $$
303
+
304
+ i.e., number of discs that intersect the pixel; see Fig. 2b. This can however be overly pessimistic, since the pixel value for the discrete event image (3) satisfies
305
+
306
+ $$
307
+ \sum_ {j = 1} ^ {P} H _ {d} \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) \leq N \Rightarrow \sum_ {j = 1} ^ {P} H _ {d} \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) ^ {2} \leq N ^ {2}, \tag {27}
308
+ $$
309
+
310
+ whereas by using (26),
311
+
312
+ $$
313
+ \sum_ {j = 1} ^ {P} \bar {H} _ {d} (\mathbf {x} _ {j}; \mathbb {B}) \leq P N \Rightarrow \sum_ {j = 1} ^ {P} \bar {H} _ {d} (\mathbf {x} _ {j}; \boldsymbol {\omega}) ^ {2} \leq (P N) ^ {2}. \tag {28}
314
+ $$
315
+
316
+ Note that $P$ is the number of pixels (e.g., $P = 240 \times 320 = 76k$ for IniVation Davis 240C [3]), thus $(PN)^2 \gg N^2$ .
317
+
318
+ To get a tighter bound, we note that the discs $\{\mathcal{D}_i(\mathbb{B})\}_{i = 1}^N$ partition $X$ into a set of connected components (CC)
319
+
320
+ $$
321
+ \left\{\mathcal {G} _ {k} \right\} _ {k = 1} ^ {K}, \tag {29}
322
+ $$
323
+
324
+ where each $\mathcal{G}_k$ is a connected set of pixels that are intersected by the same discs; see Fig. 2b. Then, define the incidence matrix $\mathbf{M} \in \{0,1\}^{N \times K}$ , where
325
+
326
+ $$
327
+ \mathbf {M} _ {i, k} = \left\{ \begin{array}{l l} 1 & \exists \mathbf {x} _ {j} \in \mathcal {G} _ {k} \text {s u c h t h a t} \mathbf {T} _ {i, j} = 1; \\ 0 & \text {o t h e r w i s e .} \end{array} \right. \tag {30}
328
+ $$
329
+
330
+ In words, $\mathbf{M}_{i,k} = 1$ if $\mathcal{D}_i(\mathbb{B})$ is a disc that intersect to form $\mathcal{G}_k$ . We then formulate the integer quadratic program
331
+
332
+ $$
333
+ \overline {{S}} _ {d} ^ {*} (\mathbb {B}) = \max _ {\mathbf {Z} \in \{0, 1 \} ^ {N \times K}} \quad \sum_ {k = 1} ^ {K} \left(\sum_ {i = 1} ^ {N} \mathbf {Z} _ {i, k} \mathbf {M} _ {i, k}\right) ^ {2}
334
+ $$
335
+
336
+ s.t. $\mathbf{Z}_{i,k} \leq \mathbf{M}_{i,k}, \forall i, k,$ (IQP)
337
+
338
+ $$
339
+ \sum_ {k = 1} ^ {K} \mathbf {Z} _ {i, k} = 1, \forall i.
340
+ $$
341
+
342
+ In words, choose a set of CCs that are intersected by as many discs as possible, while ensuring that each disc is selected exactly once. Intuitively, IQP warps the events (under uncertainty $\omega \in \mathbb{B}$ ) into "clusters" that are populated by as many events as possible, to encourage fewer clusters and higher contrast. See Fig. 2c for a sample solution of IQP.
343
+
344
+ # Lemma 2.
345
+
346
+ $$
347
+ \overline {{S}} _ {d} ^ {*} (\mathbb {B}) \geq \max _ {\boldsymbol {\omega} \in \mathbb {B}} \sum_ {j = 1} ^ {P} H _ {d} \left(\mathbf {x} _ {j}; \boldsymbol {\omega}\right) ^ {2}, \tag {31}
348
+ $$
349
+
350
+ with equality achieved if $\mathbb{B}$ is singleton, i.e., $\mathbb{B} = \{\omega\}$ .
351
+
352
+ Proof. See supplementary material.
353
+
354
+ ![](images/3262c6f961ac2bde5f8d5bf486899067d38ab7e4937a4424cdd016bef102ff65.jpg)
355
+
356
+ Solving IQP is challenging, not least because $\{\mathcal{G}_k\}_{k = 1}^K$ and $\mathbf{M}$ are costly to compute and store (the number of CCs is exponential in $N$ ). To simplify the problem, first define the density of a CC $\mathcal{G}_k$ (corresponding to column $\mathbf{M}_{:,k}$ ) as
357
+
358
+ $$
359
+ \Delta_ {k} = \sum_ {i = 1} ^ {N} \mathbf {M} _ {i, k}. \tag {32}
360
+ $$
361
+
362
+ We say that a column $\mathbf{M}_{\cdot,\eta}$ of $\mathbf{M}$ is dominant if there exists a subset $\Lambda \subset \{1, \ldots, K\}$ (including $\Lambda = \emptyset$ ) such that
363
+
364
+ $$
365
+ \mathbf {M} _ {i, k} \leq \mathbf {M} _ {i, \eta} \forall i \in \{1, \dots , N \}, \forall k \in \Lambda , \tag {33}
366
+ $$
367
+
368
+ whereas for all $k \notin \Lambda$ , the above does not hold. In words, the 1 elements of columns in $\Lambda$ is a subset of the 1 elements
369
+
370
+ Algorithm 2 Computing dominant columns $\mathbf{M}'$ .
371
+ Require: Pixels $\{\mathbf{x}_j\}_{j = 1}^P$ , set of discs $\{\mathcal{D}_i(\mathbb{B})\}_{i = 1}^N$ (22).
372
+ 1: $\mathbf{T}\gets N\times P$ intersection matrix (25) from discs.
373
+ 2: $\{\overline{H}_d(\mathbf{x}_j;\mathbb{B})\}_{j = 1}^P\gets$ Pixel upper bound image (26).
374
+ 3: $\{a_j\}_{j = 1}^P\gets$ Array of $P$ elements initialised to O.
375
+ 4: $\mathbf{M}'\gets []$ (empty matrix).
376
+ 5: for $i = 1,\dots ,N$ do
377
+ 6: $c_{max}\gets \max_{\mathbf{x}_j\in \mathcal{D}_i(\mathbb{B})}\overline{H}_d(\mathbf{x}_j;\mathbb{B}).$
378
+ 7: $\mathcal{R}\gets \{\mathbf{x}_j\in \mathcal{D}_i(\mathbb{B})\mid \overline{H}_d(\mathbf{x}_j;\mathbb{B}) = c_{max},a_j = 0\} .$
379
+ 8: while $\mathcal{R}$ is not empty do
380
+ 9: Pick a pixel ${\bf x}_j\in \mathcal{R}$ and $a_j\gets 1$
381
+ 10: $\mathbf{M}'\gets [\mathbf{M}'\quad \mathbf{T}_{:,j}]$ and $\mathcal{R}\gets \mathcal{R}\setminus \{\mathbf{x}_j\}$
382
+ 11: for ${\bf x}_{\ell}\in\mathcal{R}$ do
383
+ 12: if ${\bf T}_{:, \ell} = {\bf T}_{:, j}$ then
384
+ 13: $a_{\ell}\gets 1$ and $\mathcal{R}\gets \mathcal{R}\setminus \{\mathbf{x}_{\ell}\}$
385
+ 14: end if
386
+ 15: end for
387
+ 16: end while
388
+ 17: end for
389
+ 18: return $\mathbf{M}'$
390
+
391
+ of $\mathbf{M}_{:, \eta}$ . Geometrically, a dominant column $\mathbf{M}_{:, \eta}$ corresponds to a CC $\mathcal{G}_{\eta}$ such that for all discs that intersect to form the CC, $\mathcal{G}_{\eta}$ is the densest CC that they intersect with; mathematically, there exists $\mathcal{D}_i(\mathbb{B}) \supseteq \mathcal{G}_{\eta}$ such that
392
+
393
+ $$
394
+ \max _ {\mathbf {x} _ {j} \in \mathcal {D} _ {i} (\mathbb {B})} \sum_ {i = 1} ^ {N} \mathbf {T} _ {i, j} = \sum_ {i = 1} ^ {N} \mathbf {M} _ {i, \eta}. \tag {34}
395
+ $$
396
+
397
+ Figs. 2b and 2c illustrate dominant columns.
398
+
399
+ Let $\mathbf{M}' \in \{0,1\}^{N \times K'}$ contain only the dominant columns of $\mathbf{M}$ . Typically, $K' \ll K$ , and $\mathbf{M}'$ can be computed directly without first building $\mathbf{M}$ , as shown in Algorithm 2. Intuitively, the method loops through the discs and incrementally keeps track of the densest CCs to form $\mathbf{M}'$ .
400
+
401
+ Lemma 3. Problem IQP has the same solution if $\mathbf{M}$ is replaced with $\mathbf{M}'$ .
402
+
403
+ Proof. See supplementary material.
404
+
405
+ It is thus sufficient to formulate IQP based on the dominant columns $\mathbf{M}'$ . Further, we relax IQP into
406
+
407
+ $$
408
+ \overline {{S}} _ {d} (\mathbb {B}) = \max _ {\mathbf {Z} \in \{0, 1 \} ^ {N \times K ^ {\prime}}} \sum_ {k = 1} ^ {K ^ {\prime}} \left(\sum_ {i = 1} ^ {N} \mathbf {Z} _ {i, k} \mathbf {M} _ {i, k} ^ {\prime}\right) ^ {2}
409
+ $$
410
+
411
+ s.t. $\mathbf{Z}_{i,k} \leq \mathbf{M}_{i,k}', \forall i, k$ , (R-IQP)
412
+
413
+ $$
414
+ \sum_ {k = 1} ^ {K ^ {\prime}} \sum_ {i = 1} ^ {N} \mathbf {Z} _ {i, k} = N.
415
+ $$
416
+
417
+ where we now allow discs to be selected more than once. Since enforcing $\sum_{k=1}^{K'} \mathbf{Z}_{i,k} = 1$ for all $i$ implies
418
+
419
+ $\sum_{k=1}^{K'} \sum_{i=1}^{N} \mathbf{Z}_{i,k} = N$ , R-IQP is a valid relaxation. See Fig. 2d for a sample result of R-IQP, and cf. Fig. 2c.
420
+
421
+ # Lemma 4.
422
+
423
+ $$
424
+ \overline {{S}} _ {d} (\mathbb {B}) \geq \overline {{S}} _ {d} ^ {*} (\mathbb {B}) \tag {35}
425
+ $$
426
+
427
+ with equality achieved if $\mathbb{B}$ is singleton, i.e., $\mathbb{B} = \{\omega\}$ .
428
+
429
+ Proof. See supplementary material.
430
+
431
+ ![](images/c960028131bf4793c81e0cc9f15c56a8869726e305b56c62c8e8429aee1e0c94.jpg)
432
+
433
+ Bound computation and tightness R-IQP admits a simple solution. First, compute the densities $\{\Delta_k\}_{k=1}^{K'}$ of the columns of $\mathbf{M}'$ . Let $\Delta_{(k)}$ be the $k$ -th highest density, i.e.,
434
+
435
+ $$
436
+ \Delta_ {(k _ {1})} \geq \Delta_ {(k _ {2})} \text {i f} k _ {1} < k _ {2}. \tag {36}
437
+ $$
438
+
439
+ Obtain $\gamma$ as the largest integer such that
440
+
441
+ $$
442
+ \sum_ {k = 1} ^ {\gamma} \Delta_ {(k)} < N. \tag {37}
443
+ $$
444
+
445
+ Then, the SoS upper bound for the discrete event image is
446
+
447
+ $$
448
+ \bar {S} _ {d} (\mathbb {B}) = \sum_ {k = 1} ^ {\gamma} \Delta_ {(k)} ^ {2} + \left(N - \sum_ {k = 1} ^ {\gamma} \Delta_ {(k)}\right) ^ {2}. \tag {38}
449
+ $$
450
+
451
+ Intuitively, the procedure greedily takes the densest CCs while ensuring that the quota of $N$ discs is not exceeded. Then, any shortfall in the number of discs is met using the next largest CC partially. Given $\mathbf{M}'$ , the costliest routine is just the sorting of the column sums of $\mathbf{M}'$ .
452
+
453
+ Given the final constraint in R-IQP, it is clear that $\overline{S}_d(\mathbb{B})\leq N^2$ . This represents a much tighter SoS upper bound than $\sum_{j = 1}^{P}\overline{H}_{d}(\mathbf{x}_{j};\boldsymbol {\omega})^{2}$ ; see (28).
454
+
455
+ # 3.3. Lower bound of mean pixel value
456
+
457
+ For the continuous event image (1), the lower bound of the pixel value is the "reverse" of the upper bound (23), i.e.,
458
+
459
+ $$
460
+ \underline {{H}} _ {c} \left(\mathbf {x} _ {j}; \mathbb {B}\right) = \sum_ {i = 1} ^ {N} \boldsymbol {\delta} \left(\| \mathbf {x} _ {j} - \mathbf {c} _ {i} (\mathbb {B}) \| + \| \mathbf {y} _ {i} (\mathbb {B}) \|\right), \tag {39}
461
+ $$
462
+
463
+ whereby for each $\mathcal{D}_i(\mathbb{B})$ , we take the maximum distance between $\mathbf{x}_j$ and a point on the disc. Then, the lower bound of the mean pixel value is simply
464
+
465
+ $$
466
+ \underline {{\mu}} _ {c} (\mathbb {B}) = \frac {1}{P} \sum_ {j = 1} ^ {P} \underline {{H}} _ {c} (\mathbf {x} _ {j}; \mathbb {B}). \tag {40}
467
+ $$
468
+
469
+ In the discrete event image (3), if all the $N$ discs lie fully in the image plane, the lower bound can be simply calculated as $N / P$ . However, this ideal case rarely happens, hence the the lower bound on the mean pixel vale is
470
+
471
+ $$
472
+ \underline {{\mu}} _ {d} (\mathbb {B}) = \frac {1}{P} \sum_ {i = 1} ^ {N} \mathbb {I} \left(\mathcal {D} _ {i} \text {f u l l y l i e i n t h e i m a g e p l a n e}\right). \tag {41}
473
+ $$
474
+
475
+ See the supplementary material for proofs of the correctness of the above lower bounds.
476
+
477
+ # 3.4. Computational cost and further acceleration
478
+
479
+ Our BnB method is able to process $N \approx 50,000$ events in $\approx 300$ seconds. While this does not allow online low latency event processing, it is nonetheless useful for event sensing applications that permit offline computations, e.g., video stabilisation with post-hoc correction. Note that a local method can take up to 30 seconds to perform CM on the same input, which also does not enable online processing<sup>1</sup> (Sec. 4 will present more runtime results).
480
+
481
+ There is potential to speed-up our algorithm using GPUs. For example, in the bound computations for the discrete event image case, the disc-pixel intersection matrix $\mathbf{T}$ (25) could be computed using GPU-accelerated ray tracing [5, 25], essentially by backprojecting each pixel and intersecting the ray with the cones (20) in parallel. We leave GPU acceleration as future work.
482
+
483
+ # 4. Results
484
+
485
+ We first examine the runtime and solution quality of our algorithms, before comparing against state-of-the-art methods in the literature. The results were obtained on a standard desktop with a 3.0GHz Intel i5 CPU and 16GB RAM.
486
+
487
+ # 4.1. Comparison of bounding functions
488
+
489
+ The aim here is to empirically compare the performance of BnB (Algorithm 1) with continuous and discrete event images. We call these variants CMBnB1 and CMBnB2.
490
+
491
+ For this experiment, a $10\mathrm{ms}$ subsequence (which contains about $N = 50,000$ events) of the boxes data [14] was used. The underlying camera motion was a pure rotation.
492
+
493
+ For CMBnB1, a Gaussian kernel with bandwidth 1 pixel was used (following [13, Sec. 2]). Fig. 3 plots the upper and lower bound values over time in a typical run of Algorithm 1. It is clear that the discrete case converged much faster than the continuous case; while CMBnB2 terminated at about $12k$ iterations, CMBnB1 requiried no fewer than $30k$ iterations. It is evident from Fig. 3 that this difference in performance is due to the much tighter bounding in the discrete case. The next experiment will include a comparison of the solution quality of CMBnB1 and CMBnB2.
494
+
495
+ # 4.2. Qualitative comparisons
496
+
497
+ To highlight the importance of globally optimal CM, we tested on select $10\mathrm{ms}$ subsequences (about $N = 50k$ events each) from the boxes data [14]—in the next experiment, a more comprehensive experiment and quantitative benchmarking will be described. Here, on the subsequences chosen, we compared BnB against the following methods:
498
+
499
+ ![](images/faa5a6b925baca60883876a37f7da92132271c28c9363ddb1182c8a5b26c382c.jpg)
500
+ Figure 3. Upper and lower bound evolution in branch-and-bound.
501
+
502
+ - CMGD1: locally optimal solver (fmincon from Matlab) was used to perform CM with initialisation $\omega = 0$ (equivalent to identity rotation).
503
+ - CMGD2: same as above, but initialised with the optimised $\omega$ from the previous $10\mathrm{ms}$ time window.
504
+
505
+ Both local methods were executed on the continuous event image with Gaussian kernel of bandwidth 1 pixel.
506
+
507
+ Fig. 4 depicts motion compensated event images from two subsequences (Subseq 1 and Subseq 2); see supplementary material for more results. The examined cases show that the local methods (both CMGD1 and CMGD2) can indeed often converge to bad local solutions. Contrast this to BnB which always produced sharp event images.
508
+
509
+ These results also show that CM based on continuous and discrete event images yield practically identical solutions. Since CMBnB2 usually converges much faster than CMBnB1, we use CMBnB2 in the remaining experiments.
510
+
511
+ # 4.3. Quantitative benchmarking
512
+
513
+ We performed benchmarking using publicly available datasets [8, 22]. We introduced two additional variants to CMGD1 and CMGD2:
514
+
515
+ - CMRW1: A variant of CM [29] that uses a different objective function (called reward):
516
+
517
+ $$
518
+ R w (\boldsymbol {\omega}) = C (\boldsymbol {\omega}) + \frac {1}{P} \sum_ {j = 1} ^ {P} (e ^ {(- H (\mathbf {x} _ {j}; \boldsymbol {\omega}))} + e ^ {(H (\mathbf {x} _ {j}; \boldsymbol {\omega}))}).
519
+ $$
520
+
521
+ The initial solution is taken as $\omega = 0$
522
+
523
+ - CMRW2: Same as CMRW1 but initialised with the optimised $\omega$ from the previous subsequence.
524
+
525
+ We also compared against EventNet [27], which is based on deep learning. However, similar to the error reported in [27], we found that the error for EventNet was much higher than the error of the CM methods (e.g., the translated angular velocity error of the maximum of EventNet is $17.1\%$ , while it is around $5\%$ for CM). The lack of publicly available implementation also hampered objective testing of EventNet. We thus leave comparisons against deep learning methods as future work.
526
+
527
+ # 4.3.1 Rotational motion in indoor scene
528
+
529
+ We used event sequences poster, boxes and dynamic from [14, 22], which were recorded using a Davis 240C [4] under rotational motion over a static indoor scene. The ground truth motion was captured using a motion capture system. Each sequence has a duration of 1 minute and around 100 million events. For these sequences, the rotational motion was minor in a large part of the sequences (thereby producing trivial instances to CM), thus in our experiment we used only the final 15 seconds of each sequence, which tended to have more significant motions.
530
+
531
+ We split each sequence into contiguous $10\mathrm{ms}$ subsequences which were then subject to CM. For boxes and poster, each CM instance was of size $N \approx 50k$ , while for dynamic, each instance was of size $N \approx 25k$ . For each CM instance, let $\bar{\omega}$ and $\hat{\omega}$ be the ground truth and estimated parameters. An error metric we used is
532
+
533
+ $$
534
+ \epsilon = \left\| \bar {\omega} - \hat {\omega} \right\| _ {2}. \tag {42}
535
+ $$
536
+
537
+ Our second error metric, which considers only differences in angular rate, is
538
+
539
+ $$
540
+ \phi = \left| \left| \left| \bar {\omega} \right| \right| _ {2} - \left| \left| \hat {\omega} \right| \right| _ {2} \right|. \tag {43}
541
+ $$
542
+
543
+ Fig. 5a plots $\epsilon$ over all the CM instances for the boxes sequence, while Table 1 shows the average $(\mu)$ and standard deviation $(\sigma)$ of $\epsilon$ and $\phi$ over all CM instances.
544
+
545
+ Amongst the local methods, the different objective functions did not yield significant differences in quality. The more important observation was that CMGD2/CMRW2 gave solutions of much higher quality than CMGD1/CMRW1, which confirms that good initialisation is essential for the local methods. Due to its exact nature, CMBnB provided the best quality in rotation estimation; its standard deviation of $\epsilon$ is also lower, indicating a higher stability over the sequences. Moreover, CMBnB does not require any initialisation, unlike the local methods.
546
+
547
+ For the three sequences used (dynamic, boxes, poster), the maximum absolute angular velocities are 500, 670 and 1000 deg/s respectively [14, 22]. The average $\phi$ error of CMBnB of 10.09, 17.97 and 46.34 deg/s thus translate into $2.2\%$ , $2.7\%$ and $4.6\%$ of the maximum, respectively.
548
+
549
+ Runtime The average runtimes of CMBnB over all instances in the three sequences (dynamic, boxes, poster) were 163.2, 278.3 and 320.6 seconds. CMGD optimised with the conjugate gradient solver in fmincon has average runtimes of 20.2, 31.1 and 35.3 seconds.
550
+
551
+ # 4.3.2 Attitude estimation
552
+
553
+ We repeated the above experiment on the event-based star tracking (attitude estimation) dataset of [7, 8], which contains 11 event sequences of rotational motion over a star field. Each sequence has a constant angular velocity of 4
554
+
555
+ ![](images/0b99279924de5ac467ca7d9bad1a7ca1a2e89dd66d1b3894dfdbd337fa07ab86.jpg)
556
+ Figure 4. Qualitative results (motion compensated event images) from Subseq 1 and Subseq 2 of boxes.
557
+
558
+ <table><tr><td rowspan="2">Method</td><td colspan="4">dynamic</td><td colspan="4">boxes</td><td colspan="4">poster</td></tr><tr><td>μ(ε)</td><td>μ(φ)</td><td>σ(ε)</td><td>σ(φ)</td><td>μ(ε)</td><td>μ(φ)</td><td>σ(ε)</td><td>σ(φ)</td><td>μ(ε)</td><td>μ(φ)</td><td>σ(ε)</td><td>σ(φ)</td></tr><tr><td>CMGD1</td><td>21.52</td><td>20.07</td><td>24.38</td><td>31.13</td><td>31.29</td><td>31.47</td><td>34.30</td><td>45.94</td><td>56.58</td><td>54.92</td><td>47.03</td><td>58.95</td></tr><tr><td>CMGD2</td><td>15.09</td><td>13.31</td><td>10.39</td><td>12.08</td><td>22.01</td><td>21.70</td><td>12.79</td><td>18.83</td><td>49.64</td><td>50.12</td><td>35.93</td><td>42.77</td></tr><tr><td>CMRW1</td><td>21.03</td><td>18.59</td><td>25.41</td><td>28.83</td><td>32.28</td><td>32.23</td><td>36.11</td><td>46.01</td><td>59.03</td><td>58.71</td><td>49.49</td><td>60.87</td></tr><tr><td>CMRW2</td><td>14.55</td><td>12.29</td><td>9.85</td><td>11.21</td><td>21.95</td><td>21.41</td><td>13.71</td><td>18.42</td><td>49.49</td><td>50.04</td><td>37.51</td><td>43.35</td></tr><tr><td>CMBnB</td><td>11.93</td><td>10.09</td><td>7.82</td><td>8.74</td><td>18.76</td><td>17.97</td><td>10.06</td><td>14.66</td><td>44.34</td><td>46.34</td><td>24.79</td><td>36.79</td></tr></table>
559
+
560
+ ![](images/0e181331af07776e23cf98911318fb33895f30b2edde16fcb4b9a1dc53f120fd.jpg)
561
+ (a) boxes
562
+
563
+ ![](images/615dc26d9cf2c819cc466d1ea3363ba065bdde1be9d4d0245d81ec5ded682405.jpg)
564
+ (b) Sequence 1
565
+ Figure 5. Error $\phi$ of all CM methods (plotted against time) for (a) boxes sequence [14] and (b) Sequence 1 of [8]. In each subplot, the error of CMBNB is superimposed for reference.
566
+
567
+ $\mathrm{deg} / \mathrm{s}$ over a duration of 45 seconds and around 1.5 million events. We split each sequence into $400~\mathrm{ms}$ subsequences, which yielded $N\approx 15,000$ events per subsequence. Fig. 5b
568
+
569
+ Table 1. Average and standard deviation of $\epsilon$ and $\phi$ over all CM instances in boxes, dynamic, and poster (best result bolded).
570
+
571
+ <table><tr><td>Method</td><td>μ(ε)</td><td>μ(φ)</td><td>σ(ε)</td><td>σ(φ)</td></tr><tr><td>CMGD1</td><td>0.448</td><td>0.652</td><td>0.314</td><td>0.486</td></tr><tr><td>CMGD2</td><td>0.294</td><td>0.423</td><td>0.232</td><td>0.323</td></tr><tr><td>CMRW1</td><td>0.429</td><td>0.601</td><td>0.346</td><td>0.468</td></tr><tr><td>CMRW2</td><td>0.318</td><td>0.461</td><td>0.234</td><td>0.341</td></tr><tr><td>CMBnB</td><td>0.174</td><td>0.234</td><td>0.168</td><td>0.217</td></tr></table>
572
+
573
+ Table 2. Average and standard deviation of $\epsilon$ and $\phi$ over all CM instances in the star tracking dataset (best result bolded).
574
+
575
+ plots the $\phi$ errors for Sequence 1 in the dataset. The average errors and standard deviation over all CM instances are shown in Table 2. Again, CMBnB gave the highest quality solutions; its average $\phi$ error of $0.234\mathrm{deg / s}$ translate into $5.8\%$ of the maximum. The average runtime of CMBnB and CMGD over all instances were 80.7 and 11.1 seconds.
576
+
577
+ # 5. Conclusions
578
+
579
+ We proposed a novel globally optimal algorithm for CM based on BnB. The theoretical validity of our algorithm has been established, and the experiments showed that it greatly outperformed local methods in terms of solution quality.
580
+
581
+ # Acknowledgements
582
+
583
+ This work was supported by ARC DP200101675. We thank S. Bagchi for the implementation of CM and E. Mueggler for providing the dataset used in experiments.
584
+
585
+ # References
586
+
587
+ [1] http://en.wikipedia.org/w/index.php? title=Exponential%20map%20(Lie%20theory) &oldid=925866493.2
588
+ [2] Event-based vision resources. https://github.com/uzh-rpg/event-based_vision-resources.2
589
+ [3] Jean-Charles Bazin, Hongdong Li, In So Kweon, Cedric Demonceaux, Pascal Vasseur, and Katsushi Ikeuchi. A branch-and-bound approach to correspondence and grouping problems. IEEE transactions on pattern analysis and machine intelligence, 35(7):1565-1576, 2012. 5
590
+ [4] Christian Brandli, Raphael Berner, Minhao Yang, Shih-Chii Liu, and Tobi Delbruck. A $240 \times 180$ 130 db $3\mu s$ latency global shutter spatiotemporal vision sensor. IEEE Journal of Solid-State Circuits, 49(10):2333-2341, 2014. 7
591
+ [5] Nathan A Carr, Jared Hoberock, Keenan Crane, and John C Hart. Fastgpu ray tracing of dynamic meshes using geometry images. In Proceedings of Graphics Interface 2006, pages 203-209. Canadian Information Processing Society, 2006. 6
592
+ [6] Andrea Censi and Davide Scaramuzza. Low-latency event-based visual odometry. In 2014 IEEE International Conference on Robotics and Automation (ICRA), pages 703-710. IEEE, 2014. 2
593
+ [7] Tat-Jun Chin and Samya Bagchi. Event-based star tracking via multiresolution progressive hough transforms. arXiv preprint arXiv:1906.07866, 2019. 1, 2, 7
594
+ [8] Tat-Jun Chin, Samya Bagchi, Anders Eriksson, and Andre van Schaik. Star tracking using an event camera. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0-0, 2019. 1, 2, 7, 8
595
+ [9] Tobi Delbruck and Manuel Lang. Robotic goalie with 3 ms reaction time at $4\%$ cpu load using event-based dynamic vision sensor. Frontiers in neuroscience, 7:223, 2013. 1
596
+ [10] James D Foley, Foley Dan Van, Andries Van Dam, Steven K Feiner, John F Hughes, J Hughes, and Edward Angel. Computer graphics: principles and practice, volume 12110. Addison-Wesley Professional, 1996. 4
597
+ [11] Guillermo Gallego, Mathias Gehrig, and Davide Scaramuzza. Focus is all you need: Loss functions for event-based vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12280-12289, 2019. 2, 6
598
+ [12] Guillermo Gallego, Jon EA Lund, Elias Mueggler, Henri Rebecq, Tobi Delbruck, and Davide Scaramuzza. Event-based, 6-dof camera tracking from photometric depth maps. IEEE transactions on pattern analysis and machine intelligence, 40(10):2402-2412, 2017. 2
599
+ [13] Guillermo Gallego, Henri Rebecq, and Davide Scaramuzza. A unifying contrast maximization framework for event cameras, with applications to motion, depth, and optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3867-3876, 2018. 1, 2, 6
600
+ [14] Guillermo Gallego and Davide Scaramuzza. Accurate angular velocity estimation with an event camera. IEEE Robotics and Automation Letters, 2(2):632-639, 2017. 1, 2, 6, 7, 8
601
+ [15] Richard I Hartley and Fredrik Kahl. Global optimization through rotation space search. International Journal of Com
602
+
603
+ puter Vision, 82(1):64-79, 2009. 3, 4
604
+ [16] Reiner Horst and Hoang Tuy. Global optimization: deterministic approaches. Springer, 1996. 3
605
+ [17] Mina A Khoei, Sio-hoi Ieng, and Ryad Benosman. Asynchronous event-based motion processing: From visual events to probabilistic sensory representation. Neural computation, 31(6):1114-1138, 2019. 6
606
+ [18] Hanme Kim, Ankur Handa, Ryad Benosman, Sio-Hoi Ieng, and Andrew J Davison. Simultaneous mosaicing and tracking with an event camera. J. Solid State Circ, 43:566-576, 2008. 2
607
+ [19] Hanme Kim, Stefan Leutenegger, and Andrew J Davison. Real-time 3d reconstruction and 6-dof tracking with an event camera. In European Conference on Computer Vision, pages 349-364. Springer, 2016. 2
608
+ [20] Beat Kueng, Elias Mueggler, Guillermo Gallego, and Davide Scaramuzza. Low-latency visual odometry using event-based feature tracks. In 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 16-23. IEEE, 2016. 2
609
+ [21] Elias Mueggler, Basil Huber, and Davide Scaramuzza. Event-based, 6-dof pose tracking for high-speed maneuvers. In 2014 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 2761-2768. IEEE, 2014. 1
610
+ [22] Elias Mueggler, Henri Rebecq, Guillermo Gallego, Tobi Delbruck, and Davide Scaramuzza. The event-camera dataset and simulator: Event-based data for pose estimation, visual odometry, and slam. The International Journal of Robotics Research, 36(2):142-149, 2017. 1, 7
611
+ [23] David Mumford. Algebraic geometry I: complex projective varieties. Springer Science & Business Media, 1995. 4
612
+ [24] Jorge Nocedal and Stephen Wright. Numerical optimization. Springer Science & Business Media, 2006. 2
613
+ [25] Stefan Popov, Johannes Günther, Hans-Peter Seidel, and Philipp Slusallek. Stackless kd-tree traversal for high performancegpu ray tracing. In Computer Graphics Forum, volume 26, pages 415-424. Wiley Online Library, 2007. 6
614
+ [26] Bharath Ramesh, Hong Yang, Garrick Michael Orchard, Ngoc Anh Le Thi, Shihao Zhang, and Cheng Xiang. Dart: distribution aware retinal transform for event-based cameras. IEEE transactions on pattern analysis and machine intelligence, 2019. 1
615
+ [27] Yusuke Sekikawa, Kosuke Hara, and Hideo Saito. Event-net: Asynchronous recursive event processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3887-3896, 2019. 2, 7
616
+ [28] Timo Stoffregen, Guillermo Gallego, Tom Drummond, Lindsay Kleeman, and Davide Scaramuzza. Event-based motion segmentation by motion compensation. arXiv preprint arXiv:1904.01293, 2019. 1, 2, 6
617
+ [29] Timo Stoffregen and Lindsay Kleeman. Event cameras, contrast maximization and reward functions: An analysis. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 7
618
+ [30] Jerry R Van Aken. An efficient ellipse-drawing algorithm. IEEE Computer Graphics and Applications, 4(9):24-35, 1984. 4
619
+ [31] Antoni Rosinol Vidal, Henri Rebecq, Timo Horstschaefer, and Davide Scaramuzza. Ultimate slam? combining events,
620
+
621
+ images, and imu for robust visual slam in hdr and high-speed scenarios. IEEE Robotics and Automation Letters, 3(2):994-1001, 2018. 1
622
+ [32] David Weikersdorfer, David B Adrian, Daniel Cremers, and Jörg Conradt. Event-based 3d slam with a depth-augmented dynamic vision sensor. In 2014 IEEE International Conference on Robotics and Automation (ICRA), pages 359-364. IEEE, 2014. 1
623
+ [33] Chengxi Ye. Learning of dense optical flow, motion and depth, from sparse event cameras. PhD thesis, 2019. 2
624
+ [34] Zhengyou Zhang. A flexible new technique for camera calibration. IEEE Transactions on pattern analysis and machine intelligence, 22, 2000. 2
625
+ [35] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Ev-flownet: Self-supervised optical flow estimation for event-based cameras. arXiv preprint arXiv:1802.06898, 2018. 2
626
+ [36] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 989-997, 2019. 2
globallyoptimalcontrastmaximisationforeventbasedmotionestimation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:672407047b78da1f067d5a27a752498b1b1caa0fecd591279f6bde6c6cee0127
3
+ size 749128
globallyoptimalcontrastmaximisationforeventbasedmotionestimation/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfb812cfbbad239b5f0a78ad92598e8526cde59ff8b5081928618f03baff1321
3
+ size 698366
globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/54e9554d-ccd8-4776-8940-4947667b2725_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6d620ceeeb79e39a3788cdc2e84855a46d76a0792cb6c01a3196c7fd0d1b52c
3
+ size 79446
globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/54e9554d-ccd8-4776-8940-4947667b2725_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26de04abb8bf6225e15f998da5533d6eeee195f2328325ddec140a9a7ab9b36e
3
+ size 95930
globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/54e9554d-ccd8-4776-8940-4947667b2725_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45d92077a89a163d6f8985c52d74892f2f90078d40bb2dc2d20bb1e48e550a43
3
+ size 392376
globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/full.md ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Global Optimality for Point Set Registration Using Semidefinite Programming
2
+
3
+ Jose Pedro Iglesias<sup>1</sup>, Carl Olsson<sup>1,2</sup>, and Fredrik Kahl<sup>1</sup>
4
+
5
+ <sup>1</sup>Chalmers University of Technology, Sweden
6
+
7
+ $^{2}$ Lund University, Sweden
8
+
9
+ # Abstract
10
+
11
+ In this paper we present a study of global optimality conditions for Point Set Registration (PSR) with missing data. PSR is the problem of aligning multiple point clouds with an unknown target point cloud. Since non-linear rotation constraints are present the problem is inherently nonconvex and typically relaxed by computing the Lagrange dual, which is a Semidefinite Program (SDP).
12
+
13
+ In this work we show that given a local minimizer the dual variables of the SDP can be computed in closed form. This opens up the possibility of verifying the optimally, using the SDP formulation without explicitly solving it. In addition it allows us to study under what conditions the relaxation is tight, through spectral analysis. We show that if the errors in the (unknown) optimal solution are bounded the SDP formulation will be able to recover it.
14
+
15
+ # 1. Introduction
16
+
17
+ Point Set Registration (PSR) is a problem with several applications in the area of computer vision [4, 20, 14, 21, 29, 5, 2, 11, 24], which consists of estimating transformations that align two or more sets of 3D points. The instance of PSR with only two views related by a rigid transformation is a particular case which has been been intensively studied and that can be solved in closed form [3]. But as the number of view increases, and incomplete observations are taken in consideration, the problem becomes more complex due to the constraints on the rotations.
18
+
19
+ In this work we focus on the registration of multiple point clouds to a global coordinate system. The point clouds correspond to observations of subsets of $n$ points from $m$ local coordinate systems. These observations, besides incomplete, can be noisy and are related through unknown rigid transformations. Assuming that sparse correspondences between 3D points are known, the aim of such problem is not only to estimate the unknown transformations from
20
+
21
+ the $m$ local coordinate systems to a global coordinate system, but also the global coordinates of the original set of $n$ points. Solutions or approximated solutions to this problem are not exactly new, as shown in [7], whereby we aim at study global optimality conditions when solving PSR using Semidefinite Programming (SDP) [26].
22
+
23
+ Global optimization over the manifold of rotations have previously been studied by a number of papers. A classical result is that of Horn et al. [13] which showed that registration of two point sets under a Euclidean transformation can be solved globally optimally using singular value decomposition. In [18] a similar problem where the point-to-point correspondences were replaced by point-to-plane correspondences was considered. It was shown how to apply Lagrangian duality to achieve orthogonality or the transformation matrix. The relaxation was tightened in [6], which introduced orientation constraints on the columns of the rotation matrix and added redundant rotation constraints to strengthen the lower bound provided by the dual problem. Yang et al. [28] also applies Lagrangian duality to obtain a quaternion-based certifiably optimal solution to the Wahba problem.
24
+
25
+ A problem that has received lots of attention in recent years due to it usefulness in structure from motion and SLAM applications is that of rotation averaging [9, 1, 30, 19, 8] One of the first attempts at solving this problem was presented in [10] where the unit norm constraint was dropped to achieve a linear solution strategy. Fredriksson et al. [9] showed how to incorporate the norm constraint using duality. Martinec and Pajdla [16] used the matrix parameterization but dropped the orthogonality and determinant constraints and extracted an approximate solution from the eigenvalues corresponding to the three smallest eigenvalues of the system matrix. Eriksson et al. [8] recently showed that despite the non-convexity of the problem, applying Lagrangian duality allows to enforce orthonormality and determinant constraints exactly under very generous noise levels. In [12] convexity properties of the single rotation averaging problem are studied. As far as we know these results
26
+
27
+ do not generalize to the case of multiple rotations.
28
+
29
+ From an application point of view the work that is the closest to ours is that of Chaudhury et al. [7]. This work introduced a spectral and a SDP relaxation that turns global registration of point clouds into a convex problem, which can be solved in polynomial time using a proposed algorithm. The authors also present sufficient conditions on the problem for exact recovery using the proposed algorithm, as well as a detailed stability analysis.
30
+
31
+ Motivated by [8], and even though it starts from a similar formulation, this work differs from [7] by proposing a certificate and studying the conditions in terms of the estimated point cloud, global pose and missing data that assures global optimality of a candidate primal solution, using Lagrangian duality and spectral analysis. The main contributions of the paper are:
32
+
33
+ - application of Lagrangian duality to the Point Registration Problem, that given a candidate solution to the primal problem allows us to obtain the corresponding dual variable in closed form. This allows verifying the global optimality of a local minimizer without solving the SDP (Lemma 1), which leads to a significant speedup;
34
+ - derivation of certificates/bounds (Theorems 1 and 2) on reconstruction errors that, if fulfilled, are sufficient to guarantee global optimality of a candidate primal solution;
35
+ - analysis and evaluation of the certificates as function of missing data and spatial distribution of the estimated 3D scene, using synthetic and real data.
36
+
37
+ # 1.1. Notation
38
+
39
+ Throughout the paper we use lower-case letters to represent scalars and vectors, and upper-case letters for matrices. An element of a matrix $A$ at position $(i,j)$ is referred as $\{A\}_{i,j}$ , while $A_{i,j} \in \mathbb{R}^{n,m}$ corresponds to a block of the matrix $A$ with dimensions $n \times m$ . We use $\| A \|$ as the operator 2-norm of a matrix $A$ , and $A^{\dagger}$ as its Moore-Penrose pseudoinverse. We denote $\lambda_i(A)$ as the $i$ :th eigenvalue of a matrix $A \in \mathbb{R}^{n \times n}$ , such that $\lambda_1(A) \leq \lambda_2(A) \leq \ldots \leq \lambda_n(A)$ .
40
+
41
+ # 2. Problem Statement
42
+
43
+ The Point Set Registration (PSR) problem consists of estimating $m$ transformations, i.e. pairs of rotations and translations, that align $m$ observed point sets w.r.t. a global coordinate system, along with an "average" point set. The $m$ observed point sets and the "average" point set are usually also called source point sets and target point set, respectively. The problem assumes known correspondences between point sets, and it can have missing data in the sense
44
+
45
+ that a source set might lack observations of some points in the target set. The goal is to minimize the distance between the transformed source sets to the target set, and the corresponding optimization problem is usually formulated as
46
+
47
+ $$
48
+ \min _ {y, R, t} \quad \sum_ {i, j} w _ {i, j} \| y _ {i} - \left(R _ {j} x _ {i, j} + t _ {j}\right) \| ^ {2}, \tag {1}
49
+ $$
50
+
51
+ $$
52
+ \text {s u b j e c t} R _ {j} \in \mathcal {S O} (3), j = 1, \dots , m
53
+ $$
54
+
55
+ where $R_{j}$ and $t_j$ are the rotation and translation from frame $j$ to the global frame, $y_{i}$ the $i$ :th point of the target set, $x_{i,j}$ the observation of the $i$ :th point of the $j$ :th source set, and $w_{i,j} = \{0,1\}$ determines if point $i$ is observed in the $j$ :th source set. We assume that the target set has $n$ points and there are $m$ source sets, so $i = 1,\dots ,n$ and $j = 1,\dots ,m$ . Each term of (1) can be written in more compact form using trace notation as follows
56
+
57
+ $$
58
+ \begin{array}{l} \left\| y _ {i} - \left(R _ {j} x _ {i, j} + t _ {j}\right) \right\| ^ {2} = \\ = \operatorname {t r} \left(\left[ \begin{array}{l l l} y _ {i} & t _ {j} & R _ {j} \end{array} \right] \left[ \begin{array}{c c c} 1 & - 1 & - x _ {i, j} ^ {T} \\ - 1 & 1 & x _ {i, j} ^ {T} \\ x _ {i, j} & x _ {i, j} & - x _ {i, j} x _ {i, j} ^ {T} \end{array} \right] \left[ \begin{array}{l} y _ {i} ^ {T} \\ t _ {j} ^ {T} \\ R _ {j} ^ {T} \end{array} \right]\right), \tag {2} \\ \end{array}
59
+ $$
60
+
61
+ and if we assume that each source set has zero mean, i.e. $\sum_{i}w_{i,j}x_{i,j} = 0$ by summing over $i$ and $j$ the total cost in (1) becomes
62
+
63
+ $$
64
+ \operatorname {t r} \left(\left[ \begin{array}{l l l} Y & T & R \end{array} \right] \left[ \begin{array}{c c c} A & - W & - X ^ {T} \\ - W ^ {T} & B & 0 \\ - X & 0 & C \end{array} \right] \left[ \begin{array}{l} Y ^ {T} \\ T ^ {T} \\ R ^ {T} \end{array} \right]\right) \tag {3}
65
+ $$
66
+
67
+ where $Y = [y_{1} \ldots y_{n}]$ , $T = [t_{1} \ldots t_{m}]$ , $R = [R_{1} \ldots R_{m}]$ , $\{W\}_{i,j} = w_{i,j}$ , $A$ and $B$ are diagonal matrices with $\{A\}_{i,i} = \sum_{j} w_{i,j}$ and $\{B\}_{j,j} = \sum_{i} w_{i,j}$ , $C$ is a block diagonal matrix with $3 \times 3$ blocks $C_{j,j} = \sum_{i} w_{i,j} x_{i,j} x_{i,j}^{T}$ , and $X = [X_{1}^{T}, \ldots, X_{m}^{T}]^{T}$ with $X_{j} = [w_{1,j} x_{1,j} \ldots w_{n,j} x_{n,j}]$ . The cost function defined in (3) depends on $R, Y$ and $T$ . If we fix $R$ the remaining variables are unconstrained with a least squares objective and we can therefore compute the optimal $Y$ and $T$ in terms of $R$ , which eliminates $Y$ and $T$ . Another way to write (3) is
68
+
69
+ $$
70
+ \operatorname {t r} \left(Y A Y ^ {T} - 2 Y W T ^ {T} - 2 Y X ^ {T} R ^ {T} + T B T ^ {T} + R C R ^ {T}\right), \tag {4}
71
+ $$
72
+
73
+ where the term $RCR^T$ can be dropped since $RRT$ is constant along its $3 \times 3$ blocks diagonal. From the stationary conditions for the gradient of (4) with respect to the $T$ , we get that $-2YW + 2TB = 0 \Leftrightarrow T = YWB^{-1}$ and by replacing $T$ in (4)
74
+
75
+ $$
76
+ \operatorname {t r} \left(Y L Y ^ {T} - 2 Y X ^ {T} R ^ {T}\right). \tag {5}
77
+ $$
78
+
79
+ The matrix $L = A - WB^{-1}W^{T}$ is the Laplacian of a weighted graph, with $n$ nodes, each corresponding to a 3D
80
+
81
+ point from $Y$ . A similar type of graph was studied by Mieghem et al. [25]. Graph Laplacians have some well known properties: 1) they are positive semidefinite; 2) for non-degenerative cases, they have a unique zero eigenvalue, which corresponds to the eigenvector $\mathbb{1}_n$ , that is a vector of all ones. For simplicity of notation we let $P = L^{\dagger}$ . By considering the eigenvalue decompositions of $L$ and $P$ it is easy to see that the same is true for $P$ , and that non-zero eigenvalues of $P$ can be obtained from the eigenvalues of $L$ as $\lambda_k(P) = 1 / \lambda_{n - k + 2}(L)$ , $k = 2,\dots ,n$ . Alternatively, one can write $L = \sum_{k}\Theta_{k}$ , where $\Theta_{k} = \mathrm{diag}(W_{k}) - \frac{1}{n_{k}} W_{k}^{T}W_{k}$ and $W_{k}$ is row $k$ of $W$ . Note that for source point sets with zero mean, we have that $t_k = \frac{\sum_i w_{i,k}y_k}{\sum_i w_{i,k}} = \frac{1}{n_k} YW_k^T$ , where $n_k = \sum_i w_{i,k}$ . This means that $T_{k}$ can be obtained from $Y$ as $T_{k} = \frac{1}{n_{k}} YW_{k}^{T}W_{k}$ , and consequently $Y_{k} - T_{k} = Y\left(\mathrm{diag}(W_{k}) - \frac{1}{n_{k}} W_{k}^{T}W_{k}\right) = Y\Theta_{k}$ . Each $\Theta_{k}$ is an orthogonal projection, which means $\Theta_k^2 = \Theta_k = \Theta_k^T$ , and it can be interpreted as an operator that selects the set of points of $Y$ that are observed in the point set $k$ and makes it zero-meaned by subtracting its average. For a complete source point set, $W_{k}$ is a all-ones vector and we have $\Theta = I_n - \frac{1}{n}\mathbb{1}_n$ , and as so $\Theta P = P\Theta = P$ .
82
+
83
+ To eliminate $Y$ from the expression (5) we again use the stationary point conditions, now using the gradient with respect to $Y$ , which gives
84
+
85
+ $$
86
+ 2 Y L - 2 R X = 0 \Leftrightarrow Y = R X P + Q, \tag {6}
87
+ $$
88
+
89
+ where $Q$ is an arbitrary matrix that fulfills $QL = 0$ . The matrix $Q$ , who's rows are in the nullspace of $L$ , must have constant rows. Since the columns of $X^T$ have zero mean it is clear that $QX^T = 0$ and therefore substituting (6) into (5) we can write our cost function as $-\mathrm{tr}\left(RXP^TR^T\right)$ . Since $Q$ has no influence on the cost function, we can choose $Q = 0$ and as so $Y = RXP$ . We define our primal problem $(P)$ as minimizing the cost function over the rotation matrices group, i.e.,
90
+
91
+ $$
92
+ (P) \quad \min _ {R} \quad - \operatorname {t r} \left(R X P X ^ {T} R ^ {T}\right) \tag {7}
93
+ $$
94
+
95
+ subject to $R_{j}\in \mathcal{SO}(3),j = 1,\ldots ,m.$
96
+
97
+ In the following we let $M = -XPX^T$ .
98
+
99
+ # 3. Duality and Optimality Conditions
100
+
101
+ This section will focus on sufficient conditions, in terms of the dual variables, for which there is no duality gap between the primal problem (7) and its dual problem. Then, in the next section, we will analyze these conditions in terms of the input data, noise level and missing data.
102
+
103
+ Eriksson et al. [8] have studied these conditions for the dual problem applied to the rotation averaging problem. The reasoning and main conclusions, given the similar
104
+
105
+ structure of the primal problem, can also be directly applying for the semidefinite program to the PSR problem. In this section we give a brief review of this analysis. For additional details we refer to [8].
106
+
107
+ # 3.1. Relaxation of the Primal Problem
108
+
109
+ For a solution $R^*$ to be a minimum of the primal problem $(P)$ it has to fulfill KKT conditions. If we relax the primal by removing the determinant constraint $(\det(R_j) = 1, j = 1, \ldots, m)$ , the Lagrangian of the problem is
110
+
111
+ $$
112
+ L (R, \Lambda) = \operatorname {t r} \left(R (\Lambda + M) R ^ {T}\right) - \operatorname {t r} (\Lambda), \tag {8}
113
+ $$
114
+
115
+ where $\Lambda = \mathrm{diag}(\Lambda_1, \ldots, \Lambda_m)$ and $\Lambda_j$ are $3 \times 3$ symmetric matrices. From the gradient of (8) we get that the KKT conditions are
116
+
117
+ $$
118
+ \begin{array}{l} \left(\Lambda^ {*} + M\right) R ^ {* T} = 0, \\ \vdots \end{array} \tag {9}
119
+ $$
120
+
121
+ $$
122
+ R ^ {*} \in \mathcal {S O} (3) ^ {m}.
123
+ $$
124
+
125
+ The first equation of (9) allows us to get a closed form solution for $\Lambda^{*}$ as a function of $R^{*}$ , where each block $\Lambda_{i}^{*}$ is given by
126
+
127
+ $$
128
+ \Lambda_ {i} ^ {*} = \sum_ {j} X _ {i} P X _ {j} ^ {T} R _ {j} ^ {* T} R _ {i} ^ {*}, i = 1, \dots , m. \tag {10}
129
+ $$
130
+
131
+ From (10), and by defining $M_{\Lambda} = \Lambda^{*} + M$ , we get that
132
+
133
+ $$
134
+ (M _ {\Lambda}) _ {i, j} = \left\{ \begin{array}{l l} \sum_ {k \neq i} X _ {i} P X _ {k} ^ {T} R _ {k} ^ {* T} R _ {i} ^ {*}, & i = j \\ - X _ {i} P X _ {j} ^ {T}, & \text {o t h e r w i s e} \end{array} . \right. \tag {11}
135
+ $$
136
+
137
+ The result from (11) will be used in later sections.
138
+
139
+ # 3.2. Sufficient Global Optimality Conditions
140
+
141
+ In this section we will define the dual problem of $(P)$ and state conditions in terms of $M_{\Lambda}$ which guarantee that there is no duality gap between the primal and the dual problems. From (8) we can write the dual $(D)$ problem of $(P)$ as
142
+
143
+ $$
144
+ \max _ {M _ {\Lambda} \succeq 0} \quad \min _ {R} L (R, \Lambda). \tag {12}
145
+ $$
146
+
147
+ Note that we get
148
+
149
+ $$
150
+ \min _ {R} L (R, \Lambda) = \left\{ \begin{array}{l l} - \operatorname {t r} (\Lambda), & M _ {\Lambda} \succeq 0 \\ - \infty , & \text {o t h e r w i s e} \end{array} , \right. \tag {13}
151
+ $$
152
+
153
+ which gives the dual problem
154
+
155
+ $$
156
+ (D) \quad \max _ {M _ {\Lambda} \succeq 0} \operatorname {t r} (\Lambda). \tag {14}
157
+ $$
158
+
159
+ The following lemma relates the KKT conditions to the dual problem and forms the basis of our approach:
160
+
161
+ Lemma 1 If $R^{*}$ is a KKT point with corresponding Lagrange multiplier $\Lambda^{*}$ then $R^{*}$ is globally optimal and there is no duality gap between $(P)$ and $(D)$ if $M_{\Lambda} \succeq 0$ .
162
+
163
+ If the dual variable $\Lambda^{*}$ can be computed by other means than solving the SDP then $M_{\Lambda}^{*} \succeq 0$ can be used as a certificate of optimality. Hence this gives us a way of verifying optimality of a local solution for the PSR problem.
164
+
165
+ # 4. Spectral Analysis of $M_{\Lambda}$
166
+
167
+ In this section we investigate under what conditions we can ensure that $M_{\Lambda} \succeq 0$ for a KKT point $R^{*}$ . Our goal is to understand why these problems often give tight relaxations even for relatively high noise levels (see Section 6).
168
+
169
+ # 4.1. Decoupling into Noise-free and Noisy Data
170
+
171
+ We will start by defining $D_R$ as a block diagonal matrix with $(D_R)_{i,i} = R_i^*$ . Since $D_R$ is an orthogonal matrix, we have that if $D_R M_\Lambda D_R^T$ is positive semidefinite, then $M_\Lambda$ is positive semidefinite as well. From (11), we get that each $3 \times 3$ block of $D_R M_\Lambda D_R^T$ is given by
172
+
173
+ $$
174
+ \left(D _ {R} M _ {\Lambda} D _ {R} ^ {T}\right) _ {i, j} = \left\{ \begin{array}{l l} \sum_ {k \neq i} R _ {i} ^ {*} X _ {i} P X _ {k} ^ {T} R _ {k} ^ {* T}, & i = j \\ - R _ {i} ^ {*} X _ {i} P X _ {j} ^ {T} R _ {j} ^ {* T}, & \text {o t h e r w i s e} \end{array} \right. \tag {15}
175
+ $$
176
+
177
+ From now on we will again drop the $(.)^{*}$ notation for simplicity. In the absence of noise, $R_{k}X_{k} = Y\Theta_{k}$ , we get that the block elements outside of the diagonal of $D_{R}M_{\Lambda}D_{R}^{T}$ become $-Y\Theta_{i}P\Theta_{j}Y^{T}$ and the diagonal blocks become $\sum_{k\neq i}Y\Theta_{i}P\Theta_{j}Y^{T}$ . This results in a positive semidefinite matrix $D_{Y\Theta}\Phi D_{Y\Theta}^{T}$ , where
178
+
179
+ $$
180
+ D _ {Y \Theta} = \left[ \begin{array}{c c c} Y \Theta_ {1} & 0 ^ {3 \times n} & \dots \\ 0 ^ {3 \times n} & Y \Theta_ {2} & \dots \\ \vdots & \vdots & \ddots \end{array} \right] \tag {16}
181
+ $$
182
+
183
+ and each $n\times n$ block of $\Phi$ is given by
184
+
185
+ $$
186
+ \Phi_ {i, j} = \left\{ \begin{array}{l} I - P, i = j \\ - P, \text {o t h e r w i s e} \end{array} \right.. \tag {17}
187
+ $$
188
+
189
+ To the difference between $D_{R}M_{\Lambda}D_{R}^{T}$ and $D_{Y\Theta}\Phi D_{Y\Theta}^{T}$ we will call $\Delta$ , which consist of a matrix that captures the noise dependence of $D_{R}M_{\Lambda}D_{R}^{T}$ . As so, we have $D_{R}M_{\Lambda}D_{R}^{T} = D_{Y\Theta}\Phi D_{Y\Theta}^{T} + \Delta$ .
190
+
191
+ # 4.2. Spectral Analysis of the Decoupled Data
192
+
193
+ The matrix $D_{R}M_{\Lambda}D_{R}^{T}$ is positive semidefinite if and only if the eigenvalues of $D_{R}M_{\Lambda}D_{R}^{T}$ are greater or equal to zero. Using Weyl's eigenvalue inequality and our noise-free and noisy decomposition of $D_{R}M_{\Lambda}D_{R}^{T}$ , we can write that
194
+
195
+ $$
196
+ \lambda_ {1} \left(D _ {R} M _ {\Lambda} D _ {R} ^ {T}\right) \geq \lambda_ {1} \left(D _ {Y \Theta} \Phi D _ {Y \Theta} ^ {T}\right) - \left| \lambda_ {\max } (\Delta) \right| \geq 0. \tag {18}
197
+ $$
198
+
199
+ Note that, according to (15), $\sum_{j}\left(D_{R}M_{\Lambda}D_{R}^{T}\right)_{i,j} = 0$ meaning that any matrix $\mu N = \mu [I I \ldots ]^T$ with arbitrary $\mu$ belongs to the null space of $D_{R}M_{\Lambda}D_{R}^{T}$ . For a large enough $\mu$ , we have that $\lambda_1\left(D_R M_\Lambda D_R^T +\mu NN^T\right) = \lambda_4\left(D_R M_\Lambda D_R^T\right)$ . The exact same reasoning can be applied to $D_{Y\Theta}\Phi D_{Y\Theta}^{T}$ , resulting in $\lambda_1\left(D_{Y\Theta}\Phi D_{Y\Theta}^T +\mu NN^T\right) = \lambda_4\left(D_{Y\Theta}\Phi D_{Y\Theta}^T\right)$ . And so, by adding $\mu NN^T$ to both sides we get
200
+
201
+ $$
202
+ \lambda_ {4} \left(D _ {R} M _ {\Lambda} D _ {R} ^ {T}\right) \geq \lambda_ {4} \left(D _ {Y \Theta} \Phi D _ {Y \Theta} ^ {T}\right) - \left| \lambda_ {\max } (\Delta) \right| \geq 0. \tag {19}
203
+ $$
204
+
205
+ We will use the result from (19) as a lower bound to $\lambda_4(D_R M_\Lambda D_R^T)$ , meaning that if we get $\lambda_4(D_{Y\Theta}\Phi D_{Y\Theta}^T) \geq |\lambda_{\max}(\Delta)|$ then $M_\Lambda$ is positive semidefinite and the KKT point is the global minimum of $(P)$ .
206
+
207
+ Now, as stated in [8], we have that $|\lambda_{\max}(\Delta)| \leq \sum_{j} \|\Delta_{i,j}\|$ , where $\Delta_{i,j} = Y \Theta_i P \Theta_j Y^T - R_i X_i P X_j^T R_j^T$ for $i \neq j$ , and $\Delta_{i,i} = -\sum_{i \neq j} \Delta_{i,j}$ . By defining
208
+
209
+ $$
210
+ \eta := \max _ {i \neq j} m \| Y \Theta_ {i} P \Theta_ {j} Y ^ {T} - R _ {i} X _ {i} P X _ {j} ^ {T} R _ {j} ^ {T} \| \tag {20}
211
+ $$
212
+
213
+ we can conclude that $|\lambda_{\max}(\Delta)| \leq 2\sum_{i \neq j} \|\Delta_{i,j}\| \leq 2\frac{m-1}{m}\eta$ . As so, from (19) we obtain a sufficient condition for global optimality.
214
+
215
+ Theorem 1 Given a candidate solution $R^{*}$ that fulfills (9), there is no duality gap between $(P)$ and $(D)$ if
216
+
217
+ $$
218
+ \epsilon := \frac {\eta}{\lambda_ {4} \left(D _ {Y \Theta} \Phi D _ {Y \Theta} ^ {T}\right)} \leq \frac {m}{2 (m - 1)}. \tag {21}
219
+ $$
220
+
221
+ No missing data case For the particular case of no missing data, we have that $\lambda_4(D_{Y\Theta}\Phi D_{Y\Theta}^T)$ can be simplified. Note that, in this case, $D_Y\Phi D_Y^T = (mI_m - \mathbb{1}_m)\otimes \frac{1}{m} YY^T$ The eigenvalue property of the Kronecker product tells us that the eigenvalues of $D_Y\Phi D_Y^T$ are given by $\lambda_i(mI_m-$ $\mathbb{1}_m)\lambda_j(\frac{1}{m} YY^T)$ with $i = 1,\dots ,m$ and $j = 1,2,3$ .The matrix $mI_{m} - \mathbb{1}_{m}$ has $m$ eigenvalues, where $\lambda_{1}(mI_{m}-$ $\mathbb{1}_m) = 0$ and $\lambda_k(mI_m - \mathbb{1}_m) = m$ $k = 2,\ldots ,m$ . This means that the smallest non-zero eigenvalue of $D_Y\Phi D_Y^T$ is given by $\lambda_4(D_Y\Phi D_Y^T) = \lambda_1(YY^T)$ . The upper bound of $|\lambda_{\mathrm{max}}(\Delta)|$ can also be simplified since now we have
222
+
223
+ $$
224
+ \eta_ {0} := \max _ {i \neq j} \| Y Y ^ {T} - R _ {i} X _ {i} X _ {j} ^ {T} R _ {j} ^ {T} \| \tag {22}
225
+ $$
226
+
227
+ and consequently a sufficient condition for global optimality for no missing data is obtained.
228
+
229
+ Corollary 1.1 (No Missing Data) If all points are visible in all views, i.e., $w_{i,j} = 1$ , $\forall i,j$ , then, given a candidate solution $R^*$ that fulfills (9), there is no duality gap between $(P)$ and $(D)$ if
230
+
231
+ $$
232
+ \epsilon_ {0} := \frac {\eta_ {0}}{\lambda_ {1} (Y Y ^ {T})} \leq \frac {m}{2 (m - 1)}. \tag {23}
233
+ $$
234
+
235
+ # 4.3. Interpretation and Evaluation
236
+
237
+ The results Theorem 1 and specially Corollary 1.1 allow us to obtain some interpretation about the (sufficient) conditions for global optimality. For the no missing data case, one can see that global optimality is guaranteed when the ratio between the biggest eigenvalue of the noise dependent $\eta_0$ and the smallest eigenvalue is smaller than $\frac{m}{2(m - 1)}$ . The $\eta_0$ encapsulates the noise in the problem by quantifying the difference between the covariance matrix of $Y$ and the cross-correlation matrix of each pair of point sets, over $i \neq j$ . Note that in the noise-free case we have $\eta_0 = 0$ . A similar interpretation can be extended to the general case with missing data, where the covariance and correlation matrices in (20), as well as the clean data in $\lambda_4(D_{Y\Theta}\Phi D_{Y\Theta}^T)$ , are weighted based on the observed data through $P$ .
238
+
239
+ To evaluate the duality gap and the results from Theorem 1 and Corollary 1.1, we will generate several (100) instances of PSR problems for different noise levels, percentage of missing data, and spatial distribution of the target point cloud. Each instance has $n = 250$ points and $m = 10$ rotations and translations, generated from a Gaussian distribution. The noise in the source point sets is also generated from a Gaussian distribution with standard deviation from 0 to 4 times the standard deviation of the instance's point cloud. For the missing data, we randomly remove $p\%$ of the $n$ points, with $p = \{0, 25, 50\}$ . Since $\epsilon$ depends on $\lambda_4(D_{Y\Theta}\Phi D_{Y\Theta}^T)$ , we also change the instance's point cloud covariance, such that $\frac{\lambda_1(YY^T)}{\lambda_3(YYT)} = q$ , with $q = \{0.1, 0.5, 1\}$ . Note that if $q = 0$ , the point cloud is contained in a 2D-plane. Regarding the duality gap of the SDP relaxation, we solve the SDP problem similarly to what Eriksson et al. [8] do, and then look at the rank of the obtained solution. If the rank is superior to 3 then the relaxation is non-tight.
240
+
241
+ For these two experiments, the average rank of $\epsilon$ and of the SDP solution over the PSR problem instances are shown in Figure 1 and 2, respectively, and we have sufficient conditions for global optimality when $\epsilon < \frac{m}{2(m - 1)} = 0.56$ . Since $\epsilon$ can only be evaluated for KKT points, when the SDP gives a solution with rank higher than 3, we project it to a rank 3 solution and then perform local optimization (see Section 6.1 for more details about this).
242
+
243
+ One of the main things to note is the high amount of noise that the SDP relaxation allows before there is duality gap. We can also see that the tightness of the relaxation is highly affected by changes in $p$ and $q$ . In particular, from our experiments it is clear that the bound in Theorem 1 gets looser as $\lambda_1 (YY^T) \to 0$ , and consequently $\lambda_4 (D_{Y\Theta} \Phi D_{Y\Theta}^T) \to 0$ , resulting in a reduced usefulness for real problems when the estimated point cloud is close to planar. To improve this, one has to find an alternative decoupling in which the noise-free component does not depend on the point cloud spatial distribution.
244
+
245
+ ![](images/78c39144c78911be828bb169b8f7544cd72b0cc240066ebebe59aa4be0c496c5.jpg)
246
+ Figure 1: Evaluation of the result from Theorem 1 for $0\%$ , $25\%$ and $50\%$ of missing data and under different noise levels. The plotted data points correspond to the average over the generated problem instances. For this experiment, $\frac{\lambda_1(YY^T)}{\lambda_3(YY^T)} = q$ is fixed as 1.
247
+
248
+ ![](images/cc5ec53937489b9dfecb5bd21824ad3807d7a463ae93b0106edbb2327a20b069.jpg)
249
+ Figure 2: Evaluation of the result from Theorem 1 for $q = \{0.1, 0.5, 1\}$ and under different noise levels. The plotted data points correspond to the average over the generated problem instances. For this experiment, we set $p = 0$ (no missing data).
250
+
251
+ # 5. An Alternative Spectral Analysis
252
+
253
+ In order to find a better noise-free/noisy data decomposition we go back to the matrix $D_{R}M_{\Lambda}D_{R}^{T}$ defined in (15). This matrix can also be written as $D_{R}M_{\Lambda}D_{R}^{T} = D_{1} - D_{2}PD_{2}^{T}$ where $D_{1} = \mathrm{blkdiag}(R_{1}X_{1}Y^{T},\ldots ,R_{m}X_{m}Y^{T})$ and $D_{2} = D_{R}X$ . This means that $D_{R}M_{\Lambda}D_{R}^{T}$ is the Schur complement $Q\setminus L$ of a matrix
254
+
255
+ $$
256
+ Q = \left[ \begin{array}{c c} D _ {1} & D _ {2} \\ D _ {2} ^ {T} & L \end{array} \right]. \tag {24}
257
+ $$
258
+
259
+ From the Schur complement properties, it follows that if $L \succeq 0$ (which is true since it is the Laplacian of a weighted graph as stated in Section 2), then $D_{R}M_{\Lambda}D_{R}^{T} \succeq 0$ iff $Q \succeq 0$ . The matrix $Q$ has other Schur complement, $Q \setminus D1 = L - D_2^T D_1^{-1}D_2$ and similarly, we have that if $D1 \succeq 0$ , then $Q \succeq 0$ iff $L - D_2^T D_1^{-1}D_2 \succeq 0$ . This means that finding
260
+
261
+ the sufficient conditions for $D_{R}M_{\Lambda}D_{R}^{T}\succeq 0$ is equivalent to doing the same for $D_{1}\succeq 0$ and $Q\setminus D_1\succeq 0$ . Since $D_{1}$ is a block diagonal matrix, $D_{1}\succeq 0$ iff $R_{k}X_{k}Y^{T}\succeq 0$ , for all $k = 1,\ldots ,m$ .
262
+
263
+ The matrix $Q \setminus D_1$ has rank $n - 4$ , and its null-space its spanned by a all-ones vector $\mathbb{1}$ and $Y$ . Note also that $\mathbb{1}$ and $Y$ are orthogonal since $Y^T\mathbb{1} = 0$ .
264
+
265
+ # 5.1. Decoupling into Noise-free and Noisy Data
266
+
267
+ The procedure for decoupling $Q \setminus D_{1}$ into noise-free and noisy matrices is similar to the one followed in Section 4.1.
268
+
269
+ In a noise-free situation, we have that $Q \setminus D_1$ becomes $L - \sum_{i} \Theta_i Y^T \tilde{C}_i^{-1} Y \Theta_i$ with $\tilde{C}_i = Y \Theta_i Y^T$ . Note that this matrix shares the same rank and null space as $Q \setminus D_1$ .
270
+
271
+ The noisy matrix, here denominated as $\Delta^{\prime}$ , can be obtained by subtracting $L - \sum_{i}\Theta_{i}Y^{T}\tilde{C}_{i}^{-1}Y\Theta_{i}$ from $Q\setminus D_1$ which results in
272
+
273
+ $$
274
+ \Delta^ {\prime} = \sum_ {i} \Theta_ {i} Y ^ {T} \tilde {C} _ {i} ^ {- 1} Y \Theta_ {i} - X _ {i} ^ {T} R _ {i} ^ {T} C _ {i} ^ {- 1} R _ {i} X _ {i} \tag {25}
275
+ $$
276
+
277
+ where $C_i^{-1} = (R_iX_iY^T)^{-1}$
278
+
279
+ # 5.2. Spectral Analysis of the Decoupled Data
280
+
281
+ Just as in Section 4.2, we apply the Weyl's eigenvalue inequality to our decoupled data, and use the 4-dimensional null space of $Q \setminus D_1$ (and $L - \sum_{i} \Theta_i Y^T \tilde{C}_i^{-1} Y \Theta_i$ ) to consider the smallest non-zero eigenvalues, resulting in the inequality
282
+
283
+ $$
284
+ \lambda_ {1} (Q \backslash D _ {1}) \geq \lambda_ {5} \left(L - \sum_ {i} \Theta_ {i} Y ^ {T} \tilde {C} _ {i} ^ {- 1} Y \Theta_ {i}\right) - \eta^ {\prime} \geq 0, \tag {26}
285
+ $$
286
+
287
+ where we define
288
+
289
+ $$
290
+ \begin{array}{l} \eta^ {\prime} := \left| \lambda_ {\max } \left(\Delta^ {\prime}\right) \right| = \\ = \| \sum_ {i} \Theta_ {i} Y ^ {T} \tilde {C} _ {i} ^ {- 1} Y \Theta_ {i} - X _ {i} ^ {T} R _ {i} ^ {T} C _ {i} ^ {- 1} R _ {i} X _ {i} \|. \tag {27} \\ \end{array}
291
+ $$
292
+
293
+ From the eigenvalue inequality (26) we are able to draw a new sufficient condition for global optimality.
294
+
295
+ Theorem 2 Given a candidate solution $R^*$ that fulfills (9), if $R_k X_k Y^T \succeq 0$ for all $k = 1, \ldots, m$ , then there is no duality gap between $(P)$ and $(D)$ if
296
+
297
+ $$
298
+ \epsilon^ {\prime} := \frac {\eta^ {\prime}}{\lambda_ {5} \left(L - \sum_ {i} \Theta_ {i} Y ^ {T} \tilde {C} _ {i} ^ {- 1} Y \Theta_ {i}\right)} \leq 1. \tag {28}
299
+ $$
300
+
301
+ No missing data case In the absence of missing data, we have $L = mI - \mathbb{1}_n$ , $Y\Theta_{i} = Y$ and $\tilde{C}_i = \tilde{C} = YY^T$ . In this case we are able to obtain a closed-form solution for $\lambda_5(L - \sum_i\Theta_iY^T\tilde{C}_i^{-1}Y\Theta_i)$ that does not depend on the point cloud spatial distribution, as desired. Since $\mathbb{1}_n = \mathbb{1}\mathbb{1}^T$
302
+
303
+ and $\mathbb{1}$ belongs to the null space of the noise-free matrix, we get that, for the no missing data case,
304
+
305
+ $$
306
+ \lambda_ {5} \left(L - \sum_ {i} \Theta_ {i} Y ^ {T} \tilde {C} _ {i} ^ {- 1} Y \Theta_ {i}\right) = \lambda_ {4} \left(m \left(I - Y ^ {T} \tilde {C} ^ {- 1} Y\right)\right) \tag {29}
307
+ $$
308
+
309
+ The term $Y^{T}\tilde{C}^{-1}Y$ has eigenvalues $\{0,\dots ,01,1,1\}$ , which means that $m(I - Y^T\tilde{C}^{-1}Y)$ will have eigenvalues $\{0,0,0,m,\ldots ,m\}$ . Recall that we have shown that $Y$ belongs to the null-space of the noise-free matrix, by adding $\mu Y^{T}Y$ we get that the eigenvalues of $m(I - Y^T\tilde{C}^{-1}Y) + \mu Y^{T}Y$ will be $\{m,\dots ,m,?,\dots ,?\}$ , where by ? we represent the eigenvalues of $\mu Y^{T}Y$ for a sufficiently large $\mu$ . This means that the smallest non-zero eigenvalue will be
310
+
311
+ $$
312
+ \lambda_ {5} \left(L - \sum_ {i} \Theta_ {i} Y ^ {T} \tilde {C} _ {i} ^ {- 1} Y \Theta_ {i}\right) = m. \tag {30}
313
+ $$
314
+
315
+ The expression for (27) also simplifies as
316
+
317
+ $$
318
+ \eta_ {0} ^ {\prime} := \left\| m Y ^ {T} \tilde {C} ^ {- 1} Y - \sum_ {i} X _ {i} ^ {T} R _ {i} ^ {T} C _ {i} ^ {- 1} R _ {i} X _ {i} \right\|, \tag {31}
319
+ $$
320
+
321
+ resulting in the following corollary.
322
+
323
+ Corollary 2.1 (No Missing Data) If all points are visible in all views, i.e., $w_{i,j} = 1$ , $\forall i,j$ , given a candidate solution $R^{*}$ that fulfills (9), if $R_{k}X_{k}Y^{T} \succeq 0$ for all $k = 1,\ldots,m$ , then there is no duality gap between $(P)$ and $(D)$ if
324
+
325
+ $$
326
+ \epsilon_ {0} ^ {\prime} := \frac {\eta_ {0} ^ {\prime}}{m} \leq 1. \tag {32}
327
+ $$
328
+
329
+ # 5.3. Interpretation and Evaluation
330
+
331
+ By comparing the results from Theorem 2 and Corollary 2.1 with Theorem 1 and Corollary 1.1, respectively, one can draw some connections. First, and as desired, the noise-free component has now no dependence on the point cloud distribution. Second, while in Theorem 1 we have $\eta$ as the difference between correlation matrices, weighted by $P$ (graph of observable data), in Theorem 2 we have $\eta'$ as the difference between the Gram matrices of $Y$ and the source point sets, normalized by the correlation matrices $\tilde{C}_i$ and $C_i$ respectively.
332
+
333
+ To evaluate the result from Theorem 2 we apply it to the PSR problem instances generated in Section 4.3, under the same noise, missing data and point cloud covariance conditions. The results of the two experiments with the generated data are shown in Figures 3 and 4. We have sufficient conditions for global optimality of the candidate solution if $\epsilon' \leq 1$ and since the bound is tight, we also plot the maximum $\epsilon'$ over the instances for each noise level (red triangles) to clarify that in some instances we got $\epsilon' > 1$ even though the average is below 1.
334
+
335
+ ![](images/4b7f508d6c280105f96c5fc4bc5aba514bf0a5e1c50bc34d0489ee55fc087dbc.jpg)
336
+ (a) $p = 0$
337
+
338
+ ![](images/a0cd3ed743dd4fc234ac9d9e9f59c85ac0e92fff72c23f41ba51e0ca36da1387.jpg)
339
+ (b) $p = 0.25$
340
+
341
+ ![](images/b1829884ce6d1612a10dea30a6b1a0437a63a84aae352d8e6ea46484031f5b16.jpg)
342
+ (c) $p = 0.5$
343
+
344
+ ![](images/2183e5938157025b2842a6ebd28f85cae794402605a0bf8843efb5273095ebf2.jpg)
345
+ Figure 3: Evaluation of the result from Theorem 2 under the same conditions as in Figure 1. The continuous red line shows the average of $\epsilon'$ over the instances and the red triangles the maximum $\epsilon'$ obtain for each noise level.
346
+ (a) $q = 1$
347
+
348
+ ![](images/c98dced74f73b428f2852b8f8b3f5c52591dcfb7b3404e50ad2e756caacb613a.jpg)
349
+ (b) $q = 0.5$
350
+
351
+ ![](images/00f38bcd283ab816680ea2f97ce6c93055b442c830c98163730c5c98a9f3dae6.jpg)
352
+ (c) $q = 0.1$
353
+
354
+ ![](images/a37a46cd4d661164f14dd8f0dce66eb5c12f71f3d9360bd952beaa6d8a9d27b5.jpg)
355
+ Figure 4: Evaluation of the result from Theorem 2 under the same conditions as in Figure 2. The continuous red line shows the average of $\epsilon'$ over the instances and the red triangles the maximum $\epsilon'$ obtain for each noise level.
356
+ Figure 5: Comparison between the running time of our local optimizer and solving the SDP using SeDuMi [23].
357
+
358
+ As desired, the result from Theorem 2 is more robust to changes in the target point cloud's shape, giving a tighter bound on $\epsilon'$ . Additionally, there is also some improvement in terms of the tightness of the bound for different missing data percentages when compared with the result from Lemma 1.
359
+
360
+ # 6. Experiments
361
+
362
+ Given Lemma 1 and Theorems 1, and 2 we will now apply it to real data. We also give a brief explanation of the local optimizer used for obtaining the candidate solutions.
363
+
364
+ # 6.1. Local Optimization
365
+
366
+ One of the main applications of our results is enabling the test for global optimality of a local minimum obtained through some local optimization algorithm. This is particularly advantageous since local optimization provides faster convergence compared to solving the SDP. Figure 5 shows a comparison between the running time of the local optimization method using in our experiments and solving the SDP, for increasing values of $m$ (number of source point sets).
367
+
368
+ In our simple local optimizer, we linearize rotations as $R \approx (I + a_{1}S_{1} + a_{2}S_{2} + a_{3}S_{3})R$ , with
369
+
370
+ $$
371
+ S _ {1} = \left[ \begin{array}{c c c} 0 & - 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 0 \end{array} \right], S _ {2} = \left[ \begin{array}{c c c} 0 & 0 & - 1 \\ 0 & 0 & 0 \\ 1 & 0 & 0 \end{array} \right], S _ {3} = \left[ \begin{array}{c c c} 0 & 0 & 0 \\ 0 & 0 & - 1 \\ 0 & 1 & 0 \end{array} \right]. \tag {33}
372
+ $$
373
+
374
+ and where $a_1, a_2$ , and $a_3$ parameterize each rotation. We update the parameters of each rotation independently using the gradient of the linearized cost function of the primal (P), and then project the solution into $\mathcal{SO}(3)$ using the exponential map $R \gets e^{a_1 S_1 + a_2 S_2 + a_3 S_3} R$ . As a stopping criterion, we used a threshold on the average magnitude of the gradient. Note that this is a simplistic local optimizer for this problem, and that more efficient methods can (and should) be used to solve it.
375
+
376
+ ![](images/2f9fc700a0ef11e01380c570eb31b04ed51247e3a8c8735c1957afbaad62097c.jpg)
377
+ Figure 6: (a) Evaluation of our results in the $fr1/teddy$ sequence of the TUM RGB-D dataset ( $m = 47$ , $n = 3606$ ). The solution obtained with the local optimizer is the global minimum of (P) since it resulted in a psd $M_{\Lambda}$ and $\epsilon' = 0.1769$ . We also got $\epsilon = 2.0963$ ; (b) Evaluation of our results in the $fr3/teddy$ sequence of the TUM RGB-D dataset ( $m = 50$ , $n = 2812$ ). The solution obtained with the local optimizer resulted in a non-psd $M_{\Lambda}$ , $\epsilon = 2157.6$ and $\epsilon' = 714.84$ .
378
+
379
+ # 6.2. Evaluation of Results using Real Data
380
+
381
+ In order to show that the results from Lemma 1 and Theorems 1 and 2 can be applied to real problems, we use the local optimizer to reconstruct part of two sequences of the TUM RGB-D dataset [22]: $fr1/teddy$ and $fr3/teddy$ . The correspondences between images in each sequence are obtained by matching SIFT features [15], using MATLAB [17] and VLFeat library [27]. Three of the images used and two different points of view of the reconstruction scene are shown in Figures 6a and 6b.
382
+
383
+ For the $fr1/teddy$ sequence we use the first 47 images to get the point clouds and correspondences, resulting in $n = 3606$ points. The result obtained by using our local optimizer resulted in $M_{\Lambda} \succeq 0$ , which by Lemma 1 directly implies that it is a global maximum of (P). We also evaluate the results from Theorems 1 and 2, which give $\epsilon = 2.0963$ and $\epsilon' = 0.1769$ , respectively, and the latter also provide sufficient conditions for global optimality of the candidate solution. The fact that the sufficient condition related to $\epsilon$ is not fulfilled shows, even though valid, how sensible this condition is to missing data and spatial distribution of the point cloud.
384
+
385
+ For the $fr3/teddy$ sequence we take 1 in every 6 images, perform the SIFT matching and end up with $n = 2812$ points. For our candidate solution obtained with the local optimizer we got a non-psd $M_{\Lambda}$ , $\epsilon = 2157.6$ and $\epsilon' = 714.84$ . We also solved the SDP and the solution obtained had rank 4, which shows that the SDP relaxation for this sequence is non-tight. This sequence differs from the previous by having more movement and flow of points, resulting in more missing data and less shared points between source point sets, and as it is possible to see in Figure 1 and 2 these factors make the SDP relaxation less tight for lower amounts of noise.
386
+
387
+ # 7. Conclusions
388
+
389
+ In this paper we study global optimality conditions for the Point Set Registration problem through SDP relaxation. We use Lagrangian duality to determine a sufficient condition, Lemma 1, that guarantee that a candidate solution is a global minimum of the primal problem. Then, through spectral analysis, we decouple the problem into noise-free and noisy components, and define bounds (Theorems 1 and 2) that can also be used to test for global optimality of a candidate solution. In particular, for the no missing data scenario, we present Corollaries 1.1 and 2.1 that can be efficiently computed.
390
+
391
+ The experiments show that the SDP relaxation is tight for relatively high amounts of noise in the source point sets, but it degrades as the target point cloud becomes close to planar and as we increase the amount of missing data in the problem. This restricts the use of SDP relaxation for PSR from scenarios where the reconstructed scene is roughly planar or where there are few shared points between several source points sets.
392
+
393
+ However, for scenarios where most of the points are observable, the SDP relaxation is tight and our results can be applied as a certificate for global optimality of a candidate solution.
394
+
395
+ # Acknowledgements
396
+
397
+ This work was supported by the Swedish Research Council (grants no. 2016-04445 and no. 2018-05375) and the Swedish Foundation for Strategic Research (Semantic Mapping and Visual Navigation for Smart Robots).
398
+
399
+ # References
400
+
401
+ [1] Mica Arie-Nachimson, Shahar Z Kovalsky, Ira Kemelmacher-Shlizerman, Amit Singer, and Ronen Basri. Global motion estimation from point matches. In International Conference on 3D Imaging, Modeling, Processing, Visualization and Transmission, 2012. 1
402
+ [2] Federica Arrigoni, Beatrice Rossi, and Andrea Fusiello. Global registration of 3d point sets via lrs decomposition. In ECCV, 2016. 1
403
+ [3] K. S. Arun, T. S. Huang, and S. D. Blostein. Least-squares fitting of two 3-d point sets. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-9(5):698–700, Sep. 1987. 1
404
+ [4] P. J. Besl and N. D. McKay. A method for registration of 3-d shapes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 14(2):239-256, Feb 1992. 1
405
+ [5] Uttaran Bhattacharya and Venu Madhav Govindu. Efficient and robust registration on the 3d special euclidean group. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1
406
+ [6] Jesus Briales and Javier Gonzalez-Jimenez. Convex global 3d registration with lagrangian duality. In International Conference on Computer Vision and Pattern Recognition (CVPR), jul 2017. 1
407
+ [7] Kunal N Chaudhury, Yuehaw Khoo, and Amit Singer. Global registration of multiple point clouds using semidefinite programming. SIAM Journal on Optimization, 25(1):468-501, 2015. 1, 2
408
+ [8] Anders P. Eriksson, Carl Olsson, Fredrik Kahl, and Tat-Jun Chin. Rotation averaging and strong duality. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 127-135, 2018. 1, 2, 3, 4, 5
409
+ [9] Johan Fredriksson and Carl Olsson. Simultaneous multiple rotation averaging using Lagrangian duality. In *Asian Conference on Computer Vision*, 2012. 1
410
+ [10] V. Govindu. Combining two-view constraints for motion estimation. In IEEE Conference on Computer Vision and Pattern Recognition, 2001. 1
411
+ [11] V. M. Govindu and A. Pooja. On averaging multiview relations for 3d scan registration. IEEE Transactions on Image Processing, 23(3):1289-1302, 2014. 1
412
+ [12] R. Hartley, J. Trumpf, and Y. Dai. Rotation averaging and weak convexity. In International Symposium on Mathematical Theory of Networks and Systems, 2010. 1
413
+ [13] Berthold K. P. Horn, Hugh M. Hilden, and Shahriar Negahdaripour. Closed-form solution of absolute orientation using orthonormal matrices. J. Opt. Soc. Am. A, 5(7):1127-1135, Jul 1988. 1
414
+ [14] H. Li and R. Hartley. The 3d-3d registration problem revisited. In 2007 IEEE 11th International Conference on Computer Vision, pages 1–8, Oct 2007. 1
415
+ [15] David G. Lowe. Distinctive image features from scale-invariant keypoints. International Journal of Computer Vision, 60(2):91-110, Nov 2004. 8
416
+
417
+ [16] D. Martinec and T. Pajdla. Robust rotation and translation estimation in multiview reconstruction. In IEEE Conference on Computer Vision and Pattern Recognition, 2007. 1
418
+ [17] MATLAB. version 9.5.0 (R2018b). The MathWorks Inc., Natick, Massachusetts, 2018. 8
419
+ [18] Carl Olsson and Anders P. Eriksson. Solving quadratically constrained geometrical problems using lagrangian duality. In International Conference on Pattern Recognition (ICPR), 2008. 1
420
+ [19] David M. Rosen, Luca Carlone, Afonso S. Bandeira, and John J. Leonard. SE-Sync: A certifiably correct algorithm for synchronization over the special Euclidean group. CoRR, abs/1612.07386, 2016. 1
421
+ [20] Szymon Rusinkiewicz and Marc Levoy. Efficient variants of the icp algorithm. Proc. 3DIM, 2001, 10 2001. 1
422
+ [21] G. C. Sharp, S. W. Lee, and D. K. Wehe. Multiview registration of 3d scenes by minimizing error between coordinate frames. IEEE Transactions on Pattern Analysis and Machine Intelligence, 26(8):1037-1050, Aug 2004. 1
423
+ [22] J. Sturm, N. Engelhard, F. Endres, W. Burgard, and D. Cremers. A benchmark for the evaluation of rgb-d slam systems. In Proc. of the International Conference on Intelligent Robot Systems (IROS), Oct. 2012. 8
424
+ [23] Jos F. Sturm and Gerardo A. Guerra. A matlab toolbox for optimization over symmetric cones. 1999. 7
425
+ [24] A. Torsello, E. Rodolà, and A. Albarelli. Multiview registration via graph diffusion of dual quaternions. In CVPR 2011, pages 2441-2448, 2011. 1
426
+ [25] P. Van Mieghem, K. Devriendt, and H. Cetinay. Pseudoinverse of the laplacian and best spreader node in a network. Phys. Rev. E, 96:032311, Sep 2017. 3
427
+ [26] Lieven Vandenberghe and Stephen Boyd. Semidefinite programming. SIAM Rev., 38(1):49-95, Mar. 1996. 1
428
+ [27] Andrea Vedaldi and Brian Fulkerson. Vlfeat: An open and portable library of computer vision algorithms. volume 3, pages 1469-1472, 10 2010. 8
429
+ [28] Heng Yang and Luca Carlone. A quaternion-based certifiably optimal solution to the wahba problem with outliers. pages 1665-1674, 10 2019. 1
430
+ [29] Lei Zhang, Ligang Liu, Craig Gotsman, and Steven J. Gortler. An as-rigid-as-possible approach to sensor network localization. ACM Trans. Sen. Netw., 6(4):35:1–35:21, July 2010. 1
431
+ [30] Y. Zhong and N. Boumal. Near-optimal bounds for phase synchronization. ArXiv e-prints, Mar. 2017. 1
globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c2f49932524859f5cd5953fb0233120e3b6ca0578f15bc7abc3d25a741927b4
3
+ size 384650
globaloptimalityforpointsetregistrationusingsemidefiniteprogramming/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fe31e5a496c2bde6473fd341c45360a702c9259ee8025c41d0a833700622a6c
3
+ size 617001
globaltextureenhancementforfakefacedetectioninthewild/d048fd97-adf3-40c1-923f-beb4286675c8_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:452631c24adaecb3b5c0449775b0f7c869139691611a698129f773cc419e15b9
3
+ size 76714
globaltextureenhancementforfakefacedetectioninthewild/d048fd97-adf3-40c1-923f-beb4286675c8_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d17ff225133ea1ea5e68704b53fe9d56be47b88abe1b5537acacc2482a84a6a3
3
+ size 94016
globaltextureenhancementforfakefacedetectioninthewild/d048fd97-adf3-40c1-923f-beb4286675c8_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87b43d47c6f1232ed2401f09a28eb28b433b8bc37cf58486910c9c2dad22e25b
3
+ size 1697410
globaltextureenhancementforfakefacedetectioninthewild/full.md ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Global Texture Enhancement for Fake Face Detection In the Wild
2
+
3
+ Zhengzhe Liu, Xiaojuan Qi $^{1,2}$ , Philip H. S. Torr $^{1}$ $^{1}$ University of Oxford, $^{2}$ The University of Hong Kong
4
+
5
+ # Abstract
6
+
7
+ Generative Adversarial Networks (GANs) can generate realistic fake face images that can easily fool human beings. On the contrary, a common Convolutional Neural Network (CNN) discriminator can achieve more than $99.9\%$ accuracy in discerning fake/real images. In this paper, we conduct an empirical study on fake/real faces, and have two important observations: firstly, the texture of fake faces is substantially different from real ones; secondly, global texture statistics are more robust to image editing and transferable to fake faces from different GANs and datasets. Motivated by the above observations, we propose a new architecture coined as Gram-Net, which leverages global image texture representations for robust fake image detection. Experimental results on several datasets demonstrate that our Gram-Net outperforms existing approaches. Especially, our Gram-Net is more robust to image edits, e.g. down-sampling, JPEG compression, blur, and noise. More importantly, our Gram-Net generalizes significantly better in detecting fake faces from GAN models not seen in the training phase and can perform decently in detecting fake natural images.
8
+
9
+ # 1. Introduction
10
+
11
+ With the development of GANs [9, 12, 13, 1], computers can generate vivid face images that can easily deceive human beings as shown in Figure 1. (Can you guess which images are generated from GANs?) These generated fake faces will inevitably bring serious social risks, e.g. fake news and evidence, and pose threats to security. Thus, powerful techniques to detect these fake faces are highly desirable. However, in contrast to the intensive studies in GANs, our understanding of generated faces is fairly superficial and how to detect fake faces is still an under-explored problem. Moreover, fake faces in practical scenarios are from different unknown sources, i.e. different GANs, and may undergo unknown image distortions such as downsampling, blur, noise and JPEG compression, which makes this task even more challenging. In this paper, we aim to produce new insights on understanding fake faces from GANs and propose a new ar
12
+
13
+ ![](images/c62eb1ba6e37b5bf5d2262eda5bd9c6042dd895cc57f179fc51b680c6c463ece.jpg)
14
+
15
+ ![](images/21bc62108d59126fcb59498885a23dad91a657cdddc82fae48122cb6c949afd4.jpg)
16
+
17
+ ![](images/8e6114b4ec12b3b23827c1827ad70e0de077f7b642a05a960fb603eff0433523.jpg)
18
+
19
+ ![](images/55739139d0e0da62037811c0e82f4b66a59e8db6288528be99c23559e9c38580.jpg)
20
+ Figure 1. Can you determine which are real and which are fake? (answer key below) $^{1}$
21
+
22
+ ![](images/2d4b1ea127745ff1719b4e6fe6848b6e9d2463626d2f36458ca9b5be6922d7a0.jpg)
23
+
24
+ ![](images/3470022906458ccd5e5c666098c68931cdf854d57c45bffa99d7b1459e8cf9eb.jpg)
25
+
26
+ chitecture to tackle the above challenges. Our contributions are as follows.
27
+
28
+ Contribution 1. To facilitate the understanding of face images from GANs, we systematically study the behavior of human beings and CNN models in discriminating fake/real faces detailed in Section 3.1. In addition, we conduct extensive ablation experiments to diagnose the CNN discriminator and perform low-level statistics analysis as verification.
29
+
30
+ These empirical studies lead us to the following findings.
31
+
32
+ - Texture statistics of fake faces are substantially different from natural faces.
33
+ - Human focus on visible shape/color artifacts to detect fake face while CNNs focus more on texture regions.
34
+ - CNNs take textures as an important cue for fake face detection. A ResNet model performs almost perfectly in detecting untouched fake faces if the training data and testing data are from the same source.
35
+
36
+ Contribution 2. Although a CNN based fake face detector performs significantly better than human beings, it is still not robust enough to handle real-world scenarios, where images may be modified and/or from different unknown sources. With further analysis of the relationship between texture and fake face detection, we found large texture information is
37
+
38
+ more robust to image distortions and more invariant for face images from different GANs. However, CNNs cannot fully capture long-range or global cues due to their limited effective receptive field as studied in [21]. Motivated by the above observation, we further develop a novel architecture – Gram-Net, which improves the robustness and generalization ability of CNNs in detecting fake faces. The model incorporates “Gram Block” into the CNN backbone shown in Figure 5. The introduced Gram layer computes global texture representations in multiple semantic levels, which complements the backbone CNN.
39
+
40
+ Contribution 3 Experiments on fake faces from StyleGAN [13], PGGAN [12], DRAGAN [15], DCGAN [29], StarGAN [4], and real faces from CelebA-HQ [12], FFHQ [13], CelebA [20], show that our Gram-Net achieves state-of-the-art performance on fake face detection. Specifically, our proposed Gram-Net is robust for detecting fake faces which are edited by resizing (10% improvement), blurring (15% improvement), adding noise (13% improvement) and JPEG compressing (9% improvement). More importantly, Gram-Net demonstrates significantly better generalization abilities. It surpasses the compared approaches by a large margin (more than 10% improvement) to detect fake faces generated by GANs that are not seen in the training phase and GANs trained for other tasks including image-to-image translation GANs, e.g. StarGAN. Further, our experiments show that Gram-Net (trained on StyleGAN) generalizes much better with a 10% improvement to detect fake natural images from GANs trained on ImageNet [16], e.g. BigGAN [3].
41
+
42
+ # 2. Related work
43
+
44
+ GANs for human face generation. Recently, GAN models [8, 29, 15, 1, 2, 12, 13, 19, 36, 4] have been actively studied with applications for face image generation. One stream of research is to design GANs [8, 29, 15, 1, 2] for generating random face images from random vectors. Early works [8, 29, 15, 1, 2] can generate high quality low resolution images but suffer from mode collapse issues for generating high resolution images. The most advanced high resolution $(1024 \times 1024)$ GAN models – PGGAN [12] and StyleGAN [13]– can generate high quality face images that can even fool human beings. Another stream is to utilize GAN models for image-to-image translation tasks [19, 36, 4], e.g., Choi et al. proposed StarGAN model which can perform face image to face image translation. These generated fake faces may cause negative social impact. In this work, we aim to help the community gain more understanding about GAN generated fake faces and introduce novel neural network architecture for robust fake face image detection.
45
+
46
+ Fake GAN face detection. Recently, some researchers have investigated the problem of fake face detection [17,
47
+
48
+ 26, 27, 23, 24, 32, 34, 30]. Color information is exploited in [17, 26]. In contrast, we found the performance of the CNN models changes little even if color information is removed. Marra et al. [23] showed that each GAN leaves specific finger-prints on images, and proposed to identify the source generating these images. However, the method cannot generalize to detect fake faces from GAN models that do not exist in the training data. Xuan et al. [32] adopted data augmentation for improving generalization, nevertheless, further improvements are limited by the detection algorithm. Nataraj et al. [27] proposed to take a color co-occurrence matrix as input for fake face detection. However, the hand-craft feature input results in losing the information of raw data. Zhang et al. [34] designed a model to capture the artifacts caused by the decoder. However, it failed to detect fake images from GANs with drastically different decoder architecture which is not seen in the training phase, while our approach can handle this case effectively. Wang et al. [30] proposed a neuron coverage based fake detector. However, the algorithm is time-consuming, hard to be deployed in real systems, and the performance is still far from satisfactory. Marra et al. [25] detected fake images with incremental learning. However, it only works when many GAN models are accessible in the training phase. Other works [18, 33] focused on the alignment of face landmarks to check whether the face is edited by face-swapping tools like DeepFakes [19]. Unlike the above, we intensively analyze fake faces, and correspondingly propose a novel simple framework which is more robust and exhibits significantly better generalization abilities.
49
+
50
+ Textures in CNNs. The texture response of CNNs has attracted increasing attention in the last few years. Geirho et al. [7] showed that CNN models are strongly biased on textures rather than shapes. Our empirical study also reveals that CNN can utilize texture for fake face detection which is in line with the findings in [7]. Motivated by the above observation, we further analyzed texture differences in terms of low-level statistics. Gatys et al. [5] proposed that the Gram matrix is a good description of texture, which is further utilized for texture synthesis and image style transfer [6]. The above works exploit the Gram matrix for generating new images by constructing Gram matrix based matching losses. Our work is related to these methods by resorting to the Gram matrix. However, different from [6, 5], our work adopts the Gram matrix as a global texture descriptor to improve discriminative models and demonstrates its effectiveness in improving robustness and generalization.
51
+
52
+ # 3. Empirical Studies and Analysis
53
+
54
+ # 3.1. Human vs. CNN
55
+
56
+ To shed insights on understanding fake faces generated from GANs, we systematically analyze the behavior of hu-
57
+
58
+ man beings and CNNs in discerning fake/real faces by conducting psychophysical experiments. Specifically, our experiments are performed in in-domain setting, where the model is trained and tested on fake images from the same GAN.
59
+
60
+ User study. For each participant, we firstly show him/her all the fake/real faces in the training set (10K real and 10K fake images). Then a randomly picked face image in our test set is shown to him/her without a time limit. Finally, he/she is required to click the "real" or "fake" button. On average, it takes around 5.14 seconds to evaluate one image. The results in this paper are based on a total of 20 participants, and each participant is required to rate 1000 images. At the same time, we also collected the user's judgment basis if his/her selection was "fake". According to their Votes, human users typically take as evidence easily recognized shape and color artifacts such as "asymmetrical eyes", "irregular teeth", "irregular letters", to name a few.
61
+
62
+ CNN study and results. Testing images are also evaluated by CNN model - ResNet-18 [11]. The training and testing follow the in-domain setup. Table 1 (row1 & row2) shows that human beings are easily fooled by fake faces. In contrast, the ResNet CNN model achieves more than $99.9\%$ accuracy in all experiments.
63
+
64
+ Analysis. To gain a deeper understanding about the question "Why CNNs perform so well at fake/real face discrimination?" and "What's the intrinsic difference between fake and real faces?", we further exploited CAM [35] to reveal the regions that CNNs utilize as evidence for fake face detection. Representative classification activation maps are shown in Figure 2. We can easily observe that the discriminative regions (warm color regions in Figure 2) for CNNs mainly lie in the texture regions, e.g. skin and hair, while the regions with clear artifacts make little contribution (cold color, red bounding box in Figure 2). The above observation motivates us to further study whether texture is an important cue that CNNs utilize for fake face detection and whether fake faces are different from real ones regarding texture statistics.
65
+
66
+ # 3.2. Is texture an important cue utilized by CNNs for fake face detection?
67
+
68
+ To validate the importance of textures for fake face detection, we conduct in-domain experiments on the skin regions since they contain rich texture information and less structural information such as shape. More specifically, we design the following controlled experiments on skin regions.
69
+
70
+ - Original (skin): The input is the left cheek skin region based on DLib [14] face alignment algorithm as shown in Figure 3 (a - b). This is to verify whether the skin region contains enough useful information for fake face detection.
71
+
72
+ - Gray-scale (skin): The skin regions are converted to gray-scale images. Typical examples are shown in Figure 3 (c - d). This experiment is to ablate the influence of color.
73
+ - $L0$ -filtered (skin): Small textures of the skin regions are filtered with $L_{0}$ filter [31]. The $L_{0}$ algorithm can keep shape and color information while smoothing small textures. Typical examples are shown in Figure 3 (e - f).
74
+
75
+ Experimental results are shown in Table 1 (row 3 - row 5). The results of full image, original skin region, gray-scale skin region as inputs all indicate that skin regions already contain enough information for in-domain fake face detection and that colors do not influence the result much. The significant drop of performance (around $20\%$ ) of $L_{0}$ filtered inputs demonstrates the importance of texture for fake face detection in CNN models. In summary, texture plays a crucial role in CNN fake face detection and CNNs successfully capture the texture differences for discrimination, since the skin region performs on par with the full image in Table 1 (row 2 & row 3).
76
+
77
+ # 3.3. What are the differences between real & fake faces in terms of texture?
78
+
79
+ Empirical findings in Sec. 3.2 further motivate us to investigate the differences between real/fake faces in terms of texture. In the following, we adopt a texture analysis tool – the gray-level co-occurrence matrix (GLCM) [10].
80
+
81
+ The GLCM $P_{\theta}^{d} \in R^{256 \times 256}$ is created from a gray-scale texture image, and measures the co-occurrence of pixel values at a given offset parameterized by distance $d$ and angle $\theta$ . For example, $P_{\theta}^{d}(i,j)$ indicates how often a pixel with value $i$ and a pixel at offset $(d,\theta)$ with pixel value $j$ co-exist. In our analysis, we calculate $P_{d}^{\theta}$ across the whole dataset to get the statistical results, where $d \in \{1,2,5,10,15,20\}$ and $\theta \in \{0,\pi /2,\pi ,3\pi /2\}$ represents {right, down, left, upper}, $d$ and $\theta$ can capture the property of textures with different size and orientation respectively. From the GLCM, we compute the texture contrast $C_d$ at different distance offsets as follows,
82
+
83
+ $$
84
+ \mathcal {C} _ {d} = \frac {1}{N} \sum_ {i, j = 0} ^ {2 5 5} \sum_ {\theta = 0} ^ {3 \pi / 2} | i - j | ^ {2} P _ {d} ^ {\theta} (i, j) \tag {1}
85
+ $$
86
+
87
+ where $N = 256 \times 256 \times 4$ is a normalization factor, $i, j$ represents pixel intensities, and $d$ indicates pixel distances which are adopted to compute $\mathcal{C}_d$ . Larger $\mathcal{C}_d$ reflects stronger texture contrast, sharper and clearer visual effects. Inversely, low value $\mathcal{C}_d$ means the texture is blurred and unclear.
88
+
89
+ The contrast component of GLCM is shown in Table 2. Real faces retain stronger contrast than fake faces at all measured distances. One explanation for this phenomenon is that
90
+
91
+ <table><tr><td>Input</td><td>Human vs. CNNs</td><td>StyleGAN vs. CelebA-HQ</td><td>StyleGAN vs. FFHQ</td><td>PGGAN vs. CelebA-HQ</td></tr><tr><td>Full image</td><td>Human Beings</td><td>75.15%</td><td>63.90%</td><td>79.13%</td></tr><tr><td>Full image</td><td>ResNet</td><td>99.99%</td><td>99.96%</td><td>99.99%</td></tr><tr><td>Original (skin)</td><td>ResNet</td><td>99.93%</td><td>99.61%</td><td>99.96%</td></tr><tr><td>Gray-scale (skin)</td><td>ResNet</td><td>99.76%</td><td>99.47%</td><td>99.94%</td></tr><tr><td>L0-filtered (skin)</td><td>ResNet</td><td>78.64%</td><td>76.84%</td><td>72.02%</td></tr></table>
92
+
93
+ ![](images/aacbe747d0912f5d8596c3c41d959b497e12719ab28170c555c1a5e5974944c3.jpg)
94
+ (a) Real
95
+
96
+ ![](images/3a5916e9d20103c302efc7e4d437ddf5b59a7a7d57ca9004285a34eea2f91d4c.jpg)
97
+ (b) Real
98
+ Figure 2. Class activation maps from trained ResNet model (better viewed in color). The red bounding box shows the visible artifacts indicated by human observers but activated weakly by CNN: (c) asymmetrical earrings; (d) irregular letter; (e) irregular teeth.
99
+
100
+ ![](images/0092fe266891c0c7e70768bf88ba1df5bec73058f02cec36963f2e528c4957b1.jpg)
101
+ (c) Fake
102
+
103
+ ![](images/908b4126df885efe64561e49aba3f050751ee0f8bb5da38274afb04b037240b3.jpg)
104
+ (d) Fake
105
+
106
+ ![](images/905f8bd9d0e0e336356ca80562c4f15bc9e4ae7a912c3eb3a0e3684b6cf8f6a8.jpg)
107
+ (e) Fake
108
+
109
+ ![](images/ad3d28be4ded872f0130e57925e796164eea44360a3d499d6f0014e780237fa7.jpg)
110
+ (a) Real
111
+
112
+ ![](images/8835bacd08d0b3ad302a9e6c03d9b3830dbe417890002da8481dd8cdf3681149.jpg)
113
+ (b) Fake
114
+
115
+ ![](images/276831656c400d404ad5e83c8f7abd4bd7fa004229d2d6f77acafd460c463664.jpg)
116
+ (c) Real
117
+
118
+ ![](images/95ea1dff1213453efbd1fc708374d000d39d2aed150bf06804052ac86753a83e.jpg)
119
+ (d) Fake
120
+ Figure 3. Example images of Original (Skin) (a-b), Gray-scale (Skin) (c-d) and L0 filtered (Skin) (e-f).(better viewed in color)
121
+
122
+ ![](images/0a04e5149698fb7b55dd7a47eff0baa768ed3db0535c0432317832e198d8c2ca.jpg)
123
+ (e) Real
124
+
125
+ ![](images/6b15d1c80391388193c5439c3d7cac772df6b17f02ee28a068afa677bbc76893.jpg)
126
+ (f) Fake
127
+
128
+ the CNN based generator typically correlates the values of nearby pixels and cannot generate as strong texture contrast as real data. In this section, we only provide an analysis of texture contrast and admit that the differences between real and fake faces are definitely beyond our analysis. We hope this can stimulate future research in analyzing the texture differences for fake face detection.
129
+
130
+ # 4. Improved Model: Better Generalization Ability, More Robust
131
+
132
+ Until now, our analysis has been performed in the indomain setting. The next step is to investigate the cross-GAN setting, where training and testing images are from different GAN models. Besides, we also investigate the images which are further modified by unintentional changes such as down-
133
+
134
+ Table 1. Quantitative results on fake face detection of human beings and CNNs, and skin region ablation studies in the in-domain setting.
135
+
136
+ <table><tr><td>Dataset\distance(d)</td><td>1</td><td>2</td><td>5</td><td>10</td><td>15</td><td>20</td></tr><tr><td>CelebA-HQ</td><td>8.68</td><td>12.37</td><td>61.52</td><td>117.94</td><td>181.30</td><td>237.30</td></tr><tr><td>StyleGAN(on CelebA-HQ)</td><td>4.92</td><td>8.84</td><td>47.40</td><td>93.79</td><td>146.33</td><td>193.49</td></tr><tr><td>PGGAN(on CelebA-HQ)</td><td>6.45</td><td>11.43</td><td>58.20</td><td>112.28</td><td>172.72</td><td>226.40</td></tr></table>
137
+
138
+ Table 2. Contrast property of GLCM calculated with all skin patches in training set.
139
+
140
+ sampling, JPEG compression and/or even intentional editing by adding blur or noise. Our following analysis remains to focus on texture due to our findings in Sec. 3.1 – Sec. 3.3.
141
+
142
+ # 4.1. Generalization and Robustness Analysis
143
+
144
+ Our previous experimental finding is that the trained model performs almost perfectly in in-domain tests. However, our further experiments show that the performance of ResNet is reduced by $22\%$ (worst case) if the images are downsampled to $64 \times 64$ and JPEG compressed (Table 3: "JPEG $8\mathrm{x}\downarrow$ "). Moreover, the model suffers more in cross-GAN setting, especially when the trained models are evaluated on low-resolution GANs, in which the performance dropped to around $64\% -75\%$ (Table 4: Second row). The reduction of performance indicates that the CNN fake/real image discriminator is not robust to image editing and cannot generalize well to cross-GAN images, which limits its practical application.
145
+
146
+ To tackle the above problem, we further analyzed the issue. In image editing scenario, we studied the correlation between the modified images and original ones. Specifically, we calculate the Pearson Correlation Coefficient between the original image and edited images in terms of texture contrast $C_d$ as shown in Figure 4. The coefficient value is closer to 1 as the pair distance $d$ increases (i.e. larger image textures and
147
+
148
+ ![](images/60dc29695adc8881a88d37bc74ffcc1d3a63f092cc87112a142a148b3720b3be.jpg)
149
+ (a)Downsample
150
+
151
+ ![](images/f5b719dd9edc5ec5378c6b2c52b6136b301d22f36c9cddedf83515b81fb84dfe.jpg)
152
+ (b) Gaussian blur
153
+ Figure 4. Pearson correlation coefficient of texture contrast between edited images and original images. Downsample ratio is 4, Gaussian blur kernel is 3, and Gaussian noise std is 3.
154
+
155
+ ![](images/7ba43b5b9b9d594e3fb564aa4d7bad858bfc85bd4c45817d2b541cfca064be7c.jpg)
156
+ (c) Gaussian noise
157
+
158
+ more global), which indicates a strong correlation in large texture between edited and original images. In other words, large image texture has shown to be more robust to image editing. Moreover, in cross-GAN setting, large texture can also provide valuable information since the real/fake difference in terms of texture contrast still hold in the large pair distance $d$ shown in Table 2. Thus a model that can capture long-range information is desirable to improve the model robustness and generalization ability. However, current CNN models cannot incorporate long-range information due to its small effective receptive field which is much smaller than the calculated receptive field as presented in [21].
159
+
160
+ Inspired by [6], we propose to introduce "Gram Block" into the CNN architecture and propose a novel architecture coined as Gram-Net as shown in Figure 5. The "Gram Block" captures the global texture feature and enable long-range modeling by calculating the Gram matrix in different semantic levels.
161
+
162
+ # 4.2. Gram-Net Architecture
163
+
164
+ The overview of Gram-Net is shown in Figure 5. Gram Blocks are added to the ResNet architecture on the input image and before every downsampling layer, incorporating global image texture information in different semantic levels. Each Gram Block contains a convolution layer to align the feature dimension from different levels, a Gram matrix calculation layer to extract global image texture feature, two conv-bn-relu layers to refine the representation, and a global-pooling layer to align the gram-style feature with ResNet backbone. The Gram matrix is calculated as follows.
165
+
166
+ $$
167
+ G _ {i j} ^ {l} = \sum_ {k} F _ {i k} ^ {l} F _ {j k} ^ {l} \tag {2}
168
+ $$
169
+
170
+ where $F^l$ represents the $l$ -th feature map whose spatial dimension is vectorized, and $F_{ik}^{l}$ represents the $k$ th element in the $i$ th feature map of layer $l$ . We show Gram matrix is a good descriptor for global or long-range texture as follows.
171
+
172
+ Can Gram matrix capture global texture information? In CNNs, each convolution layer $l$ can be viewed as a filter bank, and the feature map $F^l$ is a set of response images to these filters.
173
+
174
+ $G^{l}$ is the eccentric covariance matrix of channels in layer $l$ . Each element $G_{ij}^{l}$ measures the covariance between the $i$ th and $j$ th vectorised response map in the layer. Equation 3 is the covariance matrix $C^l$ of feature maps, and Gram matrix $G^{l}$ in Equation 4 is actually the covariance matrix without subtracting the mean value. The diagonal elements of Gram matrix shows the response of the particular filter, while other elements show the coherence of different filters. In a word, Gram matrix is a summary of spatial statistics which discards the spatial and content information in the feature maps, and provides a stationary description of the texture.
175
+
176
+ $$
177
+ C ^ {l} = \left(c o v \left(F _ {i} ^ {l}, F _ {j} ^ {l}\right)\right) _ {n \times n} = \left(\mathbb {E} \left[ \left(F _ {i} ^ {l T} - \overline {{F _ {i} ^ {l T}}}\right) \left(F _ {j} ^ {l} - \overline {{F _ {j} ^ {l}}}\right) \right]\right) _ {n \times n} =
178
+ $$
179
+
180
+ $$
181
+ \frac {1}{n - 1} \left[ \begin{array}{c c c} \left(F _ {1} ^ {l T} - \overline {{F _ {1} ^ {l T}}}\right) \left(F _ {1} ^ {l} - \overline {{F _ {1} ^ {l}}}\right) & \dots & \left(F _ {1} ^ {l T} - \overline {{F _ {1} ^ {l T}}}\right) \left(F _ {n} ^ {l} - \overline {{F _ {n} ^ {l}}}\right) \\ \vdots & \ddots & \\ \left(F _ {n} ^ {l T} - \overline {{F _ {n} ^ {l T}}}\right) \left(F _ {1} ^ {l} - \overline {{F _ {1} ^ {l}}}\right) & \dots & \left(F _ {n} ^ {l T} - \overline {{F _ {n} ^ {l T}}}\right) \left(F _ {n} ^ {l} - \overline {{F _ {n} ^ {l}}}\right) \end{array} \right] \tag {3}
182
+ $$
183
+
184
+ $$
185
+ G ^ {l} = \left(F _ {i} ^ {l T} F _ {j} ^ {l}\right) _ {n \times n} = \left[ \begin{array}{c c c} F _ {1} ^ {l T} F _ {1} ^ {l} & \dots & F _ {1} ^ {l T} F _ {n} ^ {l} \\ \vdots & \ddots & \\ F _ {n} ^ {l T} F _ {1} ^ {l} & \dots & F _ {n} ^ {l T} F _ {n} ^ {l} \end{array} \right] \tag {4}
186
+ $$
187
+
188
+ In addition, $G_{ij}^{l}$ is a descriptor for the whole feature map, which is not limited by the receptive field of CNNs. This property enables it to extract long-range texture feature effectively, which complements the CNN backbone.
189
+
190
+ To further analyze the information captured by Gram-Net and the CNN baseline, we adopt [22] to generate the reconstructed input that can produce the approximate feature map as the original input. The reconstructed inputs for reproducing the feature in "res-block 2" and "avg-pool" are shown
191
+
192
+ ![](images/85f3df6714de94928cb0b94c89ea4dc4d0ee32d9ee7c0fd7d048731fa638db87.jpg)
193
+ Figure 5. Gram-Net architecture. We extract global image texture feature with 6 Gram Blocks in different semantic levels from ResNet. $\oplus$ means concatenation.
194
+
195
+ ![](images/d67486e895b4875c5621fb077d1f550940f246b8977229af41d76900cd4c7920.jpg)
196
+ (a) Original
197
+
198
+ ![](images/ac641de646c189d0e79a5ca3d9162ac429aa281f11e20f2295ec8ddba459098c.jpg)
199
+ (b) ResNet
200
+ Figure 6. Visualization of reconstructed input. Reconstructed images are multiplied by a scale factor for clearer visualization. (a) is the original image. (b)(c) are reconstructed inputs for reproducing 'res-block2' feature in ResNet and Gram-Net respectively. (d)(e) are reconstructed inputs for reproducing 'avg-pool' in ResNet and Gram-Net respectively.
201
+
202
+ ![](images/8b7c24d66d2e0d08685d8fe3cb277e46f39f14201120dbf6c0e7ab0d1549e09f.jpg)
203
+ (c) Gram-Net
204
+
205
+ ![](images/dd81fa69a07942115ce6ebcbca9f3bc14ec8ca34abb636c24a9003ad97b35756.jpg)
206
+ (d) ResNet
207
+
208
+ ![](images/ffa4058920b62d495fa21f6338fbd3f89b97aa97e55a358c3359d00c2810569a.jpg)
209
+ (e) Gram-Net
210
+
211
+ in Figure 6. The texture size of the reconstructed input image from Gram-Net is larger than that of baseline ResNet, which shows that our Gram-Net captures long-range texture patterns for discrimination.
212
+
213
+ # 5. Experiments
214
+
215
+ Implementation details. We implement all the approaches with PyTorch [28]. Models are initialized with pretrained ImageNet weights. We train all the models with learning rate $1e^{-5}$ and select model on validation set. The validation set contains totally 800 images from DCGAN, StarGAN, CelebA, PGGAN, StyleGAN on CelebA-HQ, StyleGAN on FFHQ, CelebA-HQ and FFHQ (100 for each). In all the experiments, the models are trained on 10k real and 10k fake images and evaluated on a holdout test set containing 10k real and 10k fake images.
216
+
217
+ Experimental setup. We conduct experiments in indomain and cross-GAN settings, and further test the models on GANs trained on other datasets (cross-dataset). All the images are bilinear- resized to $512 \times 512$ which serves our baseline resolution, because we found that models on this resolution already performs almost the same as $1024 \times 1024$ and can accelerate the inference. All fake images are derived by directly evaluating the author-released code and model with default parameters. We compare the performance of our Gram-Net with a recent fake face detectors Co-detect [27] and ResNet. We choose ResNet-18 as baseline because it al
218
+
219
+ ready achieves much better performance than human beings described in Section 3.1. For a fair comparison, we implement Gram-Net and [27] with the same ResNet-18 backbone, which takes the hand-craft texture descriptor GLCM of RGB channels as input. We train these three networks with images randomly bilinear-resized into range $64 \times 64$ to $256 \times 256$ as data augmentation, and evaluate the models regarding accuracy and their robustness to image editing and cross-GAN generalization ability. To minimize the influence of randomness, we repeat each experiment five times by randomly splitting training and testing sets and show the error bar.
220
+
221
+ Robustness and cross-GAN generalization experiments on high-resolution GANs. We edit the images with down-sampling and JPEG compression, which often occur unintentionally when the images are uploaded to the Internet, put into slides or used as a video frame. Specifically, the models are evaluated in the following settings. 1) Original inputs with size $512 \times 512$ ("Origin"), 2) Downsampled images to resolution $64 \times 64$ ("8x ↓"), 3) JPEG Compressed $512 \times 512$ images ("JPEG"), 4) JPEG compressed and downsampled images ("JPEG 8x ↓"). In addition, GAN and real images can be edited by adding blur or noise intentionally. In table 3, Gaussian blur ("blur") is with kernel size 25 ("blur"), and Gaussian noise ("blur") is with standard deviation 5.
222
+
223
+ The evaluation results are listed in Table 3. Our Gram-Net outperforms the compared methods in all scenarios. On aver
224
+
225
+ <table><tr><td>Training set</td><td>Testing set</td><td>Method</td><td>Original %</td><td>8x ↓ %</td><td>JPEG %</td><td>JPEG 8x ↓</td><td>Blur %</td><td>Noise %</td><td>Avg.</td></tr><tr><td>StyleGAN vs. CelebA-HQ</td><td>StyleGAN vs. CelebA-HQ</td><td>Co-detect ResNet Gram-Net</td><td>79.93 ± 1.34 96.73 ± 3.60 99.10 ± 1.36</td><td>71.80 ± 1.30 85.10 ± 6.22 95.84 ± 1.98</td><td>74.58 ± 3.25 96.68 ± 3.50 99.05 ± 1.37</td><td>71.25 ±1.18 83.33 ± 5.95 92.39 ± 2.66</td><td>71.39 ±1.42 79.48 ± 8.70 94.20 ± 5.57</td><td>54.09 ± 2.45 87.92 ± 6.16 92.47 ± 4.52</td><td>70.51 88.20 95.51</td></tr><tr><td>CelebA-HQ</td><td>PGGAN vs. CelebA-HQ</td><td>Co-detect ResNet Gram-Net</td><td>71.22 ± 3.76 93.74 ± 3.03 98.54 ± 1.27</td><td>62.02 ± 2.86 77.75 ± 4.82 82.40 ± 6.30</td><td>64.08 ± 1.93 89.35 ± 1.50 94.65 ± 3.28</td><td>61.24 ± 2.28 69.35 ± 3.25 79.77 ± 6.13</td><td>62.46 ± 3.31 78.06 ± 7.57 91.96 ± 4.78</td><td>49.96 ± 0.28 82.65 ± 2.37 88.29 ± 3.44</td><td>61.83 81.82 89.26</td></tr><tr><td>PGGAN vs. CelebA-HQ</td><td>PGGAN vs. CelebA-HQ</td><td>Co-detect ResNet Gram-Net</td><td>91.14 ± 0.61 97.38 ± 0.52 98.78 ± 0.49</td><td>82.94 ± 1.03 90.87 ± 1.90 94.66 ± 3.10</td><td>86.00 ± 1.70 94.67 ± 1.15 97.29 ± 1.05</td><td>82.46 ± 1.06 89.93 ± 1.50 94.08 ± 3.22</td><td>84.24 ± 0.93 97.25 ± 0.87 98.55 ± 0.92</td><td>54.77 ± 2.42 66.60 ± 9.61 70.32 ± 12.04</td><td>80.26 89.45 92.28</td></tr><tr><td>CelebA-HQ</td><td>StyleGAN vs. CelebA-HQ</td><td>Co-detect ResNet Gram-Net</td><td>57.30 ± 1.62 97.98 ± 1.90 98.55 ± 0.89</td><td>57.41 ± 0.85 87.91 ± 1.01 91.57 ± 2.95</td><td>52.90 ± 1.67 92.03 ± 4.14 94.28 ± 3.67</td><td>82.46 ± 1.06 82.23 ± 1.39 83.64 ± 3.43</td><td>57.41 ± 0.93 94.79 ± 1.32 97.05 ± 1.04</td><td>50.08 ± 0.10 60.89 ± 7.24 60.07 ± 7.32</td><td>51.47 85.97 87.52</td></tr><tr><td>StyleGAN vs. FFHQ</td><td>StyleGAN vs. FFHQ</td><td>Co-detect ResNet Gram-Net</td><td>69.73 ± 2.41 90.27 ± 3.05 98.96 ± 0.51</td><td>67.27 ± 1.68 70.99 ± 1.13 89.22 ± 4.44</td><td>67.48 ± 2.83 89.35 ± 3.42 98.69 ± 0.81</td><td>64.65 ± 1.67 67.96 ± 1.13 87.86 ± 3.42</td><td>64.55 ± 1.93 75.60 ± 10.75 70.99 ± 6.07</td><td>54.66 ± 3.97 81.32 ± 5.06 94.27 ± 2.12</td><td>64.74 81.50 90.00</td></tr></table>
226
+
227
+ Table 3. Performance on in-domain and cross to high-resolution GANs. In each training setting, the first half shows results in the in-domain setting and the second half shows results in the cross-GAN setting. Column (Avg.) shows the averaged results across all settings. The accuracy in "Original %" column is lower than the results in Table 1 because the models are selected to achieve best average performance in all the settings with validation set. The average inference time for one image on RTX 2080 Ti are as follows. Gram-Net takes $2.40e^{-3}$ s, ResNet-18 takes $2.35e^{-3}$ s, and Co-detect [27] takes $8.68e^{-3}$ s, in which $6.57e^{-3}$ s for co-occurrence matrix calculation.
228
+
229
+ age, it outperforms [27] by more than $20\%$ . The results show that our Gram-Net adaptively extracts robust texture representation in feature space, which is much more powerful than low-level texture representations such as GLCM. Our model also improves the ResNet baseline by around $7\%$ (on average) in both in-domain and cross-GAN settings trained on StyleGAN vs. CelebA-HQ. The reason why Gram-Net improves less when trained on PGGAN vs. CelebA-HQ can be partially explained according to the GLCM statistics shown in Table 2. Images generated by PGGAN have larger $\mathcal{C}_d$ than StyleGAN, which is closer to real images.
230
+
231
+ The above results manifest the effectiveness of Gram-Net in extracting features more invariant to different GAN models and more robust to image editing operations, such as downsampling, JPEG compression, blur and noise.
232
+
233
+ Generalize to low-resolution GANs. To further evaluate the models' generalization capability, we directly apply the models above to low-resolution GANs trained on CelebA. We randomly choose 10k images from each set to evaluate our model. The fake images are kept at their original sizes, i.e., $64 \times 64$ for DCGAN and DRAGAN, $128 \times 128$ for StarGAN. CelebA images are of size $178 \times 218$ , so we center crop the $178 \times 178$ patch in the middle to make it square.
234
+
235
+ The results as listed in Table 4 show that our Gram-Net better generalizes to low-resolution GANs. The performance of baseline ResNet and [27] degrades to around $50\%$ to $75\%$ in this setting. However, our method outperforms the ResNet baseline by around $10\%$ and [27] by around $15\%$ regarding accuracy in all settings. This further demonstrates global image texture feature introduced by our "Gram Block" is more invariant across different GANs, which can even generalize
236
+
237
+ to detect fake faces from image-to-image translation model – StarGAN.
238
+
239
+ <table><tr><td>Method</td><td>Accuracy</td></tr><tr><td>Co-detect</td><td>59.81 ± 10.82</td></tr><tr><td>ResNet</td><td>80.55 ± 6.37</td></tr><tr><td>Gram-Net</td><td>93.35 ± 2.25</td></tr></table>
240
+
241
+ Table 5. Performance of Gram-Net when StyleGAN discriminator contains Gram-Block. The models are trained on StyleGAN (origin) vs. CelebA-HQ and tested on StyleGAN (with Gram-Block in discriminator) vs. CelebA-HQ.
242
+
243
+ Generalize to StyleGAN trained with Gram-Block in discriminator. In this section, we evaluate the model on images from GAN models whose discriminator also contains Gram Blocks. We fine-tune StyleGAN with extra GramBlocks inserted in the discriminator, and further evaluate whether Gram-Net still works in this setting. We add 8 identical Gram-Blocks as in Gram-Net to encode feature maps (from feature map size 1024 to 4) in StyleGAN discriminator, and concatenate the $8 \times 32$ dimension feature vector extracted by Gram-Blocks with the original 512 dimension feature vector in original discriminator before the final classification. We fine-tune the model for 8K epochs on CelebA-HQ initialized by the author released model. We evaluate 10K fake images from StyleGAN with Gram-Block in discriminator and 10K images from CelebA-HQ. The images are resized to $512 \times 512$ resolution. We directly apply the models used in Table 3 and 4 in this setting.
244
+
245
+ The results in Table 5 show that our Gram-Net still outperforms baseline methods even though the Gram-Block is inserted in the GAN discriminator. This demonstrates that our findings and analysis in section 3.3 are still valid.
246
+
247
+ <table><tr><td>Test Train</td><td>Method</td><td>DCGAN vs. CelebA %</td><td>DRAGAN vs. CelebA %</td><td>StarGAN vs. CelebA %</td><td>Avg.</td></tr><tr><td rowspan="3">StyleGAN vs. CelebA-HQ</td><td>Co-detect</td><td>68.83 ± 9.57</td><td>59.99 ± 8.81</td><td>58.60 ± 3.99</td><td>62.47</td></tr><tr><td>ResNet</td><td>75.11 ± 8.10</td><td>65.53 ± 8.20</td><td>64.04 ± 7.69</td><td>68.22</td></tr><tr><td>Gram-Net</td><td>81.65 ± 3.51</td><td>76.40 ± 6.06</td><td>74.96 ± 4.90</td><td>77.67</td></tr></table>
248
+
249
+ Table 4. Performance of Gram-Net on generalization to low-resolution GANs.
250
+
251
+ <table><tr><td>Method</td><td>Train on StyleGAN vs. CelebA-HQ Test on StyleGAN vs. FFHQ</td><td>Train on PGGAN vs. CelebA-HQ Test on StyleGAN vs. FFHQ</td><td>Train on StyleGAN vs. FFHQ Test on StyleGAN vs. CelebA-HQ</td></tr><tr><td>Co-detect</td><td>48.90 ± 3.95</td><td>48.71 ± 1.43</td><td>59.22 ± 1.30</td></tr><tr><td>ResNet</td><td>75.45 ± 7.01</td><td>54.44 ±3.64</td><td>80.14 ± 7.47</td></tr><tr><td>Gram-Net</td><td>77.69 ± 6.49</td><td>59.57 ± 8.07</td><td>80.72 ± 6.02</td></tr></table>
252
+
253
+ Table 6. Performance of Gram-Net in cross-dataset settings
254
+
255
+ <table><tr><td>distance</td><td>1</td><td>2</td><td>5</td><td>10</td><td>15</td><td>20</td></tr><tr><td>ImageNet</td><td>525.70</td><td>676.60</td><td>1551.85</td><td>2267.16</td><td>2892.90</td><td>3334.14</td></tr><tr><td>BigGAN</td><td>367.65</td><td>536.81</td><td>1426.66</td><td>2146.90</td><td>2771.96</td><td>3207.97</td></tr></table>
256
+
257
+ Table 7. Contrast property of GLCM calculated with BigGAN and ImageNet images in training set with different pair distances.
258
+
259
+ Cross-dataset experiments. Cross-dataset generalization is a challenging problem due to the inherent difference in dataset construction. Our experiments show that the statistics of CelebA-HQ and FFHQ are significantly different and can easily be distinguished by a neural network. Specifically, we built a real face image dataset consisting of 10K CelebA-HQ images and 10K FFHQ images, and our further experiments show that a ResNet network can achieve more than $99.9\%$ accuracy to discriminate CelebA-HQ and FFHQ images. This experiment shows that real face datasets significantly differ from each other.
260
+
261
+ Despite the fact above, we evaluate our Gram-Net and baseline approaches in the cross-dataset setting as follows: train on StyleGAN(PGGAN) vs. CelebA-HQ and test on StyleGAN vs. FFHQ, train on StyleGAN vs. FFHQ and test on StyleGAN vs. CelebA-HQ. We keep all of the images as their original resolution in this experiment. The models are the same with the ones in Table 3 and 4.
262
+
263
+ The result in Table 6 shows that fake image detectors trained on more realistic dataset (FFHQ) and stronger GANs (StyleGAN) have stronger ability to cross to less realistic datasets (CelebA-HQ) and less strong GANs (PGGAN). Also, Gram-Net still outperforms baselines methods.
264
+
265
+ Generalize to natural images. In this section, we extend our analysis and apply Gram-Net to fake/real natural images. Specifically, we analyze ImageNet [16] vs. BigGAN [3], where the BigGAN model is trained on ImageNet.
266
+
267
+ To analyze fake/real natural images, we further employ GLCM. We find that the difference in terms of texture contract between fake and real face images also holds for natural images. As Table 7 shows, real images retain stronger texture
268
+
269
+ contrast than GAN images for all the distances measured.
270
+
271
+ To evaluate the generalization ability of our model trained on face images, we directly apply the model used in Table 3 and 4 to test 10K ImageNet and 10K BigGAN images (10 images each class), and the results are shown in Table 8.
272
+
273
+ <table><tr><td>Training set</td><td>Testing set</td><td>Method</td><td>Accuracy % .</td></tr><tr><td>StyleGAN vs. CelebA-HQ</td><td>ImageNet vs. BigGAN</td><td>Co-detect [27] ResNet Gram-Net</td><td>51.94 ± 2.31 71.93 ± 2.09 80.29 ± 3.20</td></tr></table>
274
+
275
+ Table 8. Quantitative results on ImageNet vs BigGAN.
276
+
277
+ # 6. Conclusion
278
+
279
+ In this paper, we conduct empirical studies on human and CNNs in discriminating fake/real faces and find that fake faces attain different textures from the real ones. Then, we perform low-level texture statistical analysis to further verify our findings. The statistics also show that large texture information is more robust to image editing and invariant among different GANs. Motivated by these findings, we propose a new architecture - Gram-Net, which leverages global texture features to improve the robustness and generalization ability in fake face detection. Experimental results show that Gram-Net significantly outperforms the most recent approaches and baseline models in all settings including indomain, cross-GAN, and cross-dataset. Moreover, our model exhibits better generalization ability in detecting fake natural images. Our work shows a new and promising direction for understanding fake images from GANs and improving fake face detection in the real world.
280
+
281
+ # 7. Acknowledgement
282
+
283
+ This work was supported by the ERC grant ERC-2012-AdG 321162-HELIOS, EPSRC grant Seebibyte EP/M013774/1 and EPSRC/MURI grant EP/N019474/1. We would also like to acknowledge the Royal Academy of Engineering and FiveAI.
284
+
285
+ # References
286
+
287
+ [1] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In International Conference on Machine Learning, pages 214-223, 2017.
288
+ [2] David Berthelot, Thomas Schumm, and Luke Metz. Began: Boundary equilibrium generative adversarial networks. arXiv preprint arXiv:1703.10717, 2017.
289
+ [3] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
290
+ [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.
291
+ [5] Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in neural information processing systems, pages 262-270, 2015.
292
+ [6] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2414-2423, 2016.
293
+ [7] Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
294
+ [8] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014.
295
+ [9] 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.
296
+ [10] Robert M Haralick, Karthikeyan Shanmugam, et al. Textural features for image classification. IEEE Transactions on systems, man, and cybernetics, (6):610-621, 1973.
297
+ [11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
298
+ [12] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
299
+ [13] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. arXiv preprint arXiv:1812.04948, 2018.
300
+ [14] Davis E. King. Dlib-ml: A machine learning toolkit. Journal of Machine Learning Research, 10:1755-1758, 2009.
301
+ [15] Naveen Kodali, Jacob Abernethy, James Hays, and Zsolt Kira. On convergence and stability of gans. arXiv preprint arXiv:1705.07215, 2017.
302
+ [16] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks.
303
+
304
+ In Advances in neural information processing systems, pages 1097-1105, 2012.
305
+ [17] Haodong Li, Bin Li, Shunquan Tan, and Jiwu Huang. Detection of deep network generated images using disparities in color components. arXiv preprint arXiv:1808.07276, 2018.
306
+ [18] Yuezun Li and Siwei Lyu. Exposing deepfake videos by detecting face warping artifacts. arXiv preprint arXiv:1811.00656, 2018.
307
+ [19] 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.
308
+ [20] 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), 2015.
309
+ [21] Wenjie Luo, Yujia Li, Raquel Urtasun, and Richard Zemel. Understanding the effective receptive field in deep convolutional neural networks. In Advances in neural information processing systems, pages 4898-4906, 2016.
310
+ [22] Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5188-5196, 2015.
311
+ [23] Francesco Marra, Diego Gragnaniello, Davide Cozzolino, and Luisa Verdoliva. Detection of gan-generated fake images over social networks. In 2018 IEEE Conference on Multimedia Information Processing and Retrieval (MIPR), pages 384-389. IEEE, 2018.
312
+ [24] Francesco Marra, Diego Gragnaniello, Luisa Verdoliva, and Giovanni Poggi. Do gans leave artificial fingerprints? In 2019 IEEE Conference on Multimedia Information Processing and Retrieval (MIPR), pages 506-511. IEEE, 2019.
313
+ [25] Francesco Marra, Cristiano Saltori, Giulia Boato, and Luisa Verdoliva. Incremental learning for the detection and classification of gan-generated images. arXiv preprint arXiv:1910.01568, 2019.
314
+ [26] Scott McCloskey and Michael Albright. Detecting gang-generated imagery using color cues. arXiv preprint arXiv:1812.08247, 2018.
315
+ [27] Lakshmanan Nataraj, Tajuddin Manhar Mohammed, BS Manjunath, Shivkumar Chandrasekaran, Arjuna Flenner, Jawadul H Bappy, and Amit K Roy-Chowdhury. Detecting gan generated fake images using co-occurrence matrices. arXiv preprint arXiv:1903.06836, 2019.
316
+ [28] 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.
317
+ [29] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
318
+ [30] Run Wang, Lei Ma, Felix Juefei-Xu, Xiaofei Xie, Jian Wang, and Yang Liu. Fakespotter: A simple baseline for spotting ai-synthesized fake faces. arXiv preprint arXiv:1909.06122, 2019.
319
+ [31] Li Xu, Cewu Lu, Yi Xu, and Jiaya Jia. Image smoothing via 10 gradient minimization. In ACM Transactions on Graphics (TOG), volume 30, page 174. ACM, 2011.
320
+
321
+ [32] Xinsheng Xuan, Bo Peng, Jing Dong, and Wei Wang. On the generalization of gan image forensics. arXiv preprint arXiv:1902.11153, 2019.
322
+ [33] Xin Yang, Yuezun Li, Honggang Qi, and Siwei Lyu. Exposing gan-synthesized faces using landmark locations. arXiv preprint arXiv:1904.00167, 2019.
323
+ [34] Xu Zhang, Svebor Karaman, and Shih-Fu Chang. Detecting and simulating artifacts in gan fake images. arXiv preprint arXiv:1907.06515, 2019.
324
+ [35] 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.
325
+ [36] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pages 2223-2232, 2017.
globaltextureenhancementforfakefacedetectioninthewild/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cf396cfeefb67ba3f4dab940dc5b833ebcfb3a31ac117342c6eaf9c899b34e4
3
+ size 653508
globaltextureenhancementforfakefacedetectioninthewild/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:448adb972e61bde839028d707e632ed778a40fe432e511606cc3cd81397092a1
3
+ size 393881
goingdeeperwithleanpointnetworks/f8e614fe-33e3-4139-890f-9241c1545f45_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97fb9af7da7f350805bc9cf30828240a0d19839540fa216fd9a5757d175dc56b
3
+ size 70790
goingdeeperwithleanpointnetworks/f8e614fe-33e3-4139-890f-9241c1545f45_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:776d6fc814a805b84e78ea094cfeead0572efb8f79d18d811d616547b43e5625
3
+ size 87328
goingdeeperwithleanpointnetworks/f8e614fe-33e3-4139-890f-9241c1545f45_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3c4a320ea58459ec308958fc6d18cbba864e62e5273dae6316877c2b1698492
3
+ size 1197362
goingdeeperwithleanpointnetworks/full.md ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Going Deeper with Lean Point Networks
2
+
3
+ Eric-Tuan $\mathbf{Le}^{1}$
4
+
5
+ Iasonas Kokkinos<sup>1,2</sup>
6
+
7
+ Niloy J. Mitra<sup>1,3</sup>
8
+
9
+ <sup>1</sup>University College London <sup>2</sup>Ariel AI <sup>3</sup>Adobe Research
10
+
11
+ # Abstract
12
+
13
+ In this work we introduce Lean Point Networks (LPNs) to train deeper and more accurate point processing networks by relying on three novel point processing blocks that improve memory consumption, inference time, and accuracy: a convolution-type block for point sets that blends neighborhood information in a memory-efficient manner; a crosslink block that efficiently shares information across low- and high-resolution processing branches; and a multi-resolution point cloud processing block for faster diffusion of information. By combining these blocks, we design wider and deeper point-based architectures. We report systematic accuracy and memory consumption improvements on multiple publicly available segmentation tasks by using our generic modules as drop-in replacements for the blocks of multiple architectures (PointNet++, DGCNN, SpiderNet, PointCNN). Code and pretrained models are publicly available at geometry.cs.ucl.ac.uk/projects/2020/deepeanpn/.
14
+
15
+ # 1. Introduction
16
+
17
+ Geometry processing has started profiting from applying deep learning to graphics and 3D shape analysis [25, 33, 6, 3], delivering networks that guarantee desirable properties of point cloud processing, such as permutation-invariance and quantization-free representation [28, 31, 32]. Despite these advances, the memory requirements of a majority of the point processing architectures still impede breakthroughs similar to those made in computer vision.
18
+
19
+ Directly working with unstructured representations of 3D data (i.e., not residing on a spatial grid), necessitates re-inventing, for geometry processing, the functionality of basic image processing blocks, such as convolution operations, information exchange pathways, and multi-resolution data flow. Taking a Lagrangian perspective, in order to avoid quantization or multi-view methods, the pioneering PointNet architecture [24] demonstrated how to directly work on point cloud datasets by first lifting individual points to higher dimensional features (via a shared MLP) and then performing permutation-invariant local pooling. Point-
20
+
21
+ $\mathrm{Net}++$ [25], by considering local point patches, groups information within a neighborhood based on Euclidean distance and then applies PointNet to the individual groups. This design choice requires explicitly duplicating local memory information among neighboring points, and potentially compromises performance as the networks go deeper.
22
+
23
+ ![](images/df6d205928210ec77e525ff684f5a4a96e398b812cf35100d2ea666166c2f8fa.jpg)
24
+
25
+ ![](images/970402da4e5a099b53ed044cec46f2ae8465b4c484a624ec0b3762b32265c669.jpg)
26
+
27
+ ![](images/e5a5d770e35ce4003187c65eabec1de9ae2a6e20a8a4aaabb69886d5c3c734fc.jpg)
28
+ Ground Truth
29
+ Segmentation on a faucet
30
+ Figure 1. Lean Point Networks (LPNs) can achieve higher point cloud segmentation accuracy while operating at substantially lower memory and inference time. (Top) Memory footprint and inference speed of LPN variants introduced in this work compared to the PointNet++ (PN++) baseline. (Middle) Improvements in accuracy for three segmentation benchmarks of increasing complexity. On the -most complex- PartNet dataset our deep network outperforms the shallow PointNet++ baseline by $3.4\%$ , yielding a $9.7\%$ relative increase. (Bottom) Part Segmentation by PointNet++ and Deep LPN.
31
+
32
+ ![](images/61985f531e79f5c479322ae474bf9f3e2dd58d32a03a69d52d0173bcb60b0ed8.jpg)
33
+ PN++
34
+
35
+ ![](images/3cb0fff9836cd30f71375316f72da8e9b84ee949e3c5514411277f82574caac1.jpg)
36
+ Deep LPN
37
+
38
+ In particular, the memory and computational demands of point network blocks (e.g., PointNet++ and many follow-up architectures) can affect both training speed and, more crucially, inference time. One of the main bottlenecks for such point networks is their memory-intensive nature, as detailed in Sec. 3.1. Specifically, the PointNet++ architecture and its variants replicate point neighborhood information, letting every node carry in its feature vector information about all of its neighborhood. This results in significant memory overhead, and limits the number of layers, features and feature compositions one can compute.
39
+
40
+ In this work, we enhance such point processing networks that replicate local neighborhood information by introducing a set of modules that improve memory footprint and accuracy, without compromising on inference speed. We call the resulting architectures Lean Point Networks, to highlight their lightweight memory budget. We build on the decreased memory budget to go deeper with point networks. As has been witnessed repeatedly in the image domain [12, 14, 39], we show that going deep also increases the prediction accuracy of point networks.
41
+
42
+ We start in Sec. 3.2 by replacing the grouping operation used in point cloud processing networks with a low-memory alternative that is the point cloud processing counterpart of efficient image processing implementations of convolution. The resulting 'point convolution block' - defined slightly differently from convolution used in classical signal processing - is $67\%$ more memory-efficient and $41\%$ faster than its PointNet++ counterpart, while exhibiting favorable training properties due to more effective mixing of information across neighborhoods.
43
+
44
+ We then turn in Sec. 3.3 to improving the information flow across layers and scales within point networks through three techniques: a multi-resolution variant for multi-scale network which still delivers the multi-scale context but at a reduced memory and computational cost, residual links, and a new cross-link block that broadcasts multi-scale information across the network branches. By combining these blocks, we are able to successfully train deeper point networks that allow us to leverage upon larger datasets.
45
+
46
+ In Sec. 4 we validate our method on the ShapeNet-Part, ScanNet and PartNet segmentation benchmarks, reporting systematic improvements over the PointNet++ baseline. As shown in Fig. 1, when combined these contributions deliver multifold reductions in memory consumption while improving performance, allowing us in a second stage to train increasingly wide and deep networks. On PartNet, the most complex dataset, our deep architecture achieves a $9.7\%$ relative increase in IoU while decreasing memory footprint by $57\%$ and inference time by $47\%$ .
47
+
48
+ Having ablated our design choices on the PointNet++ baseline, in Sec. 4.3 we turn to confirming the generic nature of our blocks. We extend the scope of our experiments
49
+
50
+ to three additional networks, (i) DGCNN [33], (ii) SpiderCNN [35], and (iii) PointCNN [21] and report systematic improvements in memory efficiency and performance.
51
+
52
+ # 2. Related Work
53
+
54
+ Learning in Point Clouds. Learning-based approaches have recently attracted significant attention in the context of Geometric Data Analysis, with several methods proposed specifically to handle point cloud data, including PointNet [24] and several extensions such as PointNet++ [25] and Dynamic Graph CNNs [33] for shape segmentation and classification, PCPNet [10] for normal and curvature estimation, P2P-Net [36] and PU-Net [38] for cross-domain point cloud transformation. Alternatively, kernel-based methods [2, 13, 22, 30] have also been proposed with impressive performance results. Although many alternatives to PointNet have been proposed [27, 20, 21, 13, 40] to achieve higher performance, the simplicity and effectiveness of PointNet and its extension PointNet++ make it popular for many other tasks [37].
55
+
56
+ Taking PointNet++ as our starting point, our work facilitates the transfer of network design techniques developed in computer vision to point cloud processing. In particular, significant accuracy improvements have been obtained with respect to the original AlexNet network [18] by engineering the scale of the filtering operations [41, 26], the structure of the computational blocks [29, 34], and the network's width and depth [12, 39]. A catalyst for experimenting with a larger space of network architecture, however, is the reduction of memory consumption - this motivated us to design lean alternatives to point processing networks. Notably, [42] introduce a new operator to improve point cloud network efficiency, but only focus on increasing the convergence speed by tuning the receptive field. [19] has investigated how residual/dense connections and dilated convolution could help mitigate vanishing gradient observed for deep graph convolution networks but without solving memory limitations, [13] use Monte Carlo estimators to estimate local convolution kernels. By contrast our work explicitly tackles the memory problem with the objective of training deeper/wider networks and shows that there are clear improvements over strong baselines.
57
+
58
+ Memory-Efficient Networks. The memory complexity of the standard back-propagation implementation grows linearly with network's depth as backprop requires retaining in memory all of the intermediate activations computed during the forward pass, since they are required for the gradient computation in the backward pass.
59
+
60
+ Several methods bypass this problem by trading off speed with memory. Checkpointing techniques [5, 9] use anchor points to free up intermediate computation results, and re-compute them in the backward pass. This is $1.5\mathrm{x}$ slower during training, since one performs effectively two
61
+
62
+ forward passes rather than just one. More importantly, applying this technique is easy for chain-structured graphs, e.g., recursive networks [9] but is not as easy for general Directed Acyclic Graphs, such as U-Nets, or multi-scale networks like PointNet++. One needs to manually identify the graph components, making it cumbersome to experiment with diverse variations of architectures.
63
+
64
+ Reversible Residual Networks (RevNets) [8] limit the computational block to come in a particular, invertible form of residual network. This is also $1.5\mathrm{x}$ slower during training, but alleviates the need for anchor points altogether. Unfortunately, it is unclear what is the point cloud counterpart of invertible blocks.
65
+
66
+ We propose generic blocks to reduce the memory footprint inspired from multi-resolution processing and efficient implementations of the convolution operation in computer vision. As we show in Sec. 4.3, our blocks can be used as drop-in replacements in generic point processing architectures (PointNet++, DGCNN, SpiderNet, PointCNN) without any additional network design effort.
67
+
68
+ # 3. Method
69
+
70
+ We start with a brief introduction of the PointNet++ network, which serves as an example point network baseline. We then introduce our modules and explain how they decrease memory footprint and improve information flow.
71
+
72
+ # 3.1. PointNet and PointNet++ Architectures
73
+
74
+ PointNet++ [25] has been proposed as a method of augmenting the basic PointNet architecture with a grouping operation. As shown in Fig. 4(a), grouping is implemented through a 'neighborhood lookup', where each point $\mathbf{p}_i$ looks up its $k$ -nearest neighbors and stacks them to get a point set, say $P_{N_k}^i$ . If each point comes with a $D$ -dimensional feature vector, the result of this process is a tensor $T = \left[ \begin{array}{lll}\mathbf{v} & \mathbf{v}_{[.,1]} & \dots & \mathbf{v}_{[.,K]} \end{array} \right]$ of size $N\times D\times (K + 1)$ . Within the PointNet modules, every vector of this matrix is processed separately by a Multi-Layer-Perceptron that implements a function MLP: $R^{D}\rightarrow R^{D^{\prime}}$ , while at a later point a max-pooling operation over the $K$ neighbors of every point delivers a slim, $N\times D^{\prime}$ matrix.
75
+
76
+ When training a network every layer constructs and retains a matrix like $T$ in memory, so that it can be used in the backward pass to update the MLP parameters, and send gradients to earlier layers. While demonstrated to be extremely effective, this design of PointNet++ has two main shortcomings: first, because of explicitly carrying around $k$ -nearest neighbor information for each point, the network layers are memory intensive; and second, being reliant on PointNet, it also delays transmission of global information until the last, max-pooling stage where the results of decoupled MLPs are combined. Many subsequent variants of PointNet++ suffer
77
+
78
+ from similar memory and information flow limitations. As we describe now, these shortcomings are alleviated, by our convolution-type point processing layer.
79
+
80
+ # 3.2. convPN: a convolution-type PointNet layer
81
+
82
+ We propose a novel convolution-type PointNet layer (convPN), that is inspired from efficient implementations of convolution. Standard convolution operates in two steps: (i) neighborhood exposure and (ii) matrix multiplication. Our convPN block follows similar steps, as shown in Fig. 2, but the weight matrix blocks treating different neighbors are tied, so as to ensure permutation invariance.
83
+
84
+ In more detail, standard 2D image convolution amounts to forming a $K^2$ tensor in memory when performing $K \times K$ filtering and then implementing a convolution as matrix multiplication. This amounts to the im2col operation used to implement convolutions with General Matrix-Matrix Multiplication (GEMM) [15]. In point clouds the nearest neighbor information provides us with the counterpart to the $K \times K$ neighborhood.
85
+
86
+ Based on this observation we propose to use the strategy used in memory-efficient implementations of image convolutions for deep learning: we free the memory from a layer as soon as the forward pass computes its output, rather than maintaining the matrix in memory. In the backward pass we reconstruct the matrix on the fly from the outputs of the previous layer. We perform the required gradient computations and then return the GPU memory resources.
87
+
88
+ As shown in Fig. 3, we gain further efficiency by replacing the MLPs of PointNet++ by a sequence of SLP-Pooling modules. This allows us to further reduce memory consumption, saving the layer activations only through the pooled features while at the same time increasing the frequency at which neighbors share information.
89
+
90
+ As detailed in the Supplemental Material, a careful implementation of our convolution-type architecture shortens, on average, the time spent for the forward pass and the backward pass by $41\%$ and $68\%$ , respectively, while resulting in a drastic reduction in memory consumption.
91
+
92
+ For a network with $L$ layers, the memory consumption of the baseline PointNet++ layer grows as $L \times (N \times D \times K)$ , while in our case memory consumption grows as $L \times (N \times D) + (N \times D \times K)$ , where the term, $L \times (N \times D)$ accounts for the memory required to store the layer activations, while the second term $N \times D \times K$ is the per-layer memory consumption of a single neighborhood convolution layer. As $L$ grows larger, this results in a $K$ -fold drop, shown on Fig. 5. This reduction opens up the possibility of learning much deeper networks, since memory demands now grow substantially more slowly in depth. With minor, dataset-dependent, fluctuations, the memory footprint of our convolution type architecture is on average $67\%$ lower than the PointNet++ baseline, while doubling the number of layers
93
+
94
+ ![](images/9cd3fd95e2c153695274c4e17b00451a5dbd98c631a82eb785570ae6c3d372df.jpg)
95
+ Figure 2. Analogy between 2D convolution and its point cloud counterpart. In both cases, the layer operates in two steps: (i) neighborhood exposure and (ii) matrix multiplication. 2D image convolution amounts to forming a $K^2$ tensor in memory when performing $K \times K$ filtering and then implementing a convolution as matrix multiplication.
96
+
97
+ ![](images/5161341952197b59808c4bb6a2ba128ffcfc9122ae00c8a4435a43b39a98b854.jpg)
98
+ Figure 3. Comparison of a PointNet++ module with our convPN module. The convPN module replaces the MLP with its pooling layer by a sequence of SLP-Pooling modules which has two benefits (i) memory savings as the layer activations are saved only through the pooled features and (ii) better information flow as it increases the frequency at which neighbors share information.
99
+
100
+ comes with a memory overhead of $2.7\%$ .
101
+
102
+ # 3.3. Improving Information Flow
103
+
104
+ We now turn to methods for efficient information propagation through point networks. As has been repeatedly shown in computer vision, this can drastically impact the behavior of the network during training. Our experiments indicate that this is also the case for point processing.
105
+
106
+ # (a) Multi-Resolution vs Multi-Scale Processing.
107
+
108
+ Shape features can benefit from both local, fine-grained information and global, semantic-level context; their fusion can easily boost the discriminative power of the resulting features. For this we propose to extract neighborhoods of fixed size in downsampled versions of the original point
109
+
110
+ cloud. In the coordinates of the original point cloud this amounts to increasing the effective grouping area, but it now comes with a much smaller memory budget. We observe a $58\%$ decrease in memory footprint on average on the three tested datasets. Please refer to in Supplemental for an illustration of the difference between both types of processing.
111
+
112
+ (b) Residual Links. We use the standard Residual Network architecture [12], which helps to train deep networks reliably. Residual networks change the network's connectivity to improve gradient flow during training: identity connections provide early network layers with access to undistorted versions of the loss gradient, effectively mitigating the vanishing gradient problem. As our results in Sec. 4 show, this allows us to train deeper networks.
113
+
114
+ ![](images/353d5a2e9422841f62e870f51f8f8ed96e04a7a0809a6fe2a51482ce47054eb5.jpg)
115
+ Network Layers
116
+
117
+ ![](images/844e573bbce2f0e6c3a746ac13f6e29ff36766df62e7718a1ef505f186091e58.jpg)
118
+ (b) mRes
119
+
120
+ ![](images/56b24652ecf9e6b47ee08d8c99eff4d95e82a11c12aa886010b8b667f16d1e2a.jpg)
121
+ (c) mResX
122
+
123
+ ![](images/b908f0fa2054866f61614bbf7e7b77745552f9af0e5765ecae337ac11c5dbb39.jpg)
124
+ (a) PointNet++ (PN++)
125
+ (d) convPN
126
+
127
+ ![](images/d1b1553b399cfa8b8ec473b2b4d23a906fd5b9309532ca0bc256e052dc658e78.jpg)
128
+ (e) Stack of convPN layers
129
+
130
+ ![](images/a114bdd06fc12af5a75895a2f200512fe4449ed7dd3c9453d97364c3e585914a.jpg)
131
+ Figure 5. Evolution of memory consumption as the number of layers increases for PointNet++ and LPN (convolution block counterpart) on ShapeNet-Part. Doubling the number of layers for LPN results only in an increase in memory by $+2.3\%$ and $+16.8\%$ for mid- and high-resolution respectively, which favorably compares to the $+72\%$ and $+125\%$ increases for PointNet++.
132
+
133
+ (c) Cross Links. Further, we use Cross-Resolution Links to better propagate information in the network during training. We draw inspiration from the Multi-Grid Networks [16], Multiresolution Tree Networks [7], Hypercolumns [11]; and allow layers that reside in different resolution branches to communicate with each other, thereby exchanging low-, mid-, and high-resolution infor
134
+
135
+ ![](images/f434815e8aefb32d86f79ac500d1355dfa99dd3bc3636ff99a7dc2849aff8041.jpg)
136
+ Figure 4. The standard $\mathrm{PN}++$ layer in (a) amounts to the composition of a k-Nearest Neighbor (kNN)-based lookup and a PointNet element. In (b) we propose to combine parallel PointNet++ blocks in a multi-resolution architecture (D and U stand for down- and up-sampling operations), using multiple Single Layer Perceptrons (SLPs) and in (c) allow information to flow across branches of different resolutions through a cross-link element ('xLink'). In (d) we propose to turn the lookup-SLP-pooling cascade into a low-memory counterpart by removing the kNN elements from memory once computed; we also introduce residual links, improving the gradient flow. In (e) we stack the green box in (d) to grow in depth and build our deep architecture.
137
+ Figure 6. Cross-link module to connect across resolutions.
138
+
139
+ mation throughout the network processing, rather than fusing multi-resolution information at the end of each block.
140
+
141
+ Cross-links broadcast information across resolutions as shown in Fig. 6. Note that unlike [7], an MLP transforms the output of one branch to the right output dimensionality so that it can be combined with the output of another branch. Each resolution branch can focus on its own representation and the MLPs will be in charge of making the translation between them. Taking in particular the case of a high-resolution branch communicating its outputs to a mid-resolution branch, we have $N \times D^{H}$ feature vectors at the output of a lookup-SLP-pooling block cascade, which need to be communicated to the $N / 2 \times D^{M}$ vectors of the mid-resolution branch. We first downsample the points, going
142
+
143
+ from $N$ to $N/2$ points, and then use an MLP that transforms the vectors to the target dimensionality. Conversely, when going from low- to higher dimensions we first transform the points to the right dimensionality and then upsample them. We have experimented with both concatenating and summing multi-resolution features and have observed that summation behaves systematically better in terms of both training speed and test performance.
144
+
145
+ # 4. Evaluation
146
+
147
+ We start by defining our tasks and metrics and then turn to validating our two main contributions to model accuracy, namely better network training through improved network flow in Sec. 4.1, and going deeper through memory-efficient processing in Sec. 4.2. We then turn to validating the merit of our modules when used in tandem with a broad array of state-of-the-art architectures in Sec. 4.3, and finally provide a thorough ablation of the impact of our contributions on aspects complementary to accuracy, namely parameter size, memory, and efficiency in Sec. 4.4.
148
+
149
+ Dataset and evaluation measures. Our modules can easily be applied to any point cloud related tasks, such as classification, however, we focus here on evaluating our modules on the point cloud segmentation task on three different datasets as it is a more challenging task. The datasets consist of either 3D CAD models or real-world scans. We quantify the complexity of each dataset based on (i) the number of training samples, (ii) the homogeneity of the samples and (iii) the granularity of the segmentation task. Note that a network trained on a bigger and diverse dataset would be less prone to overfitting - as such we can draw more informative conclusions from more complex datasets. We order the datasets by increasing complexity: ShapeNet-Part [4], ScanNet [6] and PartNet [23] for fine-grained segmentation. By its size (24,506 samples) and its granularity (251 labeled parts), PartNet is the most complex dataset.
150
+
151
+ To have a fair comparison (memory, speed, accuracy), we re-implemented all the models in Pytorch and consistently compared the vanilla network architectures and our memory-efficient version. We report the performance of networks using their last saved checkpoint (i.e. when training converges), instead of the common (but clearly flawed) practice of using the checkpoint that yields best performance on the test set. These two factors can lead to small differences from the originally reported performances.
152
+
153
+ We use two different metrics to report the Intersection over Union (IoU): (i) the mean Intersection over Union (mIoU) and (ii) the part Intersection over Union (pIoU). Please refer to Supplemental for further details.
154
+
155
+ # 4.1. Effect of improved information flow
156
+
157
+ We report the performance of our variations for PointNet++ on the Shapenet-Part, ScanNet and PartNet datasets
158
+
159
+ Table 1. Performance of our modules compared to PointNet++ baseline. The impact of our modules becomes most prominent as the dataset complexity grows. On PartNet our Deep LPN network increases pIoU by $9.7\%$ over PointNet++, outperforming its shallow counterpart by $+2.1\%$ .
160
+
161
+ <table><tr><td rowspan="2"></td><td colspan="2">ShapeNet-Part (13,998 samp.)</td><td colspan="2">ScanNet (1,201 samp.)</td><td colspan="2">PartNet (17,119 samp.)</td></tr><tr><td colspan="2">mIoU (%)</td><td>Vox. Acc. (%)</td><td>pIoU (%)</td><td colspan="2">pIoU (%)</td></tr><tr><td>PN++</td><td colspan="2">84.60 (+0.0%)</td><td>80.5 (+0.0%)</td><td>24 (+0.0%)</td><td colspan="2">35.2 (+0.0%)</td></tr><tr><td>mRes</td><td colspan="2">85.47 (+1.0%)</td><td>79.4 (-1.4%)</td><td>22 (-8.3%)</td><td colspan="2">37.2 (+5.7%)</td></tr><tr><td>mResX</td><td colspan="2">85.42 (+1.0%)</td><td>79.5 (-1.2%)</td><td>22 (-8.3%)</td><td colspan="2">37.5 (+6.5%)</td></tr><tr><td>LPN</td><td colspan="2">85.65 (+1.2%)</td><td>83.2 (+3.4%)</td><td>27 (+12.5%)</td><td colspan="2">37.8 (+7.4%)</td></tr><tr><td>Deep LPN</td><td colspan="2">85.66 (+1.3%)</td><td>82.2 (+2.1%)</td><td>27 (+12.5%)</td><td colspan="2">38.6 (+9.7%)</td></tr></table>
162
+
163
+ (Table 1). Our lean and deep architectures can be easily deployed on large and complex datasets. Hence, for Part-Net, we choose to train on the full dataset all at once on a segmentation task across the 17 classes instead of having to train a separate network for each category as in [23].
164
+
165
+ Our architectures substantially improve the memory efficiency of the PointNet++ baseline while also delivering an increase in performance for more complex datasets (see Fig. 1). Indeed, as the data complexity grows, having efficient information flow has a larger influence on the network performance. On PartNet, the spread between our architectures and the vanilla PointNet++ becomes significantly high: our multiresolution (mRes) network increases relative performance by $+5.7\%$ over PointNet++ and this gain reaches $+6.5\%$ with cross-links (mResX). Our convolution-type network (LPN) outperforms other architectures when dataset complexity increases ( $+3.4\%$ on ScanNet and $+7.4\%$ on PartNet) by more efficiently mixing information across neighbours.
166
+
167
+ # 4.2. Improvement of accuracy by going deeper
168
+
169
+ The memory savings introduced in Sec. 3.2 give the opportunity to design deeper networks. Naively increasing network depth can harm performance [12]. Instead, we use residual connections to improve convergence for our deep network. The architecture, detailed in the Supplemental material, consists in doubling the number of layers in the encoding part. While keeping the impact on efficiency very small $(+6.3\%)$ on inference time on average and $+3.6\%$ on memory consumption at most compared to the shallow LPN), the performance improved (see Table 1). On PartNet, this margin reaches $+2.1\%$ over the shallow LPN and $+9.7\%$ over the vanilla PointNet++. Note the low growth of memory as a function of depth, shown in Fig. 5. As shown in Fig. 7, having a deeper network improves the segmentation quality at the boundaries between parts. In contrast, naively increasing the number of encoding layers from 9 to 15 in PointNet++ leads only to a small increase in performance IoU from $84.60\%$ to $84.66\%$ .
170
+
171
+ In Table 2 we compare against Deep GCN [19] in terms
172
+
173
+ Table 2. Performance of our deepConPN network compared to Deep GCN (ResGCN-28) and related methods on S3DIS based on a 6-fold validation process. The difference in performance observed on each class can be explained by the different approaches networks have for point convolution. Our deep network clearly outperforms PointNet++ baseline by a spread of +6.8% for mIoU. We achieve similar performance compared to Deep GCN while relying on a weaker baseline (PointNet++ against DGCNN)
174
+
175
+ <table><tr><td>Method</td><td>OA</td><td>mIOU</td><td>ceiling</td><td>floor</td><td>wall</td><td>beam</td><td>column</td><td>window</td><td>door</td><td>table</td><td>chair</td><td>sofa</td><td>bookcase</td><td>board</td><td>clutter</td></tr><tr><td>MS+CU</td><td>79.2</td><td>47.8</td><td>88.6</td><td>95.8</td><td>67.3</td><td>36.9</td><td>24.9</td><td>48.6</td><td>52.3</td><td>51.9</td><td>45.1</td><td>10.6</td><td>36.8</td><td>24.7</td><td>37.5</td></tr><tr><td>G+RCU</td><td>81.1</td><td>49.7</td><td>90.3</td><td>92.1</td><td>67.9</td><td>44.7</td><td>24.2</td><td>52.3</td><td>51.2</td><td>58.1</td><td>47.4</td><td>6.9</td><td>39.0</td><td>30.0</td><td>41.9</td></tr><tr><td>3DRNN+CF</td><td>86.9</td><td>56.3</td><td>92.9</td><td>93.8</td><td>73.1</td><td>42.5</td><td>25.9</td><td>47.6</td><td>59.2</td><td>60.4</td><td>66.7</td><td>24.8</td><td>57.0</td><td>36.7</td><td>51.6</td></tr><tr><td>DGCNN</td><td>84.1</td><td>56.1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ResGCN-28</td><td>85.9</td><td>60.0</td><td>93.1</td><td>95.3</td><td>78.2</td><td>33.9</td><td>37.4</td><td>56.1</td><td>68.2</td><td>64.9</td><td>61.0</td><td>34.6</td><td>51.5</td><td>51.1</td><td>54.4</td></tr><tr><td>PointNet</td><td>78.5</td><td>47.6</td><td>88.0</td><td>88.7</td><td>69.3</td><td>42.4</td><td>23.1</td><td>47.5</td><td>51.6</td><td>54.1</td><td>42.0</td><td>9.6</td><td>38.2</td><td>29.4</td><td>35.2</td></tr><tr><td>PointNet++</td><td>-</td><td>53.2</td><td>90.2</td><td>91.7</td><td>73.1</td><td>42.7</td><td>21.2</td><td>49.7</td><td>42.3</td><td>62.7</td><td>59.0</td><td>19.6</td><td>45.8</td><td>48.2</td><td>45.6</td></tr><tr><td>Deep LPN</td><td>85.7</td><td>60.0</td><td>91.0</td><td>95.6</td><td>76.1</td><td>50.3</td><td>25.9</td><td>55.1</td><td>56.8</td><td>66.3</td><td>74.3</td><td>25.8</td><td>54.0</td><td>52.3</td><td>55.3</td></tr><tr><td colspan="3">Ground Truth</td><td colspan="3">PointNet++</td><td colspan="2">Deep LPN</td><td colspan="3">Ground Truth</td><td colspan="2">PointNet++</td><td colspan="2">Deep LPN</td><td></td></tr><tr><td colspan="3">Bed</td><td colspan="3"></td><td colspan="2"></td><td colspan="3"></td><td colspan="2"></td><td colspan="2"></td><td></td></tr></table>
176
+
177
+ Figure 7. Segmentation prediction for both PointNet++ and Deep LPN networks compared to the ground truth. While PointNet++ struggles to detect accurately the boundaries between different parts, ours performs a much finer segmentation in those frontier areas.
178
+
179
+ of the overall accuracy and the mean IoU on the S3DIS dataset [1] by following the same 6-fold evaluation process. We attain similar performance to Deep GCN, while relying on our generic memory-efficient network blocks and while based on a weaker baseline compared to Deep GCN (i.e., DGCNN). Moreover, as Deep GCN is not designed to tackle the efficiency issue in Point Networks, our network wins on all counts and successfully reduces both the memory (more than $74\%$ ) and the speed $(-48\%$ and $-89\%$ for the inference and the backward speed respectively). As we show in the following section, these blocks come with the advantage of being applicable to many other point processing networks.
180
+
181
+ # 4.3. Evaluation on more architectures
182
+
183
+ We have introduced building blocks for point processing networks based on two key ideas, (i) a memory efficient convolution and (ii) improved information flow. Our blocks make it really efficient to capture, process and diffuse information in a point neighbourhood. Diffusing information across neighborhood is the main behavior that most networks, if not all, share. We validate the generality of the proposed modular blocks in the context of other point-based learning setups, as shown in Table 3. Each of our macroblocks can be stacked together, extended into a deeper block by duplicating the green boxes (see Figure 4) or even be modified by changing one of its components by another. We test our framework on three additional networks among the recent approaches, (i) Dynamic Graph CNN [33], (ii) PointCNN [21] and (iii) SpiderCNN [35]. These networks involve a diverse set of point convolution approaches; these
184
+
185
+ experiments allow us to assess the generic nature of our modular blocks, and their value as drop-in replacements for existing layers.
186
+
187
+ All three of the networks make extensive use of memory which is a bottleneck to depth. We implant our modules directly in the original networks, making, when needed, some approximations from the initial architecture (see Supplemental). We report the performance of each network with our lean counterpart on two metrics: (i) memory footprint and (ii) accuracy in Table 3. Our lean counterparts consistently improve both the accuracy (from $+0.4\%$ up to $+8.0\%$ ) and the memory consumption (from $-19\%$ up to $-69\%$ ).
188
+
189
+ Our modular blocks can thus be applied to a wide range of state-of-the-art networks and improve significantly their memory consumption while having a positive impact on performance.
190
+
191
+ # 4.4. Ablation study
192
+
193
+ In this section we report our extensive experiments to assess the importance of each block of our network architectures. Our lean structure allows us to adjust the network architectures by increasing its complexity, either by (i) adding extra connections or by (ii) increasing the depth. We analyze our networks along four axes: (i) the performance (IoU or accuracy) (Table 1), (ii) the memory footprint, (iii) the inference time and (iv) the backward time. Our main experimental findings regarding network efficiency are reported in Table 4 and ablate the impact of our proposed design choices for point processing networks.
194
+
195
+ Memory-efficient Convolutions: As described in
196
+
197
+ Table 3. Performance of our blocks on three different architectures (DGCNN, PointCNN and SpiderCNN) on three datasets using two different metrics: (i) memory consumption in Gb and (ii) performance in % (mIoU for ShapeNet-Part, Vox. Acc. for ScanNet and pIoU for PartNet). Our lean counterparts improve significantly both the performance (up to +8.0%) and the memory consumption (up to -69%).
198
+
199
+ <table><tr><td rowspan="2" colspan="2"></td><td colspan="3">DGCNN</td><td colspan="3">PointCNN</td><td colspan="3">SCNN</td></tr><tr><td>ShapeNet-P</td><td>ScanNet</td><td>PartNet</td><td>ShapeNet-P</td><td>ScanNet</td><td>PartNet</td><td>ShapeNet-P</td><td>ScanNet</td><td>PartNet</td></tr><tr><td rowspan="2">Mem.</td><td>Vanilla</td><td>2.62 (+0%)</td><td>7.03 (+0%)</td><td>9.50 (+0%)</td><td>4.54 (+0%)</td><td>5.18 (+0%)</td><td>6.83 (+0%)</td><td>1.09 (+0%)</td><td>4.33 (+0%)</td><td>5.21 (+0%)</td></tr><tr><td>Lean</td><td>0.81 (-69%)</td><td>3.99 (-43%)</td><td>5.77 (-39%)</td><td>1.98 (-56%)</td><td>3.93 (-24%)</td><td>5.55 (-19%)</td><td>0.79 (-28%)</td><td>3.25 (-25%)</td><td>3.33 (-36%)</td></tr><tr><td rowspan="2">Perf.</td><td>Vanilla</td><td>82.59 (+0.0%)</td><td>74.5 (+0.0%)</td><td>20.5 (+0.0%)</td><td>83.60 (+0.0%)</td><td>77.2 (+0.0%)</td><td>25.0 (+0.0%)</td><td>79.86 (+0.0%)</td><td>72.9 (+0.0%)</td><td>17.9 (+0.0%)</td></tr><tr><td>Lean</td><td>83.32 (+0.9%)</td><td>75.0 (+0.7%)</td><td>21.9 (+6.8%)</td><td>84.45 (+1.0%)</td><td>80.1 (+3.8%)</td><td>27.0 (+8.0%)</td><td>81.61 (+2.2%)</td><td>73.2 (+0.4%)</td><td>18.4 (+2.8%)</td></tr></table>
200
+
201
+ Table 4. Efficiency of our network architectures measured with a batch size of 8 samples on a Nvidia GTX 2080Ti GPU. All of our lean architectures allow to save a substantial amount of memory on GPU wrt. the PointNet++ baseline from $58\%$ with mRes to a $67\%$ decrease with LPN. This latter convolution-type architecture wins on all counts, decreasing both inference time $(-41\%)$ and the length of backward pass $(-68\%)$ by a large spread. Starting from this architecture, the marginal cost of going deep is extremely low: doubling the number of layers in the encoding part of the network increases inference time by $6.3\%$ on average and the memory consumption by only $3.6\%$ at most compared to LPN. Please refer to Supplemental for absolute values.
202
+
203
+ <table><tr><td rowspan="2"></td><td colspan="3">Parameters (M)</td><td colspan="3">Memory Footprint (Gb)</td><td colspan="3">Inference Time (ms)</td><td colspan="3">Length Backward pass (ms)</td></tr><tr><td>ShapeNet-Part</td><td>ScanNet</td><td>PartNet</td><td>ShapeNet-Part</td><td>ScanNet</td><td>PartNet</td><td>ShapeNet-Part</td><td>ScanNet</td><td>PartNet</td><td>ShapeNet-Part</td><td>ScanNet</td><td>PartNet</td></tr><tr><td>PointNet++</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td><td>+0.0%</td></tr><tr><td>mRes</td><td>-17.0%</td><td>-17.6%</td><td>-16.6%</td><td>-69.3%</td><td>-56.5%</td><td>-47.6%</td><td>+14.8%</td><td>+59.2%</td><td>-19.4%</td><td>-68.8%</td><td>-53.8%</td><td>-63.2%</td></tr><tr><td>mResX</td><td>-10.6%</td><td>-10.7%</td><td>-10.1%</td><td>-65.0%</td><td>-53.2%</td><td>-46.3%</td><td>+28.2%</td><td>+60.9%</td><td>-12.5%</td><td>-29.5%</td><td>+0.0%</td><td>-25.4%</td></tr><tr><td>LPN</td><td>+13.8%</td><td>+13.4%</td><td>+12.6%</td><td>-75.7%</td><td>-66.6%</td><td>-57.9%</td><td>-45.6%</td><td>-30.3%</td><td>-47.9%</td><td>-82.7%</td><td>-42.3%</td><td>-78.9%</td></tr><tr><td>Deep LPN</td><td>+54.3%</td><td>+54.0%</td><td>+50.8%</td><td>-79.1%</td><td>-65.4%</td><td>-57.0%</td><td>-40.4%</td><td>-25.6%</td><td>-46.5%</td><td>-78.6%</td><td>-11.5%</td><td>-72.4%</td></tr></table>
204
+
205
+ Sec. 3.2, our leanest architecture is equivalent to constraining each PointNet unit to be composed of a single layer network, and turning its operation into a memory-efficient block by removing intermediate activations from memory. In order to get a network of similar size, multiple such units are stacked to reach the same number of layers as the original network. Our convolution-type network wins on all counts, both on performance and efficiency. Indeed, the IoU is increased by $3.4\%$ on ScanNet and $7.4\%$ on PartNet compared to $\mathrm{PointNet + + }$ baseline. Regarding its efficiency, the memory footprint is decreased by $67\%$ on average while decreasing both inference time $(-41\%)$ and the length of the backward pass $(-68\%)$ . These improvements in speed can be seen as the consequence of processing most computations on flattened tensors and thus reducing drastically the complexity compared to $\mathrm{PointNet + + }$ baseline.
206
+
207
+ Multi-Resolution: Processing different resolutions at the same stage of a network has been shown to perform well in shallow networks. Indeed, mixing information at different resolutions helps to capture complex features early in the network. We adopt that approach to design our mRes architecture. Switching from a PointNet++ architecture to a multi-resolution setting increases the IoU by $1.0\%$ on ShapeNet-Part and $5.7\%$ on PartNet. More crucially, this increase in performance comes with more efficiency. Although the inference time is longer (18% longer on average) due to the extra downsampling and upsampling operations, the architecture is much leaner and reduces memory footprint by $58\%$ . Training is quicker though due to a $62\%$ faster backward pass.
208
+
209
+ Cross-links: Information streams at different resolutions are processed separately and can be seen as complementary. To leverage this synergy, the network is provided with additional links connecting neighborhood resolutions. We experiment on the impact of those cross-resolution links to check their effect on the optimization. At the price of a small impact on memory efficiency $(+8\%$ wrt. mRes) and speed $(+7\%$ on inference time wrt. mRes), the performance can be improved on PartNet, the most complex dataset, with these extra-links by $0.8\%$ .
210
+
211
+ # 5. Conclusion
212
+
213
+ We have introduced new generic building blocks for point processing networks, that exhibit favorable memory, computation, and optimization properties when compared to the current counterparts of state-of-the-art point processing networks. Based on PointNet++, our lean architecture LPN wins on all counts, memory efficiency $(-67\%$ wrt. PointNet++) and speed $(-41\%$ and $-68\%$ on inference time and length of backward pass). Its deep counterpart has a marginal cost in terms of efficiency and achieves the best IoU on PartNet $(+9.7\%$ over PointNet++. Those generic blocks exhibit similar performance on all of the additionally tested architectures producing significantly leaner networks (up to $-69\%$ ) and increase in IoU (up to $+8.0\%$ ). Based on our experiments, we anticipate that adding these components to the armament of the deep geometry processing community will allow researchers to train the next generation of point processing networks by leveraging upon the advent of larger shape datasets [23, 17].
214
+
215
+ # References
216
+
217
+ [1] Iro Armeni, Ozan Sener, Amir R. Zamir, Helen Jiang, Ioannis Brilakis, Martin Fischer, and Silvio Savarese. 3d semantic parsing of large-scale indoor spaces. In Proceedings of the IEEE International Conference on Computer Vision and Pattern Recognition, 2016.
218
+ [2] 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.
219
+ [3] Angel Chang, Angela Dai, Thomas Funkhouser, Maciej Halber, Matthias Nießner, Manolis Savva, Shuran Song, Andy Zeng, and Yinda Zhang. Matterport3d: Learning from rgb-d data in indoor environments. 09 2017.
220
+ [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.
221
+ [5] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sublinear memory cost. CoRR, abs/1604.06174, 2016.
222
+ [6] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 2017.
223
+ [7] Matheus Gadelha, Rui Wang, and Subhransu Maji. Multiresolution tree networks for 3d point cloud processing. In Proceedings of the European Conference on Computer Vision (ECCV), pages 103-118, 2018.
224
+ [8] Aidan N. Gomez, Mengye Ren, Raquel Urtasun, and Roger B. Grosse. The reversible residual network: Backpropagation without storing activations. CoRR, abs/1707.04585, 2017.
225
+ [9] Audrunas Gruslys, Remi Munos, Ivo Danihelka, Marc Lancot, and Alex Graves. Memory-efficient backpropagation through time. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems 29, pages 4125-4133. Curran Associates, Inc., 2016.
226
+ [10] Paul Guerrero, Yanir Kleiman, Maks Ovsjanikov, and Niloy J. Mitra. PCPNet: Learning local shape properties from raw point clouds. CGF, 37(2):75-85, 2018.
227
+ [11] Bharath Hariharan, Pablo Andres Arbeláez, Ross B. Girshick, and Jitendra Malik. Hypercolumns for object segmentation and fine-grained localization. CoRR, abs/1411.5752, 2014.
228
+ [12] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016.
229
+ [13] P. Hermosilla, T. Ritschel, P-P Vazquez, A. Vinacua, and T. Ropinski. Monte carlo convolution for learning on non-uniformly sampled point clouds. ACM Transactions on Graphics (Proceedings of SIGGRAPH Asia 2018), 37(6), 2018.
230
+
231
+ [14] Gao Huang, Zhuang Liu, and Kilian Q. Weinberger. Densely connected convolutional networks. CoRR, abs/1608.06993, 2016.
232
+ [15] Yangqing Jia. Learning Semantic Image Representations at a Large Scale. PhD thesis, University of California, Berkeley, USA, 2014.
233
+ [16] Tsung-Wei Ke, Michael Maire, and Stella X. Yu. Neural multigrid. CoRR, abs/1611.07661, 2016.
234
+ [17] 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. CoRR, abs/1812.06216, 2018.
235
+ [18] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2013.
236
+ [19] Guohao Li, Matthias Müller, Ali Thabet, and Bernard Ghanem. Deep GCs: Can GCs go as deep as cnns?, 2019.
237
+ [20] Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. pages 9397–9406, 2018.
238
+ [21] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. 2018.
239
+ [22] Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. CoRR, 2019.
240
+ [23] 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. CoRR, abs/1812.02713, 2018.
241
+ [24] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. CVPR, 1(2):4, 2017.
242
+ [25] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In NIPS, pages 5099-5108, 2017.
243
+ [26] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. 2015.
244
+ [27] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. pages 2530-2539, 2018.
245
+ [28] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In Proc. ICCV, 2015.
246
+ [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. CoRR, abs/1409.4842, 2014.
247
+ [30] 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. CoRR, 2019.
248
+ [31] Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-CNN: Octree-based Convolutional Neu
249
+
250
+ ral Networks for 3D Shape Analysis. ACM Transactions on Graphics (SIGGRAPH), 36(4), 2017.
251
+ [32] Peng-Shuai Wang, Chun-Yu Sun, Yang Liu, and Xin Tong. Adaptive O-CNN: A Patch-based Deep Representation of 3D Shapes. ACM Transactions on Graphics (SIGGRAPH Asia), 37(6), 2018.
252
+ [33] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. arXiv preprint arXiv:1801.07829, 2018.
253
+ [34] Saining Xie, Ross B. Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. CoRR, abs/1611.05431, 2016.
254
+ [35] Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. SpiderCNN: Deep learning on point sets with parameterized convolutional filters. In Proceedings of the European Conference on Computer Vision (ECCV), pages 87-102, 2018.
255
+ [36] Kangxue Yin, Hui Huang, Daniel Cohen-Or, and Hao Zhang. P2p-net: Bidirectional point displacement net for shape transform. ACM TOG, 37(4):152:1-152:13, July 2018.
256
+ [37] Lequan Yu, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. Ec-net: an edge-aware point set consolidation network. pages 386-402, 2018.
257
+ [38] Lequan Yu, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. Pu-net: Point cloud upsampling network. In CVPR, 2018.
258
+ [39] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. CoRR, abs/1605.07146, 2016.
259
+ [40] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. 2017.
260
+ [41] Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. 2014.
261
+ [42] Zhiyuan Zhang, Binh-Son Hua, and Sai-Kit Yeung. Shellnet: Efficient point cloud convolutional neural networks using concentric shells statistics. In International Conference on Computer Vision (ICCV), 2019.
goingdeeperwithleanpointnetworks/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90fe80f15ec36be1d4262e369d401d50c3a98f7cf7cf4f5b8ea7bf9c8492c718
3
+ size 554635
goingdeeperwithleanpointnetworks/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7b76635493cc7fe7001a5ccde3e1a4d747468d5af31540fc3b2eca9ff1acc53
3
+ size 356017
goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/dee3b80a-8222-4d7f-845f-47109519ff7f_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bb49d85456b18fa7b2dcf483561a54fa3cb1373e1fc948c70ce57307af36c23
3
+ size 79815
goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/dee3b80a-8222-4d7f-845f-47109519ff7f_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78460a988ae570e49f46b1313add0a6d5085f65a341580a0c8e2dc4ae2ac7cd5
3
+ size 96938
goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/dee3b80a-8222-4d7f-845f-47109519ff7f_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78d8ba2590a07fde25af6ef55c0235d3d8e50f66f2671222e46c1a0b382c3e56
3
+ size 472792
goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/full.md ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gold Seeker: Information Gain from Policy Distributions for Goal-oriented Vision-and-Language Reasoning
2
+
3
+ Ehsan Abbasnejad<sup>1</sup>, Iman Abbasnejad<sup>2</sup>, Qi Wu<sup>1</sup>, Javen Shi<sup>1</sup>, Anton van den Hengel<sup>1</sup>
4
+
5
+ 1{ehsan.abbasnejad,qi.wu01,javen.shi,anton.vandenhengel}@adelaide.edu.au
6
+
7
+ 2 i.abbasnejad@fugro.com
8
+
9
+ <sup>1</sup>Australian Institute for Machine Learning & The University of Adelaide, Australia,
10
+
11
+ $^{2}$ Fugro Australia Marine
12
+
13
+ # Abstract
14
+
15
+ As Computer Vision moves from passive analysis of pixels to active analysis of semantics, the breadth of information algorithms need to reason over has expanded significantly. One of the key challenges in this vein is the ability to identify the information required to make a decision, and select an action that will recover it. We propose a reinforcement-learning approach that maintains a distribution over its internal information, thus explicitly representing the ambiguity in what it knows, and needs to know, towards achieving its goal. Potential actions are then generated according to this distribution. For each potential action a distribution of the expected outcomes is calculated, and the value of the potential information gain assessed. The action taken is that which maximizes the potential information gain. We demonstrate this approach applied to two vision-and-language problems that have attracted significant recent interest, visual dialog and visual query generation. In both cases the method actively selects actions that will best reduce its internal uncertainty, and outperforms its competitors in achieving the goal of the challenge.
16
+
17
+ # 1. Introduction
18
+
19
+ The majority of problems that computer vision might be applied to greatly benefit from agents capable of actively seeking the information they need. This might be because the information required is not available at training time, or because it is too broad to be embodied in the code or weights of an algorithm. The ability to seek the information required to complete a task enables a degree of flexibility and robustness that cannot be achieved through other means.
20
+
21
+ Some of the applications that lie at the intersection of vision and language have this property, including visual dialog [12, 11], visual question answering [13, 23, 40], and
22
+
23
+ ![](images/6a2c4ef71b62764146a2b1ee766cb06703086f2a5b77bccb80b697ed2cca897e.jpg)
24
+ Figure 1: The role of the SEEKER in many conventional RL-based agents is to select an action based on the current (single) policy. In goal-oriented visual dialogue this means selecting the next query based on the image and the dialogue thus far. Our proposed SEEKER instead exploits a distribution of policies to generate multiple query hypotheses. The one that maximises the potential information gain is then selected. In this sense the agent is able to identify gaps in the information it holds and ask questions that will fill them.
25
+
26
+ vision-and-language navigation[6]. These problems require an agent (model) to acquire information on the fly to help to make decisions, because the space of all possible questions (or dialogues) encompasses more information than can be encoded in a training set. Additionally, a range of tasks have been proposed recently that use 'language generation' as a mechanism to gather information towards achieving a (non-language based) goal[47, 23, 24]. These tasks offer a particular challenge because the set of all information that might possibly be involved is inevitably very broad, which makes concrete representations difficult to employ practically.
27
+
28
+ In a visual dialog, and particularly goal-oriented visual question generation, an agent needs to understand the user request and complete a task by asking a limited number of questions. Similarly, compositional VQA (e.g. [21]) is a visual query generation problem that requires a model first to convert a natural language question to a sequence of actions (a 'program') and then obtain the answer by running
29
+
30
+ the programs on an engine. The question-to-program model represents an information 'seeker', while the broader goal is to generate an answer based on the information acquired.
31
+
32
+ Agents applicable to these tasks typically consist of four parts: a context encoder, an information seeker, a responder and a goal executor, as shown in Fig.2. The context encoder is responsible for encoding information such as images, questions, or dialog history to a feature vector. The information seeker is a model that is able to generate new queries (such as natural language questions and programs) based on the goal of the given task and its strategy. The information returned by the responder is added to the context and internal information and sent to the goal executor model to achieve the goal. The seeker model plays a crucial role in goal-oriented vision-and-language tasks, as better seeking strategies that recover more information improve the chance of the goal being achieved. Moreover, the seeker's knowledge of the value of additional information is essential in directing the seeker towards querying what is needed to achieve the goal. In this paper, we focus on exploring the seeker and responder models.
33
+
34
+ The conventional 'seeker' models in these tasks follow a sequence-to-sequence generation architecture, that is, they translate an image to a question, or translate a question to a program sequence via supervised learning. This requires large numbers of ground-truth training pairs. Reinforcement learning (RL) is thus employed in such goal-oriented vision-language tasks to mediate this problem due to the RL's ability to focus on achieving a goal through directed trial and error [13]. A policy in RL models specifies how the seeker asks for additional information. However, these methods generally suffer from two major drawbacks: (1) they maintain a single policy that translates the input sequence to the output while disregarding the strategic diversity needed. Intuitively a single policy is not enough in querying diverse information content for various goals—we need multiple strategies. In addition, (2) the RL employed in these approaches can be prohibitively inefficient since the question generation process (or query generation) does not consider its effect in directing the agent towards the goal. In fact, the agent does not have a notion of what information it needs and how it benefits in achieving its goal.
35
+
36
+ To this end, in contrast to conventional methods that use a single policy to model a vision-and-language task, we instead maintain a distribution of policies. By employing a Bayesian reinforcement learning framework for learning this distribution of the seeker's policy, our model incorporates the expected gain from a query towards achieving its goal. Our framework, summarized in Fig. 1, uses recently proposed Stein Variational Gradient Descent [26] to perform an efficient update of the posterior policies. Having a distribution over seeking policies, our agent is capable of considering various strategies for obtaining further infor
37
+
38
+ ![](images/3347129ab1e2e3277ca0574e7af479cf5071e6d8a82fb193e51f5500c2f6eb18.jpg)
39
+ Figure 2: Information seeker maintains a distribution over the policies. Each sample (particle) from the distribution can generate a different query. For each query, responder evaluates its gain and the best one is chosen to be executed in EXECUTOR. Based on how well the query leads to achieving its goal, the policy distribution is updated.
40
+
41
+ mation, analogous to human contemplation of various ways to ask a question. Each sample from the seeker's policy posterior represents a policy of its own, and seeks a different piece of information. This allows the agent to further contemplate the outcome of the various strategies before seeking additional information and considers the consequence towards the goal. We then formalize an approach for the agent to evaluate the consequence of receiving additional information towards achieving its goal. This consequence is the intrinsic reward the policy distribution receives to update its strategy for question generation.
42
+
43
+ We apply the proposed approach to two complex vision-and-language tasks, namely GuessWhat [13] and CLEVR [21], and show that it outperforms the comparative baselines and achieves the state-of-art results.
44
+
45
+ # 2. Related work
46
+
47
+ Goal-oriented Visual Dialog Das et al. [12] proposed a visual dialogue task that requires an agent to engage in conversation with a human, centred on the content of a given image. They further (in [11]) propose the use of reinforcement learning in two tasks for visual dialog. de Vries et al. in [13] propose a Guess-What game dataset, where one person asks questions about an image to guess which object has been selected, and the second person answers. This was a critical step in the development of goal-oriented visual dialogue because the objective there was not merely to continue the conversation, but rather to achieve a secondary goal (winning the game). Lee et al. [24] then developed an information theoretic approach which allows a questioner to ask appropriate consecutive questions in GuessWhat.
48
+
49
+ RL in Vision-and-Language problems Reinforcement learning (RL) [22, 44, 30] has been adopted in several
50
+
51
+ vision-and-language problems, including image captioning [27, 35, 36], VQA [17, 4, 10], and visual dialogue [11, 29]. Recently, some works [8, 41, 5, 3] have integrated Seq2Seq models and RL. RL has also been widely used to improve dialogue managers, which manage transitions between dialogue states [34]. However, nearly all of the methods use a single policy that translates the input sequence to an output. In our work, we instead maintain a distribution of policies.
52
+
53
+ Intrinsic rewards Intrinsic rewards refer to rewards beyond those gained from the environment in RL. These rewards are motivated by the sparse nature of environmental rewards and a need to motivate better exploration. For example, curiosity [32] is one such intrinsic reward mechanism by which agents are encouraged to visit new states. This idea has been extended to employ Bayesian methods to learn the expected improvement of the policy for taking an action [16, 19]. We use the expected gain in a vision-and-language task as an intrinsic reward to improve our model.
54
+
55
+ # 3. Goal-oriented Vision-Language Task
56
+
57
+ We represent our goal-oriented vision-and-language solution as having four constituent parts. The SEEKER takes as input the encoded image and context features produced by an ENCODER to generate a query to seek more information from a RESPONSEER, that will generate a response. The role of RESPONSEER is to model the environment in order to allow the agent to determine which query is best to ask. It takes in a question to produce an answer and its predicted score. Our RESPONSEER is an extension of the 'A-BOT' in [11], in that it instead considers a distribution over possible answers and generates a corresponding upper bound on the score of the question. This is a critical distinction, and represents an approach that is far more statistically justifiable. To enable our approach we develop a synthetic RESPONSEER inspired by the neuro-scientific formulation of agency that computes the translation of intentions into actions and evaluates their consequences in terms of predicted and actual experiences [9].
58
+
59
+ Typically the SEEKER learns a policy to generate queries on the basis of image and context features. The primary novelty in our proposed approach is that the SEEKER instead maintains a distribution of policies that enables multiple query hypotheses to be sampled. The RESPONSE then calculates an upper bound on the information gain for each hypothesis. The final query is that corresponding to the maximal (upper bound on the) information gain.
60
+
61
+ Formally, for each game at round $t$ , we have a tuple $(I, C, q^{(t)})$ , where $I$ is the observed image, $C$ is the context information at the current round and $q^{(t)}$ is a query generated by the SEEKER agent. Subsequently, $q^{(t)}$ is sent
62
+
63
+ to the RESPONDER that generates a response $a^{(t)}$ . The RESPONDER imitates the potential response for a query and evaluates its value. After $T$ rounds of this 'seek-answer' process, the tuple $(I,C,\{q^{(t)}\}_{t = 1}^{T},\{a^{(t)}\}_{t = 1}^{T})$ is sent to the EXECUTOR who selects the target from the candidate list $O = \{o_1,o_2,\dots,o_N\}$ . The ground truth target is denoted as $o^*$ and the game is success if the $o^*$ is successfully selected by the EXECUTOR.
64
+
65
+ To be more specific, in the Guesswhat (visual dialog) setting, $C$ is the dialog history and $q^{(t)}$ is a natural language question. Then, $O$ is the candidate object bounding boxes. The answer $a^{(t)}$ is provided by the oracle as either Yes/No or N/A (not applicable for the cases when the question is unrelated). In the CLEVR (VQA), $C$ is a single question asked by users and $q^{(t)}$ is a functional program, while the $O$ is a candidate answer vocabulary. The answers in this problem are the same as the target candidates.
66
+
67
+ # 3.1. Reinforcement Learning
68
+
69
+ Reinforcement learning considers agents interacting with their environment by taking a sequence of actions and assessing their effect through a scalar reward. The agent's task is to learn a policy that maximizes the expected cumulative rewards from its interaction with the environment.
70
+
71
+ Consider a vision-and-language task where the agent generates a query $q^{(t)} \in \mathcal{Q}$ at each time step $t$ given the state $\mathbf{s}^{(t)}$ . Each $\mathbf{s}^{(t)}$ encompasses the history of the dialog (including past query-answer pairs) and the input image. Upon receiving an answer $a^{(t)} \in \mathcal{A}$ for the query, the agent then observes a new state $\mathbf{s}^{(t + 1)}$ and receives a scalar reward $r(\mathbf{s}^{(t)},q^{(t)}) \in R$ . The goal of the reinforcement learning in this task is to find a querying policy $\pi (q^{(t)}|\mathbf{s}^{(t)},\pmb {\theta})$ given the state $\mathbf{s}^{(t)}$ to maximize an expected return:
72
+
73
+ $$
74
+ J (\boldsymbol {\pi}) = \mathbb {E} _ {\mathbf {s} _ {0}, q _ {0}, \dots \sim \boldsymbol {\pi}} [ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r (\mathbf {s} ^ {(t)}, q ^ {(t)}) ],
75
+ $$
76
+
77
+ where $0 \leq \gamma^t \leq 1$ is a discount factor. State variable $\mathbf{s}^{(t)}$ is generally considered to encompass all the information needed for the agent to take an action (in our application, generate a query). The expected return $J$ depends on $\pi$ because $q^{(t)} \sim \pi(q^{(t)}|\mathbf{s}^{(t)},\pmb{\theta})$ drawn from the policy (distribution) $\pi$ (i.e. $\pi(\pmb{\theta}|C,I,C)$ ). The state $\mathbf{s}^{(t+1)} \sim P(\mathbf{s}^{(t+1)}|\mathbf{s}^{(t)},q^{(t)})$ is generated by the seeker's environmental dynamics which are unknown. In policy gradient algorithms [45] such as the well-known REINFORCE [46], the gradient is estimated by samples from the policy $\pi(q|\mathbf{s},\pmb{\theta})$ . Specifically, REINFORCE uses the following approximator of the policy gradient:
78
+
79
+ $$
80
+ \nabla_ {\pmb {\theta}} J (\pmb {\theta}) \approx \sum_ {t = 0} ^ {\infty} \nabla_ {\pmb {\theta}} \log \pi (q ^ {(t)} | \mathbf {s} ^ {(t)}, \pmb {\theta}) r (\mathbf {s} ^ {(t)}, q ^ {(t)}),
81
+ $$
82
+
83
+ This gradient is computed based on a single rollout trajectory, where $r(\mathbf{s}^{(t)},q^{(t)}) = \sum_{i = 0}^{\infty}\gamma^{i}r(\mathbf{s}^{(t + i)},q^{(t + i)})$ is the
84
+
85
+ accumulated return from time step $t$ .
86
+
87
+ # 4. Information SEEKER and the RESPONDER
88
+
89
+ As discussed, our approach maintains a distribution of policies, $\pi$ and updates it using the RESPONSE and EXECUTOR. In a nutshell, our approach takes the following steps for training an information seeking agent:
90
+
91
+ 1. Conditioned on the history and context, the distribution of the query is:
92
+
93
+ $$
94
+ \pi (q ^ {(t)} | \mathbf {s} ^ {(t)}, C, I) = \int \pi (q ^ {(t)} | \mathbf {s} ^ {(t)}, \pmb {\theta}) \pi (\pmb {\theta} | C, I) d \pmb {\theta},
95
+ $$
96
+
97
+ where we can sample to generate a query, i.e.
98
+
99
+ $$
100
+ q _ {i} ^ {(t)} \sim \pi \left(q ^ {(t)} | \mathbf {s} ^ {(t)}, \boldsymbol {\theta} _ {i}\right), \quad \boldsymbol {\theta} _ {i} \sim \pi (\boldsymbol {\theta} | C, I) \tag {1}
101
+ $$
102
+
103
+ $$
104
+ \text {f o r} \quad i = 1, \dots , n;
105
+ $$
106
+
107
+ where $n$ is the number of query samples simulating the alternative queries that could be made.
108
+
109
+ 2. Our RESPONDER models belief over the potential answers and calculates the gain for each query $q_{i}^{(t)}$ . Since ultimately we need to choose one query, we choose the one with highest gain and incorporate it into the reward for the RL (see Section 4.1);
110
+ 3. The SEEKER models belief over the policy space rather than maintaining only a single policy (hence we can sample multiple parameters from its distribution in Eq. (1)). The posterior $\pi (\pmb {\theta}|\{q^{(t)}\}_{t}^{T},\{a^{(t)}\}_{t}^{T},o,C,I)$ considering the outcome of executing the query (potentially at multiple rounds) and a prior is formulated as part of the RL framework. Here, $a^{(t)}$ is the correct answer obtained from the environment. For example in case of GuessWhat game, it is the answer obtained from the oracle. (see Section 4.2);
111
+ 4. The SEEKER updates its belief over the distribution of the policies by incorporating the feedback from the environment. This update has to ensure the posterior for the parameters of the SEEKER remains valid (see Section 4.3).
112
+
113
+ # 4.1. Query Gain and the RESPONDER
114
+
115
+ In our approach the agent keeps a model (RESPONDER) of the environment to be able to predict what might most valuably be asked. The agent uses this model to imitate the behavior of the goal EXECUTOR and anticipate its potential response. Utilizing this model, the agent generates queries with answers that bring it closer to achieving its goal. In particular, we define the gain from state $\mathbf{s}^{(t)}$ is,
116
+
117
+ $$
118
+ \mathcal {G} _ {\boldsymbol {\omega}} (\mathbf {s} ^ {(t)}, q ^ {(t)}) = \mathbb {E} _ {a} [ u (p (a | \mathbf {s} ^ {(t)}, q ^ {(t)}, C, I; \boldsymbol {\omega})) ] \quad (2)
119
+ $$
120
+
121
+ where $u$ is a scoring function for the answers and $\omega$ is the set of parameters of the RESPONDER. Here, $p(a|\mathbf{s}^{(t)},q^{(t)},C,I;\omega)$ is the probability of the answer for a given query in the RESPONDER. This gains effectively evaluates the score of an answer. Particularly we find $\omega$ such that the expected goal under this policy is maximized. Intuitively, the agent queries $q^{(t)}$ at time $t$ only if it believes the answer $a^{(t)}$ it receives ultimately maximizes the gain in achieving its goal at state $\mathbf{s}^{(t)}$ . For instance, in the Guess-What game the RESPONDER takes in the history of the dialog and the current question and evaluates how good it is for achieving the goal (i.e. guessing the correct object).
122
+
123
+ In order to integrate this measure into an RL framework, we use this gain in the reward. This reward is collected by choosing the best query according to its gain in Eq. (2), i.e. $\max_{q^{(t)}}\mathcal{G}_{\omega}(\mathbf{s}^{(t)},q^{(t)})$ (although in practice with probability $\epsilon$ we sample an alternative query from the SEEKER's distribution $\pi$ to encourage exploration). Moreover, inspired by curiosity-driven and information maximizing exploration [16, 32], we incorporate this gain as an intrinsic motivation to consider the gain, i.e.
124
+
125
+ $$
126
+ r ^ {\text {n e w}} \left(\mathbf {s} ^ {(t)}, q ^ {(t)}\right) = r \left(\mathbf {s} ^ {(t)}, q ^ {(t)}\right) + \eta \mathcal {G} _ {\omega} \left(\mathbf {s} ^ {(t)}, q ^ {(t)}\right) \tag {3}
127
+ $$
128
+
129
+ $$
130
+ J (\boldsymbol {\theta}) = \mathbb {E} _ {\pi (\mathbf {s}, q | \boldsymbol {\theta})} \left[ \sum_ {t = 0} ^ {\infty} \gamma^ {t} r ^ {\text {n e w}} \left(\mathbf {s} ^ {(t)}, q ^ {(t)}\right) \right], \tag {4}
131
+ $$
132
+
133
+ for $\eta \geq 0$ that controls the intrinsic reward. In this new reward, an agent's anticipation of the answer is taken into account when updating the policy. When the seeker knows the answer and its gain is small, the parameters are not changed significantly. In other words, there is no need for further changes to the questions where the answer is known. On the other hand, when the agent anticipates a large gain from the answer and receives a large reward, the policy has to be adjusted by a larger change in the parameters. Similarly, if the agent expects a large gain and is not rewarded, there has to be significant update in the policy.
134
+
135
+ In addition, for each parameter of the SEEKER and each corresponding query $q^{(t)}$ , we have a different gain. As such, when the variance of this gain $\mathbb{V}_{q^{(t)}}[\mathcal{G}(\mathbf{s}^{(t)}, q^{(t)})]$ is small, all the queries are expected to have similar answer and hence are almost the same.
136
+
137
+ The advantage of this approach is twofold: (1) it helps deal with sparse rewards and (2) if a query's response carries more information by providing better gain, we encourage its positive reinforcement. This allows the agent to learn to mimic the behavior of the goal executor and generalize to unseen cases.
138
+
139
+ # 4.2. Information SEEKER's Belief
140
+
141
+ As discussed in Eq. (1), each query is sampled from the seeker's policy distribution. Each sample of the parameter $\theta$ gives rise to a different querying policy allowing us
142
+
143
+ to model policy distribution. This distribution allows for the agent to consider alternatives, or contemplates, various query policies to improve the overall dialog performance. As such, here we consider the policy parameter $\theta$ as a random variable (leading to random policies that we can model their distribution) and seek a distribution to optimize the expected return. We incorporate a prior distribution $\pi_0$ over the policy parameter, for instance, for when we have no answer for query-response pairs or to incorporate prior domain knowledge of parameters. The posterior in the conventional definition is
144
+
145
+ $$
146
+ \pi (\boldsymbol {\theta} | C ^ {+}, I) \propto \pi (o | \{q ^ {(t)} \} _ {t} ^ {T}, \{a ^ {(t)} \} _ {t} ^ {T}, C, I, \boldsymbol {\theta}) \pi_ {0} (\boldsymbol {\theta}).
147
+ $$
148
+
149
+ where we denote $C^+ = C \cup \{\{q^{(t)}\}_t^T, \{a^{(t)}\}_t^T, o\}$ as an augmented context with the rollout of one seeker's round (for instance a dialog round in GuessWhat). Since we need to define an additional likelihood for the goal and even then this posterior is intractable (unless major approximations and simplifying assumptions are made), we alternatively utilize the RL framework in which this posterior is used for. Specifically, we formulate the problem to find the policy distribution $\pi$ under which the expected cumulative reward is maximized with additional prior regularization:
150
+
151
+ $$
152
+ \max _ {\pi} \left\{\mathbb {E} _ {\pi (\boldsymbol {\theta} | C ^ {+}, I)} [ J (\boldsymbol {\theta}) ] - \alpha \mathbf {K L} (\pi \| \pi_ {0}) \right\}, \tag {5}
153
+ $$
154
+
155
+ where $\mathbf{KL}(\pi ||\pi_0) = \mathbb{E}_\pi [\log \pi (\pmb {\theta}|C^+,I) - \log \pi_0(\pmb {\theta})]$ . Effectively we seek a parameter distribution that gives rise to policies that maximize the expected reward while is close to the prior. It is easy to see if we use an uninformative prior such as a uniform distribution, the second KL term is simplified to the entropy of $\pi$ . Then optimization in Eq. (5) becomes $\max_{\pi}\left\{\mathbb{E}_{\pi (\pmb {\theta}|C^{+},I)}[J(\pmb {\theta})] + \alpha \mathbf{H}(\pi)\right\}$ which explicitly encourages exploration in the parameter space. This exploration yields diverse policies that result in varied queries.
156
+
157
+ By taking the derivative of the objective function in Eq. (5) and setting it to zero, the optimal distribution of policy parameter $\theta$ is obtained as
158
+
159
+ $$
160
+ \pi (\boldsymbol {\theta} \mid C ^ {+}, I) \propto \exp (J (\boldsymbol {\theta}) / \alpha) \pi_ {0} (\boldsymbol {\theta}). \tag {6}
161
+ $$
162
+
163
+ In this formulation, $\pi (\pmb {\theta}|C^{+},I)$ is the "posterior" of the parameters $\pmb{\theta}$ in the conventional Bayesian approach. Then, $\exp (J(\pmb {\theta}) / \alpha)$ is effectively the "likelihood" function. The coefficient $\alpha$ is the parameter that controls the strength of exploration in the parameter space and how far the posterior is from the prior. As $\alpha \rightarrow 0$ , samples drawn from $\pi (\pmb {\theta}|C^{+},I)$ will be concentrated on a single policy and lead to less diverse seekers.
164
+
165
+ Remember from Eq. (4) that the "likelihood" here considers the agent's anticipation of the answer. If its reward is higher, then a larger change to the parameter is needed to allow exploitation of new knowledge about the effect of the current policy on the goal.
166
+
167
+ ![](images/cc73cc04f97a2720cee8fc2e8b4b13ad8d58a34707694183ac366ffaa4435564.jpg)
168
+ Figure 3: An illustration of the multi-modal distribution of the SEEKERS policies. Unlike conventional policy gradient methods that only explore nearest mode, our novel approach always use a number of initial points (i.e. the policy parameters) to explore multiple modes collaboratively in analogy of human contemplation of multiple strategies. We only show two initial points, a red rectangle and black asterisk, for the ease of visualization.
169
+
170
+ Similar ideas of entropy regularization has been investigated in other reinforcement learning methods [28, 38]. However, in our approach we use the regularization to obtain the posterior for the policy parameters in the information seeking framework where the gain from the RESPONDER refines the policy distribution.
171
+
172
+ # 4.3. SEEKER's Posterior Update
173
+
174
+ A conventional method to utilise the posterior in Eq. (6) is Markov Chain Monte Carlo (MCMC) sampling. However, MCMC methods are computationally expensive, suffer from slow convergence and have high-variance due to stochastic nature of estimating $J(\pmb{\theta})$ . Since estimating $J(\pmb{\theta})$ by itself is a computationally demanding task and may vary significantly for each policy, we look for an efficient alternative. Thus, rather than $J(\pmb{\theta})$ , we use the gradient information $\nabla_{\pmb{\theta}}J(\pmb{\theta})$ that points to the direction for seeker's policy change using the Stein variational gradient descent (SVGD) for Bayesian inference [25, 26, 2, 1]. SVGD is a nonparametric variational inference algorithm that leverages efficient deterministic dynamics to transport a set of particles $\{\pmb{\theta}_i\}_{i=1}^n$ to approximate given target posterior distributions $\pi(\pmb{\theta}|C^+,I)$ . Unlike traditional variational inference methods, SVGD does not confine the approximation within a parametric families, which means the SEEKER's policy does not need to be approximated by another. Further, SVGD converges faster than MCMC due to the deterministic updates that efficiently leverage gradient information of the SEEKER's policy posterior. This inference is efficiently performed by iteratively updating multiple "particles" $\{\pmb{\theta}_i\}$ as $\pmb{\theta}_i = \pmb{\theta}_i + \epsilon_\theta \psi^*(\pmb{\theta}_i)$ , where $\epsilon_\theta$ is a step size and $\psi(\cdot)$ is a function in the unit ball of a reproducing kernel Hilbert space (RKHS). Here, $\psi^*$ is chosen as the solution to minimizing KL divergence between the particles and the target distribution. It was shown that this function has a closed form empirical estimate [26]:
175
+
176
+ $$
177
+ \begin{array}{l} \hat {\psi} (\boldsymbol {\theta} _ {i}) = \frac {1}{n} \sum_ {j = 1} ^ {n} [ \nabla_ {\boldsymbol {\theta} _ {j}} \log \pi (\boldsymbol {\theta} _ {j} | C ^ {+}, I) k (\boldsymbol {\theta} _ {j}, \boldsymbol {\theta} _ {i}) \\ \left. + \nabla_ {\boldsymbol {\theta} _ {j}} k \left(\boldsymbol {\theta} _ {j}, \boldsymbol {\theta} _ {i}\right) \right]. \tag {7} \\ \end{array}
178
+ $$
179
+
180
+ Algorithm 1 Seeker
181
+ Input: Learning rate $\epsilon_{\theta},\epsilon_{\omega}$ , kernel $k(\pmb {\theta},\pmb{\theta}^{\prime})$ , initial policy
182
+ particles $\{\pmb {\theta}_i\}$ , context history $C$ , image $I$
183
+ for iteration $t = 0,1,\dots,T$ do for particle $i = 1,\ldots ,n$ do Sample $q\sim \pi (q|\mathbf{s}^{(t)},C,I;\pmb {\theta}_i)$ Compute $\mathcal{G}(\mathbf{s}^{(t)},q)$ from Eq. (2). end for Select $q^{(t)}$ with maximum gain $a^{(t)} = \arg \max_{a}p(a|\mathbf{s}^{(t)},q^{(t)},C,I;\omega)$ $\omega \leftarrow \omega +\epsilon_{\omega}\nabla_{\omega}\log \Big(p(o|a^{(t)},\mathbf{s}^{(t)};\omega)\Big)$ ▷ score Compute $\nabla_{\pmb{\theta}_i}J(\pmb {\theta}_i)$ in Eq. (4). ▷ from Eq. (3) for particle $i = 0,1,\dots,n$ do $J_{\mathrm{new}}(\pmb {\theta}_j) = \frac{1}{\alpha} J(\pmb {\theta}_j) + \log \pi_0(\pmb {\theta}_j)$ $\Delta \pmb {\theta}_i\gets \frac{1}{n}\sum_{j = 1}^n\Big[\nabla_{\pmb{\theta}_j}J_{\mathrm{new}}(\pmb {\theta}_j)\boldsymbol {k}(\pmb {\theta}_j,\pmb {\theta}_i) + \nabla_{\pmb{\theta}_j}\boldsymbol {k}(\pmb {\theta}_j,\pmb {\theta}_i)\Big]$ $\pmb {\theta}_i\gets \pmb {\theta}_i + \epsilon \Delta \pmb {\theta}_i$ ▷ update the policy end for
184
+ end for
185
+
186
+ where $k$ is the positive definite kernel associated with the RKHS space. In this update rule $\hat{\psi}$ , the first term involves the gradient $\nabla_{\pmb{\theta}}\log \pi (\pmb {\theta}|C^{+},I)$ which moves the seeker's policy particles $\pmb{\theta}_i$ towards the high probability regions by sharing information across similar particles. The second term $\nabla_{\pmb{\theta}_j}k(\pmb {\theta}_j,\pmb {\theta}_i)$ utilizes the curvature of the parameter space to push the particles away from each other, which leads to diversification of the seeker's policies.
187
+
188
+ An example of the landscape of the policies is shown in Fig. 3. Each initial sample from the policy distribution can move towards one of the modes of a highly multi-modal distribution. These moves are governed by the gradient of the policy that in our case consists of the agent's belief about the answer and its consequence once its response is known. In addition, kernel $k$ controls the distance between the parameters to deter from collapsing to a single point in multimodal distribution. It is intuitive from the figure that a better gradient from the rewards by incorporating the answers and considering the distribution of policies improves the performance of the seeker by guiding the parameter updates.
189
+
190
+ It is noteworthy to mention that even though we only receive the reward for one sample of $q^{(t)}$ taken from one particle (from Eq. 2), due to our formalization the posterior is adjusted for all particles allowing the feedback to be propagated.
191
+
192
+ It is important to note that diversification in the parameter space allows for an accurate modeling of a highly multimodal policy space. Otherwise, the policy distribution collapses to a single point which is the same as the conventional maximum a posteriori (MAP) estimate. This MAP estimate only considers a single policy that in the highly complex task of vision-language is inadequate.
193
+
194
+ # 5. Experiments
195
+
196
+ To evaluate the performance of the SEEKER we conducted experiments on two different goal-oriented vision-and-language datasets: GuessWhat [13] and CLEVR [21]. The former is a visual dialog task while the later is a compositional visual question answering task. In both experiments we pre-train the networks using the supervised model and refine using reinforcement learning, as is common practice in this area [11, 13]. Policies are generated by sampling from the policy posterior $\pmb{\theta} \sim \pi(\pmb{\theta} | C^+, I)$ and generate the query with the highest gain measured by the RESPONDER. Our approach outperforms the previous state-of-art in both cases. Note that our approach is architecture neutral and as such we expect using better representations to even improve performance further.
197
+
198
+ # 5.1. GuessWhat
199
+
200
+ GuessWhat [13] is a classical goal-oriented visual dialog game. In each game, a random object in the scene is assigned to the answerer, but hidden from the questioner (our SEEKER). The questioner can ask a series of yes/no questions to locate the object. The list of objects is also hidden from the questioner during the question-answer rounds. Once the questioner has gathered enough information, the guesser (our EXECUTOR) can start to guess. If a guess is correct the game is successfully concluded. The extrinsic reward is "one" at the end of a dialog (i.e. series of question-answers) when the predicted object matches the true object the oracle chose.
201
+
202
+ Implementation Details In our model, the information seeker is a set of 10 recurrent neural networks (RNNs) that represent the particles from the likelihood in Eq. (6). We use LSTM [15] cells in these RNNs for which the parameters are updated according to Eq. (7) to simulate the posterior. The hidden representations of these LSTM networks (with size 1024) correspond to the state in the reward function. The image representation is obtained using VGG [39]. The concatenation of the image and history features are given to each particle in the SEEKER for question generation where each word is sampled conditioned on its previous word. We use $u(\cdot) = \exp(\cdot)$ to operate as the score function for computing gain in Eq. (2), and reward in Eq. (4).
203
+
204
+ We set $\eta = 0.1 \times \frac{\mathrm{epoch}_{\mathrm{max}} - \mathrm{epoch}}{\mathrm{epoch}_{\mathrm{max}}}$ to encourage the policies to explore more in the initial stages. In addition, $\alpha = 0.001$ . We use the median trick from [26] to compute the RBF-kernel's hyper-parameter which essentially ensures $\sum_{j} k(\pmb{\theta}_{i}, \pmb{\theta}_{j}) \approx 1$ .
205
+
206
+ Overall Results We compare two cases, labeled New Object and New Image. In the former the object sought is new, but the image has been seen previously. In the latter the image is also previously unseen. We report the prediction accuracy for the guessed objects. It is clear that the accuracies
207
+
208
+ <table><tr><td>Model</td><td>New Object</td><td>New Image</td></tr><tr><td>Supervised-S [13]</td><td>41.6</td><td>39.2</td></tr><tr><td>Supervised-G [13]</td><td>43.5</td><td>40.8</td></tr><tr><td>RL-S [40]</td><td>56.5</td><td>58.5</td></tr><tr><td>RL-G [40]</td><td>60.3</td><td>58.4</td></tr><tr><td>Tempered [47]</td><td>62.6</td><td>-</td></tr><tr><td>Tempered-Seq2Seq [47]</td><td>63.5</td><td>-</td></tr><tr><td>Tempered-MemoryNet [47]</td><td>68.3</td><td>-</td></tr><tr><td>Ours (no intrinsic reward)</td><td>63.3</td><td>-</td></tr><tr><td>Ours</td><td>64.2</td><td>62.1</td></tr><tr><td>Ours+MemoryNet (Single)</td><td>70.1</td><td>67.9</td></tr><tr><td>Ours+MemoryNet</td><td>74.4</td><td>72.1</td></tr></table>
209
+
210
+ Table 1: Accuracy in identifying the goal object in the Guess-What dataset (higher is better). The "S" indicator is for sampling for words method vs "G" which is greedy. Ours+MemoryNet is the method with modified RESPONDER that employs Memory network and Attention. Further, (Single) indicates training our method with a single particle.
211
+
212
+ are generally higher for the new objects as they are obtained from the already seen images.
213
+
214
+ The results are summarized in Table 1. As shown, using the conventional REINFORCE [40] by either sampling each word (RL-S) or greedily selecting one (RL-G) improves the performance compared to the supervised baseline significantly. Since our approach explores and exploits the space of policies for question generation better, it achieves better performance. Furthermore, this performance is improved when a better goal seeker or RESPONSE model is employed. Better RESPONSE leads to more realistic intrinsic rewards that corresponds to true gains and guide the policy distribution to a better posterior. For instance, employing a Memory network [43] within the RESPONSE improves its performance that in turn is reflected in the quality of the questions and consequently agent's ability to achieve goals more accurately. Note that even in this case the single particle experiment has improved since the rewards are more accurate to evaluate the question-answer relations.
215
+
216
+ # 5.2. CLEVR
217
+
218
+ CLEVR [21] is a synthetically generated dataset containing 700K (image, question, answer, program) tuples. Images are 3D-rendered objects of various shapes, materials, colors, and sizes. Questions are compositional in nature and range from counting questions to comparison questions and can be $40+$ words long. An answer is a word from a set of 28 choices. For each image and question, a program consists of step-by-step instructions, on how to answer the question. During the test, the programs are not given, which need to be generated conditioned on the input question. The extrinsic reward is "one" when the generated program yields the correct answer.
219
+
220
+ <table><tr><td>Model</td><td>Overall</td><td>Count</td><td>Compare Numbers</td><td>Exist</td><td>Query Attribute</td><td>Compare Attribute</td></tr><tr><td>NMN [7]</td><td>72.1</td><td>52.5</td><td>72.7</td><td>79.3</td><td>79.0</td><td>78.0</td></tr><tr><td>N2NMN [17]</td><td>88.8</td><td>68.5</td><td>84.9</td><td>85.7</td><td>90.0</td><td>88.8</td></tr><tr><td>Human [21]</td><td>92.6</td><td>86.7</td><td>86.4</td><td>96.6</td><td>95.0</td><td>96.0</td></tr><tr><td>LSTM+RN [37]</td><td>95.5</td><td>90.1</td><td>93.6</td><td>97.8</td><td>97.1</td><td>97.9</td></tr><tr><td>PG+EE (9k) [20]</td><td>88.6</td><td>79.7</td><td>79.7</td><td>89.7</td><td>92.6</td><td>96.0</td></tr><tr><td>PG+EE (18k) [20]</td><td>95.4</td><td>90.1</td><td>96.2</td><td>95.3</td><td>97.3</td><td>97.9</td></tr><tr><td>PG+EE (700k) [20]</td><td>96.9</td><td>92.7</td><td>98.6</td><td>97.1</td><td>98.1</td><td>98.9</td></tr><tr><td>FiLM [33]</td><td>97.6</td><td>94.5</td><td>93.8</td><td>99.2</td><td>99.2</td><td>99.0</td></tr><tr><td>DDRprog [42]</td><td>98.3</td><td>96.5</td><td>98.4</td><td>98.8</td><td>99.1</td><td>99.0</td></tr><tr><td>MAC [18]</td><td>98.9</td><td>97.2</td><td>99.4</td><td>99.5</td><td>99.3</td><td>99.5</td></tr><tr><td>TbD-net [31]</td><td>98.7</td><td>96.8</td><td>99.1</td><td>98.9</td><td>99.4</td><td>99.2</td></tr><tr><td>TbD-net++ [31]</td><td>99.1</td><td>97.6</td><td>99.4</td><td>99.2</td><td>99.5</td><td>99.6</td></tr><tr><td>Ours+G+entropy (9k)</td><td>91.4</td><td>86.4</td><td>93.6</td><td>89.8</td><td>93.2</td><td>96.2</td></tr><tr><td>Ours+G+entropy (18k)</td><td>95.6</td><td>93.3</td><td>96.8</td><td>95.4</td><td>97.8</td><td>98.1</td></tr><tr><td>Ours+G+entropy (700k)</td><td>97.4</td><td>96.8</td><td>98.1</td><td>98.2</td><td>96.2</td><td>98.1</td></tr><tr><td>Ours+D+entropy (9k)</td><td>94.7</td><td>92.2</td><td>95.6</td><td>93.2</td><td>95.1</td><td>97.7</td></tr><tr><td>Ours+D+entropy (18k)</td><td>96.6</td><td>94.6</td><td>96.1</td><td>95.6</td><td>98.1</td><td>98.6</td></tr><tr><td>Ours+D+entropy (700k)</td><td>98.3</td><td>98.1</td><td>99.1</td><td>97.1</td><td>98.6</td><td>98.8</td></tr><tr><td>Ours+G+exp (9k)</td><td>91.8</td><td>87.5</td><td>93.7</td><td>90.2</td><td>93.1</td><td>96.5</td></tr><tr><td>Ours+G+exp (18k)</td><td>96.3</td><td>93.3</td><td>96.8</td><td>95.4</td><td>97.8</td><td>98.1</td></tr><tr><td>Ours+G+exp (700k)</td><td>98.0</td><td>96.2</td><td>98.6</td><td>98.0</td><td>98.0</td><td>99.0</td></tr><tr><td>Ours+D+exp (9k)</td><td>95.2</td><td>91.5</td><td>96.7</td><td>93.8</td><td>95.7</td><td>98.7</td></tr><tr><td>Ours+D+exp (18k)</td><td>97.1</td><td>94.5</td><td>98.2</td><td>96.1</td><td>98.3</td><td>98.6</td></tr><tr><td>Ours+D+exp (700k)</td><td>98.9</td><td>97.8</td><td>99.2</td><td>98.9</td><td>99.5</td><td>99.3</td></tr><tr><td>Ours+D+exp++ (700k)</td><td>99.2</td><td>97.8</td><td>99.5</td><td>99.4</td><td>99.6</td><td>99.6</td></tr></table>
221
+
222
+ Table 2: Performance comparison of state-of-the-art models on the CLEVR dataset. "Ours+G+entropy" is our seeker when used with the generic architecture and entropic gain; "Ours+D+entropy" is the same except for using designed architecture. Similarly, "Ours+G+exp" is generic architecture with $u_{\mathrm{exp}}$ ; and, "Ours+D+exp" is its designed counterpart. We achieve state of the art performance, especially using smaller ground-truth programs. The '++' indicator shows a model was trained using higher-resolution $28 \times 28$ feature maps rather than $14 \times 14$ .
223
+
224
+ Implementation Details We follow the experimental setup of [20, 21] in which uses a ResNet [14] to encode the given images and a standard LSTM [15] to generate programs in the context encoder. We use 10 particles in Algorithm 1 to model the policy distribution using samples from the pre-trained model with added noise so that they correspond to different initial policies. For more efficient implementation, we use two sets of shared parameters for the encoder in the underlying Seq2Seq model and use independent parameters for the LSTM decoder. This parameter sharing also ensures there are common latent representations that particles learn. We use our information SEEKER model in Section 4 to generate samples or programs for each question and consider the consequence of that program using the RESPONSE internally to choose one. Once a program is generated, it is then executed by the goal EXECUTOR to obtain the feedback and compute the corresponding rewards. The computed reward is then used to update the policy distributions as discussed. We use the Adam optimization method with learning rate set to $10^{-5}$ to update
225
+
226
+ ![](images/f9f9aadc5c5415f62414ce640d7481cc6b6c36142f299176e0afcf865fefee9e.jpg)
227
+ Figure 4: An example of a question and the programs generated using samples from the posterior in CLEVR. Samples from the policy distribution take the input image and the question and generate its corresponding programs. As observed, these two samples produce different program sequences which enable to explore multiple distributions over the goal (final answer) shown on top in the cloud. Expected score of each question $\mathcal{G}_{\omega}(\mathbf{s}^{(t)},q^{(t)})$ gives us an indication of which one is better to ask.
228
+
229
+ both the SEEKER and the RESPONSES parameters. The testing procedure thus takes an image and question pair, produces a program, then the goal executor produces an answer. The goal EXECUTOR then evaluates the quality of the generated program. We set $\alpha = 0.01$ and $\eta$ similar to the GuessWhat experiment.
230
+
231
+ Overall Results For the RESPONDER and the EXECUTOR, we consider two alternative baselines: (G)eneric similar to [20] where each module follows a generic architecture; and, (D)signed similar to [31] where each module is specifically designed based on the desired operation.
232
+
233
+ ![](images/18c4c1bf7a23e4340c2faf2d8fab2b3c4c00c6e02fce0287f5090435413827ee.jpg)
234
+ Figure 5: Average reward for the agent at each iteration; and, average distance between particles in the posterior for CLEVR.
235
+
236
+ ![](images/9356201d0dbd8eca32c3e019f75756aec8b1050a1c92aea8f2e98e03fe386bde.jpg)
237
+
238
+ We report the accuracy of the goal executor. Since the later case provides a better representation on each module, we expect it to perform better. Further, we use two functions $u_{entropy}(\cdot) = \log (\cdot)$ (corresponding to the information-theoretic notion of gain in the expectation) and $u_{\exp}(\cdot) = \exp (\cdot)$ to operate on the output of the RESPONDER's score to compute the gain and ultimately the new reward in Eq. (2) and (4). The results in Tab. 2 show that our approach outperforms the baselines almost to the maximum extent possible. In particular, our approach almost achieves the same performance as that of [20] with half the programs used for training with the same neural architecture. Moreover, the choice of $u$ affects the policies found, for instance using $u_{entropy}$ generally leads to outperforming in the "count" function. Thus, since $u_{\mathrm{exp}}$ has a smaller range and is smoother, it provides a more uniform penalty for mistakes in all modules during training leading to generally better performance. As shown in Figure 4, each sample from the policy generates
239
+
240
+ a different program. In addition, we are able to utilize the attention mechanism in the model to reason about where in the image the information seeker focuses.
241
+
242
+ Fig. 5 plots the average reward at each iteration, and the average distance between the particles in the policies. If the problem was indeed unimodal (as conventional methods assume), all the particles would collapse to a single point indicated by a zero average distance. However, as is observed, while the distance between the particles decreases in early stages, they soon increase indicating convergence to independent modes. Our context encoder, unlike [23], is a pixel level model that does not extract objects explicitly from the given image. To be fair, we only consider methods that are directly comparable.
243
+
244
+ # 6. Conclusion
245
+
246
+ The ability to identify the information needed to support a conclusion, and the actions required to obtain it, is a critical capability if agents are to move beyond carrying out low-level prescribed tasks towards achieving flexible high semantic level goals. The method we describe is capable of reasoning about the information it holds, and the information it will need to achieve its goal, in order to identify the action that will best enable it to fill the gap between the two. Our approach thus actively seeks the information it needs to achieve its goal on the basis of a model of the uncertainty in its own understanding.
247
+
248
+ If we are to enable agents that actively work towards a high-level goal the capability our approach demonstrates will be critical. In particular, agents need to be able to consider alternative policies for achieving a goal and their corresponding uncertainty, evaluate the outcome of executing those policies and the information it gains.
249
+
250
+ Acknowledgment: This material is based on research sponsored by Air Force Research Laboratory and DARPA under agreement number FA8750-19-2-0501. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon.
251
+
252
+ # References
253
+
254
+ [1] Ehsan Abbasnejad, Anthony R. Dick, and Anton van den Hengel. Infinite variational autoencoder for semi-supervised learning. In CVPR, pages 781-790. IEEE Computer Society, 2017.
255
+ [2] Ehsan Abbasnejad, Justin Domke, and Scott Sanner. Loss-calibrated monte carlo action selection. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015.
256
+ [3] Ehsan Abbasnejad, Qinfeng Shi, Anton van den Hengel, and Lingqiao Liu. A generative adversarial density estimator. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
257
+ [4] Ehsan Abbasnejad, Damien Teney, Amin Parvaneh, Qinfeng Shi, Anton van den Hengel, and Lingqiao Liu. Counterfactual vision and language learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
258
+ [5] Ehsan Abbasnejad, Qi Wu, Qinfeng Shi, and Anton van den Hengel. What's to know? uncertainty as a guide to asking goal-oriented questions. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
259
+ [6] 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.
260
+ [7] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. CVPR, pages 39-48, 2016.
261
+ [8] Nabiha Asghar, Pascal Poupart, Jiang Xin, and Hang Li. Online sequence-to-sequence reinforcement learning for open-domain conversational agents. arXiv preprint arXiv:1612.03929, 2016.
262
+ [9] Valérian Chambon, Nura Sidarus, and Patrick Haggard. From action intentions to action effects: how does the sense of agency come about? Frontiers in Human Neuroscience, 8:320, 2014.
263
+ [10] Anton van den Hengel Damien Teney, Ehsan Abbasnejad. Unshuffling data for improved generalization. arXiv preprint arXiv:2002.11894, 2020.
264
+ [11] A. Das, S. Kottur, J. M. F. Moura, S. Lee, and D. Batra. Learning cooperative visual dialog agents with deep reinforcement learning. In ICCV, pages 2970-2979, 2017.
265
+ [12] Abhishek Das, Satwik Kottur, Khushi Gupta, Avi Singh, Deshraj Yadav, José MF Moura, Devi Parikh, and Dhruv Batra. Visual dialog. In ICCV, 2017.
266
+ [13] Harm de Vries, Florian Strub, Sarath Chandar, Olivier Pietquin, Hugo Larochelle, and Aaron C. Courville. Guess-what?! visual object discovery through multi-modal dialogue. In CVPR, 2017.
267
+ [14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015.
268
+
269
+ [15] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. 9:1735-80, 12 1997.
270
+ [16] Rein Houthooft, Xi Chen, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems 29, pages 1109-1117. Curran Associates, Inc., 2016.
271
+ [17] Ronghang Hu, Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Kate Saenko. Learning to reason: End-to-end module networks for visual question answering. arXiv preprint arXiv:1704.05526, 2017.
272
+ [18] Drew Arad Hudson and Christopher D. Manning. Compositional attention networks for machine reasoning. In ICLR, 2018.
273
+ [19] Laurent Itti and Pierre F. Baldi. Bayesian surprise attracts human attention. In Y. Weiss, B. Schölkopf, and J. C. Platt, editors, NIPS, pages 547-554. 2006.
274
+ [20] J. Johnson, B. Hariharan, L. v. Maaten, J. Hoffman, L. Fei-Fei, C. L. Zitnick, and R. Girshick. Inferring and executing programs for visual reasoning. In ICCV, volume 00, pages 3008–3017, Oct. 2018.
275
+ [21] 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 CVPR, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, 2017.
276
+ [22] Leslie Pack Kaelbling, Michael L Littman, and Andrew W Moore. Reinforcement learning: A survey. J. Arti. Intell. Research, 4:237-285, 1996.
277
+ [23] Sang-Woo Lee, Yu-Jung Heo, and Byoung-Tak Zhang. Answerer in questioner's mind for goal-oriented visual dialogue. CoRR, abs/1802.03881, 2018.
278
+ [24] Sang-Woo Lee, Yu-Jung Heo, and Byoung-Tak Zhang. Answerer in questioner's mind for goal-oriented visual dialogue. arXiv preprint arXiv:1802.03881, 2018.
279
+ [25] Qiang Liu. Stein variational gradient descent as gradient flow. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, NIPS, pages 3115-3123. Curran Associates, Inc., 2017.
280
+ [26] Qiang Liu and Dilin Wang. Stein variational gradient descent: A general purpose bayesian inference algorithm. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems 29, pages 2378-2386. Curran Associates, Inc., 2016.
281
+ [27] Siqi Liu, Zhenhai Zhu, Ning Ye, Sergio Guadarrama, and Kevin Murphy. Optimization of image description metrics using policy gradient methods. arXiv preprint arXiv:1612.00370, 2016.
282
+ [28] Yang Liu, Prajit Ramachandran, Qiang Liu, and Jian Peng. Stein variational policy gradient. arXiv preprint arXiv:1704.02399, 2017.
283
+
284
+ [29] Jiasen Lu, Anitha Kannan, Jianwei Yang, Devi Parikh, and Dhruv Batra. Best of both worlds: Transferring knowledge from discriminative learning to a generative visual dialog model. arXiv preprint arXiv:1706.01554, 2017.
285
+ [30] Anthony Manchin, Ehsan Abbasnejad, and Anton van den Hengel. Reinforcement learning with attention that works: A self-supervised approach. In Tom Gedeon, Kok Wai Wong, and Minho Lee, editors, Neural Information Processing, pages 223-230, Cham, 2019. Springer International Publishing.
286
+ [31] D. Mascharka, P. Tran, R. Soklaski, and A. Majumdar. Transparency by Design: Closing the Gap Between Performance and Interpretability in Visual Reasoning. ArXiv e-prints, March 2018.
287
+ [32] Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In ICML, 2017.
288
+ [33] Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. Film: Visual reasoning with a general conditioning layer. In AAAI, 2018.
289
+ [34] Olivier Pietquin, Matthieu Geist, Senthilkumar Chandramohan, and Hervé Frezza-Buet. Sample-efficient batch reinforcement learning for dialogue management optimization. TSLP, 7(3):7, 2011.
290
+ [35] Zhou Ren, Xiaoyu Wang, Ning Zhang, Xutao Lv, and Li-Jia Li. Deep reinforcement learning-based image captioning with embedding reward. Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2017.
291
+ [36] Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jarret Ross, and Vaibhava Goel. Self-critical sequence training for image captioning. arXiv preprint arXiv:1612.00563, 2016.
292
+ [37] Adam Santoro, David Raposo, David G. T. Barrett, Mateusz Malinowski, Razvan Pascanu, Peter W. Battaglia, and Timothy P. Lillicrap. A simple neural network module for relational reasoning. In NIPS, 2017.
293
+ [38] John Schulman, Sergey Levine, Philipp Moritz, Michael Jordan, and Pieter Abbeel. Trust region policy optimization. ICML'15, pages 1889-1897, 2015.
294
+ [39] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
295
+ [40] Florian Strub, Harm De Vries, Jeremie Mary, Bilal Piot, Aaron Courville, and Olivier Pietquin. End-to-end optimization of goal-driven and visually grounded dialogue systems. arXiv preprint arXiv:1703.05423, 2017.
296
+ [41] Pei-Hao Su, Milica Gasic, Nikola Mrksic, Lina Rojas-Barahona, Stefan Ultes, David Vandyke, Tsung-Hsien Wen, and Steve Young. Continuously learning neural dialogue management. arXiv preprint arXiv:1606.02689, 2016.
297
+ [42] Joseph Suarez, Justin Johnson, and Fei-Fei Li. DDRprog: A CLEVR differentiable dynamic reasoning programmer, 2018.
298
+
299
+ [43] Sainbayar Sukhbaatar, arthur szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett, editors, NIPS. 2015.
300
+ [44] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998.
301
+ [45] Richard S. Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. NIPS'99, Cambridge, MA, USA, 1999. MIT Press.
302
+ [46] Ronald Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. ML, 8, May 1992.
303
+ [47] Rui Zhao and Volker Tresp. Improving goal-oriented visual dialog agents via advanced recurrent nets with tempered policy gradient. In *IJCAI*, 2018.
goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db537f9eb936497be489ba68ff0d54758928267982124f7ba3c2d07cc0148fd9
3
+ size 361802
goldseekerinformationgainfrompolicydistributionsforgoalorientedvisionandlangaugereasoning/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c29c1817c1447cab8479ebc10ee598f0c231359a39188f18e427f63b7a61049
3
+ size 396910
googlelandmarksdatasetv2alargescalebenchmarkforinstancelevelrecognitionandretrieval/830eb049-2d51-45b8-a3ed-f877bb803562_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad9c891511463da4381571309a7762a892d25f3312b010a5bb429ed353e5df15
3
+ size 79905
googlelandmarksdatasetv2alargescalebenchmarkforinstancelevelrecognitionandretrieval/830eb049-2d51-45b8-a3ed-f877bb803562_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3a42870045f3ddd3ee047672da68757124fb5918979df6cca19c8fa89264757
3
+ size 101187