SlowGuess commited on
Commit
7bb52ac
·
verified ·
1 Parent(s): d484563

Add Batch e04a9680-73e4-48ca-ba09-e4bf09a74095

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. trackingbyinstancedetectionametalearningapproach/36558804-a00b-482f-8981-947eb84624b8_content_list.json +3 -0
  2. trackingbyinstancedetectionametalearningapproach/36558804-a00b-482f-8981-947eb84624b8_model.json +3 -0
  3. trackingbyinstancedetectionametalearningapproach/36558804-a00b-482f-8981-947eb84624b8_origin.pdf +3 -0
  4. trackingbyinstancedetectionametalearningapproach/full.md +311 -0
  5. trackingbyinstancedetectionametalearningapproach/images.zip +3 -0
  6. trackingbyinstancedetectionametalearningapproach/layout.json +3 -0
  7. trainingasteerablecnnforguidewiredetection/af618680-e671-4f4b-9d2b-dadf3ca3c4ab_content_list.json +3 -0
  8. trainingasteerablecnnforguidewiredetection/af618680-e671-4f4b-9d2b-dadf3ca3c4ab_model.json +3 -0
  9. trainingasteerablecnnforguidewiredetection/af618680-e671-4f4b-9d2b-dadf3ca3c4ab_origin.pdf +3 -0
  10. trainingasteerablecnnforguidewiredetection/full.md +347 -0
  11. trainingasteerablecnnforguidewiredetection/images.zip +3 -0
  12. trainingasteerablecnnforguidewiredetection/layout.json +3 -0
  13. trainingermanytestintheusamaking3dobjectdetectorsgeneralize/01178305-f7b9-4098-b019-8d478d55c8a5_content_list.json +3 -0
  14. trainingermanytestintheusamaking3dobjectdetectorsgeneralize/01178305-f7b9-4098-b019-8d478d55c8a5_model.json +3 -0
  15. trainingermanytestintheusamaking3dobjectdetectorsgeneralize/01178305-f7b9-4098-b019-8d478d55c8a5_origin.pdf +3 -0
  16. trainingermanytestintheusamaking3dobjectdetectorsgeneralize/full.md +331 -0
  17. trainingermanytestintheusamaking3dobjectdetectorsgeneralize/images.zip +3 -0
  18. trainingermanytestintheusamaking3dobjectdetectorsgeneralize/layout.json +3 -0
  19. trainingnoiserobustdeepneuralnetworksviametalearning/21dedf89-2873-455f-8879-cbd66908bda2_content_list.json +3 -0
  20. trainingnoiserobustdeepneuralnetworksviametalearning/21dedf89-2873-455f-8879-cbd66908bda2_model.json +3 -0
  21. trainingnoiserobustdeepneuralnetworksviametalearning/21dedf89-2873-455f-8879-cbd66908bda2_origin.pdf +3 -0
  22. trainingnoiserobustdeepneuralnetworksviametalearning/full.md +299 -0
  23. trainingnoiserobustdeepneuralnetworksviametalearning/images.zip +3 -0
  24. trainingnoiserobustdeepneuralnetworksviametalearning/layout.json +3 -0
  25. trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/d30d93b9-95d1-4cc4-ba15-114829164f29_content_list.json +3 -0
  26. trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/d30d93b9-95d1-4cc4-ba15-114829164f29_model.json +3 -0
  27. trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/d30d93b9-95d1-4cc4-ba15-114829164f29_origin.pdf +3 -0
  28. trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/full.md +304 -0
  29. trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/images.zip +3 -0
  30. trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/layout.json +3 -0
  31. transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/7a38f569-03ba-4ee1-89ea-d306b726afe0_content_list.json +3 -0
  32. transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/7a38f569-03ba-4ee1-89ea-d306b726afe0_model.json +3 -0
  33. transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/7a38f569-03ba-4ee1-89ea-d306b726afe0_origin.pdf +3 -0
  34. transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/full.md +339 -0
  35. transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/images.zip +3 -0
  36. transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/layout.json +3 -0
  37. transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/895e41ae-8939-4e80-985b-e89d876db16f_content_list.json +3 -0
  38. transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/895e41ae-8939-4e80-985b-e89d876db16f_model.json +3 -0
  39. transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/895e41ae-8939-4e80-985b-e89d876db16f_origin.pdf +3 -0
  40. transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/full.md +351 -0
  41. transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/images.zip +3 -0
  42. transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/layout.json +3 -0
  43. transferringandregularizingpredictionforsemanticsegmentation/e373af93-119e-45bf-8ebd-6369043d9ad9_content_list.json +3 -0
  44. transferringandregularizingpredictionforsemanticsegmentation/e373af93-119e-45bf-8ebd-6369043d9ad9_model.json +3 -0
  45. transferringandregularizingpredictionforsemanticsegmentation/e373af93-119e-45bf-8ebd-6369043d9ad9_origin.pdf +3 -0
  46. transferringandregularizingpredictionforsemanticsegmentation/full.md +275 -0
  47. transferringandregularizingpredictionforsemanticsegmentation/images.zip +3 -0
  48. transferringandregularizingpredictionforsemanticsegmentation/layout.json +3 -0
  49. transferringcrossdomainknowledgeforvideosignlanguagerecognition/783ce4c9-6ca2-46a8-b07e-9e9b3e4796a3_content_list.json +3 -0
  50. transferringcrossdomainknowledgeforvideosignlanguagerecognition/783ce4c9-6ca2-46a8-b07e-9e9b3e4796a3_model.json +3 -0
trackingbyinstancedetectionametalearningapproach/36558804-a00b-482f-8981-947eb84624b8_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c220aa34046a60a50e44dbeb2c1eadf591470a1c77613596f3221827941f3e74
3
+ size 73108
trackingbyinstancedetectionametalearningapproach/36558804-a00b-482f-8981-947eb84624b8_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d628fd2a60d7ace1122ebf89597294f1c54078760ab2eead206c86da55c0d03b
3
+ size 91981
trackingbyinstancedetectionametalearningapproach/36558804-a00b-482f-8981-947eb84624b8_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98bc8c0f1e797e836666ce99f4aca9d3fb439afef7dc98c038cb70a9ed49a27f
3
+ size 517099
trackingbyinstancedetectionametalearningapproach/full.md ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Tracking by Instance Detection: A Meta-Learning Approach
2
+
3
+ Guangting Wang<sup>1</sup> Chong Luo<sup>2</sup> Xiaoyan Sun<sup>2</sup> Zhiwei Xiong<sup>1</sup> Wenjun Zeng<sup>2</sup>
4
+ <sup>1</sup> University of Science and Technology of China<sup>1</sup> Microsoft Research Asia<sup>2</sup>
5
+
6
+ wgting96@gmail.com {cluo, xysun, wezeng}@microsoft.com zwxiong@ustc.edu.cn
7
+
8
+ # Abstract
9
+
10
+ We consider the tracking problem as a special type of object detection problem, which we call instance detection. With proper initialization, a detector can be quickly converted into a tracker by learning the new instance from a single image. We find that model-agnostic meta-learning (MAML) offers a strategy to initialize the detector that satisfies our needs. We propose a principled three-step approach to build a high-performance tracker. First, pick any modern object detector trained with gradient descent. Second, conduct offline training (or initialization) with MAML. Third, perform domain adaptation using the initial frame. We follow this procedure to build two trackers, named Retina-MAML and FCOS-MAML, based on two modern detectors RetinaNet and FCOS. Evaluations on four benchmarks show that both trackers are competitive against state-of-the-art trackers. On OTB-100, Retina-MAML achieves the highest ever AUC of 0.712. On TrackingNet, FCOS-MAML ranks the first on the leader board with an AUC of 0.757 and the normalized precision of 0.822. Both trackers run in real-time at 40 FPS.
11
+
12
+ # 1. Introduction
13
+
14
+ Given a bounding box defining the target object in the initial frame, the goal of visual object tracking is to automatically determine the location and extent of the object in every frame that follows. The tracking problem is closely related to the detection problem, and it even can be treated as a special type of object detection, which we call instance detection. The major difference is that object detection locates objects of some predefined classes and its output does not differentiate between intra-class instances. But object tracking only looks for a particular instance, which may belong to any known or unknown object class, that is specified in the initial frame.
15
+
16
+ Given the similarity between the two tasks, some object detection techniques are used extensively in object tracking. For example, the region proposal network (RPN), which
17
+
18
+ ![](images/f9d235026d753e04907fac1edfd2166df0bd80e470e27f83d99130634cb83bc4.jpg)
19
+ Figure 1: MAML provides an effective way to initialize an instance detector. With a single training image, the detector can be quickly adapted to the new domain (instance). It is capable of locating target object in subsequent frames even when the object has significant appearance changes.
20
+
21
+ was proposed in Faster R-CNN detector [30], has been adopted in SiamRPN tracker and its variants [21, 20, 43]. The introduction of multi-aspect-ratio anchors solves the box estimation problem that has been plaguing previous trackers. It has greatly improved the performance of siamese-network-based trackers. More recently, the IoU network [14], which is again an innovation in object detection, is applied to object tracking by ATOM and DiMP [6, 3] and demonstrates powerful capabilities.
22
+
23
+ In addition to these approaches that borrow advanced components from object detection to assemble a tracker, we believe that another option is to directly convert a modern object detector into a high-performance tracker. This will allow the tracker to retain not only the advanced components but also the overall design of the base detector. The main challenge is how to obtain a good initialization of the detector so that once a new instance is given, it can efficiently infuse the instance information into the network without overfitting. Fig.1 illustrates the idea. The detector may behave like a general object detector before adaptation. But after domain adaptation with a single training image, it is able to "memorize" the target and correctly locate the target in subsequent frames. A recent work by Huang et al.
24
+
25
+ [13] shares a similar vision with us but they still treat tracking as a two-step task, namely class-level object detection and instance-level classification. In the first sub-task, a template image is involved and a separate branch is employed to process the template.
26
+
27
+ In this work, we are looking for a neat solution to realize our idea. The constructed tracker will just look like a normal detector, without additional branches or any other modifications to the network architecture. We find that model-agnostic meta learning (MAML) [10] offers a learning strategy with which a detector can be initialized as we desire. Based on MAML, we propose a three-step procedure to convert any modern detector into a high-performance tracker. First, pick any detector which is trained with gradient descent. Second, use MAML to train the detector on a large number of tracking sequences. Third, when the initial frame of a test sequence is given, fine-tune the detector with a few steps of gradient descent. A decent tracker can be obtained after this domain adaptation step. During tracking, when new appearances of the target are collected, the detector can be trained with more samples to achieve an even better adaptation capability.
28
+
29
+ Following the proposed procedure, we build two instance detectors, named Retina-MAML and FCOS-MAML, based on advanced object detectors RetinaNet [24] and FCOS [34]. During offline training, we further introduce a kernel-wise learnable learning rate in MAML to improve the expressive ability of gradient based updating. Evaluations of the trackers are carried out on four major benchmarks, including OTB, VOT, TrackingNet and LaSOT. System comparisons show that both trackers achieve competitive performance against state-of-the-art (SOTA) trackers. On OTB-100, Retina-MAML and FCOS-MAML appear to be the best-performing trackers, with AUCs of 0.712 and 0.704, respectively. Retina-MAML achieves an EAO of 0.452 on VOT-2018. FCOS-MAML achieves an AUC of 0.757 on TrackingNet, ranking number one on the leader board. Additionally, both trackers run in real-time at 40 FPS.
30
+
31
+ # 2. Related Work
32
+
33
+ # 2.1. CNN-based visual object tracking
34
+
35
+ With the great success of deep learning and convolutional neural networks (CNN) in various computer vision tasks, there emerge an increasing number of CNN-based trackers. We divide CNN-based trackers into two categories, depending on whether an explicit template is used.
36
+
37
+ Most siamese-network-based trackers [2, 21, 20, 36] fall into the first category, which we call template-based methods. The target appearance information is stored in an explicit template. In SiamFC [2], features are extracted from the template and the search region using the same
38
+
39
+ offline-trained CNN. A cross-correlation operation is then adopted to compute the matching scores. A main drawback of SiamFC is that it only evaluates the candidates with the same shape as the initial box. SiamRPN [21] solves this problem by borrowing the RPN idea from object detectors. Later, SPM-Tracker [36] borrows the architecture from two-stage detectors and achieves an improved performance. Currently, the best-performing trackers in this category are ATOM [6] and DiMP [3], which leverage the most advanced IoUNet [14] for precise object localization.
40
+
41
+ Template-based methods usually run very fast, because the CNN used to extract features does not need to be online updated. However, as the tracking proceeds, new target appearances should be integrated into the template for a better performance. But most methods lack an effective model for template online updating. This limitation has created a performance ceiling for template-based trackers.
42
+
43
+ The other category is template-free methods [27, 28, 15], which intend to store the target appearance information within the neural network, in the form of fine-tuned parameters. The challenge in designing template-free trackers is how to quickly infuse the instance information to the network without overfitting. MDNet [28] divides the CNN into shared layers and domain-specific layers. The shared layers provide a reasonable initialization and the domain-specific layers are online trained with the new instance. Due to the limitation of the conventional training strategy, MDNet takes many iterations to converge and fewer iterations cause serious performance degradation. As a result, MDNet is too slow to be used in real-time scenarios.
44
+
45
+ We find that template-free trackers are neat solutions. They do not need to maintain an external template and the network architecture looks just like a detector. Domain adaptation and online update can be achieved by a unified online training procedure. However, it is still quite challenging to achieve a good performance-speed tradeoff for this type of trackers.
46
+
47
+ # 2.2. Meta learning and its application to tracking
48
+
49
+ The goal of meta-learning is to train a model on a variety of learning tasks, such that it can solve new learning tasks using only a small number of training samples [10]. When we view object tracking as an instance detection task, the tracker is trained on a variety of instance detection tasks so that it can quickly learn how to detect a new instance using only one or a few training samples from the initial or previous frames. We find that the tracking task is a perfect example to apply meta-learning.
50
+
51
+ Model-agnostic meta-learning (MAML) [10] is an important algorithm for meta learning. It helps the network to learn a set of good initialization parameters that are suitable for fine-tuning. During training, the parameters of the model are explicitly trained such that a small number of
52
+
53
+ ![](images/8e3b886082b5905ae4963fe1af288f6b72375edf19da1e6e20c261ce75c38b86.jpg)
54
+ Figure 2: Illustration of our training pipeline. The first row is the inner training loop. A few steps of SGD optimization is performed on the support images. The updated parameters after each step are used for calculating the meta-gradient based on testing images. Best viewed in colors.
55
+
56
+ gradient steps with a small amount of training data from a new task will produce good generalization performance on that task. The most striking merit of MAML is that it is compatible with any model trained with gradient descent and applicable to a variety of different learning problems. Because of this, MAML is a perfect candidate to realize our idea, which is to convert any advanced object detectors (trained with gradient descent) into a tracker. Later, MAML++ [1] introduces a set of tricks to stabilize the training of MAML. MetaSGD [23] proposes to train learnable learning rates for every parameter. In the area of object tracking, Meta-Tracker [29] is the first to use MAML for the domain adaptation step of MDNet. MetaRTT [16] further applies MAML for the online updating step. Basically, their main purpose is to accelerate the online training of existing trackers, including MDNet [28], CREST [31] and RT-MDNet [15]. We argue that, since meta learning provides a mechanism to quickly adapt a deep network to model a particular object and avoid overfitting, why not directly convert a modern object detector into a tracker, instead of making a slow tracker faster? Huang et al. [13] have the same idea. They propose to learn a meta layer in detection head by MAML. However, they still introduce a template in the first part of the tracker called class-level object detection. The complex design results in a slow speed.
57
+
58
+ # 3. Learning an Instance Detector with MAML
59
+
60
+ The key to convert a detector into an instance detector (a tracker) is to provide a good initialization of the detec
61
+
62
+ tor, so that it can quickly adapt to a new instance when only the initial frame is available. In this section, we present the approach to learn an instance detector with MAML. The complete steps to construct a tracker will be detailed in the next section. The training data in this learning step are videos with ground-truth labeling of the target object on each frame.
63
+
64
+ Formally, given a video $V_{i}$ , we collect a set of training samples, denoted by $\mathcal{D}_i^s$ . It is also called the support set in meta learning. A detector model is defined as $h(x; \theta_0)$ where $x$ is the input image and $\theta_0$ is the parameters of the detector. We update the detector on the support set by a $k$ -step gradient descent (GD) algorithm:
65
+
66
+ $$
67
+ \begin{array}{l} \boldsymbol {\theta} _ {k} \equiv \mathrm {G D} _ {k} (\boldsymbol {\theta} _ {0}, \mathcal {D} _ {i} ^ {s}) \quad , \text {a n d} \\ \boldsymbol {\theta} _ {k} = \boldsymbol {\theta} _ {k - 1} - \alpha \frac {1}{| \mathcal {D} _ {i} ^ {s} |} \sum_ {(x, y) \in \mathcal {D} _ {i} ^ {s}} \nabla_ {\boldsymbol {\theta} _ {k - 1}} \mathcal {L} (h (x; \boldsymbol {\theta} _ {k - 1}), y), \tag {1} \\ \end{array}
68
+ $$
69
+
70
+ where $\mathcal{L}$ is the loss function and $(x,y)$ is a data-label pair in the support set. The procedure in Eqn. (1) is called inner-level optimization. To evaluate the generalization ability of the trained detector, we collect another set of samples $\mathcal{D}_i^t$ from the same video $V_{i}$ and they are called the target set. We calculate the loss on the target set by applying the trained detector, which can be written as:
71
+
72
+ $$
73
+ F \left(\boldsymbol {\theta} _ {0}, \mathcal {D} _ {i}\right) = \frac {1}{\left| \mathcal {D} _ {i} ^ {t} \right|} \sum_ {(x, y) \in \mathcal {D} _ {i} ^ {t}} \mathcal {L} \left(h \left(x; \boldsymbol {\theta} _ {k}\right), y\right) \tag {2}
74
+ $$
75
+
76
+ where $\mathcal{D}_i = \{\mathcal{D}_i^s,\mathcal{D}_i^t\}$ denotes the combined support set and target set. The overall training objective is to find a good initialization status $\theta_0$ for any tracking video. It can be formulated as:
77
+
78
+ $$
79
+ \boldsymbol {\theta} ^ {*} = \arg \min _ {\boldsymbol {\theta} _ {0}} \frac {1}{N} \sum_ {i} ^ {N} F \left(\boldsymbol {\theta} _ {0}, \mathcal {D} _ {i}\right), \tag {3}
80
+ $$
81
+
82
+ where $N$ is the total number of videos. The procedure in Eqn. (3) is called the outer-level optimization, which can be solved by gradient-based methods like Adam [18]. The outer-level gradients are back-propagated through the inner-level computational graph. The only assumption about the detector $h$ is that it is differentiable. Therefore, this approach is readily applicable to most deep learning based detectors.
83
+
84
+ Fig. 2 illustrates this training pipeline. In the training phase, we only sample a pair of images from the dataset. Following the practice in DaSiamRPN [43], these two images may come from either the same sequence or different sequences. The first image will be zoomed in/out by a constant factor (1.08 in our experiments) so that a support set with three images is constructed for the inner-level optimization. The second image is viewed as the target set with single image for calculating the outer-level loss. We use a 4-step GD for the inner-level optimization and Adam solver [18] for the outer-level optimization. To stabilize the training and strengthen the power of detector, we make the following modifications to the original MAML algorithm.
85
+
86
+ Multi-step loss optimization. MAML++ [1] proposes to take the parameters after every step of inner-level GD to minimize the loss on target set, instead of only using the parameters after final step. Mathematically, Eqn. (2) can be re-written into:
87
+
88
+ $$
89
+ F \left(\boldsymbol {\theta} _ {0}, \mathcal {D} _ {i}\right) = \frac {1}{\left| \mathcal {D} _ {i} ^ {t} \right|} \sum_ {(x, y) \in \mathcal {D} _ {i} ^ {t}} \sum_ {k = 0} ^ {K} \gamma_ {k} \mathcal {L} \left(h (x; \boldsymbol {\theta} _ {k}), y\right), \tag {4}
90
+ $$
91
+
92
+ where $K$ is the number of inner-level steps and $\gamma_{k}$ is the loss weight for each step. Note that our formulation is slightly different from that in MAML++. The initialization parameter $\theta_0$ (before updating) also contributes to the outer-level loss. In our experiments, we find this trick is crucial for stabilizing the gradients.
93
+
94
+ Kernel-wise learnable learning rate. In standard MAML, the learning rate $\alpha$ in the inner-level optimization is a predefined constant. MetaSGD [23] proposes to specify a learnable learning rate for each parameter in the model. Therefore, the GD algorithm in Eqn. (1) can be re-written into:
95
+
96
+ $$
97
+ \boldsymbol {\theta} _ {k + 1} = \boldsymbol {\theta} _ {k} - \boldsymbol {\alpha} \odot \frac {1}{| \mathcal {D} _ {i} ^ {s} |} \sum_ {(x, y) \in \mathcal {D} _ {i} ^ {s}} \nabla_ {\boldsymbol {\theta} _ {k}} \mathcal {L} (h (x; \boldsymbol {\theta} _ {k}), y), \tag {5}
98
+ $$
99
+
100
+ where $\alpha$ is a tensor which has the same size as $\theta_{k}$ . Notation $\odot$ denotes the element-wise product. However, setting up a learning rate for every parameter will double the model size. In contrast, we arrange the learnable learning rates in a kernel-wise manner. Specifically, for a convolution layer with $C_{out}$ output channels, we define a learning rate for each convolutional kernel and this only introduces an additional number of $C_{out}$ learnable parameters, which are negligible in the model.
101
+
102
+ # 4. Retina-MAML and FCOS-MAML
103
+
104
+ This section provides the details of the proposed three-step procedure to build a tracker. Specifically, we will present detector choices, offline training details, and the online tracking process for two trackers named Retina-MAML and FCOS-MAML.
105
+
106
+ # 4.1.Detectors
107
+
108
+ As MAML is a model-agnostic learning approach, we are free to choose any modern detector trained with gradient descent as the base to build a tracker. As the first attempt in this direction, we choose two single-stage detectors which run faster and are fairly easy to manipulate than their two-stage counterparts. However, we do not see any obstacles in using two-stage detectors in our approach.
109
+
110
+ Single-stage detectors are usually composed of a backbone network and two heads, namely classification head and regression head. The backbone network generates feature maps for the input image. Based on the feature maps, the objects are scored and localized.
111
+
112
+ RetinaNet [24] is a representative single-stage object detector. Each pixel in the feature maps is associated with several predefined prior boxes, or anchors. The classification head is trained to classify whether each anchor has a sufficient overlap with an object. The regression head is trained to predict the relative differences between each anchor and the corresponding ground-truth box. Similar design can be found in many existing detectors, which are grouped into a family of anchor-based detectors.
113
+
114
+ Recently, the concept of anchor-free detection has received a lot of attention. As the name suggests, no anchor is defined. FCOS [34] is a representative detector in this category. After the backbone network generates the feature maps, the classification head is trained to classify whether each pixel in the feature maps is within the central area of an object. Meanwhile, the regression head directly estimates the four offsets from the pixel to the object boundaries. Fig. 3 depicts the core design difference between anchor-free and anchor-based detectors.
115
+
116
+ Next, we make some simplifications to the chosen detectors RetinaNet and FCOS. These simplifications improve the tracker's speed but will not affect the tracking performance. We believe so because visual object tracking is per
117
+
118
+ ![](images/ca97186e661b0606a09e840c63febf24810b6d6f79aa0be0dfeeb0f56d7a1d5a.jpg)
119
+ (a) Anchor-based detector
120
+
121
+ ![](images/7afd14ef1e5d1c20d479a119faa42fd9fe9407c1f1e4a4aab5d09d0b9ae2360e.jpg)
122
+ (b) Anchor-free detector
123
+
124
+ formed frame-by-frame on a video sequence. Subsequent video frames have strong temporal correlations, so the location and extent of the target object in the previous frame provide a close estimate of those in the current frame. Usually, tracking is performed on a square-shaped search region, which is further scaled to a fixed size before being passed to the tracking network. From the tracker's point of view, the size distribution of target object is very concentrated. Therefore, it is not necessary to use the FPN module, which is mainly adopted to handle large scale variations, in RetinaNet and FCOS. Additionally, the vanilla-version of FCOS uses three network heads, one common regression head and two centerness/classification heads. Since tracking only needs to classify target and non-target, we only keep the centerness branch to produce classification scores.
125
+
126
+ The second step is to initialize a detector with offline MAML training. As the detailed algorithm has been introduced in the previous section, we provide implementation details here.
127
+
128
+ Network architecture. Fig. 4 depicts the detection network we use for MAML training. In both detectors, the CNN backbone used for feature extraction is ResNet-18. The parameters in the first three blocks are pre-trained with ImageNet and frozen during offline training. The last block (block-5) is discarded so that the stride to output feature maps is 8. We make two independent copies of block-4 and put them to the respective branches. This is not a necessary treatment for our approach to work, just to allow us to analyze the effect of online updating during tracking. For RetinaNet, we pre-define a single anchor box with a size of $64 \times 64$ pixels. In our experiments we find that this single-anchor setting performs slightly better than the multi-anchor setting in SiamRPN [21].
129
+
130
+ ![](images/e781cd2a82281300830341bdc9d846543a1d8c20d2816c243aa795c251b6a61d.jpg)
131
+ Figure 3: (a) Anchor-based detectors predict the relative differences between the anchor and the ground-truth box. The dotted yellow box represents an anchor. (b) Anchor-free detectors directly estimate four offsets from the pixel to object boundaries.
132
+ Figure 4: We adopt ResNet-18 as the backbone. The first three blocks are frozen after ImageNet pre-training and block-5 is removed. Block-4 is independently trained in the classification branch and the regression branch during offline training. Online training only involves a subset of trainable layers.
133
+
134
+ # 4.2. Offline MAML training
135
+
136
+ Loss definition. For Retina-MAML, an anchor box is assigned a positive (or negative) label when its intersection-over-union (IoU) overlap with the ground-truth box is greater than 0.5 (or less than 0.3). We use focal loss and smooth L1 loss to train the classification branch and regression branch, respectively. For FCOS-MAML, we adopt L2 loss to supervise the training of centerness scores. The loss function in regression branch is L1 loss.
137
+
138
+ Training data. Following other modern trackers [6, 3], we use four datasets for offline training, namely MS-COCO [25], GOT10k [12], TrackingNet [26] and LaSOT-train [8]. In LaSOT and TrackingNet, we only sample one frame for every three or ten frames. The training images are cropped and resized into a resolution of $263 \times 263$ . Standard data augmentation mechanisms like random scaling and shifting are adopted.
139
+
140
+ Optimization. As noted in Section 3, we use 4-step GD for inner-level optimization during offline training period. The kernel-wise learnable learning rate $\alpha$ is initialized to 0.001. The multi-step loss weights $\gamma_{k}$ are initialized as equal contribution and gradually anneal to (0.05, 0.10, 0.2, 0.30, 0.35), giving more weight and attention to later steps. For the outer-level optimization, we adopt Adam optimizer [18] with a starting learning rate 0.0001. In each iteration, 32 pairs of images are sampled. The detector is trained for 20 epochs, with 10,000 iterations per epoch. To accelerate the training, we use first-order approximation [1] in the first 15 epochs.
141
+
142
+ # 4.3. Online training and tracking
143
+
144
+ The third step is domain adaptation when a new video sequence is given. In the initial frame, the instance to be
145
+
146
+ # Algorithm 1 Online tracking algorithm
147
+
148
+ Input: Frame sequence $\{I_i\}_{i=1}^N$ , detector $h(\cdot; \theta)$ , initialization bounding box $B_1$ , update interval $u$ .
149
+
150
+ Output: Tracking results $\{B_i\}_{i=1}^N$
151
+
152
+ 1: Generate search region image. $S_{1} \gets \mathrm{SR}(I_{1}, B_{1})$
153
+ 2: Initialize the support set. $\mathcal{D}^s\gets \{\mathrm{Data}\mathrm{Aug}(S_1)\}$
154
+ 3: Model update in Eqn. (1). $\pmb{\theta} \gets \mathrm{GD}_5(\pmb{\theta}, \mathcal{D}^s)$
155
+ 4: for $i = 2, \dots, N$ do
156
+ 5: Detect objects represented in bounding box and score. $\{B_{\mathrm{det}}^j,c_j\}_{j = 1}^M\gets h(\mathsf{SR}(I_i,B_{i - 1});\pmb {\theta})$
157
+ 6: if all $c_{j} < 0.1$ then
158
+ 7: $B_{i}\gets B_{i - 1}$
159
+ 8: continue
160
+ 9: end if
161
+ 10: Add penalties and window priors to $\{B_{\mathrm{det}}^j, c_j\}_{j=1}^M$
162
+ 11: Select the box with the highest score $c^*$ . $B_i \gets B_{\text{det}}^*$
163
+ 12: Linear interpolate shape. $B_{i} \gets \operatorname{Inter}(B_{i}, B_{i-1})$
164
+ 13: Update the support set $\mathcal{D}^s$
165
+ 14: if $i \mod u = 0$ or distractor detected then
166
+ 15: Model update in Eqn. (1). $\pmb{\theta} \gets \mathrm{GD}_1(\pmb{\theta}, \mathcal{D}^s)$
167
+ 16: end if
168
+ 17: end for
169
+
170
+ tracked is indicated by a ground-truth bounding box. We generate a patch with resolution $263 \times 263$ according to the given bounding box. As with the offline training, we also adopt zoom in/out data augmentation to construct the support set. The tracker is updated by a 5-step GD as described in Eqn. (5).
171
+
172
+ After domain adaptation, the detector is now capable of tracking the target object in subsequent frames. For each search region patch, the detector locates hundreds of candidate bounding boxes, which are then passed to a standard post-processing pipeline as suggested in SiamRPN [21]. Specifically, shape penalty function and cosine window function are applied to each candidate. Finally, the candidate box with the highest score is selected as the tracking result and its shape is smoothed by a linear interpolation with the result in the previous frame.
173
+
174
+ During tracking, the support set is gradually enlarged. The tracker can be online trained at a pre-defined interval based on the updated support set. This process is often called online updating in tracking. If a tracking result has a score above a predefined threshold, it will be added into the support set. We buffer at most 30 training images in the support set. Earlier samples, except the initial one, will be discarded when the number of images exceeds the limit. After every $n$ frames ( $n = 10$ in our implementation) or when a distracting peak is detected (when the peak-to-sidelobe is greater than 0.7), we perform online updating. In this case, we only use 1-step GD to maintain a high tracking speed. On average, our tracker can run at 40 FPS on a single NVIDIA P100 GPU card. The online tracking procedure is summarized in Alg. 1.
175
+
176
+ <table><tr><td>Detector</td><td>Domain Adaptation</td><td>OTB-100 (AUC)</td><td>VOT-18 (EAO)</td><td>LaSOT (AUC)</td><td>TrackingNet (AUC)</td></tr><tr><td rowspan="2">Baseline</td><td>before</td><td>0.460</td><td>0.137</td><td>0.391</td><td>0.601</td></tr><tr><td>after</td><td>0.487</td><td>0.174</td><td>0.391</td><td>0.634</td></tr><tr><td rowspan="2">MAML</td><td>before</td><td>0.464</td><td>0.162</td><td>0.387</td><td>0.626</td></tr><tr><td>after</td><td>0.671</td><td>0.341</td><td>0.511</td><td>0.743</td></tr></table>
177
+
178
+ ![](images/53418ffd0561c565848c63f2123950b9ccd4170522aec3c44d6317c3ce765c21.jpg)
179
+ (a) Loss curve
180
+
181
+ ![](images/44adc0c942a0cc4240d5a7cbef0d69e3fd3e651c151caa44af60e8e547f6b8b8.jpg)
182
+
183
+ ![](images/7931c6d9441ccc7af7199453e0a09cca1485c4e703ff8305eb5758f94fa2f5cd.jpg)
184
+ (b) Visualization
185
+
186
+ ![](images/1566fb5143c1ec6245dc5b9fb7b99b9b7d262e56b233430a4374f46f922c3766.jpg)
187
+ Figure 5: Comparison of the MAML detector and the baseline detector during domain adaptation. (a) Quantitative losses on the training image and a testing image. (b) Visualization of the corresponding score maps. MAML detector convergences quickly and has strong generalization ability.
188
+
189
+ Table 1: MAML training allows a detector to quickly adapt to a new domain, and therefore is the key in turning a detector into a tracker.
190
+
191
+ <table><tr><td>KLLR in
192
+ cls. reg.</td><td>OTB-100
193
+ (AUC)</td><td>VOT-18
194
+ (EAO)</td><td>LaSOT
195
+ (AUC)</td><td>TrackingNet
196
+ (AUC)</td></tr><tr><td></td><td>0.628</td><td>0.313</td><td>0.490</td><td>0.733</td></tr><tr><td>✓</td><td>0.661</td><td>0.368</td><td>0.502</td><td>0.737</td></tr><tr><td>✓</td><td>0.676</td><td>0.315</td><td>0.504</td><td>0.744</td></tr><tr><td>✓</td><td>0.704</td><td>0.392</td><td>0.523</td><td>0.757</td></tr></table>
197
+
198
+ Table 2: Ablation analysis of kernel-wise learnable learning rate. Cls. and reg. denote the classification branch and the regression branch, respectively.
199
+
200
+ # 5. Experiments
201
+
202
+ # 5.1. Ablation study
203
+
204
+ Meta-learning is the key in turning a detector into a tracker. In a nutshell, an instance detector can be built by of-
205
+
206
+ <table><tr><td>Online
207
+ cls. reg.</td><td>OTB-100
208
+ (AUC)</td><td>VOT-18
209
+ (EAO)</td><td>TrackingNet
210
+ (AUC)</td><td>LaSOT
211
+ (AUC)</td><td>Speed
212
+ (FPS)</td></tr><tr><td rowspan="2">✓</td><td>0.671</td><td>0.341</td><td>0.743</td><td>0.511</td><td>85</td></tr><tr><td>0.690</td><td>0.394</td><td>0.747</td><td>0.523</td><td>58</td></tr><tr><td>✓✓</td><td>0.704</td><td>0.392</td><td>0.757</td><td>0.496</td><td>42</td></tr></table>
213
+
214
+ Table 3: Ablation analysis of the online updating strategy. The baseline tracker without online updating achieves a good performance-speed tradeoff. Online updating both branches is the best choice for tracking short sequences.
215
+
216
+ fline MAML training and domain adaptation (online training of the initial frame), and online updating further boosts the performance. In this section, we use FCOS-MAML to carry out the ablation study, which is centered on offline MAML training and online updating. The experiments are conducted on four tracking benchmarks [39, 19, 8, 26], following the official evaluation protocols.
217
+
218
+ # 5.1.1 Offline MAML training
219
+
220
+ Without MAML training, one could train a general object detector with standard gradient descent. However, such a detector is not capable of domain adaptation with only a few steps of updating using the samples from the initial frame.
221
+
222
+ To demonstrate the importance of MAML training, we offline train the FCOS detector with standard GD and MAML on the same dataset. They are called baseline detector and MAML detector in this subsection. The performance is presented in Table 1. Without domain adaptation, both detectors perform poorly in the tracking task. This is natural because they do not remember any information of the tracking target. However, after domain adaptation with a 5-step GD, the MAML detector shows an clear advantage over the baseline detector. The AUC on OTB-100 is greatly improved from 0.464 to 0.671. In contrast, the baseline detector only slightly benefits from domain adaptation.
223
+
224
+ We can get a more intuitive impression of the two detectors from Fig. 5. Fig. 5(a) shows the loss curve of the two detectors during domain adaptation. Note that both detectors use the same GD algorithm in this process, but the MAML detector has a much better adaptation capability. For the training image, the loss of the MAML detector quickly drops to a small value after only one-step GD updating. The convergence speed of the baseline detector is much slower and the loss is still large after 20 steps of updating. The right of Fig. 5(a) shows that the loss on the testing image even rises as the training proceeds. Fig. 5(a) visualizes the response maps on the training and testing images generated by the two detectors. The MAML detector clearly locates the tracking target after 5-step GD in both training and testing images, while the baseline detector does not make any progress even after 20 steps of GD.
225
+
226
+ ![](images/9155e7142aa48747bb954c19ae4dcab2d968fef6fe46a5f63f0e50c41b02458c.jpg)
227
+ Figure 6: The success plot and precision plot on OTB-100.
228
+
229
+ ![](images/7aef31bc52ac9c0248416e6c028f9c030e1dd28e3a9d53e38d7b7c898869bdc8.jpg)
230
+
231
+ # 5.1.2 Kernel-wise learnable learning rate
232
+
233
+ The model learns information about the target objects from gradients. We propose to use learnable learning rates (KLLR) in a kernel-wise manner. These learning rates guide the directions of gradients and strengthen the power for our model. In this section, we train several FCOS-MAML detectors with or without KLLR. Experimental results in Table 2 show that the model can benefit from KLLR in both classification branch and regression branch.
234
+
235
+ # 5.1.3 Online updating strategy
236
+
237
+ Our trackers perform two types of online training, one on the initial frame for domain adaptation and the other on the collected samples during tracking. The latter is known as online updating. While domain adaptation is a must-have training procedure for instance detectors, online updating is optional. We first evaluate the simplest baseline, which does not perform online updating at all. Surprisingly, this scheme achieves competitive performance on all the four benchmarks, as shown in Table 3. This version of FCOS-MAML can run very fast at up to 85 FPS. When online updating is adopted, FCOS-MAML achieves increased performance with slightly reduced speed. Comparing the last two rows, we have an interesting finding that is contrary to the conventional wisdom. It was previously believed that online updating the regression branch may harm the tracker's performance due to the aggregated errors. However, our results show that, except for the LaSOT dataset which is composed of very long sequences, online updating both branches seems to be the best choice.
238
+
239
+ # 5.2. Comparison with SOTA Trackers
240
+
241
+ Evaluation on OTB: We evaluate both our trackers FCOS-MAML and Retina-MAML on OTB 2013/50/100 benchmarks [39]. We follow the one pass evaluation (OPE) protocol, and report the AUC scores of success plot. Table 4 compares our trackers with some recent top-performing trackers. On OTB-100, FCOS-MAML and RetinaNet-MAML achieve striking AUC scores of 0.704 and 0.712, respectively. To the best of our knowledge, Retina-MAML is the best-performing tracker ever on OTB.
242
+
243
+ <table><tr><td rowspan="2">Tracker</td><td colspan="3">AUC score (OPE)</td><td rowspan="2">Speed(FPS)</td></tr><tr><td>OTB-2013</td><td>OTB-50</td><td>OTB-100</td></tr><tr><td>CFNet [35]</td><td>0.611</td><td>0.530</td><td>0.568</td><td>75</td></tr><tr><td>BACF [17]</td><td>0.656</td><td>0.570</td><td>0.621</td><td>35</td></tr><tr><td>ECO-hc [7]</td><td>0.652</td><td>0.592</td><td>0.643</td><td>60</td></tr><tr><td>MCCT-hc [37]</td><td>0.664</td><td>-</td><td>0.642</td><td>45</td></tr><tr><td>ECO [7]</td><td>0.709</td><td>0.648</td><td>0.687</td><td>8</td></tr><tr><td>RTINet [42]</td><td>-</td><td>0.637</td><td>0.682</td><td>9</td></tr><tr><td>MCCT [37]</td><td>0.714</td><td>-</td><td>0.695</td><td>8</td></tr><tr><td>SiamFC [2]</td><td>0.607</td><td>0.516</td><td>0.582</td><td>86</td></tr><tr><td>SA-Siam [11]</td><td>0.677</td><td>0.610</td><td>0.657</td><td>50</td></tr><tr><td>RASNet [38]</td><td>0.670</td><td>-</td><td>0.642</td><td>83</td></tr><tr><td>SiamRPN [21]</td><td>0.658</td><td>0.592</td><td>0.637</td><td>200</td></tr><tr><td>C-RPN [9]</td><td>0.675</td><td>-</td><td>0.663</td><td>23</td></tr><tr><td>SPM [36]</td><td>0.693</td><td>0.653</td><td>0.687</td><td>120</td></tr><tr><td>SiamRPN++ [20]</td><td>0.691</td><td>0.662</td><td>0.696</td><td>35</td></tr><tr><td>Meta-Tracker [29]</td><td>0.684</td><td>0.627</td><td>0.658</td><td>-</td></tr><tr><td>MemTracker [41]</td><td>0.642</td><td>0.610</td><td>0.626</td><td>50</td></tr><tr><td>UnifiedDet [13]</td><td>0.656</td><td>-</td><td>0.647</td><td>3</td></tr><tr><td>MLT [5]</td><td>0.621</td><td>-</td><td>0.611</td><td>48</td></tr><tr><td>GradNet [22]</td><td>0.670</td><td>0.597</td><td>0.639</td><td>80</td></tr><tr><td>MDNet [28]</td><td>0.708</td><td>0.645</td><td>0.678</td><td>1</td></tr><tr><td>VITAL [32]</td><td>0.710</td><td>0.657</td><td>0.682</td><td>2</td></tr><tr><td>ATOM [6]</td><td>-</td><td>0.628</td><td>0.671</td><td>30</td></tr><tr><td>DiMP [3]</td><td>0.691</td><td>0.654</td><td>0.684</td><td>43</td></tr><tr><td>FCOS-MAML</td><td>0.714</td><td>0.665</td><td>0.704</td><td>42</td></tr><tr><td>Retina-MAML</td><td>0.709</td><td>0.676</td><td>0.712</td><td>40</td></tr></table>
244
+
245
+ Table 4: Comparison with SOTA trackers on OTB dataset. Trackers are grouped into CF-based methods, siamese-network-based methods, meta-learning-based methods, and miscellaneous. Numbers in red and blue are the best and the second best results, respectively.
246
+
247
+ <table><tr><td></td><td>EAO</td><td>Accuracy</td><td>Robustness</td></tr><tr><td>DRT [33]</td><td>0.356</td><td>0.519</td><td>0.201</td></tr><tr><td>SiamRPN++ [20]</td><td>0.414</td><td>0.600</td><td>0.234</td></tr><tr><td>UPDT [4]</td><td>0.378</td><td>0.536</td><td>0.184</td></tr><tr><td>LADCF [40]</td><td>0.389</td><td>0.503</td><td>0.159</td></tr><tr><td>ATOM [6]</td><td>0.401</td><td>0.590</td><td>0.204</td></tr><tr><td>DiMP-18 [3]</td><td>0.402</td><td>0.594</td><td>0.182</td></tr><tr><td>DiMP-50 [3]</td><td>0.440</td><td>0.597</td><td>0.153</td></tr><tr><td>FCOS-MAML</td><td>0.392</td><td>0.635</td><td>0.220</td></tr><tr><td>Retina-MAML</td><td>0.452</td><td>0.604</td><td>0.159</td></tr></table>
248
+
249
+ In this table, Meta-Tracker and UnifiedDet are two recent trackers which also use MAML to assist online training. Compared with them, our trackers achieve over $8\%$ relative gain in AUC and still run in real-time. For the first time, meta-learning-based methods are shown to be very competitive against the mainstream solutions. The detailed success plot and precision plot on OTB-100 are shown in Fig. 6.
250
+
251
+ Table 5: Comparison with SOTA trackers on VOT-2018. The backbone used in our trackers is ResNet-18.
252
+
253
+ <table><tr><td></td><td colspan="2">TrackingNet</td><td>LaSOT-test</td></tr><tr><td></td><td>AUC</td><td>N-Prec.</td><td>AUC</td></tr><tr><td>C-RPN [9]</td><td>0.669</td><td>0.746</td><td>0.455</td></tr><tr><td>SiamRPN++ [20]</td><td>0.733</td><td>0.800</td><td>0.496</td></tr><tr><td>SPM [36]</td><td>0.712</td><td>0.779</td><td>0.471</td></tr><tr><td>ATOM [6]</td><td>0.703</td><td>0.771</td><td>0.515</td></tr><tr><td>DiMP-18 [3]</td><td>0.723</td><td>0.785</td><td>0.532</td></tr><tr><td>DiMP-50 [3]</td><td>0.740</td><td>0.801</td><td>0.569</td></tr><tr><td>FCOS-MAML</td><td>0.757</td><td>0.822</td><td>0.523</td></tr><tr><td>Retina-MAML</td><td>0.698</td><td>0.786</td><td>0.480</td></tr></table>
254
+
255
+ Table 6: Comparison with SOTA trackers on TrackingNet and LaSOT. We present the AUC of the success plot and and the normalized precision (N-prec.).
256
+
257
+ Evaluation on VOT: Our trackers are tested on the VOT-2018 benchmark [19] in comparison with six SOTA trackers. We follow the official evaluation protocol and adopt Expected Average Overlap (EAO), Accuracy, and Robustness as the metrics. The results are reported in Table 5. RetinamAML achieves the top-ranked performance on EAO criteria and FCOS-MAML also shows a strong performance. Interestingly, FCOS-MAML has the highest accuracy score among all the trackers. We have observed a similar phenomenon in Fig. 6 for OTB dataset. FCOS-MAML gets the highest success rates when the overlap threshold is greater than 0.7. This suggests that anchor-free detectors can predict very precise bounding boxes.
258
+
259
+ Evaluation on LaSOT and TrackingNet: TrackingNet [26] and LaSOT [8] are two large-scale datasets for visual tracking. The evaluation results on these two datasets are detailed in Table 6. Results show that FCOS-MAML performs favorably against SOTA trackers, although many of them are using a more powerful backbone ResNet-50. When compared with the recent DiMP-18 tracker which uses the same backbone network as ours, FCOS-MAML shows a significant gain on TrackingNet and a slight loss on LaSOT. We suspect that our straightforward online updating strategy may not be suitable for very long sequences which are often seen in LaSOT.
260
+
261
+ # 6. Conclusion
262
+
263
+ In this paper, we have proposed a three-step procedure to convert a general object detector into a tracker. Offline MAML training prepares the detector for quick domain adaption as well as efficient online update. The resulting instance detector is an elegant template-free tracker which fully benefits from the advancement in object detection. While the two constructed trackers achieve competitive performance against SOTA trackers in datasets with short videos, their performance on LaSOT still has room for improvement. In the future, we plan to investigate the online updating strategy for long sequences.
264
+
265
+ # References
266
+
267
+ [1] Antreas Antoniou, Harrison Edwards, and Amos Storkey. How to train your maml. arXiv preprint, 2018.
268
+ [2] Luca Bertinetto, Jack Valmadre, Joao F Henriques, Andrea Vedaldi, and Philip HS Torr. Fully-convolutional siamese networks for object tracking. In ECCV, pages 850–865, 2016.
269
+ [3] Goutam Bhat, Martin Danelljan, Luc Van Gool, and Radu Timofte. Learning discriminative model prediction for tracking. In ICCV, 2019.
270
+ [4] Goutam Bhat, Joakim Johnander, Martin Danelljan, Fahad Shahbaz Khan, and Michael Felsberg. Unveiling the power of deep tracking. In Proceedings of the European Conference on Computer Vision (ECCV), pages 483-498, 2018.
271
+ [5] Janghoon Choi, Junseok Kwon, and Kyoung Mu Lee. Deep meta learning for real-time target-aware visual tracking. In ICCV, pages 911-920, 2019.
272
+ [6] Martin Danelljan, Goutam Bhat, Fahad Shahbaz Khan, and Michael Felsberg. Atom: Accurate tracking by overlap maximization. In CVPR, pages 4660-4669, 2019.
273
+ [7] Martin Danelljan, Goutam Bhat, Fahad Shahbaz Khan, and Michael Felsberg. Eco: Efficient convolution operators for tracking. In CVPR, pages 6638-6646, 2017.
274
+ [8] Heng Fan, Liting Lin, Fan Yang, Peng Chu, Ge Deng, Sijia Yu, Hexin Bai, Yong Xu, Chunyuan Liao, and Haibin Ling. Lasot: A high-quality benchmark for large-scale single object tracking. In CVPR, pages 5374-5383, 2019.
275
+ [9] Heng Fan and Haibin Ling. Siamese cascaded region proposal networks for real-time visual tracking. In CVPR, pages 7952-7961, 2019.
276
+ [10] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, pages 1126-1135, 2017.
277
+ [11] Anfeng He, Chong Luo, Xinmei Tian, and Wenjun Zeng. A twofold siamese network for real-time object tracking. In CVPR, pages 4834-4843, 2018.
278
+ [12] Lianghua Huang, Xin Zhao, and Kaiqi Huang. Got-10k: A large high-diversity benchmark for generic object tracking in the wild. arXiv preprint arXiv:1810.11981, 2018.
279
+ [13] Lianghua Huang, Xin Zhao, and Kaiqi Huang. Bridging the gap between detection and tracking: A unified approach. In ICCV, pages 3999-4009, 2019.
280
+ [14] Borui Jiang, Ruixuan Luo, Jiayuan Mao, Tete Xiao, and Yun-ting Jiang. Acquisition of localization confidence for accurate object detection. In ECCV, pages 784-799, 2018.
281
+ [15] Ilchae Jung, Jeany Son, Mooyel Baek, and Bohyung Han. Real-time mdnet. In ECCV, pages 83-98, 2018.
282
+ [16] Ilchae Jung, Kihyun You, Hyeonwoo Noh, Minsu Cho, and Bohyung Han. Real-time object tracking via meta-learning: Efficient model adaptation and one-shot channel pruning. arXiv preprint arXiv:1911.11170, 2019.
283
+ [17] Hamed Kiani Galoogahi, Ashton Fagg, and Simon Lucey. Learning background-aware correlation filters for visual tracking. In ICCV, pages 1135-1143, 2017.
284
+ [18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
285
+
286
+ [19] Matej Kristan, Ales Leonardis, Jiri Matas, Michael Felsberg, Roman Pflugfelder, Luka Cehovin Zajc, Tomas Vojir, Goutam Bhat, Alan Lukezic, Abdelrahman Eldesokey, et al. The sixth visual object tracking vot2018 challenge results. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018.
287
+ [20] Bo Li, Wei Wu, Qiang Wang, Fangyi Zhang, Junliang Xing, and Junjie Yan. Siamprn++: Evolution of siamese visual tracking with very deep networks. In CVPR, pages 4282-4291, 2019.
288
+ [21] Bo Li, Junjie Yan, Wei Wu, Zheng Zhu, and Xiaolin Hu. High performance visual tracking with siamese region proposal network. In CVPR, pages 8971-8980, 2018.
289
+ [22] Peixia Li, Boyu Chen, Wanli Ouyang, Dong Wang, Xiaoyun Yang, and Huchuan Lu. Gradnet: Gradient-guided network for visual object tracking. In ICCV, pages 6162-6171, 2019.
290
+ [23] Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Metasgd: Learning to learn quickly for few-shot learning. arXiv preprint, 2017.
291
+ [24] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In ICCV, pages 2980-2988, 2017.
292
+ [25] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740-755, 2014.
293
+ [26] Matthias Muller, Adel Bibi, Silvio Giancola, Salman Alsubaihi, and Bernard Ghanem. Trackingnet: A large-scale dataset and benchmark for object tracking in the wild. In ECCV, pages 300-317, 2018.
294
+ [27] Hyeonseob Nam, Mooyeol Baek, and Bohyung Han. Modeling and propagating cnns in a tree structure for visual tracking. arXiv preprint, 2016.
295
+ [28] Hyeonseob Nam and Bohyung Han. Learning multi-domain convolutional neural networks for visual tracking. In CVPR, pages 4293-4302, 2016.
296
+ [29] Eunbyung Park and Alexander C Berg. Meta-tracker: Fast and robust online adaptation for visual object trackers. In ECCV, pages 569-585, 2018.
297
+ [30] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, pages 91-99, 2015.
298
+ [31] Yibing Song, Chao Ma, Lijun Gong, Jiawei Zhang, Rynson WH Lau, and Ming-Hsuan Yang. Crest: Convolutional residual learning for visual tracking. In ICCV, pages 2555-2564, 2017.
299
+ [32] Yibing Song, Chao Ma, Xiaohe Wu, Lijun Gong, Linchao Bao, Wangmeng Zuo, Chunhua Shen, Rynson WH Lau, and Ming-Hsuan Yang. Vital: Visual tracking via adversarial learning. In CVPR, pages 8990-8999, 2018.
300
+ [33] Chong Sun, Dong Wang, Huchuan Lu, and Ming-Hsuan Yang. Correlation tracking via joint discrimination and reliability learning. In CVPR, pages 489-497, 2018.
301
+ [34] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In ICCV, 2019.
302
+
303
+ [35] Jack Valmadre, Luca Bertinetto, João Henriques, Andrea Vedaldi, and Philip HS Torr. End-to-end representation learning for correlation filter based tracking. In CVPR, pages 2805-2813, 2017.
304
+ [36] Guangting Wang, Chong Luo, Zhiwei Xiong, and Wenjun Zeng. Spm-tracker: Series-parallel matching for real-time visual object tracking. In CVPR, pages 3643–3652, 2019.
305
+ [37] Ning Wang, Wengang Zhou, Qi Tian, Richang Hong, Meng Wang, and Houqiang Li. Multi-cue correlation filters for robust visual tracking. In CVPR, pages 4844-4853, 2018.
306
+ [38] Qiang Wang, Zhu Teng, Junliang Xing, Jin Gao, Weiming Hu, and Stephen Maybank. Learning attentions: residual attentional siamese network for high performance online visual tracking. In CVPR, pages 4854-4863, 2018.
307
+ [39] Yi Wu, Jongwoo Lim, and Ming-Hsuan Yang. Object tracking benchmark. T-PAMI, 37(9):1834-1848, 2015.
308
+ [40] Tianyang Xu, Zhen-Hua Feng, Xiao-Jun Wu, and Josef Kittler. Learning adaptive discriminative correlation filters via temporal consistency preserving spatial feature selection for robust visual object tracking. TIP, 2019.
309
+ [41] Tianyu Yang and Antoni B Chan. Learning dynamic memory networks for object tracking. In PECCV, pages 152-167, 2018.
310
+ [42] Yingjie Yao, Xiaohe Wu, Lei Zhang, Shiguang Shan, and Wangmeng Zuo. Joint representation and truncated inference learning for correlation filter based tracking. In ECCV, pages 552-567, 2018.
311
+ [43] Zheng Zhu, Qiang Wang, Bo Li, Wei Wu, Junjie Yan, and Weiming Hu. Distractor-aware siamese networks for visual object tracking. In ECCV, pages 101-117, 2018.
trackingbyinstancedetectionametalearningapproach/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbc60916bd922affd8c4b933c128eae120971a787b500aa698d31fe9513d4490
3
+ size 542233
trackingbyinstancedetectionametalearningapproach/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23ee8991d3f74fe3606e5c2601d996cfe7abd94b8fa8a6b423399bbc57c5a8c0
3
+ size 338835
trainingasteerablecnnforguidewiredetection/af618680-e671-4f4b-9d2b-dadf3ca3c4ab_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ace6e0283af52b6c58ba8d823624453c1078f65941b398c841ee8d81ef6e729
3
+ size 68663
trainingasteerablecnnforguidewiredetection/af618680-e671-4f4b-9d2b-dadf3ca3c4ab_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ac799fff0fd878381dc159c8c7b44a83dc26b7d29b56494c436e9f9bcd6a0a6
3
+ size 80903
trainingasteerablecnnforguidewiredetection/af618680-e671-4f4b-9d2b-dadf3ca3c4ab_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05ae5dd13104745be13cad11e025f0d2112546f4ad3ec1b7f5191e3ef1c207d7
3
+ size 928814
trainingasteerablecnnforguidewiredetection/full.md ADDED
@@ -0,0 +1,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Training a Steerable CNN for Guidewire Detection
2
+
3
+ Donghang Li, Adrian Barbu
4
+
5
+ Florida State University
6
+
7
+ 600 W College Ave, Tallahassee, FL 32306, USA
8
+
9
+ dl14h@my.fsu.edu, abarbu@stat.fsu.edu
10
+
11
+ # Abstract
12
+
13
+ Guidewires are thin wires used in coronary angioplasty to guide different tools to access and repair the obstructed artery. The whole procedure is monitored using fluoroscopic (real-time X-ray) images. Due to the guidewire being thin in the low quality fluoroscopic images, it is usually poorly visible. The poor quality of the X-ray images makes the guidewire detection a challenging problem in image-guided interventions. Localizing the guidewire could help in enhancing its visibility and for other automatic procedures. Guidewire localization methods usually contain a first step of computing a pixelwise guidewire response map on the entire image. In this paper, we present a steerable Convolutional Neural Network (CNN), which is a Fully Convolutional Neural Network (FCNN) that can detect objects rotated by an arbitrary 2D angle, without being rotation invariant. In fact, the steerable CNN has an angle parameter that can be changed to make it sensitive to objects rotated by that angle. We present an application of this idea to detecting the guidewire pixels, and compare it with an FCNN trained to be invariant to the guidewire orientation. Results reveal that the proposed method is a good choice, outperforming some popular filter-based and learning-based approaches such as Frangi Filter, Spherical Quadrature Filter, FCNN and a state of the art trained classifier based on hand-crafted feature.
14
+
15
+ # 1. Introduction
16
+
17
+ Convolutional Neural Networks(CNNs) are widely used and have an impressive performance in detecting and classifying objects. However, the CNNs performance is sensitive to variations in rotation, position or scaling of the objects to be detected. In [14], capsules were proposed as accurate generative models to handle such variations and obtain more accurate representations, with promising results. However, each capsule is trained to handle only a small range of such variations, hence the need for multiple capsules to handle the same object.
18
+
19
+ In this paper we propose a steerable CNN that can detect an object rotated by an arbitrary angle without being rotation invariant. The proposed model is discriminative like a regular CNN, but it has a latent parameter representing the object's 2D orientation. For any value of this parameter, the steerable CNN will be sensitive to detect only objects having that orientation.
20
+
21
+ We apply the steerable CNN to detect the guidewire in fluoroscopy (real-time X-ray) images. The guidewire is a thin wire used in coronary angioplasty interventions, which are visualized using fluoroscopic images. The fluoroscopic images are usually low-dose in order to limit the amount of radiation received by the patient. Under these conditions, the guidewire is a thin and poorly visible wire-like structure with different orientations, as shown in Figure 1. In this application, knowing the orientation of the guidewire is important for its detection, but the scaling is not important since all guidewires are one or two pixels wide.
22
+
23
+ In order to find the entire guidewire, a low level measurement that shows how the guidewire passes through any pixel of the image should be obtained first. More details about this procedure will be explained in Section 2. There are two main approaches to obtain the pixelwise detection map, filter-based approaches and learning-based approaches. For the filter-based approach, one applies a predefined filter (Frangi Filter, Steerable Filters, Spherical Quadrature Filters) to obtain a filtered response map. The learning-based approach is to find a per-pixel probability map by training a classifier with some Haar or hand-crafted features.
24
+
25
+ The best performing methods are trained on rotational aligned samples and search for the maximum response rotation angle at detection time. This is done by rotating the image by a number of angles and applying the classifier to the rotated images.
26
+
27
+ Recently, a CNN (Convolutional Neural Network) was trained for this purpose, which learned its own features using the training data and obtained an invariant model that can detect guidewires at any orientation.
28
+
29
+ In this paper, we are interested in seeing what is to gain by training a CNN that is tuned to the guidewire orientation.
30
+
31
+ ![](images/82e405ccd0f87bf5ed956395e044fce102e90730102d3befc5d7f9af02f42632.jpg)
32
+
33
+ ![](images/a2a60b28544cdc4e60ecb89bef5245a436e6acf41b3c5b92a60ded1117527a07.jpg)
34
+
35
+ ![](images/fef8af27d9cf312baa5012ee2dd908fcc33b667671a35318239393693db107e8.jpg)
36
+ Figure 1. Two frames of the guidewire under X-ray images(top two images) and the X-ray frames of the guidewire with annotations(bottom two images)
37
+
38
+ ![](images/7c337c74ea969d16124d86f2c0bcc2551bdaec1c107c38f0ec523070d9cf8929.jpg)
39
+
40
+ However, instead of training a CNN on rotation aligned samples, which would require us to apply it to rotated images for detection, we introduce a steerable CNN that can be trained on the original samples. This steerable CNN has a steering parameter $\theta$ that can be used to make it sensitive to the parts of the guidewire that have orientation $\theta$ . This way, the steerable CNN eliminates the need to rotate the image by many angles at detection time. This paper brings three contributions:
41
+
42
+ - It introduces a method for training steerable filters [13] by loss minimization. The steerable filters are rotated filters that can be obtained from a basis using an arbitrary rotation parameter. They were introduced in [13], but they were defined by an equation instead of being trainable.
43
+ - It introduces a model for a steerable CNN composed of a number of layers consisting of multiple steerable filters, and a method for training the steerable CNN from training examples.
44
+ - It presents an application to guidewire detection in fluoroscopic images. Our experiments indicate that the steerable CNN outperforms the regular CNN and the other guidewire detection methods such as the Frangi Filter and a trained classifier with Haar or hand-crafted features.
45
+
46
+ # 1.1. Related Work
47
+
48
+ Filter-based approaches include the Frangi Filter [12], which is based on the sorted eigenvalues $(\lambda_1, \lambda_2)$ of the Hessian matrix. It is widely applied to vascular image analysis. The sorted eigenvalues of the Hessian matrix were used to extract and track the guidewire through a spline optimization in [1]. [7] used the Frangi Filter as the data term
49
+
50
+ and fitted the guidewire with B-spline model in clinical X-ray videos. The beauty of the filter-based approaches consists in their simplicity and interpretability. [4] proposed a method that votes on many candidate curves through all pixels, and the method was compared with the Frangi Filter. Results showed that the Frangi Filter was inferior to the path voting approach.
51
+
52
+ Steerable Filters have been introduced in [13] for detecting edges and ridges in images. A more recent and powerful type of steerable filters are the Spherical Quadrature Filters (SQF) [19] that were used by [17] for guidewire detection.
53
+
54
+ Learning-based approaches include [5, 2, 20, 26, 15, 22, 8]. In [2], the pixel detection step was trained with examples that were rotated for alignment, using a Probabilistic Boosting Tree (PBT) [24] and Haar features. The trained classifier was applied to rotated images by many angles to obtain the guidewire detection result. A user-constrained algorithm with PBT was proposed in [20] to localize the guidewire. The PBT and hand-crafted features were also employed to track the guidewire in [26] and detecting vessels in [8]. [5] introduced a framework using Boosting and Haar features for catheter detection, and the method was compared with the Frangi Filter. The tracking error results obtained by the learning-based approach were smaller than the results of the filter-based approach. A boosted classifier was used to obtain the low-level detection of the guidewire in [15]. It was trained on ridge and edge features. [9] detected the catheter and vascular structures using a Random Forest classifier of curvilinear structures trained on hand-crafted features. A method used the Region Proposal Network to detect the guidewire was presented in [25]. Different from our method which is aimed at obtaining a pixelwise detection map using CNNs, their work is to place bounding boxes around the guidwires.
55
+
56
+ A Fully Convolutional Neural Network was trained in [17] for guidewire detection. The CNN was invariant to the guidewire orientation, and difficulties in training were reported. In contrast, the steerable CNN is sensitive to the guidewire orientation, alleviating some of the training difficulties and obtaining better detection results.
57
+
58
+ A steerable CNN theory was presented in [11]. The theory is very generic and only discusses rotations by multiples of $90^{\circ}$ , lacking any specific details on how to apply it for steering by arbitrary angles. Moreover, the theory is directed towards invariant models, whereas our steerable CNN obtains models tuned to any orientation, in the spirit of the steerable filters [13]. Furthermore, the rotation angle can be estimated in our method as the angle of maximal response, together with its uncertainty.
59
+
60
+ Steerable Filter CNNs were developed in [27]. The SFCNNs are both translational and rotational equivariant. The SFCNNs learn the weights of a set of predefined basis of equivariant steerable filters, while our formulation learns
61
+
62
+ ![](images/f63f905cf7a0478f133288559f3348d3cd76a6433dc67d6683af398eb67bb39d.jpg)
63
+ Figure 2. Diagram of the steerable CNN, steered (tuned) to an angle $\theta$ .
64
+
65
+ a basis that is not necessarily equivariant, but which is made close to equivariant by using a special loss function. Furthermore, the rotation and steering occurs only on the first layer for the SFCNN and is followed by several groupconvolutional layers[10]. In our method, each layer is steerable by the same angle $\theta$ , making the entire CNN steerable. Capsules were introduced in [14] and improved in [23]. The capsules represent object detectors together with precise values of the deformations and viewing parameters specific to each object instance. Each capsule is sensitive to a small range of rotation angles and many capsules are needed to cover the entire rotation range. In contrast, our steerable CNN is a single detector that can be rotated to an arbitrary angle, thus it achieves the rotation goal of multiple capsules.
66
+
67
+ # 2. The Steerable CNN
68
+
69
+ The steerable CNN consists of a number of steerable convolutional layers, as illustrated in Figure 2. The steerable convolution filters are described next.
70
+
71
+ # 2.1. The Trainable Steerable Filters
72
+
73
+ The steerable filters are oriented filters $f(\theta)$ that are obtained as a linear combination from a basis $B$ , and can be rotated to any angle $\theta$ by a simple re-weighting of the basis as illustrated in Figure 3.
74
+
75
+ We are interested in deriving such a steerable representation for a filter $\mathbf{f}$ . For that, we start with the steerable filter [13] of order 2, which for an angle $\theta$ is defined as
76
+
77
+ $$
78
+ G _ {2} ^ {\theta} = B \cdot \mathbf {a} (\theta) \tag {1}
79
+ $$
80
+
81
+ where $\mathbf{a}(\theta) = (\cos^2\theta, -2\cos \theta \sin \theta, \sin^2\theta)^T$ , $B = \frac{G}{\sigma^4}\cdot (x^2 -\sigma^2, - xy,y^2 -\sigma^2)$ , and $G$ is the 2-D Gaussian with variance $\sigma^2$ . This inspires us to represent a filter as
82
+
83
+ $$
84
+ \mathbf {f} (\theta) = B \cdot \mathbf {a} (\theta) \tag {2}
85
+ $$
86
+
87
+ with some unknown $p^2 \times (d + 1)$ matrix $B$ that needs to be learned and
88
+
89
+ $$
90
+ \mathbf {a} (\theta) = \left(\cos^ {d} \theta , \cos^ {d - 1} \theta \sin \theta , \dots , \sin^ {d} \theta\right) ^ {T}. \tag {3}
91
+ $$
92
+
93
+ However, higher powers $d$ result in numerical instability, and since the even powers of the sin and cos are related to the sin and cos of the angle multiples, we will use an alternate steerable representation
94
+
95
+ $$
96
+ \mathbf {f} (\theta) = B \cdot \mathbf {w} (\theta) \tag {4}
97
+ $$
98
+
99
+ with
100
+
101
+ $$
102
+ \mathbf {w} (\theta) = [ 1, \cos (2 \theta), \sin (2 \theta), \dots , \cos (2 d \theta), \sin (2 d \theta) ] ^ {T}, \tag {5}
103
+ $$
104
+
105
+ where $d$ controls the number of basis elements. We will denote the dimension $2d + 1$ of the basis $B$ as the rank of the steerable filter.
106
+
107
+ ![](images/8a35b9cf8018a533982c48125cdfc3837e5b71ef5fae3912a56dded410b20634.jpg)
108
+ Figure 3. Diagram of a trainable steerable convolution filter.
109
+
110
+ Training steerable filters. Suppose we have $n$ training examples $(\mathbf{x}_i, y_i), i = 1, \ldots, n$ where $\mathbf{x}_i \in \mathbb{R}^{p^2}$ is the extracted patch of size $p \times p$ . The positives are patch with center on the guidewire, and the negatives have center at some distance from the guidewire. The label of the example is $y_i$ , with $y_i = -1$ for negative patches and $y_i = k \in \{1, \ldots, K\}$ for positive patches where the tangent angle is in the interval $[\theta_k - \frac{\pi}{2K}, \theta_k + \frac{\pi}{2K})$ , where $\theta_k = \frac{k\pi}{K}$ .
111
+
112
+ ![](images/4f4d3f129dc178584fe4fd7d17900533c6891edd637af9c4b4b47ee506f18981.jpg)
113
+ Figure 4. A trained steerable filter example. First row: trained filter basis $B$ . Second and third row: obtained steered filters for different angles $\theta$ .
114
+
115
+ We can use the foreground-background (FB) loss
116
+
117
+ $$
118
+ \begin{array}{l} L (B) = \frac {1}{n _ {- 1}} \sum_ {i, y _ {i} = - 1 k = 1} \sum_ {k = 1} ^ {K} \ell (- \mathbf {x} _ {i} ^ {T} B \mathbf {w} (\theta_ {k})) \\ + \sum_ {k = 1} ^ {K} \frac {1}{n _ {k}} \sum_ {i, y _ {i} = k} \ell \left(\mathbf {x} _ {i} ^ {T} B \mathbf {w} \left(\theta_ {k}\right)\right) \\ \end{array}
119
+ $$
120
+
121
+ for training the steerable filters, where $\ell(u)$ is a per example loss function such as the Lorenz loss [3]
122
+
123
+ $$
124
+ \ell (u) = \log (1 + R e L U (1 - u) ^ {2}), \tag {7}
125
+ $$
126
+
127
+ or the Focal loss [18]
128
+
129
+ $$
130
+ \ell (u) = - \alpha_ {t} (1 - p _ {t} (u)) ^ {\gamma} \log \left(p _ {t} (u)\right). \tag {8}
131
+ $$
132
+
133
+ where
134
+
135
+ $$
136
+ p _ {t} (u) = \left\{ \begin{array}{l l} \sigma (u), & \text {i f} y = 1 \\ 1 - \sigma (u), & \text {i f} y = - 1 \end{array} , \right. \tag {9}
137
+ $$
138
+
139
+ where $\sigma (u)$ is the sigmoid function
140
+
141
+ $$
142
+ \sigma (u) = \frac {1}{1 + \exp (- u)}. \tag {10}
143
+ $$
144
+
145
+ and $\alpha_{t} = \alpha = 0.25$ for class 1, $\gamma = 2$ .
146
+
147
+ Examples of a trained $B$ with the Lorenz loss (7) for $d = 5$ and some steered filters obtained from this $B$ are shown in Figure 4.
148
+
149
+ Observe that because of linearity, the convolution of an image $I$ with the steered filter $\mathbf{f}(\theta)$ is a linear combination with weight $\mathbf{w}(\theta)$ of the convolutions with the filters from $B$ ,
150
+
151
+ $$
152
+ \mathbf {f} (\theta) * I = (B \cdot \mathbf {w} (\theta)) * I = (B * I) \cdot \mathbf {w} (\theta). \tag {11}
153
+ $$
154
+
155
+ # 2.2. The Steerable CNN
156
+
157
+ The steerable CNN, illustrated in Figure 2, consists of a number of layers containing multiple steerable filters.
158
+
159
+ If the basis of each steerable filter contains $r$ filters, then a layer with $k$ steerable filters will contain $r \cdot k$ filters in total, grouped in $k$ groups of $r$ filters. The response maps of that layer for any angle $\theta$ can be obtained by convolution with all the $rk$ filters, followed by linearly combining the $kr$ responses corresponding to each group using the weight vector $\mathbf{w}(\theta)$ from Eq. (5).
160
+
161
+ # 2.3. Training the Steerable CNN
162
+
163
+ Suppose we are given $n$ training examples $(\mathbf{x}_i, y_i, \alpha_i), i = 1, \dots, n$ where $\mathbf{x}_i \in \mathbb{R}^{p^2}$ is the patch of size $p \times p$ either with center on the guidewire (a positive example) or at some distance from the guidewire (a negative), $y_i \in \{-1, 1\}$ is the label, and $\alpha_i \in [0, \pi)$ is the orientation. The orientation at the center location of each patch is obtained by a Spherical Quadrature Filter (SQF) [19]. The SQF is also used as a preprocessing step for detection, so the training examples are extracted only from locations with high SQF responses. This way the angle information $\alpha_i$ for each training patch has a reliable value. Alternatively, the steerable CNN can be applied for a number of discrete angles and the maximum response can be used as detection map, as illustrated in Figure 5.
164
+
165
+ Similar to section 2.1, the range $[0,\pi)$ is discretized (modulo $\pi$ ) into a number of equally spaced angle bins $b_{j} = [\theta_{j} - \frac{\pi}{2K},\theta_{j} + \frac{\pi}{2K})$ $j\in \{1,\dots,K\}$ , where $\theta_{j} = \frac{j\pi}{K}$ (in this paper we used $K = 30$ angle bins). Then the orientation angles $\alpha_{i}$ of the training examples are converted to angle bin indices $a_{i}\in \{1,\ldots ,K\}$ and the examples with the same angle index $j$ are collected into the set $S_{j} = \{(x_{i},y_{i},a_{i}),a_{i} = j\}$ . For simplicity, we assume that all angles are equally represented, so $|S_{j}| = |S_{k}|$ , $\forall j,k\in \{1,\dots,K\}$ .
166
+
167
+ Training is done using the Adam optimizer [16]. For each minibatch, an angle index $j \in \{1, \dots, K\}$ is chosen and only examples with $a_i = j$ are selected, so they have approximately the same angle $\theta_j$ , the center of the bin $b_j$ . In this case, the examples share the same weight vector $\mathbf{w}_j = \mathbf{w}(\theta_j)$ from Eq (5) and the network is equivalent to a CNN where each convolution layer is followed by a linear layer that takes each group of $k$ responses and combines them linearly with weights $\mathbf{w}_j$ . One epoch of the training is described in Algorithm 1 below. An example of the trained basis $B$ of the first layer in the rank 11 4-layer steerable CNN is shown in Figure 6.
168
+
169
+ # 2.4. Implementation Details
170
+
171
+ CNN architecture. The Steerable CNN for this task consists of 4 steerable convolutional layers. The third steerable convolutional layer is followed by ReLU activation, and the
172
+
173
+ ![](images/051f55beedfb61df6d6edcdb473abac912bda1dca8396bc809688286608289ec.jpg)
174
+ Figure 5. Examples of one frame Steerable CNN detection results: input image, response map for angle index $j = 5,10,15$ , and final detection result.
175
+
176
+ ![](images/a42defb6e8d1c725c0eab423d265cd8f9e62f99189d883350ab5ef3c0b739bd5.jpg)
177
+
178
+ ![](images/f9df8ac339fe3028a286f75fdeb6eb44848533db8b1ef04e5c6e77bdb34f9b62.jpg)
179
+
180
+ ![](images/4f63c04f4d829d0b3a70b2dee438b6d795e9be123ac726d8d92a1f4c63a90200.jpg)
181
+
182
+ ![](images/5890591c88082fd430f03536203f3857f2d9268edf732886515358bdbb9f5da5.jpg)
183
+
184
+ Algorithm 1 One epoch of Steerable CNN Training
185
+ Input: Training patches $\{(\mathbf{x}_i,y_i,a_i)\}_{i = 1}^N$ , minibatch size m
186
+ Output: Trained steerable CNN.
187
+ 1: Set $N^{batch} = \lfloor |S_j| / m\rfloor$
188
+ 2: for $\mathrm{j} = 1$ to $K$ do
189
+ 3: Shuffle the set $S_{j}$
190
+ 4: end for
191
+ 5: for $\mathtt{b} = 1$ to $N^{batch}$ do
192
+ 6: for $\mathrm{j} = 1$ to $K$ do
193
+ 7: Set the steerable CNN angle $\theta = \alpha_{j}$ , so $\mathbf{w}(\theta) =$ wj
194
+ 8: Use the b-th minibatch from $S_{j}$ to update the weights by backpropagation.
195
+ 9: end for
196
+ 0: end for
197
+
198
+ ![](images/aab68a735acfeacf1ca43112de40bf9d3b2260d6c6bf7500516b2aaa6f4d9f64.jpg)
199
+ Figure 6. Trained basis $B$ for the first layer of the rank 11 steerable CNN.
200
+
201
+ last one returns the response.
202
+
203
+ The steerable filters are of size $7 \times 7$ , with their basis containing $r = 7$ filters or $r = 11$ filters. The first layer has
204
+
205
+ 10 steerable filters (thus the layer has 70 or 110 total filters), the second and the third one have 20 steerable filters and the last one has 1 steerable filter. The receptive field of the SCNN is of size $25 \times 25$ .
206
+
207
+ We also implemented a Fully Convolutional Network (FCNN) for comparison. The network consists of 4 convolutional layers, the third one is followed by ReLU, and the last convolutional layer returns a guidewire/non-guidewire response.
208
+
209
+ The first convolutional layer for a $25 \times 25$ receptive field of size contains 16 filters size $7 \times 7$ , the next two convolutional layers contain $327 \times 7$ filters, and the last convolutional layer contains one $7 \times 7$ filter.
210
+
211
+ For both the FCNN and the steerable CNN we used the Pytorch[21] Soft Margin Loss
212
+
213
+ $$
214
+ \ell (u, y) = \frac {1}{m} \sum_ {i} \log \left(1 + \exp \left(- y _ {i} u _ {i}\right)\right) \tag {12}
215
+ $$
216
+
217
+ to guide the training, where $m$ is the minibatch size.
218
+
219
+ We also used the Focal loss [18] in Eq 8, since it can deal with the class imbalance.
220
+
221
+ Training details. The weights of convolutional layers were initialized from the normal distribution with standard deviation 0.01. For the Steerable CNN of rank 7 and rank 11, we started with a learning rate of $3 \cdot 10^{-6}$ and a mini-batch of 32. For training the FCNN, we started with learning rate $10^{-5}$ and mini-batch 32. After every 50 epochs the learning rate was multiplied by 0.8 and the minibatch was doubled. The training was done for a total of 300 epochs.
222
+
223
+ # 3. Experiments
224
+
225
+ Dataset. The evaluation results are conducted on 75 fluoroscopic sequences obtained during coronary angioplasty intervention. The sequences contain a total of 826 frames of various sizes and aspect ratios in the range [512, 1024] × [512, 960]. In the 75 fluoroscopic sequences, 39 sequences are used for training, with 424 frames in total, and the remaining 36 sequences with 402 frames are used for testing. The guidewire annotations of each frame were obtained using B-splines. An examples of B-spline annotation is shown in Figure 7.
226
+
227
+ SQF NMS Alignment In [17], the authors observed that the guidewire annotation is imprecise because the wire is
228
+
229
+ ![](images/be42ab604b436ab85aa31137fd567a279c7448646ab7cd240031015d5584baa9.jpg)
230
+ Figure 7. Example of input frame (left), and its B-spline annotation (right).
231
+
232
+ ![](images/558d23a0ca41774d3723209bc6c432ebde9149fd9db26d999372c24ca3208ec2.jpg)
233
+
234
+ so thin and barely visible. For that reason we decided to use the Cauchy SQF filter followed by non-maximum suppression in the style of the Canny edge detection [6] as a preprocessing step.
235
+
236
+ Training examples. The size of the training patches are of size $25 \times 25$ for both the positive and negative examples.
237
+
238
+ For the training set without SQF NMS alignment we extracted positive patches centered on the guidewire, and negative patches at a distance between 8 and 30 pixels from the guidewire, subsampled to $5\%$ .
239
+
240
+ The SQF NMS aligned training examples were extracted from locations that were detected by the SQF with NMS described above. The positives patches were centered at distance at most 2 from the guidewire annotation and the negatives at distance at least 5, subsampled to $5\%$ . The training set without SQF NMS alignment has 279,000 positives and 578,000 negatives. The training set with SQF NMS alignment has 193,000 positives and 535,000 negatives.
241
+
242
+ # 3.1. Angle estimation Experiments
243
+
244
+ In a first experiment, we evaluate the accuracy of different methods in estimating the guidewire angle. First, we show in Figure 8 the average responses for different methods on positive patches with true angle 60 degrees. We see that all methods have a peak at 60 degrees, and some other smaller peaks.
245
+
246
+ The evaluation of the Frangi filter, Cauchy SQF, Trained steerable filters of ranks 5-11 trained with different losses and the rank 11 steerable CNN on the training and test positive patches is shown in Table 1. We see that the trained steerable filters have better accuracy than the predefined steerable filters. Also, the steerable filters trained with NMS-aligned patches have a much better accuracy than those trained on non-NMS aligned patches.
247
+
248
+ # 3.2. Guidewire Detection Experiments
249
+
250
+ We present an evaluation of the pixelwise guidewire detection for both filter-based methods and learning based methods. As filter-based approaches we evaluated the popular Frangi Filter [12], as well as the Spherical Quadrature
251
+
252
+ ![](images/efca51bde2103c77cf551d95ef6f5220b862f3eee504c5b1e600bcd32c8565ee.jpg)
253
+ Figure 8. Average responses for test patches with angle $60^{\circ}$ .
254
+
255
+ <table><tr><td>Method</td><td>Angle Train</td><td>Error Test</td></tr><tr><td>Frangi filter [12]</td><td>13.16</td><td>13.69</td></tr><tr><td>SQF [19] Cauchy, f0 = 1/6, rk. 11</td><td>7.58</td><td>7.13</td></tr><tr><td>Steerable filter (6), rk. 5</td><td>8.89</td><td>9.72</td></tr><tr><td>Steerable filter (6), rk. 7</td><td>4.49</td><td>5.20</td></tr><tr><td>Steerable filter (6), rk. 9</td><td>4.85</td><td>5.69</td></tr><tr><td>Steerable filter (6), rk. 11</td><td>5.12</td><td>6.02</td></tr><tr><td>Steerable filter (6), rk. 11 w/NMS</td><td>2.14</td><td>2.42</td></tr><tr><td>Steerable filter (6) Focal[18], rk. 11</td><td>6.62</td><td>7.51</td></tr><tr><td>Steerable filter (6), Focal [18], rk. 11 w/NMS</td><td>2.63</td><td>2.78</td></tr><tr><td>Steerable CNN, rk. 11 w/NMS (Focal [18])</td><td>4.68</td><td>6.70</td></tr></table>
256
+
257
+ Table 1. Average angle estimation error (degrees) of different methods on ${25} \times {25}$ patches.
258
+
259
+ Filters (SQF) [19] with different types and ranks (dimension of the basis), and we show the performance of the best rank with different isometric filters. As learning based methods we compare the steerable CNN, the FCNN, and trained $25 \times 25$ steerable filters with the Lorenz loss[3] and Focal loss[18], which can be considered as using only the last layer of the steerable CNN, with a larger filter size. We also implemented [8] using about 100,000 oriented Haar features and PBT [24], and trained it on our training set without SQF NMS alignment.
260
+
261
+ The guidewire detection examples are shown in Figures 9 (one frame from the train set) and 10 (one frame from the test set). A threshold was chosen to obtain the results with an average detection rate of $90\%$ from the response map. Note that the input image shown in Figure 10 is noisier than the one from Figure 9.
262
+
263
+ The detection performance was evaluated on the training and test sets. The detected guidewire pixels were those that had a corresponding response above the detection threshold at a distance of at most 2 pixels. A response above the detection threshold was considered a false positive if it
264
+
265
+ ![](images/d5f1e0150e2affb9f6e0f68b35b52327fb6b35d222f761f8f6a75ec4c8f5f636.jpg)
266
+
267
+ ![](images/66ddfbb577b15e0c0c00eded68860770c58a276cd60dde5d418b05daae3b96eb.jpg)
268
+
269
+ ![](images/c5ff25e04304947212397724726287f732eedfa85f410bc3c95291120d6c4dd8.jpg)
270
+
271
+ ![](images/fac2847a14658e6389d4a792c8952aa6898c95829ac2b6784c325d56bcc6ebec.jpg)
272
+
273
+ ![](images/131fa021c1dd76a486eb9194302fc65ebd20ca781d2cffbeab78e55fa94be9eb.jpg)
274
+ Figure 9. Guidewire detection training examples. First row: input image, Frangi filter [12], Cauchy SQF [19] of rank 11, trained Steerable filters(Focal loss[18] w/NMS) rank 11. Second row: PBT with Haar features[2, 20, 26, 8], FCNN w/NMS-aligned training examples, Steerable CNN of rank 11 w/o NMS-aligned training examples, Steerable CNN of rank 11(Focal loss[18]).
275
+
276
+ ![](images/c0d82b39dbdad512b62f05c1d7fdd5fee6a79b7e41c338522cec854b7bf4370d.jpg)
277
+
278
+ ![](images/b74991d49012f599bad4daf62319b23e6be7a7b9524e34fe9fed49426a6338f3.jpg)
279
+
280
+ ![](images/9d8266d3518bf2841923e1db1a510d43b837a29f66cee26f00c75241a4b362de.jpg)
281
+
282
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Det. rate</td><td colspan="2">FP rate</td><td rowspan="2"># of trained parameters</td></tr><tr><td>Train</td><td>Test</td><td>Train</td><td>Test</td></tr><tr><td>Frangi Filter [12]</td><td>90.44</td><td>90.44</td><td>26.99</td><td>24.19</td><td>-</td></tr><tr><td>SQF [19] Gauss deriv, f0=1/2, rk. 7</td><td>90.00</td><td>90.08</td><td>6.92</td><td>7.04</td><td>-</td></tr><tr><td>SQF [19] Cauchy, f0=1/6, rank 7</td><td>89.98</td><td>90.00</td><td>5.98</td><td>6.35</td><td>-</td></tr><tr><td>SQF [19] log-Gabor, f0=1/6, rk. 11</td><td>90.04</td><td>90.03</td><td>5.32</td><td>5.21</td><td>-</td></tr><tr><td>SQF [19] Cauchy, f0=1/6, rk. 11</td><td>90.13</td><td>90.02</td><td>5.12</td><td>5.87</td><td>-</td></tr><tr><td>SQF [19] Cauchy, f0=1/6, rk. 11 w/ SQF NMS</td><td>90.03</td><td>90.00</td><td>4.19</td><td>3.93</td><td>-</td></tr><tr><td>Trained equivariant SFCNN Filters [27] w/ SQF NMS</td><td>89.99</td><td>90.00</td><td>6.31</td><td>6.46</td><td>0.12k</td></tr><tr><td>Trained rank 11 steerable filter, FB loss (6) + Lorenz loss[3] w/ NMS</td><td>90.09</td><td>89.98</td><td>2.48</td><td>2.94</td><td>6.9k</td></tr><tr><td>Trained rank 11 steerable filter, FB loss (6) + Focal loss[18] w/ NMS</td><td>90.01</td><td>90.11</td><td>2.91</td><td>3.44</td><td>6.9k</td></tr><tr><td>PBT and Haar features[2, 20, 26, 8]</td><td>90.07</td><td>90.19</td><td>3.87</td><td>3.98</td><td>8.4k</td></tr><tr><td>2-layer Steerable CNN rank 11, FB loss (6) + Lorenz loss[3] w/ NMS</td><td>89.78</td><td>89.96</td><td>2.17</td><td>2.89</td><td>18.7k</td></tr><tr><td>FCNN with NMS-aligned training examples</td><td>90.07</td><td>90.08</td><td>1.43</td><td>2.65</td><td>78k</td></tr><tr><td>4-layer Steerable CNN rank 7 w/ SQF NMS (Soft Margin loss (12))</td><td>90.08</td><td>90.02</td><td>0.94</td><td>2.01</td><td>217k</td></tr><tr><td>4-layer Steerable CNN rank 11 w/ SQF NMS (Soft Margin loss (12))</td><td>90.05</td><td>90.05</td><td>0.78</td><td>1.90</td><td>341k</td></tr><tr><td>4-layer Steerable CNN rank 11 w/ SQF NMS (Focal loss [18])</td><td>90.18</td><td>90.10</td><td>0.76</td><td>1.82</td><td>341k</td></tr><tr><td>FCNN w/o NMS-aligned training examples</td><td>90.09</td><td>90.01</td><td>3.72</td><td>8.28</td><td>78k</td></tr><tr><td>4-layer Steerable CNN rank 7 w/o SQF NMS (Soft Margin loss (12))</td><td>89.96</td><td>90.01</td><td>3.34</td><td>6.69</td><td>217k</td></tr><tr><td>4-layer Steerable CNN rank 11 w/o SQF NMS (Soft Margin loss (12))</td><td>90.01</td><td>90.07</td><td>2.95</td><td>5.94</td><td>341k</td></tr><tr><td>4-layer Steerable CNN rank 11 w/o SQF NMS (Focal loss [18])</td><td>90.07</td><td>90.01</td><td>2.92</td><td>6.08</td><td>341k</td></tr></table>
283
+
284
+ Table 2. Evaluation of different guidewire detection approaches.
285
+
286
+ was at distance of at least 3 pixels from the guidewires and catheters.
287
+
288
+ In Table 2 are shown the average per-image detection rates and false positive rates for the different methods evaluated. The steerable CNN obtains the lowest false positive rate on both the training and test set. It outperforms all the other methods. Among the filter-based methods, the SQF with a Cauchy filter of rank 11 with NMS performs the
289
+
290
+ best, but it is outperformed by all the training based methods. The FCNN with NMS training examples has a very small training error but it does not generalize as well as the steerable CNN.
291
+
292
+ Ablation study. We also show in Table 2 the influence of training the FCNN with the NMS-based training examples vs examples extracted directly based on the annotation. We see that both training and test FP rate are lower using the
293
+
294
+ ![](images/ea2241ace4dee3db96653a8731aabcf40b84f5eddb43cf65d2d65c98a52def8c.jpg)
295
+ Figure 10. Guidewire detection test examples. First row: input image, Frangi filter [12], Cauchy SQF [19] of rank 11, trained Steerable filters(Focal loss[18] w/NMS) rank 11. Second row: PBT with Haar features[2, 20, 26, 8], FCNN w/NMS-aligned training examples, Steerable CNN of rank 11 w/o NMS-aligned training examples, Steerable CNN of rank 11(Focal loss[18]).
296
+
297
+ ![](images/fc5108efdc0ca7d2021ef0787d99597506e32d1b34346379f2c0d9e937001ce5.jpg)
298
+
299
+ # NMS-aligned examples.
300
+
301
+ To see whether the SQF are useful in screening the image and proposing the angle for the steerable CNN, we also evaluated in Table 2 the trained steerable CNN by directly applying it to the whole image and obtaining the maximum response from 30 discrete angles in the range $[0,\pi ]$ (Steerable CNN w/o SQF NMS). Again we see that the SQF-based screening is useful, reducing the test FP rate from 6.08 to 1.82.
302
+
303
+ # 4. Conclusion
304
+
305
+ In this paper, we introduced a simple steerable CNN that can be tuned using a parameter $\theta$ to be sensitive to objects aligned to any orientation $\theta$ , instead of being rotation invariant.
306
+
307
+ We presented the mathematical formulation of the trainable steerable filters and the steerable CNN, and how to train it using examples at any orientation, without rotating them for alignment. As an application, we used the steerable CNN to detect guidewire pixels in fluoroscopic images, where a regular CNN overfits because the wire is very thin and covers only a small percentage of the receptive field.
308
+
309
+ We reported the difficulties we encountered while training the steerable or the regular CNN due to the fact that the guidewire is thin and noisy, and imprecision in annotation makes the training more difficult. To address these issues, we explained how to obtain better aligned training patches using the Spherical Quadrature Filters [19] and non
310
+
311
+ maximal suppression.
312
+
313
+ Experiments reveal that the Steerable Convolutional Neural Network trained on SQF NMS-aligned data performed the best. We also observed that the learning based methods outperform the filter-based methods such as the Frangi filter [12] and the Spherical Quadrature Filters [19].
314
+
315
+ For the future study, we plan to employ the steerable CNN for automatic guidewire localization and for retina vessel detection. The guidewire localization is the higher-level process of finding in the image the entire guidewire as a curve. It will use the guidewire detection response as a data term to guide the search in the high dimensional space of smooth curves for the most likely guidewire location. The retina vessel detection problem has the added challenge that the vessel can have a wide range of widths, and a classifier should accommodate them in some way. It would be interesting to see whether a steerable CNN could be designed to be steered in both the orientation and the width of the vessel that needs to be detected.
316
+
317
+ # References
318
+
319
+ [1] Shirley AM Baert, Wiro J Niessen, Erik HW Meijering, Alejandro F Frangi, and Max A Viergever. Guide wire tracking during endovascular interventions. In MICCAI, pages 727-734, 2000. 2
320
+ [2] Adrian Barbu, Vassilis Athitsos, Bogdan Georgescu, Stefan Boehm, Peter Durlak, and Dorin Comaniciu. Hierarchical learning of curves application to guidewire localization in fluoroscopy. In CVPR, pages 1-8, 2007. 2, 7, 8
321
+
322
+ [3] Adrian Barbu, Yiyuan She, Liangjing Ding, and Gary Gramajo. Feature selection with annealing for computer vision and big data learning. IEEE Trans. on PAMI, 39(2):272-286, 2017. 4, 6, 7
323
+ [4] Vincent Bismuth, Régis Vaillant, Hugues Talbot, and Laurent Najman. Curvilinear structure enhancement with the polygonal path image-application to guide-wire segmentation in x-ray fluoroscopy. In MICCAI, pages 9-16, 2012. 2
324
+ [5] Alexander Brost, Andreas Wimmer, Rui Liao, Joachim Hornegger, and Norbert Strobel. Catheter tracking: Filter-based vs. learning-based. In DAGM-Symposium, pages 293-302, 2010. 2
325
+ [6] John Canny. A computational approach to edge detection. IEEE Transactions on pattern analysis and machine intelligence, (6):679-698, 1986. 6
326
+ [7] Bor-Jeng Chen, Ziyan Wu, Shanhui Sun, Dong Zhang, and Terrence Chen. Guidewire tracking using a novel sequential segment optimization method in interventional x-ray videos. In ISBI, pages 103-106, 2016. 2
327
+ [8] Terrence Chen, Gareth Funka-Lea, and Dorin Comaniciu. Robust and fast contrast inflow detection for 2d x-ray fluoroscopy. MICCAI, pages 243-250, 2011. 2, 6, 7, 8
328
+ [9] Erkang Cheng, Yu Pang, Ying Zhu, Jingyi Yu, and Haibin Ling. Curvilinear structure tracking by low rank tensor approximation with model propagation. In CVPR, pages 3057-3064, 2014. 2
329
+ [10] Taco Cohen and Max Welling. Group equivariant convolutional networks. In International conference on machine learning, pages 2990-2999, 2016. 3
330
+ [11] Taco S Cohen and Max Welling. Steerable cnns. ICLR, 2017. 2
331
+ [12] Alejandro F Frangi, Hiro J Niessen, Koen L Vincken, and Max A Viergever. Multiscale vessel enhancement filtering. In MICCAI, pages 130-137, 1998. 2, 6, 7, 8
332
+ [13] William T Freeman, Edward H Adelson, et al. The design and use of steerable filters. IEEE Trans. on PAMI, 13(9):891-906, 1991. 2, 3
333
+ [14] Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pages 44–51. Springer, 2011. 1, 3
334
+ [15] Nicolas Honnorat, Régis Vaillant, and Nikos Paragios. Guide-wire extraction through perceptual organization of local segments in fluoroscopic images. MICCAI, pages 440-448, 2010. 2
335
+ [16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 4
336
+ [17] Donghang Li and Adrian Barbu. Training a cnn for guidewire detection. In 2019 IEEE International Conference on Image Processing (ICIP), pages 2214-2218. IEEE, 2019. 2, 5
337
+ [18] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980-2988, 2017. 4, 5, 6, 7, 8
338
+
339
+ [19] Ross Marchant and Paul Jackway. Feature detection from the maximal response to a spherical quadrature filter set. In DICTA, pages 1-8. IEEE, 2012. 2, 4, 6, 7, 8
340
+ [20] Philippe Mazouer, Terrence Chen, Ying Zhu, Peng Wang, Peter Durlak, Jean-Philippe Thiran, and Dorin Comaniciu. User-constrained guidewire localization in fluoroscopy. In SPIE Med. Imag., volume 7259, pages 72591K-72591K, 2009. 2, 7, 8
341
+ [21] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In NIPS-W, 2017. 5
342
+ [22] Olivier Pauly, Hauke Heibel, and Nassir Navab. A machine learning approach for deformable guide-wire tracking in fluoroscopic sequences. MICCAI, pages 343-350, 2010. 2
343
+ [23] Sara Sabour, Nicholas Frosst, and Geoffrey E Hinton. Dynamic routing between capsules. In Advances in neural information processing systems, pages 3856-3866, 2017. 3
344
+ [24] Zhuowen Tu. Probabilistic boosting-tree: Learning discriminative models for classification, recognition, and clustering. In ICCV, volume 2, pages 1589-1596. IEEE, 2005. 2, 6
345
+ [25] Li Wang, Xiao-Liang Xie, Gui-Bin Bian, Zeng-Guang Hou, Xiao-Ran Cheng, and Pusit Prasong. Guide-wire detection using region proposal network for x-ray image-guided navigation. In IJCNN, pages 3169-3175. IEEE, 2017. 2
346
+ [26] Peng Wang, Terrence Chen, Ying Zhu, Wei Zhang, S Kevin Zhou, and Dorin Comaniciu. Robust guidewire tracking in fluoroscopy. In CVPR, pages 691-698, 2009. 2, 7, 8
347
+ [27] Maurice Weiler, Fred A Hamprecht, and Martin Storath. Learning steerable filters for rotation equivariant cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 849-858, 2018. 2, 7
trainingasteerablecnnforguidewiredetection/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:752aca7ad6d61209b81cbf719bf570015342af8a0bd059cf5ec3bb20db1293bd
3
+ size 887029
trainingasteerablecnnforguidewiredetection/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13e159a4e78674429b6d9db5312b00d0441a464fd4427695ab54b44dd799cde3
3
+ size 385391
trainingermanytestintheusamaking3dobjectdetectorsgeneralize/01178305-f7b9-4098-b019-8d478d55c8a5_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63018bdabb0092024beda310dc51bda4251b219742904efcacbb80b456b21dad
3
+ size 88718
trainingermanytestintheusamaking3dobjectdetectorsgeneralize/01178305-f7b9-4098-b019-8d478d55c8a5_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ab5ceecb910e4d3749f3b26a9c66df1dd9862c856683be933bed71cdd1e8208
3
+ size 110688
trainingermanytestintheusamaking3dobjectdetectorsgeneralize/01178305-f7b9-4098-b019-8d478d55c8a5_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a61fffa4633a4902d993b8b266b1bf91dbdba6af2341a19a462829022791018f
3
+ size 2912721
trainingermanytestintheusamaking3dobjectdetectorsgeneralize/full.md ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Train in Germany, Test in The USA: Making 3D Object Detectors Generalize
2
+
3
+ Yan Wang*1
4
+
5
+ Bharath Hariharan
6
+
7
+ $^{1}$ Cornell University
8
+
9
+ Xiangyu Chen*1
10
+
11
+ Mark Campbell
12
+
13
+ 2Scale AI
14
+
15
+ Chen\*1
16
+
17
+ bell
18
+
19
+ 3Columb
20
+
21
+ Yurong You
22
+
23
+ Kilian Q. Weinberger<sup>1</sup>
24
+
25
+ University
26
+
27
+ Li Erran $\mathbf{L}\mathbf{i}^{2,3}$
28
+
29
+ $\mathbf{er}^{1}$ Wei-Lun Chao
30
+
31
+ 4The Ohio State University
32
+
33
+ {yw763, xc429, yy785, bh497, mc288, kqw4}@cornell.edu erranlli@gmail.com chao.209@osu.edu
34
+
35
+ # Abstract
36
+
37
+ In the domain of autonomous driving, deep learning has substantially improved the 3D object detection accuracy for LiDAR and stereo camera data alike. While deep networks are great at generalization, they are also notorious to overfit to all kinds of spurious artifacts, such as brightness, car sizes and models, that may appear consistently throughout the data. In fact, most datasets for autonomous driving are collected within a narrow subset of cities within one country, typically under similar weather conditions. In this paper we consider the task of adapting 3D object detectors from one dataset to another. We observe that naively, this appears to be a very challenging task, resulting in drastic drops in accuracy levels. We provide extensive experiments to investigate the true adaptation challenges and arrive at a surprising conclusion: the primary adaptation hurdle to overcome are differences in car sizes across geographic areas. A simple correction based on the average car size yields a strong correction of the adaptation gap. Our proposed method is simple and easily incorporated into most 3D object detection frameworks. It provides a first baseline for 3D object detection adaptation across countries, and gives hope that the underlying problem may be more within grasp than one may have hoped to believe. Our code is available at https://github.com/cxy1997/3D_adapt_auto-driving.
38
+
39
+ # 1. Introduction
40
+
41
+ Autonomous cars need to accurately detect and localize vehicles and pedestrians in 3D to drive safely. As such, the past few years have seen a flurry of interest on the problem of 3D object detection, resulting in large gains in accuracy on the KITTI benchmark [11, 14, 15, 16, 18, 19, 28, 29, 30, 31, 32, 33, 34, 37, 40, 41, 52, 53, 54, 51, 61, 62, 63, 64, 65, 68, 69]. However, in the excitement this has garnered, it has often been forgotten that KITTI is a fairly small ( $\sim$ 15K
42
+
43
+ ![](images/0e47a93f7024059e6d3c8b87e9669cccb144c25807f495b7db68bf023c715a77.jpg)
44
+ T
45
+
46
+ ![](images/72734d0e8a588f8aa521a71992245839eeb1c1e5ed214ec2f6bb66e391c24c96.jpg)
47
+
48
+ ![](images/507f529d5a6b7cb2427c1cf5df05e81f37f3c4698532a0921e1a8f4e96d7d468.jpg)
49
+
50
+ ![](images/04301e2fb057a64e2fd28a2b599b47e23fea39b76ad001dbcd944529fe63b445.jpg)
51
+
52
+ ![](images/ef25f674b8d351f4a34181330cb993f4f12606c586cf622fd5a3317b47dc5641.jpg)
53
+ Figure 1: Datasets. We show frontal view images (left) and the corresponding LiDAR signals (right) from the bird's-eye view for five datasets: KITTI [18, 19], Argoverse [7], nuScenes [4], Lyft [25], and Waymo [3]. These datasets not only capture scenes at different geo-locations, but also use different LiDAR models, making generalizing 3D object detectors a challenging problem.
54
+
55
+ ![](images/7e03e85cab8a484c479911bbb4bffb3de037adffa41a2355ed479d10c44b61e4.jpg)
56
+
57
+ ![](images/49317cce431c563cc9a0af4b1cc7a6f452b01b9911dd897a8cfef9b671864d71.jpg)
58
+
59
+ ![](images/a6ca34db966a98b45561aa2ef9071553774af307b5e63f22802746e452aacc4c.jpg)
60
+
61
+ ![](images/56f4c6bf5fadf123f4f332f6d0a1b3f51186bffcf799a274e1ccdeb8a2177204.jpg)
62
+
63
+ ![](images/c18ac02f22691ffb5f0653a2ff1105128b54d2773030f2ef7697dabd10d82009.jpg)
64
+
65
+ scenes) object detection dataset obtained from a narrow domain: it was collected using a fixed sensing apparatus by driving through a mid-sized German city and the German countryside, in clear weather, during the day. Thus, the 3D object detection algorithms trained on KITTI may have picked up all sorts of biases: they may expect the road to be visible or the sky to be blue. They may identify only certain brands of cars, and might have even over-fit to the idiosyncrasies of German drivers and pedestrians. Carrying
66
+
67
+ these biases over to a new environment in a different part of the world might cause the object detector to miss cars or pedestrians, with devastating consequences [1].
68
+
69
+ It is, therefore, crucial that we (a) understand the biases that our 3D object detectors are picking up before we deploy them in safety-critical applications, and (b) identify techniques to mitigate these biases. Our goal in this paper is to address both of these challenges.
70
+
71
+ Our first goal is to understand if any biases have crept into current 3D object detectors. For this, we leverage multiple recently released datasets with similar types of sensors to KITTI [18, 19] (cameras and LiDAR) and with 3D annotations, each of them collected in different cities [3, 4, 7, 25] (see Figure 1 for an illustration). Interestingly, they are also recorded with different sensor configurations (i.e., the LiDAR and camera models as well as their mounting arrangements can be different). We first train two representative LiDAR-based 3D object detectors (PIXOR [63] and POINTRCNN [52]) on each dataset and test on the others. We find that when tested on a different dataset, 3D object detectors fail dramatically: a detector trained on KITTI performs 36 percent worse on Waymo [3] compared to the one trained on Waymo. This indicates that the detector has indeed over-fitted to its training domain.
72
+
73
+ What domain differences are causing such catastrophic failure? One can think of many possibilities. There may be differences in low-level statistics of the images. The Li-DAR sensors might have more or fewer beams, and may be oriented differently. But the differences can also be in the physical world being sensed. There may be differences in the number of vehicles, their orientation, and also their sizes and shapes. We present an extensive analysis of these potential biases that points to one major issue — statistical differences in the sizes and shapes of cars.
74
+
75
+ In hindsight, this difference makes sense. The best selling car in the USA is a 5-meter long truck (Ford F-series) [2], while the best selling car in Germany is a 4-meter long compact car (Volkswagen Golf<sup>1</sup>). Because of such differences, cars in KITTI tend to be smaller than cars in other datasets, a bias that 3D object detectors happily learn. As a counter to this bias, we propose an extremely simple approach that leverages aggregate statistics of car sizes (i.e., mean) to correct for this bias, in both the output annotations and the input signals. Such statistics might be acquired from the department of motor vehicles, or car sales data. This single correction results in a massive improvement in cross-dataset performance, raising the 3D easy part average precision by 41.4 points and results in a much more robust 3D object detector.
76
+
77
+ Taken together, our contributions are two-fold:
78
+
79
+ - We present an extensive evaluation of the domain dif
80
+
81
+ ferences between self-driving car environments and how they impact 3D detector performance. Our results suggest a single core issue: size statistics of cars in different locations.
82
+
83
+ - We present a simple and effective approach to mitigate this issue by using easily obtainable aggregate statistics of car sizes, and show dramatic improvements in cross-dataset performance as a result.
84
+
85
+ Based on our results, we recommend that vision researchers and self-driving car companies alike be cognizant of such domain differences for large-scale deployment of 3D detection systems.
86
+
87
+ # 2. Related Work
88
+
89
+ We review 3D object detection for autonomous driving, and domain adaptation for 2D segmentation and detection in street scenes.
90
+
91
+ LiDAR-based detection. Most existing techniques of 3D object detection use LiDAR (sometimes with images) as the input signal, which provides accurate 3D points of the surrounding environment. The main challenge is thus on properly encoding the points so as to predict point labels or draw bounding boxes in 3D to locate objects. Frustum PointNet [41] applies PointNet [42, 43] to each frustum proposal from a 2D object detector; POINTRCNN [52] learns 3D proposals from PointNet++ features [43]. MV3D [11] projects LiDAR points into frontal and bird's-eye views (BEV) to obtain multi-view features; FIXOR [63] and LaserNet [37] show that properly encoding features in one view is sufficient to localize objects. VoxelNet [69] and PointPillar [30] encode 3D points into voxels and extracts features by 3D convolutions and PointNet. UberATG-ContFuse [34] and UberATG-MMF [33] perform continuous convolutions [56] to fuse visual and LiDAR features.
92
+
93
+ Image-based detection. While providing accurate 3D points, LiDAR sensors are notoriously expensive. A 64-line LiDAR (e.g., the one used in KITTI [19, 18]) costs around \( \\(75,000 \) (US dollars). As an alternative, researchers have also been investigating purely image-based 3D detection. Existing algorithms are largely built upon 2D object detection [45, 20, 35], imposing extra geometric constraints [6, 8, 38, 59] to create 3D proposals. [9, 10, 39, 60] apply stereo-based depth estimation to obtain 3D coordinates of each pixel. These 3D coordinates are either entered as additional input channels into a 2D detection pipeline, or used to extract hand-crafted features. The recently proposed pseudo-LiDAR [58, 44, 66] combined stereo-based depth estimation with LiDAR-based detection, converting the depth map into a 3D point cloud and processing it exactly as LiDAR signal. The pseudo-LiDAR framework has largely improved image-based detection, yet a notable gap is still remained compared to LiDAR. In this work, we
94
+
95
+ therefore focus on LiDAR-based object detectors.
96
+
97
+ Domain adaptation. (Unsupervised) domain adaptation has also been studied in autonomous driving scenes, but mainly for the tasks of 2D semantic segmentation [13, 22, 24, 36, 48, 49, 50, 55, 67, 73] and 2D object detection [5, 12, 21, 23, 26, 27, 46, 47, 57, 72, 71]. The common setting is to adapt a model trained from one labeled source domain (e.g., synthetic images) to an unlabeled target domain (e.g., real images). The domain difference is mostly from the input signal (e.g., image styles), and many algorithms have built upon adversarial feature matching and style transfer [17, 22, 70] to minimize the domain gap in the input or feature space. Our work contrasts these methods by studying 3D object detection. We found that, the output space (e.g., car sizes) can also contribute to the domain gap; properly leveraging the statistics of the target domain can largely improve the model's generalization ability.
98
+
99
+ # 3. Datasets
100
+
101
+ We review KITTI [18, 19] and introduce the other four datasets used in our experiments: Argoverse [7], Lyft [25], nuScenes [4], and Waymo [3]. We focus on data related to 3D object detection. All the datasets provide ground-truth 3D bounding box labels for several kinds of objects. We summarize the five datasets in detail in Table 1.
102
+
103
+ KITTI. The KITTI object detection benchmark [18, 19] contains 7,481 (left) images for training and 7,518 images for testing. The training set is further separated into 3,712 training and 3,769 validation images as suggested by [9]. All the scenes are pictured around Karlsruhe, Germany in clear weather and day time. For each (left) image, KITTI provides its corresponding 64-beam Velodyne LiDAR point cloud and the right stereo image.
104
+
105
+ Argoverse. The Argoverse dataset [7] is collected around Miami and Pittsburgh, USA in multiple weathers and during different times of a day. It provides images from stereo cameras and another seven cameras that cover $360^{\circ}$ information. It also provides 64-beam LiDAR point clouds captured by two 32-beam Velodyne LiDAR sensors stacked vertically. We extracted synchronized frontal-view images and corresponding point clouds from the original Argoverse dataset, with a timestamp tolerance of $51\mathrm{ms}$ between LiDAR sweeps and images. The resulting dataset we use contains 13, 122 images for training, 5, 015 images for validation, 4, 168 images for testing.
106
+
107
+ nuScenes. The nuScenes dataset [4] contains 28, 130 training and 6, 019 validation images. We treat the validation images as test images, and re-split and subsample the 28, 130 training images into 11, 040 training and 3, 026 validation images. The scenes are pictured around Boston, USA and Singapore in multiple weathers and during different times of a day. For each image, nuScenes provides the point cloud captured by a 32-beam roof LiDAR. It also provides images
108
+
109
+ from another five cameras that cover $360^{\circ}$ information.
110
+
111
+ Lyft. The Lyft Level 5 dataset [25] contains 18,634 frontal-view images and we separate them into 12,599 images for training, 3,024 images for validation, 3,011 images for testing. The scenes are pictured around Palo Auto, USA in clear weathers and during day time. For each image, Lyft provides the point cloud captured by a 40 (or 64)-beam roof LiDAR and two 40-beam bumper LiDAR sensors. It also provides images from another five cameras that cover $360^{\circ}$ information and one long-focal-length camera.
112
+
113
+ Waymo. The Waymo dataset [3] contains 122,000 training, 30,407 validation, and 40,077 test images and we subsample them into 12,000, 3,000, and 3,000, respectively. The scenes are pictured at Phoenix, Mountain View, and San Francisco in multiple weathers and at multiple times of a day. For each image, Waymo provides the combined point cloud captured by five LiDAR sensors (one on the roof). It also provides images from another four cameras.
114
+
115
+ Data format. A non-negligible difficulty in conducting cross-dataset analysis lies in the differences of data formats. Considering that most existing algorithms are developed using the KITTI format, we transfer all the other four datasets into its format. See the Supplementary Material for details.
116
+
117
+ # 4. Experiments and Analysis
118
+
119
+ # 4.1. Setup
120
+
121
+ 3D object detection algorithms. We apply two LiDAR-based models POINTRCNN [52] and FIXOR [63] to detect objects in 3D by outputting the surrounding 3D bounding boxes. FIXOR represents LiDAR point clouds by 3D tensors after voxelization, while POINTRCNN applies PointNet++ [43] to extract point-wise features. Both methods do not rely on images. We train both models on the five 3D object detection datasets. POINTRCNN has two subnetworks, the region proposal network (RPN) and region-CNN (RCNN), that are trained separately. The RPN is trained first, for 200 epochs with batch size 16 and learning rate 0.02. The RCNN is trained for 70 epochs with batch size 4 and learning rate 0.02. We use online ground truth boxes augmentation, which copies object boxes and inside points from one scene to the same locations in another scene. For FIXOR, we train it with batch size 4 and initial learning rate $5 \times 10^{-5}$ , which will be decreased 10 times on the 50th and 80th epoch. We do randomly horizontal flip and rotate during training.
122
+
123
+ Metric. We follow KITTI to evaluate object detection in 3D and the bird's-eye view (BEV). We focus on the Car category, which has been the main focus in existing works. We report average precision (AP) with the IoU thresholds at 0.7: a car is correctly detected if the intersection over union (IoU) with the predicted 3D box is larger than 0.7. We denote AP for the 3D and BEV tasks by $\mathrm{AP}_{\mathrm{3D}}$ and $\mathrm{AP}_{\mathrm{BEV}}$ .
124
+
125
+ Table 1: Dataset overview. We focus on their properties related to frontal-view images, LiDAR, and 3D object detection. The dataset size refers to the number of synchronized (image, LiDAR) pairs. For Waymo and nuScenes, we subsample the data. See text for details.
126
+
127
+ <table><tr><td>Dataset</td><td>Size</td><td>LiDAR Type</td><td>Beam Angles</td><td>Object Types</td><td>Rainy Weather</td><td>Night Time</td></tr><tr><td>KITTI [18, 19]</td><td>14,999</td><td>1 × 64-beam</td><td>[−24°, 4°]</td><td>8</td><td>No</td><td>No</td></tr><tr><td>Argoverse [7]</td><td>22,305</td><td>2 × 32-beam</td><td>[−26°, 25°]</td><td>17</td><td>No</td><td>Yes</td></tr><tr><td>nuScenes [4]</td><td>34,149</td><td>1 × 32-beam</td><td>[−16°, 11°]</td><td>23</td><td>Yes</td><td>Yes</td></tr><tr><td>Lyft [25]</td><td>18,634</td><td>1 × 40 or 64 + 2 × 40-beam</td><td>[−29°, 5°]</td><td>9</td><td>No</td><td>No</td></tr><tr><td>Waymo [3]</td><td>192,484</td><td>1 × 64 + 4 × 200-beam</td><td>[−18°, 2°]</td><td>4</td><td>Yes</td><td>Yes</td></tr></table>
128
+
129
+ KITTI evaluates three cases: Easy, Moderate, and Hard. Specifically, it labels each ground truth box with four levels (0 to 3) of occlusion / truncation. The Easy case contains level-0 cars whose bounding box heights in 2D are larger than 40 pixels; the Moderate case contains level-\{0, 1\} cars whose bounding box heights in 2D are larger than 25 pixels; the Hard case contains level-\{0, 1, 2\} cars whose bounding box heights in 2D are larger than 25 pixels. The heights are meant to separate cars by their depths with respect to the observing car. Nevertheless, since different datasets have different image resolutions, such criteria might not be aligned across datasets. We thus replace the constraints of "larger than 40, 25 pixels" by "within 30, 70 meters". We further evaluate cars of level-\{0, 1, 2\} within three depth ranges: $0 - 30$ , $30 - 50$ , and $50 - 70$ meters, following [63].
130
+
131
+ We mainly report and discuss results of POINTRCNN on the validation set in the main paper. We report results of pixOR in the Supplementary Material.
132
+
133
+ # 4.2. Results within each dataset
134
+
135
+ We first evaluate if existing 3D object detection models that have shown promising results on the KITTI benchmark can also be learned and perform well on newly released datasets. We summarize the results in Table 2: the rows are the source domains that a detector is trained on, and the columns are the target domains the detector is being tested on. The **bold** font indicates the within domain performance (i.e., training and testing using the same dataset).
136
+
137
+ We see that POINTCRCNN works fairly well on the KITTI, Lyft, and Waymo datasets, for all the easy, moderate, and hard cases. The results get slightly worse on Argoverse, and then nuScenes. We hypothesize that this may result from the relatively poor LiDAR input: nuScenes has only 32 beams; while Argoverse has 64 beams, every two of them are very close due to the configurations that the signal is captured by two stacked LiDAR sensors.
138
+
139
+ We further analyze at different ranges in Table 2 (bottom). We see a drastic drop on Argoverse and nuScenes for the far-away ranges, which supports our hypothesis: with fewer beams, the far-away objects can only be rendered by very sparse LiDAR points and thus are hard to detect. We also see poor accuracies at $50 - 70$ meters on KITTI, which may result from very few labeled training instances there.
140
+
141
+ Overall, both 3D object detection algorithms work fairly
142
+
143
+ well when being trained and tested using the same dataset, as long as the input sensor signal is of high quality and the labeled instances are sufficient.
144
+
145
+ # 4.3. Results across datasets
146
+
147
+ We further experiment with generalizing a trained detector across datasets. We indicate the best result per column and per setting by red fonts and the worst by blue fonts.
148
+
149
+ We see a clear trend of performance drop. For instance, the POINTRCNN model trained on KITTI achieves only $45.2\% \mathrm{AP}_{\mathrm{BEV}}$ (Moderate) on Waymo, lower than the model trained on Waymo by over $40\%$ . The gap becomes even larger in $\mathrm{AP}_{3\mathrm{D}}$ : the same KITTI model attains only $11.9\% \mathrm{AP}_{3\mathrm{D}}$ , while the Waymo model attains $85.3\%$ . We hypothesize that the car height is hard to get right. In terms of the target (test) domain, Lyft and Waymo suffer the least drop if the detector is trained from the other datasets, followed by Argoverse. KITTI and nuScenes suffer the most drop, which might result from their different geo-locations (one is from Germany and the other contains data from Singapore). The nuScenes dataset might also suffer from its relatively fewer beams in the input and other models may therefore not be able to apply. By considering different ranges, we also find that the deeper the range is, the bigger the drop is.
150
+
151
+ In terms of the source (training) domain, we see that the detector trained on KITTI seems to be the worst to transfer to others. In every $5 \times 1$ block that is evaluated on a single dataset in a single setting, the KITTI model is mostly outperformed by others. Surprisingly, nuScenes model can perform fairly well when being tested on the other datasets: the results are even higher than on its own. We thus have two arguments: The quality of sensors is more important in testing than in training; KITTI data (e.g., car styles, time, and weather) might be too limited or different from others and therefore cannot transfer well to others. In the following subsections, we provide detailed analysis.
152
+
153
+ # 4.4. Analysis of domain idiosyncrasies
154
+
155
+ Table 2 and subsection 4.3 reveal drastic accuracy drops in generalizing 3D object detectors across datasets (domains). We hypothesize that there exist significant idiosyncrasies in each dataset. In particular, Figure 1 shows that the images and point clouds are quite different across datasets. One one hand, different datasets are collected by cars of dif
156
+
157
+ Table 2: 3D object detection across multiple datasets (evaluated on the validation sets). We report average precision (AP) of the Car category in bird's-eye view $(\mathrm{AP}_{\mathrm{BEV}})$ and 3D $(\mathrm{AP}_{\mathrm{3D}})$ at IoU = 0.7, using the POINTRCNN detector [52]. We report results at different difficulties (following the KITTI benchmark, but we replace the 40, 25, 25 pixel thresholds on 2D bounding boxes with 30, 70, 70 meters on object depths, for Easy, Moderate, and Hard cases, respectively) and different depth ranges (using the same truncation and occlusion thresholds as KITTI Hard case). The results show a significant performance drop in cross-dataset inference. We indicate the best generalization results per column and per setting by red fonts and the worst by blue fonts. We indicate in-domain results by bold fonts.
158
+
159
+ <table><tr><td>Setting</td><td>Source\Target</td><td>KITTI</td><td>Argoverse</td><td>nuScenes</td><td>Lyft</td><td>Waymo</td></tr><tr><td rowspan="5">Easy</td><td>KITTI</td><td>88.0 / 82.5</td><td>55.8 / 27.7</td><td>47.4 / 13.3</td><td>81.7 / 51.8</td><td>45.2 / 11.9</td></tr><tr><td>Argoverse</td><td>69.5 / 33.9</td><td>79.2 / 57.8</td><td>52.5 / 21.8</td><td>86.9 / 67.4</td><td>83.8 / 40.2</td></tr><tr><td>nuScenes</td><td>49.7 / 13.4</td><td>73.2 / 21.8</td><td>73.4 / 38.1</td><td>89.0 / 38.2</td><td>78.8 / 36.7</td></tr><tr><td>Lyft</td><td>74.3 / 39.4</td><td>77.1 / 45.8</td><td>63.5 / 23.9</td><td>90.2 / 87.3</td><td>87.0 / 64.7</td></tr><tr><td>Waymo</td><td>51.9 / 13.1</td><td>76.4 / 42.6</td><td>55.5 / 21.6</td><td>87.9 / 74.5</td><td>90.1 / 85.3</td></tr><tr><td rowspan="5">Moderate</td><td>KITTI</td><td>80.6 / 68.9</td><td>44.9 / 22.3</td><td>26.2 / 8.3</td><td>61.8 / 33.7</td><td>43.9 / 12.3</td></tr><tr><td>Argoverse</td><td>56.6 / 31.4</td><td>69.9 / 44.2</td><td>27.6 / 11.8</td><td>66.6 / 42.1</td><td>72.3 / 35.1</td></tr><tr><td>nuScenes</td><td>39.8 / 10.7</td><td>56.6 / 17.1</td><td>40.7 / 21.2</td><td>71.4 / 25.0</td><td>68.2 / 30.8</td></tr><tr><td>Lyft</td><td>61.1 / 34.3</td><td>62.5 / 35.3</td><td>33.6 / 12.3</td><td>83.7 / 65.5</td><td>77.6 / 53.2</td></tr><tr><td>Waymo</td><td>45.8 / 13.2</td><td>64.4 / 29.8</td><td>28.9 / 13.7</td><td>74.2 / 53.8</td><td>85.9 / 67.9</td></tr><tr><td rowspan="5">Hard</td><td>KITTI</td><td>81.9 / 66.7</td><td>42.5 / 22.2</td><td>24.9 / 8.8</td><td>57.4 / 34.2</td><td>41.5 / 12.6</td></tr><tr><td>Argoverse</td><td>58.5 / 33.3</td><td>69.9 / 42.8</td><td>26.8 / 14.5</td><td>64.4 / 42.7</td><td>68.5 / 36.8</td></tr><tr><td>nuScenes</td><td>39.6 / 10.1</td><td>53.3 / 16.7</td><td>40.2 / 20.5</td><td>67.7 / 25.7</td><td>66.9 / 29.0</td></tr><tr><td>Lyft</td><td>60.7 / 33.9</td><td>62.9 / 35.9</td><td>30.6 / 11.7</td><td>79.3 / 65.5</td><td>77.0 / 53.9</td></tr><tr><td>Waymo</td><td>46.3 / 12.6</td><td>61.6 / 29.0</td><td>28.4 / 14.1</td><td>74.1 / 54.5</td><td>80.4 / 67.7</td></tr><tr><td rowspan="5">0-30m</td><td>KITTI</td><td>88.8 / 84.9</td><td>58.4 / 34.7</td><td>47.9 / 14.9</td><td>77.8 / 54.2</td><td>48.0 / 14.0</td></tr><tr><td>Argoverse</td><td>74.2 / 46.8</td><td>83.3 / 63.3</td><td>55.3 / 26.9</td><td>87.7 / 69.5</td><td>85.7 / 44.4</td></tr><tr><td>nuScenes</td><td>50.7 / 13.9</td><td>73.7 / 26.0</td><td>73.2 / 42.8</td><td>89.1 / 43.8</td><td>79.8 / 43.4</td></tr><tr><td>Lyft</td><td>75.1 / 45.2</td><td>81.0 / 54.0</td><td>61.6 / 25.4</td><td>90.4 / 88.5</td><td>88.6 / 70.9</td></tr><tr><td>Waymo</td><td>56.8 / 15.0</td><td>80.6 / 48.1</td><td>57.8 / 24.0</td><td>88.4 / 76.2</td><td>90.4 / 87.2</td></tr><tr><td rowspan="5">30m-50m</td><td>KITTI</td><td>70.2 / 51.4</td><td>46.5 / 19.0</td><td>9.8 / 4.5</td><td>60.1 / 34.5</td><td>50.5 / 21.4</td></tr><tr><td>Argoverse</td><td>33.9 / 11.8</td><td>72.2 / 39.5</td><td>9.5 / 9.1</td><td>65.9 / 39.1</td><td>75.9 / 42.1</td></tr><tr><td>nuScenes</td><td>24.1 / 3.8</td><td>46.3 / 6.4</td><td>17.1 / 4.1</td><td>70.1 / 18.9</td><td>69.4 / 29.2</td></tr><tr><td>Lyft</td><td>39.3 / 16.6</td><td>59.2 / 21.8</td><td>11.2 / 9.1</td><td>83.8 / 62.7</td><td>79.4 / 55.5</td></tr><tr><td>Waymo</td><td>31.7 / 9.3</td><td>58.0 / 18.8</td><td>9.9 / 9.1</td><td>74.5 / 51.4</td><td>87.5 / 68.8</td></tr><tr><td rowspan="5">50m-70m</td><td>KITTI</td><td>28.8 / 12.0</td><td>9.2 / 3.0</td><td>1.1 / 0.0</td><td>33.2 / 9.6</td><td>27.1 / 12.0</td></tr><tr><td>Argoverse</td><td>10.9 / 1.3</td><td>29.9 / 6.9</td><td>0.5 / 0.0</td><td>35.1 / 14.5</td><td>46.2 / 23.0</td></tr><tr><td>nuScenes</td><td>6.5 / 1.5</td><td>15.2 / 2.3</td><td>9.1 / 9.1</td><td>41.8 / 5.3</td><td>37.9 / 15.2</td></tr><tr><td>Lyft</td><td>13.6 / 4.6</td><td>23.1 / 3.9</td><td>1.1 / 0.0</td><td>62.7 / 33.1</td><td>54.6 / 27.5</td></tr><tr><td>Waymo</td><td>5.6 / 1.8</td><td>26.9 / 5.6</td><td>0.9 / 0.0</td><td>50.8 / 21.3</td><td>63.5 / 41.1</td></tr></table>
160
+
161
+ ![](images/f56c391c5fd9f23da4a4468cfead4eaed2da6d3cb4e9f15e3b5ec4576abb3615.jpg)
162
+ Figure 2: The average numbers of 3D points per car (left) and per scene (right). We only include points within the frontal-view camera view and cars whose depths are within 70 meters.
163
+
164
+ ![](images/23db6a0a872c4dbb43168fe1320302253cffd68d6fc8b7e745cc1af8c1e05887.jpg)
165
+
166
+ ferent sensor configurations. For example, nuScenes uses a single 32-beam LiDAR; the point clouds are thus sparser than the other datasets. On the other hand, these datasets
167
+
168
+ are collected at different locations; the environments and the foreground object styles may also be different.
169
+
170
+ To provide a better understanding, we compute the average number of LiDAR points per scene and per car (using the ground-truth 3D bounding box) in Figure 2. We see a large difference: Waymo has ten times of points per car than nuScenes $^{2}$ . We further analyze the size of bounding boxes per car. Figure 3 shows the histograms of each dataset. We again see mismatches between different datasets: KITTI seems to have the smallest box sizes while Waymo has the largest. We conduct an analysis and find that most of the bounding boxes tightly contain the points of cars inside. We, therefore, argue that this difference of box sizes is related to the car styles captured in different datasets.
171
+
172
+ ![](images/998bf5b91f2a62ce8a2b666bd0c11a9e837d21d81c370b67e471c94d8fc29b73.jpg)
173
+ Figure 3: Car size statistics of different datasets.
174
+
175
+ ![](images/c51a0005684c2076430b541c71f6637a9c792e29b654caf1bcd056dbdc905835.jpg)
176
+
177
+ ![](images/f2771f25d37292d095c150fc56cedaf0a84e2e49bc56b655d2b49b77b7341768.jpg)
178
+
179
+ ![](images/1950f8f43efa551e929e88bcbb2d269710c5a4ea6bf2e03b10301b65b8ebf624.jpg)
180
+ Figure 4: Sizes of detected bounding boxes before and after our Statistical Normalization (Stat Norm). The detector is trained on Waymo (w/o or w/ Stat Norm) and tested on KITTI. We also show the distribution of ground-truth box sizes in both datasets.
181
+
182
+ ![](images/f5a8f673f8007c2f530d2227e86b3d872f316fe26a32427169c91fcdf17a2b76.jpg)
183
+
184
+ ![](images/5e3534955c375fe683955a885a73f37af84b5ca6b3d188a8d2cb122d2c76ff73.jpg)
185
+
186
+ ![](images/f0d51fdc433b48f9c9fdefab7d163aa69b5a13f52d61a77f2d9effd453e77ec0.jpg)
187
+ Figure 5: Car detection accuracy $(\mathrm{AP}_{3\mathrm{D}}$ at Moderate cases) on KITTI, using POINTRCNN models trained on different datasets. We vary the IoU threshold from 0.0 to 1.0 (x-axis). The curves indicate that models trained on different datasets have similar detection abilities (converge at low IoU) but they differ in localization (diverge at high IoU).
188
+
189
+ # 4.5. Analysis of detector performance
190
+
191
+ So what are the idiosyncrasies that account for the majority of performance gap? There are two factors that can lead to an miss-detected car (i.e., IoU $< 0.7$ ): the car might be entirely missed by the detector, or it is detected but poorly localized. To identify the main factor, we lower down the IoU threshold using KITTI as the target domain (see Figure 5). We observe an immediate increase in $\mathrm{AP}_{3\mathrm{D}}$ , and the results become saturated when IoU is lower than 0.4. Surprisingly, POINTRCNN models trained from other datasets perform on a par with the model trained on KITTI. In other words, poor generalization resides primarily in localization.
192
+
193
+ We investigate one cause of mislocalization<sup>3</sup>: inaccurate box size. To this end, we replace the size of every detected car that has IoU $> 0.2$ to a ground-truth car with the corresponding ground-truth box size, while keeping its bottom center and rotation unchanged. We see an immediate performance boost in Table 3 (see the Supplementary Material for
194
+
195
+ Table 3: Cross-dataset performance and gain (in parentheses) by assigning ground-truth box sizes to detected cars while keeping their centers and rotations unchanged. We report $\mathrm{AP}_{\mathrm{3D}}$ of the Car category at IoU = 0.7, using POINTRCNN [52]. We show adaptation from KITTI to other datasets, and vice versa.
196
+
197
+ <table><tr><td>Setting</td><td>Dataset</td><td>From KITTI</td><td>To KITTI</td></tr><tr><td rowspan="4">Easy</td><td>Argoverse</td><td>65.7 (+38.0)</td><td>59.2 (+25.3)</td></tr><tr><td>nuScenes</td><td>33.5 (+20.2)</td><td>63.9 (+50.5)</td></tr><tr><td>Lyft</td><td>74.8 (+23.1)</td><td>58.4 (+19.0)</td></tr><tr><td>Waymo</td><td>77.1 (+65.2)</td><td>78.2 (+65.1)</td></tr><tr><td rowspan="4">Moderate</td><td>Argoverse</td><td>50.9 (+28.6)</td><td>51.0 (+19.6)</td></tr><tr><td>nuScenes</td><td>18.2 (+9.9)</td><td>47.3 (+36.6)</td></tr><tr><td>Lyft</td><td>54.3 (+20.6)</td><td>49.4 (+15.1)</td></tr><tr><td>Waymo</td><td>63.0 (+50.7)</td><td>60.6 (+47.4)</td></tr><tr><td rowspan="4">Hard</td><td>Argoverse</td><td>49.3 (+27.1)</td><td>52.5 (+19.2)</td></tr><tr><td>nuScenes</td><td>17.7 (+8.9)</td><td>45.7 (+35.6)</td></tr><tr><td>Lyft</td><td>53.0 (+18.8)</td><td>52.0 (+18.1)</td></tr><tr><td>Waymo</td><td>59.1 (+46.5)</td><td>60.7 (+48.1)</td></tr></table>
198
+
199
+ complete results across all pairs of datasets). In other words, the detector trained from one domain just cannot predict the car size right in the other domains. This observation correlates with our findings in Figure 3 that these datasets have different car sizes. By further analyzing the detected boxes (in Figure 4, we apply the detector trained from Waymo to KITTI), we find that the detector tends to predict box sizes that are similar to the ground-truth sizes in source domain, even though cars in the target domain are indeed physically smaller. We think this is because the detectors trained from the source data carry the learned bias to the target data.
200
+
201
+ # 5. Domain Adaptation Approaches
202
+
203
+ The poor performance due to mislocalization rather than misdetection opens the possibility of adapting a learned detector to a new domain with relatively smaller efforts. We investigate two scenarios: (1) a few labeled scenes (i.e., point clouds with 3D box annotations) or (2) the car size
204
+
205
+ Table 4: Improved 3D object detection across datasets (evaluated on the validation sets). We report $\mathrm{AP}_{\mathrm{BEV}} / \mathrm{AP}_{\mathrm{3D}}$ of the Car category at IoU = 0.7, using POINTRCNN [52]. We investigate (OT) output transformation by directly adjusting the predicted box sizes, (SN) statistical normalization, and (FS) few-shot fine-tuning (with 10 labeled instances). We also include (Direct) directly applying the detectors trained on the source domain and (Within) applying the detectors trained on the target domain for comparison. We show adaption results from KITTI to other datasets, and vice versa. We mark the best result among Direct, OT, SN, and FS in red fonts, and worst in blue fonts.
206
+
207
+ <table><tr><td></td><td></td><td colspan="5">From KITTI (KITTI as the source; others as the target)</td><td colspan="5">To KITTI (KITTI as the target; others as the source)</td></tr><tr><td>Setting</td><td>Dataset</td><td>Direct</td><td>OT</td><td>SN</td><td>FS</td><td>Within</td><td>Direct</td><td>OT</td><td>SN</td><td>FS</td><td>Within</td></tr><tr><td rowspan="4">Easy</td><td>Argoverse nuScenes</td><td>55.8 / 27.7</td><td>72.7 / 9.0</td><td>74.7 / 48.2</td><td>75.8 / 49.2</td><td>79.2 / 57.8</td><td>69.5 / 33.9</td><td>53.3 / 5.7</td><td>76.2 / 46.1</td><td>80.0 / 49.7</td><td>88.0 / 82.5</td></tr><tr><td>Lyft</td><td>47.4 / 13.3</td><td>55.0 / 10.4</td><td>60.8 / 23.9</td><td>54.7 / 21.7</td><td>73.4 / 38.1</td><td>49.7 / 13.4</td><td>75.4 / 31.5</td><td>83.2 / 35.6</td><td>83.8 / 58.7</td><td>88.0 / 82.5</td></tr><tr><td>Waymo</td><td>81.7 / 51.8</td><td>88.2 / 23.5</td><td>88.3 / 73.3</td><td>89.0 / 78.1</td><td>90.2 / 87.3</td><td>74.3 / 39.4</td><td>71.9 / 4.7</td><td>83.5 / 72.1</td><td>85.3 / 72.5</td><td>88.0 / 82.5</td></tr><tr><td>Mod.</td><td>45.2 / 11.9</td><td>86.1 / 16.2</td><td>84.6 / 53.3</td><td>87.4 / 70.9</td><td>90.1 / 85.3</td><td>51.9 / 13.1</td><td>64.0 / 3.9</td><td>82.1 / 48.7</td><td>81.0 / 67.0</td><td>88.0 / 82.5</td></tr><tr><td rowspan="4">Mod.</td><td>Argoverse nuScenes</td><td>44.9 / 22.3</td><td>59.9 / 7.9</td><td>61.5 / 38.2</td><td>60.7 / 37.3</td><td>69.9 / 44.2</td><td>56.6 / 31.4</td><td>52.2 / 7.3</td><td>67.2 / 40.5</td><td>68.8 / 42.8</td><td>80.6 / 68.9</td></tr><tr><td>Lyft</td><td>26.2 / 8.3</td><td>30.8 / 6.8</td><td>32.9 / 16.4</td><td>28.7 / 12.5</td><td>40.7 / 21.2</td><td>39.8 / 10.7</td><td>58.5 / 27.3</td><td>67.4 / 31.0</td><td>67.2 / 45.5</td><td>80.6 / 68.9</td></tr><tr><td>Waymo</td><td>61.8 / 33.7</td><td>70.1 / 17.8</td><td>73.7 / 53.1</td><td>74.2 / 53.4</td><td>83.7 / 65.5</td><td>61.1 / 34.3</td><td>60.8 / 5.6</td><td>73.6 / 57.9</td><td>73.9 / 56.2</td><td>80.6 / 68.9</td></tr><tr><td>Mod.</td><td>43.9 / 12.3</td><td>69.1 / 13.1</td><td>74.9 / 49.4</td><td>75.9 / 55.3</td><td>85.9 / 67.9</td><td>45.8 / 13.2</td><td>54.9 / 3.7</td><td>71.3 / 47.1</td><td>66.8 / 51.8</td><td>80.6 / 68.9</td></tr><tr><td rowspan="4">Hard</td><td>Argoverse nuScenes</td><td>42.5 / 22.2</td><td>59.3 / 9.3</td><td>60.6 / 37.1</td><td>59.8 / 36.5</td><td>69.9 / 42.8</td><td>58.5 / 33.3</td><td>53.5 / 8.6</td><td>68.5 / 41.9</td><td>66.3 / 43.0</td><td>81.9 / 66.7</td></tr><tr><td>Lyft</td><td>24.9 / 8.8</td><td>27.8 / 7.6</td><td>31.9 / 15.8</td><td>27.5 / 12.4</td><td>40.2 / 20.5</td><td>39.6 / 10.1</td><td>59.5 / 27.8</td><td>65.2 / 30.8</td><td>64.7 / 44.5</td><td>81.9 / 66.7</td></tr><tr><td>Waymo</td><td>57.4 / 34.2</td><td>66.5 / 19.1</td><td>73.1 / 53.5</td><td>71.8 / 52.9</td><td>79.3 / 65.5</td><td>60.7 / 33.9</td><td>63.1 / 6.9</td><td>75.2 / 58.9</td><td>74.1 / 56.2</td><td>81.9 / 66.7</td></tr><tr><td>Mod.</td><td>41.5 / 12.6</td><td>68.7 / 13.9</td><td>69.4 / 49.4</td><td>70.1 / 54.4</td><td>80.4 / 67.7</td><td>46.3 / 12.6</td><td>58.0 / 4.1</td><td>73.0 / 49.7</td><td>68.1 / 52.9</td><td>81.9 / 66.7</td></tr><tr><td rowspan="4">0-30</td><td>Argoverse nuScenes</td><td>58.4 / 34.7</td><td>73.0 / 13.7</td><td>73.1 / 54.2</td><td>73.6 / 55.2</td><td>83.3 / 63.3</td><td>74.2 / 46.8</td><td>64.9 / 10.1</td><td>83.3 / 53.9</td><td>84.0 / 56.9</td><td>88.8 / 84.9</td></tr><tr><td>Lyft</td><td>47.9 / 14.9</td><td>56.2 / 13.9</td><td>60.0 / 29.2</td><td>54.0 / 23.6</td><td>73.2 / 42.8</td><td>50.7 / 13.9</td><td>74.6 / 36.6</td><td>83.6 / 42.8</td><td>81.2 / 59.8</td><td>88.8 / 84.9</td></tr><tr><td>Lyft</td><td>77.8 / 54.2</td><td>88.4 / 27.5</td><td>88.8 / 75.4</td><td>89.3 / 77.6</td><td>90.4 / 88.5</td><td>75.1 / 45.2</td><td>74.8 / 9.1</td><td>87.4 / 73.6</td><td>87.5 / 73.9</td><td>88.8 / 84.9</td></tr><tr><td>Waymo</td><td>48.0 / 14.0</td><td>87.7 / 22.2</td><td>87.1 / 60.1</td><td>88.7 / 74.1</td><td>90.4 / 87.2</td><td>56.8 / 15.0</td><td>71.3 / 4.4</td><td>85.7 / 59.0</td><td>84.8 / 71.0</td><td>88.8 / 84.9</td></tr><tr><td rowspan="4">30-50</td><td>Argoverse nuScenes</td><td>46.5 / 19.0</td><td>56.1 / 5.4</td><td>61.5 / 31.5</td><td>59.0 / 29.9</td><td>72.2 / 39.5</td><td>33.9 / 11.8</td><td>35.1 / 9.1</td><td>48.9 / 25.7</td><td>47.9 / 23.8</td><td>70.2 / 51.4</td></tr><tr><td>Lyft</td><td>9.8 / 4.5</td><td>10.8 / 9.1</td><td>11.0 / 2.3</td><td>9.5 / 6.1</td><td>17.1 / 4.1</td><td>24.1 / 3.8</td><td>35.5 / 15.5</td><td>44.9 / 18.6</td><td>45.0 / 25.1</td><td>70.2 / 51.4</td></tr><tr><td>Lyft</td><td>60.1 / 34.5</td><td>67.4 / 10.7</td><td>73.8 / 52.2</td><td>73.7 / 50.4</td><td>83.8 / 62.7</td><td>39.3 / 16.6</td><td>43.3 / 3.9</td><td>58.3 / 38.0</td><td>57.7 / 33.3</td><td>70.2 / 51.4</td></tr><tr><td>Waymo</td><td>50.5 / 21.4</td><td>73.6 / 10.4</td><td>78.1 / 54.9</td><td>78.1 / 57.2</td><td>87.5 / 68.8</td><td>31.7 / 9.3</td><td>39.8 / 4.5</td><td>57.3 / 36.3</td><td>49.2 / 29.2</td><td>70.2 / 51.4</td></tr><tr><td rowspan="4">50-70</td><td>Argoverse nuScenes</td><td>9.2 / 3.0</td><td>20.5 / 1.0</td><td>23.8 / 5.6</td><td>20.1 / 6.3</td><td>29.9 / 6.9</td><td>10.9 / 1.3</td><td>8.0 / 0.8</td><td>9.1 / 2.6</td><td>8.1 / 3.8</td><td>28.8 / 12.0</td></tr><tr><td>Lyft</td><td>1.1 / 0.0</td><td>1.5 / 1.0</td><td>3.0 / 2.3</td><td>3.3 / 1.2</td><td>9.1 / 9.1</td><td>6.5 / 1.5</td><td>7.8 / 5.1</td><td>9.4 / 5.1</td><td>12.9 / 5.7</td><td>28.8 / 12.0</td></tr><tr><td>Lyft</td><td>33.2 / 9.6</td><td>41.3 / 6.8</td><td>49.9 / 22.2</td><td>46.8 / 19.4</td><td>62.7 / 33.1</td><td>13.6 / 4.6</td><td>12.7 / 0.9</td><td>21.1 / 6.7</td><td>17.5 / 8.0</td><td>28.8 / 12.0</td></tr><tr><td>Waymo</td><td>27.1 / 12.0</td><td>42.6 / 4.2</td><td>46.8 / 25.1</td><td>45.2 / 24.3</td><td>63.5 / 41.1</td><td>5.6 / 1.8</td><td>7.7 / 1.1</td><td>14.4 / 5.7</td><td>10.5 / 4.8</td><td>28.8 / 12.0</td></tr></table>
208
+
209
+ statistics of the target domain are available. We argue that both scenarios are practical: we can simply annotate for every place a few labeled instances, or get the statistics from the local vehicle offices or car-selling websites. In the main paper, we will mainly focus on training from KITTI and testing on the others, and vice versa. We leave other results in the Supplementary Material.
210
+
211
+ Few-shot (FS) fine-tuning. In the first scenario where a few labeled scenes from the target domain are accessible, we investigate fine-tuning the already trained object detector with these few-shot examples. As shown in Table 4, using only 10 labeled scenes (average over five rounds of experiments) of the target domain, we can already improve the $\mathrm{AP}_{3\mathrm{D}}$ by over $20.4\%$ on average when adapting KITTI to other datasets and $24.4\%$ on average when adapting other datasets to KITTI. Figure 6 further shows the performance by fine-tuning with different number of scenes. With merely 20 labeled target scenes, the adapted detector from Lyft and Waymo can already be on a par with that trained from scratch in the target domain with 500 scenes.
212
+
213
+ Statistical normalization (SN). For the second scenario where the target statistics (i.e., average height, width, and length of cars) are accessible, we investigate modifying the
214
+
215
+ ![](images/f0660bc037a56d306d9cd8dde441db2d34297c8718be2d119afc9b7f05b9b1cf.jpg)
216
+ Figure 6: The few-shot fine-tuning performance on KITTI validation set with the model pre-trained on Argoverse, nuScenes, Lyft, and Waymo datasets. The x-axis indicates how many KITTI training images are used for fine-tuning. The y-axis marks $\mathrm{AP}_{3\mathrm{D}}$ (moderate cases). Scratch denotes the model trained on the sampled KITTI training images with randomly initialized weights.
217
+
218
+ already trained object detector so that its predicted box sizes can better match the target statistics. We propose a data modification scheme named statistical normalization by adjusting the source domain data, as illustrated in Figure 7. Specifically, we compute the difference of mean car sizes between the target domain (TD) and source domain (SD), $\Delta = (\Delta h, \Delta w, \Delta l) = (h_{\mathrm{TD}}, w_{\mathrm{TD}}, L_{\mathrm{TD}}) - (h_{\mathrm{SD}}, w_{\mathrm{SD}}, L_{\mathrm{SD}})$ , where $h, w, l$ stand for the height, width, and length, re
219
+
220
+ ![](images/e863448715c550a0ef9d65fd10f5abf80f96573ea61170939e175e3f29609365.jpg)
221
+ Figure 7: Statistical Normalization (SN). We shrink (or enlarge) the bounding box sizes (in the output space) and the corresponding point clouds (in the input space) in the training scenes of the source domain to match the mean statistics of the target domain. We fine-tune the detector with these modified source scenes.
222
+
223
+ spectively<sup>4</sup>. We then modify both the point clouds and the labels in the source domain with respect to $\Delta$ . For each annotated bounding box of cars, we adjust its size by adding $(\Delta h, \Delta w, \Delta l)$ . We also crop the points inside the original box, scale up or shrink their coordinates to fit the adjusted bounding box size accordingly, and paste them back to the point cloud of the scene. By doing so, we generate new point clouds and labels whose car sizes are much similar to the target domain data. We then fine-tune the already trained model on the source domain with these data.
224
+
225
+ Surprisingly, with such a simple method that does not require labeled target domain data, the performance is significantly improved (see Table 4) between KITTI and other datasets that obviously contain cars of different styles (i.e., one in Germany, and others in the USA). Figure 4 and Figure 8 further analyze the prediction before and after statistical normalization. We see a clear shift of the histogram (predicted box) from the source to the target domain.
226
+
227
+ Output transformation (OT). We investigate an even simpler approach by directly adjusting the detector's prediction without fine-tuning — by adding $(\Delta h, \Delta w, \Delta l)$ to the predicted size. As shown in Table 4, this approach does not always improve but sometimes degrade the accuracy. This is because when we apply the source detector to the target domain, the predicted box sizes do slightly deviate from the source statistics to the target ones due to the difference of object sizes in the input signals (see Figure 4). Thus, simply adding $(\Delta h, \Delta w, \Delta l)$ may over-correct the bias. We hypothesize that by searching a suitable scale for addition or designing more intelligent output transformations can alleviate this problem and we leave them for future work.
228
+
229
+ Discussion. As shown in Table 4, statistical normalization largely improves over direct applying the source-domain detector. For some pairs of data sets (e.g., from KITTI to Lyft, the $\mathrm{AP}_{\mathrm{BEV}}$ after statistical normalization is encouraging, largely closing the gap to the Within performance.
230
+
231
+ Compared to domain adaptation on 2D images, there are more possible factors of domain gaps in 3D. While the box size difference is just one factor, we find addressing it to be
232
+
233
+ ![](images/0fc43fb27b3292bd7f5a60cae87cc030e9fdacb0e2d4f38e3e5fbee8ad38023b.jpg)
234
+ KITTI Prediction
235
+
236
+ ![](images/163a4dc784bf72032e2a8d5ccb66b80d8cf6a65cb191b63536ffe64186dcc53b.jpg)
237
+ Before Stat Norm
238
+
239
+ ![](images/87370e4a2e1d848c3e05b28f783156e337b7ad10bd351bf708b19f0f7bda31d6.jpg)
240
+ After Stat Norm
241
+ Figure 8: Illustration of car prediction on KITTI w/o and w/ statistical normalization (Stat Norm). The green boxes and red boxes indicate the ground truth and prediction, respectively. The box in the left image is predicted by POINTRCNN trained on KITTI. The middle image shows POINTRCNN that is pre-trained on Waymo and directly tested on KITTI. With statistical normalization, the model trained on Waymo only (with modified data) can accurately predict the bounding box shown in the right image.
242
+
243
+ highly effective in closing the gaps. This factor is rarely discussed in other domain adaptation tasks. We thus expect it and our solution to be valuable additions to the community.
244
+
245
+ # 6. Conclusion
246
+
247
+ In conclusion, in this paper we are the first (to our knowledge) to provide and investigate a standardized form of most widely-used 3D object detection datasets for autonomous driving. Although naive adaptation across datasets is unsurprisingly difficult, we observe that, surprisingly, there appears to be a single dominant factor that explains a majority share of the adaptation gap: varying car sizes across different geographic regions. That car sizes play such an important role in adaptation ultimately makes sense. No matter if the detection is based on LiDAR or stereo cameras, cars are only observed from one side — and the depth of the bounding boxes must be estimated based on experience. If a deep network trained in Germany encounters an American Ford F-Series truck (with $5.3\mathrm{m}$ length), it has little chance to correctly estimate the corresponding bounding box. It is surprising, however, that just matching the mean size of cars in the areas during fine-tuning already reduces this uncertainty so much. We hope that this publication will kindle interests in the exciting problem of cross-dataset domain adaptation for 3D object detection and localization, and that researchers will be careful to first apply simple global corrections before developing new computer vision algorithms to tackle the remaining adaptation gap.
248
+
249
+ # Acknowledgments
250
+
251
+ This research is supported by grants from the National Science Foundation NSF (III-1618134, III-1526012, IIS-1149882, IIS-1724282, and TRIPODS-1740822), the Office of Naval Research DOD (N00014-17-1-2175), the Bill and Melinda Gates Foundation, and the Cornell Center for Materials Research with funding from the NSF MRSEC program (DMR-1719875). We are thankful for generous support by Zillow and SAP America Inc.
252
+
253
+ # References
254
+
255
+ [1] https://en.wikipedia.org/wiki/Death_of_Elaine_Herzberg, 2018.2
256
+ [2] https://www.motor1.com/features/280320/20-bestselling-vehicles-2018/, 2018.2
257
+ [3] Waymo open dataset: An autonomous driving dataset, 2019. 1, 2, 3, 4
258
+ [4] Holger Caesar, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. arXiv preprint arXiv:1903.11027, 2019. 1, 2, 3, 4
259
+ [5] Qi Cai, Yingwei Pan, Chong-Wah Ngo, Xinmei Tian, Lingyu Duan, and Ting Yao. Exploring object relation in mean teacher for cross-domain detection. In CVPR, 2019. 3
260
+ [6] Florian Chabot, Mohamed Chaouch, Jaonary Rabarisoa, Céline Teulière, and Thierry Chateau. Deep manta: A coarse-to-fine many-task network for joint 2d and 3d vehicle analysis from monocular image. In CVPR, 2017. 2
261
+ [7] Ming-Fang Chang, John W Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, and James Hays. Argo-verse: 3d tracking and forecasting with rich maps. In CVPR, 2019. 1, 2, 3, 4
262
+ [8] Xiaozhi Chen, Kaustav Kundu, Ziyu Zhang, Huimin Ma, Sanja Fidler, and Raquel Urtasun. Monocular 3d object detection for autonomous driving. In CVPR, 2016. 2
263
+ [9] Xiaozhi Chen, Kaustav Kundu, Yukun Zhu, Andrew G Berneshawi, Huimin Ma, Sanja Fidler, and Raquel Urtasun. 3d object proposals for accurate object class detection. In NIPS, 2015. 2, 3
264
+ [10] Xiaozhi Chen, Kaustav Kundu, Yukun Zhu, Huimin Ma, Sanja Fidler, and Raquel Urtasun. 3d object proposals using stereo imagery for accurate object class detection. TPAMI, 40(5):1259-1272, 2018. 2
265
+ [11] Xiaozhi Chen, Huimin Ma, Ji Wan, Bo Li, and Tian Xia. Multi-view 3d object detection network for autonomous driving. In CVPR, 2017. 1, 2
266
+ [12] Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In CVPR, 2018. 3
267
+ [13] Yuhua Chen, Wen Li, and Luc Van Gool. Road: Reality oriented adaptation for semantic segmentation of urban scenes. In CVPR, 2018. 3
268
+ [14] Yilun Chen, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Fast point r-cnn. In ICCV, 2019. 1
269
+ [15] Yilun Chen, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Dsgn: Deep stereo geometry network for 3d object detection. In CVPR, 2020. 1
270
+ [16] Xinxin Du, Marcelo H Ang Jr, Sertac Karaman, and Daniela Rus. A general pipeline for 3d detection of vehicles. In ICRA, 2018. 1
271
+ [17] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. JMLR, 17(1):2096-2030, 2016. 3
272
+
273
+ [18] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231-1237, 2013. 1, 2, 3, 4
274
+ [19] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, 2012. 1, 2, 3, 4
275
+ [20] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 2
276
+ [21] Zhenwei He and Lei Zhang. Multi-adversarial faster-rcnn for unrestricted object detection. In ICCV, 2019. 3
277
+ [22] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. In ICML, 2018. 3
278
+ [23] Han-Kai Hsu, Chun-Han Yao, Yi-Hsuan Tsai, Wei-Chih Hung, Hung-Yu Tseng, Maneesh Singh, and Ming-Hsuan Yang. Progressive domain adaptation for object detection. In WACV, 2020. 3
279
+ [24] Haoshuo Huang, Qixing Huang, and Philipp Krahenbuhl. Domain transfer through deep activation matching. In ECCV, 2018. 3
280
+ [25] R. Kesten, M. Usman, J. Houston, T. Pandya, K. Nadhamuni, A. Ferreira, M. Yuan, B. Low, A. Jain, P. Ondruska, S. Omari, S. Shah, A. Kulkarni, A. Kazakova, C. Tao, L. Platinsky, W. Jiang, and V. Shet. Lyft level 5 av dataset 2019. https://level5.lyft.com/dataset/, 2019. 1, 2, 3, 4
281
+ [26] Mehran Khodabandeh, Arash Vahdat, Mani Ranjbar, and William G Macready. A robust learning approach to domain adaptive object detection. In ICCV, 2019. 3
282
+ [27] Taekyung Kim, Minki Jeong, Seunghyeon Kim, Seokeon Choi, and Changick Kim. Diversify and match: A domain adaptive representation learning paradigm for object detection. In CVPR, 2019. 3
283
+ [28] Hendrik Königshof, Niels Ole Salscheider, and Christoph Stiller. Realtime 3d object detection for automated driving using stereo vision and semantic information. In 2019 IEEE Intelligent Transportation Systems Conference (ITSC), 2019. 1
284
+ [29] Jason Ku, Melissa Mozifian, Jungwook Lee, Ali Harakeh, and Steven Waslander. Joint 3d proposal generation and object detection from view aggregation. In IROS, 2018. 1
285
+ [30] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In CVPR, 2019. 1, 2
286
+ [31] Buyu Li, Wanli Ouyang, Lu Sheng, Xingyu Zeng, and Xiaogang Wang. Gs3d: An efficient 3d object detection framework for autonomous driving. In CVPR, 2019. 1
287
+ [32] Peiliang Li, Xiaozhi Chen, and Shaojie Shen. Stereo r-cnn based 3d object detection for autonomous driving. In CVPR, 2019. 1
288
+ [33] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019. 1, 2
289
+ [34] Ming Liang, Bin Yang, Shenlong Wang, and Raquel Urtasun. Deep continuous fusion for multi-sensor 3d object detection. In ECCV, 2018. 1, 2
290
+
291
+ [35] Tsung-Yi Lin, Piotr Dollar, Ross B Girshick, Kaiming He, Bharath Hariharan, and Serge J Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2
292
+ [36] Yawei Luo, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Taking a closer look at domain shift: Category-level adversaries for semantics consistent domain adaptation. In CVPR, 2019. 3
293
+ [37] Gregory P Meyer, Ankit Laddha, Eric Kee, Carlos Vallespi-Gonzalez, and Carl K Wellington. Lasernet: An efficient probabilistic 3d object detector for autonomous driving. In CVPR, 2019. 1, 2
294
+ [38] Arsalan Mousavian, Dragomir Anguelov, John Flynn, and Jana Košecka. 3d bounding box estimation using deep learning and geometry. In CVPR, 2017. 2
295
+ [39] Cuong Cao Pham and Jae Wook Jeon. Robust object proposals re-ranking for object detection in autonomous driving using convolutional neural networks. Signal Processing: Image Communication, 53:110-122, 2017. 2
296
+ [40] Alex D Pon, Jason Ku, Chengyao Li, and Steven L Waslander. Object-centric stereo matching for 3d object detection. In ICRA, 2020. 1
297
+ [41] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-d data. In CVPR, 2018. 1, 2
298
+ [42] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In CVPR, 2017. 2
299
+ [43] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In NIPS, 2017. 2, 3
300
+ [44] Rui Qian, Divyansh Garg, Yan Wang, Yurong You, Serge Belongie, Bharath Hariharan, Mark Campbell, Kilian Q Weinberger, and Wei-Lun Chao. End-end pseudo-lidar for image-based 3d object detection. In CVPR, 2020. 2
301
+ [45] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015. 2
302
+ [46] Adrian Lopez Rodriguez and Krystian Mikolajczyk. Domain adaptation for object detection via style consistency. In BMVC, 2019. 3
303
+ [47] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Strong-weak distribution alignment for adaptive object detection. In CVPR, 2019. 3
304
+ [48] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In CVPR, 2018. 3
305
+ [49] Fatemeh Sadat Saleh, Mohammad Sadegh Aliakbarian, Mathieu Salzmann, Lars Petersson, and Jose M Alvarez. Effective use of synthetic data for urban scene semantic segmentation. In ECCV. Springer, 2018. 3
306
+ [50] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chellappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In CVPR, 2018. 3
307
+ [51] Shaoshuai Shi, Chaoxu Guo, Li Jiang, Zhe Wang, Jianping Shi, Xiaogang Wang, and Hongsheng Li. Pv-rcnn: Point-voxel feature set abstraction for 3d object detection. In CVPR, 2020. 1
308
+
309
+ [52] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointcnn: 3d object proposal generation and detection from point cloud. In CVPR, 2019. 1, 2, 3, 5, 6, 7
310
+ [53] Shaoshuai Shi, Zhe Wang, Jianping Shi, Xiaogang Wang, and Hongsheng Li. From points to parts: 3d object detection from point cloud with part-aware and part-aggregation network. TPAMI, 2020. 1
311
+ [54] Weijing Shi and Ragunathan Rajkumar. Point-gnn: Graph neural network for 3d object detection in a point cloud. In CVPR, 2020. 1
312
+ [55] Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kiyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In CVPR, 2018. 3
313
+ [56] Shenlong Wang, Simon Suo, Wei-Chiu Ma3 Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In CVPR, 2018. 2
314
+ [57] Tao Wang, Xiaopeng Zhang, Li Yuan, and Jiashi Feng. Few-shot adaptive faster r-cnn. In CVPR, 2019. 3
315
+ [58] Yan Wang, Wei-Lun Chao, Divyansh Garg, Bharath Hariharan, Mark Campbell, and Kilian Q. Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3d object detection for autonomous driving. In CVPR, 2019. 2
316
+ [59] Yu Xiang, Wongun Choi, Yuanqing Lin, and Silvio Savarese. Subcategory-aware convolutional neural networks for object proposals and detection. In WACV, 2017. 2
317
+ [60] Bin Xu and Zhenzhong Chen. Multi-level fusion based 3d object detection from monocular images. In CVPR, 2018. 2
318
+ [61] Zhenbo Xu, Wei Zhang, Xiaqing Ye, Xiao Tan, Wei Yang, Shilei Wen, Errui Ding, Ajin Meng, and Liusheng Huang. Zoomnet: Part-aware adaptive zooming neural network for 3d object detection. 2020. 1
319
+ [62] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018. 1
320
+ [63] Bin Yang, Wenjie Luo, and Raquel Urtasun. Pixor: Realtime 3d object detection from point clouds. In CVPR, 2018, 1, 2, 3, 4
321
+ [64] Zetong Yang, Yanan Sun, Shu Liu, and Jiaya Jia. 3dssd: Point-based 3d single stage object detector. In CVPR, 2020. 1
322
+ [65] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Std: Sparse-to-dense 3d object detector for point cloud. In ICCV, 2019. 1
323
+ [66] Yurong You, Yan Wang, Wei-Lun Chao, Divyansh Garg, Geoff Pleiss, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar++: Accurate depth for 3d object detection in autonomous driving. In ICLR, 2020. 2
324
+ [67] Yang Zhang, Philip David, and Boqing Gong. Curriculum domain adaptation for semantic segmentation of urban scenes. In ICCV, 2017. 3
325
+ [68] Yin Zhou, Pei Sun, Yu Zhang, Dragomir Anguelov, Jiyang Gao, Tom Ouyang, James Guo, Jiquan Ngiam, and Vijay Vasudevan. End-to-end multi-view fusion for 3d object detection in lidar point clouds. In CoRL, 2019. 1
326
+ [69] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, 2018. 1, 2
327
+
328
+ [70] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017. 3
329
+ [71] Xinge Zhu, Jiangmiao Pang, Ceyuan Yang, Jianping Shi, and Dahua Lin. Adapting object detectors via selective cross-domain alignment. In CVPR, 2019. 3
330
+ [72] Chenfan Zhuang, Xintong Han, Weilin Huang, and Matthew R Scott. ifan: Image-instance full alignment networks for adaptive object detection. In AAAI, 2020. 3
331
+ [73] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic segmentation via class-balanced self-training. In ECCV, 2018. 3
trainingermanytestintheusamaking3dobjectdetectorsgeneralize/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b7c39974a7270ba3930fe29811d17f4595345dcf009adb8cff67e842710994f
3
+ size 918364
trainingermanytestintheusamaking3dobjectdetectorsgeneralize/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31afd04d0a87d696124ec491823c27fc6b407937992e7165a19df7a2a02379e5
3
+ size 395776
trainingnoiserobustdeepneuralnetworksviametalearning/21dedf89-2873-455f-8879-cbd66908bda2_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f422ca4af7b3495b158186d13d03008e6b61510f46b8abd06119d792fe75214
3
+ size 71824
trainingnoiserobustdeepneuralnetworksviametalearning/21dedf89-2873-455f-8879-cbd66908bda2_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:698df91ff56d5f0c4de68bf7528ba53f22f9364bd9e8de48f7e8ed67c4d9eeb5
3
+ size 88824
trainingnoiserobustdeepneuralnetworksviametalearning/21dedf89-2873-455f-8879-cbd66908bda2_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d4b1a6628fb3bdcb1e95f25ed7bc58b17b2d809c1d82344d4a01f8140859601
3
+ size 2673661
trainingnoiserobustdeepneuralnetworksviametalearning/full.md ADDED
@@ -0,0 +1,299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Training Noise-Robust Deep Neural Networks via Meta-Learning
2
+
3
+ Zhen Wang\*1, Guosheng Hu\*2, Qinghua $\mathrm{H u}^{\dagger 1}$
4
+
5
+ $^{1}$ Tianjin Key Lab of Machine Learning, College of Intelligence and Computing, Tianjin University, Tianjin, China $^{2}$ AnyVision
6
+
7
+ wangzhen315@tju.edu.cn, huguosheng100@gmail.com, huqinghua@tju.edu.cn
8
+
9
+ # Abstract
10
+
11
+ Label noise may significantly degrade the performance of Deep Neural Networks (DNNs). To train noise-robust DNNs, Loss correction (LC) approaches have been introduced. LC approaches assume the noisy labels are corrupted from clean (ground-truth) labels by an unknown noise transition matrix $T$ . The backbone DNNs and $T$ can be trained separately, where $T$ is approximated by prior knowledge. For example, $T$ can be constructed by stacking the maximum or mean predictions of the samples from each class. In this work, we propose a new loss correction approach, named as Meta Loss Correction (MLC), to directly learn $T$ from data via the meta-learning framework. The MLC is model-agnostic and learns $T$ from data rather than heuristically approximates $T$ using prior knowledge. Extensive evaluations are conducted on computer vision (MNIST, CIFAR-10, CIFAR-100, Clothing1M) and natural language processing (Twitter) datasets. The experimental results show that MLC achieves very competitive performance against state-of-the-art approaches.
12
+
13
+ # 1. Introduction
14
+
15
+ Deep learning has achieved great success on computer vision tasks such as object detection [9], image classification [20], segmentation [2], face recognition [13]. It is well known that the performance of DNNs highly relies on the large-scale high quality well-labeled training data. However, collecting such big clean data is expensive and time-consuming. To collect such data, people usually turn to search engine, automatic tagging software and crowdsourcing, which inevitably bring label noises (wrong or corrupted labels). The label noises can lead the DNNs to overfit to such noises [38], eventually degrading the model generalization performance.
16
+
17
+ The loss correction (LC) approaches [17, 28, 12] re
18
+
19
+ cently achieved great success on noise-robust deep learning. LC approaches assume the noisy labels are corrupted from clean (ground-truth) labels by an unknown noise transition matrix $T$ . Thus, the LC approaches try to learn this matrix accurately. Some early works [31, 17] add a linear noise layer at the end of backbone Convolutional Neural Network (CNNs) to implicitly estimate matrix $T$ . Unlike these implicit optimizations, the LC approaches [28, 12] explicitly estimate $T$ . For example, a 'perfect example' assumption [28] is made to approximate 'perfect example' as the one with the maximum prediction in each class. Then $T$ is estimated by stacking the prediction of each 'perfect example'. Instead of using the maximum predictions, Gold Loss Correction (GLC) [12] uses the mean predictions of a small clean dataset to estimate $T$ . Clearly, these approaches [28, 12], which use prior knowledge to estimate $T$ , are heuristic and the 'perfect example' assumption cannot always hold true.
20
+
21
+ To learn $T$ directly from data rather than in a heuristic way, we introduce meta-learning. Meta-learning is a general data-driven optimization framework, and it can learn experience (meta-parameters) from data (meta-data). More general, meta-parameters can be some parameters to be optimized in deep learning. Recently, meta-learning achieved great success on many optimization tasks including: hyper-parameter optimization [18], neural architecture searching [41] and optimizer selection [26], etc. Most meta-learning approaches contain two optimization loops: an inner loop (Actual-Train) conducts the main optimization (e.g. the main deep network training), and an outer loop (Meta-Train) optimizes some aspects (metaparameters, e.g. hyper-parameters of the main network) of inner loop.
22
+
23
+ Motivated by the success of meta-parameter optimization, in this work, we adapt meta-learning to optimize $T$ by viewing $T$ as the meta-parameter. Meta-learning usually uses a small 'clean' validation set to conduct outer loop optimization (Meta-Train) [30]. A small 'clean' validation set is also a popular setting for LC noise-robust learning approach [12]. With meta-learning and a small valda
24
+
25
+ tion set, we propose a new loss correction approach, Meta Loss Correction (MLC), to learn noise transition matrix $T$ . Specifically, we conduct an alternating optimization to optimize $T$ and main (backbone) network weights $\theta$ . First, we make one-step-forward virtual optimization of $\theta$ on the noisy training set during Virtual-Train; During Meta-Train, we then optimize $T$ (meta-parameter) guided by the loss (meta-objective) on validation set with the one-step-forward $\theta$ fixed; Finally we optimize the unrolled $\theta$ with the updated $T$ on the noisy training set in the stage of Actual-Train.
26
+
27
+ Our contributions can be summarized as follows: We propose a new loss correction approach, Meta Loss Correction (MLC), to learn noise transition matrix. MLC is model-agnostic and can adapt to different backbone networks and can easily generalize to tasks on both computer vision (CV) and natural language processing (NLP). Our MLC does not rely on the 'perfect example' assumption [28] and learns $T$ from data rather than directly uses prior knowledge (stacking the maximum predictions [28] or mean predictions [12] to construct $T$ ). We conduct extensive evaluations on CV datasets: MNIST [3], CIFAR-10 [19], CIFAR-100 [19], Clothing1M [35] and NLP dataset Twitter [8]. MLC achieves very competitive performance on these datasets over state-of-the-art approaches.
28
+
29
+ The paper is organized as follows. In the next section we present a brief introduction to related work. Our methodology is introduced in Section 3. The proposed algorithm is evaluated in Section 4. Section 5 draws the paper to a conclusion.
30
+
31
+ # 2. Related work
32
+
33
+ In this section, we briefly review the existing research on label noise.
34
+
35
+ Robust loss function is widely investigated. [27] proposes two robust loss functions to deal with aerial noise, one handles asymmetric omission noise and the other models registration errors, which can be optimized via an EM algorithm. [29] introduces 'soft' and 'hard' loss functions based on bootstrapping. [7] proves a sufficient condition under that loss to be tolerant to uniform label noise, and shows that 0-1 loss and sigmoid loss satisfy that condition. Then, [6] further proves that mean absolute error (MAE) is a noiserobust loss for deep CNN. Then, [40] proposes a generalized CrossEntropy (GCE) loss, which is a generalization of MAE and traditional CrossEntropy (CE) loss. The weights between MAE and CE can be adapted by tuning the parameters of GCE. Robust loss functions achieve some success, however, they cannot perform well on challenging noisy datasets.
36
+
37
+ Relabelling is the re-assignment of the labels for noisy samples. Relabeling includes two settings: (1) including a small clean dataset and (2) no such a dataset. For (1), [32] proposes a multi-task network: one cleaning model is trained
38
+
39
+ on clean samples to clean (relabel) noisy data, and then one classification model is trained on a merged dataset (clean and relabeled data). [22] distills information from knowledge graph and clean labels to guide the relabelling of the noisy data. For (2), [25] introduces a self-error-correcting (SEC) strategy to relabel the noisy data based on the prediction/confidence of a CNNs. [34] also uses the predictions to relabel the samples.
40
+
41
+ Weighting aims to learn to assign small weights to samples with corrupted labels. [11] introduces co-teaching strategy which simultaneously trains two networks. These two networks select training samples with small loss (expected clean samples) and then communicate with each other with those selected samples for training. Self-paced learning [15, 39] is proposed to learn the weights of training samples guided by the training loss. For random classification noise, [24] designs an importance reweighting method to reweight samples by employing the in-versed noise rates. [16] employs an additional LSTM network to learn the optimal weights of training samples. [30] reweights the training samples by employing a small validation set. [33] detects noisy labels and reweights the noisy samples based on the confidence supplied by noisy label detection.
42
+
43
+ Loss correction approach recently achieved great success on noise-robust learning. Basically, the noise transition matrix $T$ is introduced to correct the predictions. Then the approaches of this category aim to learn the optimal $T$ which can lead to noise-robust performance. [31, 1] add an extra linear layer at the end of a backbone CNN that simulates the noise transition matrix. Instead of modifying architecture, [28, 12, 10] use prior knowledge to estimate $T$ e.g., via stacking the maximum [28] and mean predictions [12] of each class from samples. Our work belongs to this category. As aforementioned, most existing approaches estimate $T$ based on prior knowledge. In comparison, we directly optimize $T$ from data without relying on prior knowledge and assumptions.
44
+
45
+ # 3. Methodology
46
+
47
+ # 3.1. Noisy Label Problem
48
+
49
+ In many applications, the collected dataset is corrupted by label noises. Denote the noisy dataset by $D_{\eta} = \{(x_i,\tilde{y}_i),1\leq i\leq N\}$ where $\tilde{y}_i\in \{0,1\} ^C$ may be noisy label in $C$ classes. Denote the $C\times C$ noise transition matrix by $T$ which specifies the probability of clean label $i$ flipping to noisy label $j$ by $T_{ij} = p(\tilde{y} = j|y = i)$ . Following [12, 30], it is assumed that we have access to a small clean dataset. It is a sound assumption since it is feasible to collect such a dataset in the real world. Denote the small clean dataset (which usually works as validation set) by $D_v = \{(x_i,y_i),1\leq i\leq M\}$ , $M\ll N$ .
50
+
51
+ Let $f(x; \theta)$ denote the backbone DNN which is encoded
52
+
53
+ by $\theta$ , then the CrossEntropy (CE) loss is expressed as:
54
+
55
+ $$
56
+ L o s s = C E (f (x; \theta), \tilde {y}) = - \frac {1}{N} \sum_ {i = 1} ^ {N} \tilde {y} _ {i} \log (f (x _ {i}; \theta)) \tag {1}
57
+ $$
58
+
59
+ Given the noise transition matrix $T$ , we modify the loss function Eq. (1) to include $T$ to achieve noise robust model training. Thus, the corrected loss function is represented as:
60
+
61
+ $$
62
+ L o s s _ {L C} = - \frac {1}{N} \sum_ {i = 1} ^ {N} \tilde {y} _ {i} \log (T f (x _ {i}; \theta)) \tag {2}
63
+ $$
64
+
65
+ Existing approaches The effectiveness of loss correction approaches highly depends on the estimate of $T$ . To estimate $T$ , [28] makes the assumption that there exists 'perfect example' $x_{i}^{\prime}$ of each class $i$ that $p(y = i|x_i') = 1$ . Then 'perfect example' $x_{i}^{\prime}$ is approximated by the sample which has the maximum prediction/probability (softmax score) of class $i$ . Then $T_{ij} = p(y = j|x_i')$ . Unlike [28], Gold Loss Correction (GLC) [12] approximates $T$ using the mean prediction of all the samples belonging to class $i$ on a clean validation set instead of the maximum prediction.
66
+
67
+ Motivation Although [28, 12] achieve promising performance, the assumptions in [28] and [12] cannot always hold true. For example, we cannot guarantee the 'perfect example' of each class always exists. In addition, the estimation of $T$ is heuristic, because $T$ is constructed directly by the simple operations, i.e. maximum [28] or mean[12] of the predictions of samples. In this work, we propose a learning-based model that learns $T$ by employing a meta-learning optimization strategy, Meta Loss Correction (MLC). Our MLC does not rely on 'perfect example' assumption or approximate $T$ by the predictions of samples. Instead, MLC optimizes $T$ directly from data.
68
+
69
+ # 3.2. Optimizing Transition Matrix $T$ via Meta-learning
70
+
71
+ In this work, we conduct an alternating optimization to optimize noise transition matrix $T$ and the backbone network encoded by $\theta$ via the Meta Loss Correction (MLC) strategy. Specifically, the MLC approach contains three stages: Virtual-Train, Meta-Train and Actual-Train. Alternating optimization is performed on these three stages. During Virtual-Train stage, we optimize the backbone network weights $\theta^t$ to obtain $\hat{\theta}^{t + 1}$ with a fixed $T^t$ (which is optimized in the previous iteration) guided by the corrected loss function on noisy training set $D_{\eta}$ . Note that this is a 'virtual' step, meaning that the backbone network does not actually move to $\hat{\theta}^{t + 1}$ . The 'virtual' step makes preparations for estimating $T^{t + 1}$ in the next stage. During MetaTrain stage, we optimize $T^{t + 1}$ by keeping $\hat{\theta}^{t + 1}$ fixed under CrossEntropy loss on a small clean validation set $D_v$ . The motivation of Meta-Train is that we would like to find a
72
+
73
+ ![](images/8ba7460e546c5c53eec1713f93bd6dca1537c57b5f6fe552809852b9d928d745.jpg)
74
+ Figure 1: The framework of the proposed Meta Loss Correction (MLC) approach, which contains three stages: Virtual-Train (First), Meta-Train (Second) and Actual-Train (Third). GD means gradient descent algorithm.
75
+
76
+ $T^{t + 1}$ which has a low validation loss. Since $D_{v}$ is clean, this supervision signal is ideal to guide the optimization of $T^{t + 1}$ . Note that the idea of 'validation' guided approach has also been used for model transfer learning via meta-learning [5] and differentiable neural network search [23].
77
+
78
+ During Actual-Train, the unrolled network weights $\theta^t$ are optimized to obtain $\theta^{t + 1}$ with the updated $T^{t + 1}$ . Clearly, the Actual-Train is the step of 'Actual' backbone network optimization from unrolled network weights rather than a 'virtue' step. The optimization framework is shown in Fig. 1. Then we detail these three optimization steps separately.
79
+
80
+ Virtual-Train Given the noisy training set $D_{\eta}$ , in each mini-batch, we fix $T^t$ and optimize the network weights $\theta^t$ , thus the loss function at step $t$ is:
81
+
82
+ $$
83
+ l _ {\text {v i r t u a l} - \operatorname {t r n}} = - \frac {1}{n} \sum_ {i = 1} ^ {n} \tilde {y} _ {i} \log \left(T ^ {t} f \left(x _ {i}; \theta^ {t}\right)\right) \tag {3}
84
+ $$
85
+
86
+ where $n$ is the batch size in training set. Then the one-step-forward 'virtual' model weights $\hat{\theta}^{t + 1}$ are optimized via gradient descent with learning rate $\alpha$ :
87
+
88
+ $$
89
+ \hat {\theta} ^ {t + 1} \left(T ^ {t}\right) = \theta^ {t} - \alpha \nabla_ {\theta^ {t}} l _ {v i r t u a l - t r n} \tag {4}
90
+ $$
91
+
92
+ Meta-Train Given the one-step-forward backbone network (fixed $\hat{\theta}^{t + 1}$ ), we can optimize the optimal $T^{t + 1}$ on the validation set:
93
+
94
+ $$
95
+ l _ {m e t a - t r n} = - \frac {1}{M} \sum_ {i = 1} ^ {M} y _ {i} \log \left(f \left(x _ {i}; \hat {\theta} ^ {t + 1}\right)\right) \tag {5}
96
+ $$
97
+
98
+ However, this is still time and memory consuming, so we get an approximate estimate on a mini-batch of validation set:
99
+
100
+ $$
101
+ l _ {m e t a - t r n} = - \frac {1}{m} \sum_ {i = 1} ^ {m} y _ {i} \log \left(f \left(x _ {i}; \hat {\theta} ^ {t + 1}\right)\right) \tag {6}
102
+ $$
103
+
104
+ where $m$ is the size of mini-batch. The transition matrix $T$ is also updated via gradient descent method with learning rate $\beta$ :
105
+
106
+ $$
107
+ u ^ {t + 1} = T ^ {t} - \beta \nabla_ {T ^ {t}} l _ {\text {m e t a - t r n}} \tag {7}
108
+ $$
109
+
110
+ Apply chain rule to Eq. (7):
111
+
112
+ $$
113
+ u ^ {t + 1} = T ^ {t} - \beta \left\{\nabla_ {\hat {\theta} ^ {t + 1}} l _ {\text {m e t a - t r n}} \left(- \alpha \nabla_ {\theta^ {t}, T ^ {t}} ^ {2} l _ {\text {v i r t u a l - t r n}}\right) \right\} \tag {8}
114
+ $$
115
+
116
+ Note that $u^{t + 1}$ is the raw one-step-forward noise transition matrix. $u^{t + 1}$ cannot work as the final noise transition matrix because the entries of $u^{t + 1}$ are not always non-negative and $u^{t + 1}$ is not normalized. Thus, we first make $u^{t + 1}$ become non-negative via:
117
+
118
+ $$
119
+ \tilde {T} ^ {t + 1} = \max \left(u ^ {t + 1}, 0\right) \tag {9}
120
+ $$
121
+
122
+ For the $j$ th row of $\tilde{T}^{t + 1}$ , i.e. $\tilde{T}_j^{t + 1} = [\tilde{T}_{j1}^{t + 1},\dots,\tilde{T}_{jC}^{t + 1}]$ which indicates all the probabilities transited to class $j$ , we then perform normalization on $\tilde{T}_j^{t + 1}$ to achieve the final $T_{j}^{t + 1}$ :
123
+
124
+ $$
125
+ T _ {j} ^ {t + 1} = \frac {\tilde {T} _ {j} ^ {t + 1}}{\sum \tilde {T} _ {j} ^ {t + 1} + \delta \left(\sum \tilde {T} _ {j} ^ {t + 1}\right)}, \delta (a) = \left\{ \begin{array}{l l l} 1, & i f & a = 0 \\ 0, & i f & a \neq 0 \end{array} \right. \tag {10}
126
+ $$
127
+
128
+ where $\delta (\cdot)$ is used to avoid division by 0.
129
+
130
+ Actual-Train After the 'virtual' network optimization and the Meta-Train, we now conduct the 'actual' network optimization on noisy training set by keeping $T^{t + 1}$ fixed. Then we can achieve new network weights $\theta^{t + 1}$ via gradient descent with learning rate $\gamma$ on $D_{\eta}$ :
131
+
132
+ $$
133
+ \theta^ {t + 1} = \theta^ {t} - \gamma \nabla_ {\theta^ {t}} \left(- \frac {1}{n} \sum_ {i = 1} ^ {n} \tilde {y} _ {i} \log \left(T ^ {t + 1} f \left(x _ {i}; \theta^ {t}\right)\right)\right) \tag {11}
134
+ $$
135
+
136
+ The whole optimization framework (Virtual-Train, Meta-Train and Actual-Train) is summarized in Algorithm 1.
137
+
138
+ Analysis To understand the influence of noisy labels, we first go through the normal (no corrupted labels) deep model
139
+
140
+ Algorithm 1: Meta Loss Correction (MLC)
141
+ Input: Randomly initialized $\{\theta^t,T^t\}$ noisy training set $D_{\eta}$ , clean validation set $D_{v}$ , the number of iterations I
142
+ for $t = 1,\dots,I$ do Virtual-Train: Optimize the virtual' network weights $\hat{\theta}^{t + 1}$ on $D_{\eta}$ via Eq. (3-4) Meta-Train: Optimize the transition matrix $T^{t + 1}$ on $D_{v}$ via Eq. (5-10) Actual-Train: Optimize the actual' network weights $\theta^{t + 1}$ on $D_{\eta}$ via Eq. (11)
143
+ end
144
+ Output: Model $\theta^{I + 1}$
145
+
146
+ training process. During the initial training stage (Stage I), the network quickly fits easy samples. After that the network learns to fit hard samples (Stage II). This process (Stage I and II) is detailed in [4]. For deep model training with noisy samples, we can see noisy labels do not really affect training too much in Stage I because noisy samples are clearly not easy. During Stage II, the network cannot distinguish the hard samples with correct labels and noisy samples with wrong labels because these two types of samples both produce large loss. The supervision signals from wrong labels can make the network over-fit to the noisy samples during Stage II. The introduce of transition matrix $T$ actually aims to reduce this overfitting in Stage II. The approach [28] uses prior knowledge learned from noisy data to estimate $T$ . However, this estimation cannot guarantee the accuracy of $T$ since this estimation essentially stems from noisy training data. Then the following approach GLC [12] realizes the limitation of [28], and conducts the estimation on a clean validation set which can provide accurate supervision signal. However, GLC does not optimize $T$ directly with a proper loss function associated with deep model training. Instead, GLC heuristically stacks the mean predictions of each class to construct $T$ . In this work, our MLC also uses a clean validation set to avoid wrong supervision signal for estimating $T$ . Moreover, we directly optimize $T$ associated with deep model training with the loss function which targets the best accuracy on the clean validation set. Clearly, our approach is data driven rather than prior knowledge driven.
147
+
148
+ # 4. Experiments
149
+
150
+ # 4.1. Experimental Settings
151
+
152
+ We evaluate our approach on four computer vision (CV) datasets: MNIST [3], CIFAR-10 [19], CIFAR-100 [19] and Clothing1M [35], one natural language processing (NLP) dataset: Twitter [8]. Note that the noises in Clothing1M [35] are from the real world. And the noises on other
153
+
154
+ ![](images/a9954b398d827780e03e9e895a81a3a227ce706783d97fce912ea01a9c038b1f.jpg)
155
+ Figure 2: Visualization of three types of true noise transition matrix $T$ (30% noisy ratio). Using first 4 (10 classes in all) classes as an example.
156
+
157
+ ![](images/8d0987d66e027dbfced143985be6d5c3b7838bfc966d9d274d91809235b133cf.jpg)
158
+
159
+ ![](images/662f05316a608793cbc90d923feebcdc7fc7ac2540a644174f176baa94702632.jpg)
160
+
161
+ datasets are artificially generated.
162
+
163
+ MNIST The MNIST [3] dataset is annotated with 10 object categories, containing $28 \times 28$ handwritten digit images. The training and test sets contain $60k$ and $10k$ images, respectively. For MNIST, we employ a network like LeNet [21] using SGD optimizer with learning rate $1e - 2$ . Set $\alpha = 1e - 2$ , $\beta = 1$ in this implementation.
164
+
165
+ CIFAR The CIFAR [19] dataset contains $32 \times 32$ color images. The training and test sets consist of $50K$ and $10K$ images, respectively. CIFAR-10 and CIFAR-100 contain 10 and 100 categories, respectively. Following [12], we use the Wide ResNet of depth 40 and widening factor 2 (WRN-40-2) [37] on these 2 datasets. We train the network using SGD optimizer with batch-size 64, learning rate $1e - 4$ , momentum 0.9 and weight decay $5e - 4$ . Set $\alpha = 1e - 3$ , $\beta = 1e - 2$ in this implementation.
166
+
167
+ Clothing1M The Clothing1M dataset consists of $1M$ noisy data and additional $50K$ , $14K$ and $10K$ clean data for training, validation and test sets, respectively. The Clothing1M dataset is annotated with 14 classes. Following [28], we use the ResNet-50 which is pre-trained on ImageNet with batch-size 32, learning rate $8e - 3$ , momentum 0.9 and weight decay $1e - 3$ . Set $\alpha = 1e - 2, \beta = 1e - 1$ in this implementation.
168
+
169
+ Twitter The Part-of-Speech Tagger for Twitter [8] dataset contains 1827 tweets annotated with 25 POS tags. The Twitter is split into one training set with 1000 tweets, one development set with 327 tweets, and one test set with 500 tweets. We merge the training and development sets to construct an augmented training set. Following [12], We use window size 3 and a two-layer fully connected network. We train the network using Adam optimizer with batch-size 64, learning rate $1e - 3$ and weight decay $5e - 5$ . Set $\alpha = 1e - 2$ , $\beta = 1$ in this implementation.
170
+
171
+ Noises We conduct extensive experiments under different types of noise. Following [6, 30], we artificially corrupt the labels with three types of noise: flipping uniformly to all classes (Uniform), flipping randomly to any other class (Flip-Random) and flipping to one single different class (Flip-To-One). An example of noise transition matrix (30%
172
+
173
+ noise ratio) under three types of noise is shown in Fig. 2. We evaluate our approach under different noise levels $\{10\%, 20\%, 30\%, 40\% \}$ .
174
+
175
+ Clean validation set For CIFAR-10 and MNIST, we randomly sample 50 clean images per class, so $m = 500$ . For CIFAR-100, we randomly sample 5 clean images per class, so $m = 500$ . For Twitter, we sample 8 clean images per class, so $m = 200$ .
176
+
177
+ Compared approaches We compare with state-of-the-art approaches [28, 12, 30, 10, 11] using the open-source implementations released by original papers. To make fair comparisons, all the approaches use the same training (noisy) and small validation (clean) sets. If the compared approaches do not rely on a small validation set, both the training and small validation sets are merged as training set. The compared approaches include: (1) Baseline (CE). We train a baseline model with CrossEntropy (CE) loss only (not using noise corrections at all). (2) Baseline (FC). We add an extra noise correction layer (Fully-Connected layer) at the end of the backbone network to simulate the noise transition matrix. (3) Forward Loss Correction (Forward). Forward [28] approximates $T$ using the maximum softmax probabilities of corresponding class from the noisy training dataset. (4) Gold Loss Correction (GLC). GLC [12] estimates $T$ using the mean prediction of all samples belonging to the same class from a small clean validation set. (5) Confusion Matrix. It is a simplified version of GLC that estimates $T$ by a confusion matrix [12]. (6) Learning to Reweight Examples (LRE). Instead of estimating $T$ , LRE [30] learns to weight samples with the expectation that the noisy samples have small weights. (7) Co-teaching. Two deep neural networks are trained simultaneously to select training samples with small loss (expected clean data) for each other [11]. In this way, these two networks can teach each other by feeding (expected) clean samples for training. (8) Masking. Masking [10] proposes a structure-aware probabilistic model, which incorporates a (human-assisted) structure prior, to learn the noise transition probabilities. (9) PENCIL. PENCIL [36] introduces a probabilistic model, which can update both network parameters and label esti
178
+
179
+ ![](images/24ce8fef7881ba82e669b2ca7ffe88e8bdec625de44f3a8b43bed50386bafc94.jpg)
180
+ (a) Uniform
181
+
182
+ ![](images/2b3aac02e9cbb10cbb91a67e0cceacf1908f169e680ad7e2908487ddcab97fc8.jpg)
183
+ (b) Flip-Random
184
+
185
+ ![](images/10f94724434cef697e6f39c31654282b32a9635c2de75ed2e0c939c8782d1d56.jpg)
186
+ (c) Flip-To-One
187
+
188
+ ![](images/f2cc0791788d0b7a6bc9d671c424fc2e7115432f4dbb2fbe6b654427f84793b1.jpg)
189
+ Figure 3: Test accuracy $(\%)$ on various sizes of clean image on CIFAR-10 under $30\%$ noise ratio (a) Uniform noise; (b) Flip-Random noise; (c) Flip-To-One noise.
190
+
191
+ ![](images/f68452146d88d12cfb0d24cb1d292a66d4734beace1d5c38818269bfc5135b8c.jpg)
192
+ (b) CIFAR-10, Uniform
193
+
194
+ ![](images/9f7ad97692f0ff7434368a6278ffaa5faffd0350319d8696d015d7d7cd47e6e2.jpg)
195
+ (a) CIFAR-10, All noise types
196
+ (c) CIFAR-10, Flip-Random
197
+
198
+ ![](images/4564216a4d7489ad1f15f7024e6b79e18ab6a27ff719591d63089f1928a48d13.jpg)
199
+ (d) CIFAR-10, Flip-To-One
200
+ Figure 4: The comparisons under various noise types and ratios. (a) Our MLC vs. Baseline(CE) under various types of noise; (b) Our MLC vs. state-of-the-art under Uniform noise; (c) Flip-Random noise; (d) Flip-To-One noise.
201
+
202
+ mations as label distributions.
203
+
204
+ # 4.2. Results
205
+
206
+ The effect of the small clean validation set Following [12, 30, 10, 11], we introduce a small clean validation set to estimate $T$ . In our MLC framework, $T$ is optimized under the supervision of the loss on the small validation set in the stage of Meta-Train. Here we explore the influence of small validation set on the final noise-robust classification performance. We fix the training and test sets and change the size of small validation set. From Fig. 3, we can see that the increase of small validation set (clean images) can boost the performance. However, when the size of small validation set is larger than 100, the gain of performance is
207
+
208
+ small. It means we do not need to annotate a large number of clean dataset to guide the meta training, which is very favorable in the real world. In addition, our MLC consistently outperforms our competitor GLC [12]. In particular, for an extremely small validation set (50 images), MLC significantly works better than GLC. It shows that our MLC is very robust to noises even when very small annotated clean samples are available.
209
+
210
+ Robustness to various types of noise We explore the robustness of our MLC under various types of noise. Specifically, we test under 3 types of noise (Uniform, Flip-Random, Flip-To-One) with noise ratios $\{10\%, 20\%, 30\%, 40\% \}$ . We make this evaluation on CIFAR-10 dataset. Fig. 4 (a) compares our MLC with Baseline(CE) approach.
211
+
212
+ Table 1: Test accuracy $(\%)$ on various datasets under various noise ratios. The best accuracy is in bold. Note that the mean accuracy across three types of noise and four ratios. CIFAR-100 cannot generate samples with 'Uniform' noise due to the limited $(< 100)$ samples per class. The results of Co-teaching are copied from [11].
213
+
214
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2">Method</td><td colspan="4">Uniform</td><td colspan="4">Flip-Random</td><td colspan="4">Flip-To-One</td><td rowspan="2">Mean</td></tr><tr><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td><td>10%</td><td>20%</td><td>30%</td><td>40%</td></tr><tr><td rowspan="7">MNIST</td><td>Baseline(CE)</td><td>98.59</td><td>98.39</td><td>98.27</td><td>98.02</td><td>98.60</td><td>98.46</td><td>98.25</td><td>98.18</td><td>97.59</td><td>96.65</td><td>94.26</td><td>84.68</td><td>96.66</td></tr><tr><td>Confusion[12]</td><td>98.26</td><td>96.05</td><td>91.62</td><td>74.43</td><td>98.73</td><td>98.53</td><td>98.46</td><td>98.39</td><td>98.26</td><td>96.05</td><td>91.62</td><td>74.43</td><td>92.90</td></tr><tr><td>Froward[28]</td><td>98.64</td><td>98.40</td><td>98.36</td><td>98.14</td><td>98.70</td><td>98.48</td><td>98.44</td><td>98.31</td><td>97.84</td><td>97.07</td><td>95.40</td><td>95.21</td><td>97.75</td></tr><tr><td>GLC[12]</td><td>98.72</td><td>98.52</td><td>98.45</td><td>98.23</td><td>98.78</td><td>98.70</td><td>98.42</td><td>98.29</td><td>97.86</td><td>97.45</td><td>96.53</td><td>95.47</td><td>97.95</td></tr><tr><td>LRE[30]</td><td>98.66</td><td>98.60</td><td>98.28</td><td>97.79</td><td>98.92</td><td>98.54</td><td>98.33</td><td>97.77</td><td>98.82</td><td>98.48</td><td>98.15</td><td>97.78</td><td>98.34</td></tr><tr><td>Co-teaching[11]</td><td>-</td><td>97.25</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>87.63</td><td>97.25</td></tr><tr><td>MLC</td><td>98.98</td><td>98.80</td><td>98.64</td><td>98.47</td><td>98.97</td><td>98.91</td><td>98.63</td><td>98.54</td><td>99.18</td><td>98.94</td><td>98.31</td><td>97.36</td><td>98.64</td></tr><tr><td rowspan="8">CIFAR-10</td><td>Baseline(CE)</td><td>80.23</td><td>78.21</td><td>74.13</td><td>72.18</td><td>79.96</td><td>77.94</td><td>75.51</td><td>71.74</td><td>81.31</td><td>80.80</td><td>79.31</td><td>71.25</td><td>76.88</td></tr><tr><td>Confusion[12]</td><td>80.12</td><td>78.23</td><td>74.26</td><td>72.83</td><td>80.40</td><td>77.87</td><td>74.99</td><td>72.11</td><td>81.62</td><td>80.05</td><td>78.76</td><td>75.31</td><td>77.21</td></tr><tr><td>Froward[28]</td><td>81.02</td><td>79.29</td><td>76.91</td><td>74.63</td><td>80.31</td><td>78.26</td><td>75.78</td><td>72.44</td><td>82.49</td><td>81.35</td><td>80.80</td><td>79.43</td><td>78.56</td></tr><tr><td>GLC[12]</td><td>82.69</td><td>80.54</td><td>77.42</td><td>75.44</td><td>82.98</td><td>80.55</td><td>77.24</td><td>74.37</td><td>83.92</td><td>82.72</td><td>81.70</td><td>80.95</td><td>80.04</td></tr><tr><td>LRE[30]</td><td>82.82</td><td>81.80</td><td>79.39</td><td>78.51</td><td>83.02</td><td>81.20</td><td>79.45</td><td>76.88</td><td>84.10</td><td>82.89</td><td>82.42</td><td>81.87</td><td>81.20</td></tr><tr><td>Co-teaching[11]</td><td>-</td><td>82.32</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>72.62</td><td>76.32</td></tr><tr><td>PENCIL[36]</td><td>85.80</td><td>84.56</td><td>82.98</td><td>80.27</td><td>86.07</td><td>84.76</td><td>82.03</td><td>79.53</td><td>86.59</td><td>85.09</td><td>84.27</td><td>78.37</td><td>83.36</td></tr><tr><td>MLC</td><td>85.23</td><td>84.28</td><td>82.10</td><td>79.89</td><td>86.17</td><td>84.60</td><td>82.27</td><td>79.85</td><td>88.17</td><td>85.95</td><td>84.82</td><td>82.75</td><td>83.84</td></tr><tr><td rowspan="8">CIFAR-100</td><td>Baseline(CE)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>50.67</td><td>45.18</td><td>41.68</td><td>37.40</td><td>52.98</td><td>47.72</td><td>44.19</td><td>37.78</td><td>44.56</td></tr><tr><td>Confusion[12]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>36.82</td><td>28.12</td><td>24.07</td><td>19.17</td><td>39.24</td><td>36.02</td><td>35.53</td><td>29.47</td><td>31.06</td></tr><tr><td>Forward[28]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>50.14</td><td>42.19</td><td>37.72</td><td>31.70</td><td>54.51</td><td>53.26</td><td>50.84</td><td>45.42</td><td>45.72</td></tr><tr><td>GLC[12]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>39.46</td><td>37.30</td><td>31.34</td><td>27.51</td><td>45.20</td><td>43.53</td><td>40.18</td><td>37.28</td><td>37.73</td></tr><tr><td>LRE[30]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>54.46</td><td>52.07</td><td>48.64</td><td>44.10</td><td>58.10</td><td>55.53</td><td>53.62</td><td>50.42</td><td>52.12</td></tr><tr><td>Co-teaching[11]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>54.23</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>34.81</td><td>43.47</td></tr><tr><td>PENCIL[36]</td><td>-</td><td>-</td><td>-</td><td>-</td><td>59.97</td><td>56.15</td><td>51.75</td><td>44.85</td><td>60.03</td><td>58.48</td><td>57.33</td><td>52.62</td><td>55.15</td></tr><tr><td>MLC</td><td>-</td><td>-</td><td>-</td><td>-</td><td>60.88</td><td>57.22</td><td>55.68</td><td>53.33</td><td>58.73</td><td>55.70</td><td>52.56</td><td>50.11</td><td>55.53</td></tr><tr><td rowspan="6">Twitter</td><td>Baseline(CE)</td><td>87.36</td><td>86.52</td><td>86.25</td><td>85.41</td><td>87.54</td><td>86.77</td><td>86.03</td><td>85.80</td><td>86.85</td><td>85.01</td><td>81.02</td><td>70.28</td><td>84.57</td></tr><tr><td>Confusion[12]</td><td>84.75</td><td>86.36</td><td>85.75</td><td>85.47</td><td>86.84</td><td>85.65</td><td>85.85</td><td>84.49</td><td>86.06</td><td>85.97</td><td>84.08</td><td>79.65</td><td>85.08</td></tr><tr><td>Froward[28]</td><td>79.05</td><td>77.86</td><td>81.80</td><td>78.38</td><td>55.01</td><td>75.39</td><td>79.32</td><td>68.88</td><td>47.17</td><td>65.30</td><td>71.38</td><td>58.32</td><td>69.82</td></tr><tr><td>GLC[12]</td><td>87.13</td><td>86.40</td><td>85.94</td><td>85.31</td><td>86.88</td><td>85.69</td><td>85.29</td><td>84.31</td><td>86.40</td><td>86.05</td><td>85.65</td><td>85.54</td><td>85.88</td></tr><tr><td>LRE[30]</td><td>86.73</td><td>86.26</td><td>85.75</td><td>85.20</td><td>86.29</td><td>85.44</td><td>85.30</td><td>84.10</td><td>86.60</td><td>86.07</td><td>85.62</td><td>84.91</td><td>85.69</td></tr><tr><td>MLC</td><td>87.28</td><td>86.92</td><td>86.10</td><td>85.52</td><td>87.60</td><td>86.73</td><td>86.12</td><td>85.43</td><td>87.45</td><td>87.01</td><td>85.71</td><td>84.36</td><td>86.35</td></tr></table>
215
+
216
+ We can see that our MCL consistently outperforms Baseline(CE) across all the noise ratios and types, showing the effectiveness of our loss correction strategy. Fig. 4 (b) (c) (d) compare MLC with state-of-the-art approaches under 3 types of noise: Uniform, Flip-Random and Flip-To-One, respectively. Clearly, our MLC consistently outperforms the other approaches. In particular, our MLC works better than other Loss Correction approaches by a very large margin.
217
+
218
+ The effect of meta-learning It is interesting to explore the
219
+
220
+ promising performance coming from our meta-learning or the clean validation set. Then we introduce Baseline (FC) which adds a Fully-Connected layer at the end of the backbone network to simulate the noise transition matrix. We use the clean validation set and an alternating optimization: optimizing the backbone network using the validation set and optimizing the backbone and FC layer using the noisy training set. From Fig. 5, Baseline (FC) works better than Baseline (CE), showing the usefulness of the noise
221
+
222
+ ![](images/0d043eff922a9bbd94ad3bf5d70412da5814ad5c8b4054158a6382db5d0fa8f5.jpg)
223
+ (a) Uniform
224
+
225
+ ![](images/75bb1449449a302f8af30c2374a07b6d167a0a4830e52e0722f06fb14b10f840.jpg)
226
+ (b) Flip-Random
227
+ Figure 5: Comparisons among MLC, Baseline(FC) and Baseline(CE) on CIFAR-10 under various noise types: (a) Uniform noise; (b) Flip-Random noise; (c) Flip-To-One noise.
228
+
229
+ ![](images/3cbab9d96b563b8bca0b256bad51d0457ad792557a387fb8adf927bee865429c.jpg)
230
+ (c) Flip-To-One
231
+
232
+ transition matrix. Since both Baseline (FC) and MLC use the clean validation set, MLC outperforms Baseline (FC), showing the effectiveness of meta-learning.
233
+
234
+ Comparisons with state-of-the-art We make extensive comparisons (various noise types and ratios) with many state-of-the-art approaches on three popular computer vision (CV) datasets (MNIST, CIFAR-10 and CIFAR-100) and one natural language processing (NLP) dataset (Twitter) in Table 1. (1) For MNIST, our MLC consistently outperforms the other approaches across 3 noises. (2) For CIFAR-10, our MLC consistently works better than other approaches, e.g. $83.84\%$ of MLC vs. $83.36\%$ of PENCIL (the 2nd best) in terms of mean accuracy across all the noise ratios and types. PENCIL achieves similar performance with our MLC under individual noise ratios. (3) For CIFAR-100 dataset, our MLC outperforms other approaches under Flip-Random noise and achieves similar performance with PENCIL under Flip-To-One noise. (4) Apart from CV datasets, we also evaluate our MLC on one NLP dataset Twitter to verify the generalization capacity of MLC. Unlike CV datasets, the Baseline(CE) approach achieves comparable performance with the loss correction approaches, e.g. it even outperforms the Forward in terms of mean accuracy: $84.57\%$ (Baseline(CE)) vs. $69.82\%$ (Forward). Our MLC achieves the best mean accuracy: $86.35\%$ (MLC) vs. $85.88\%$ (GLC, the 2nd best).
235
+
236
+ To summarize, MLC is very robust to noises (across various types and ratios) from CV to NLP tasks. In comparison, another state-of-the-art loss correction approach GLC works well on MNIST and CIFAR-10, however, the performance drops significantly on a more challenging dataset CIFAR-100.
237
+
238
+ Real-world noises Finally, to show the robustness of our approach under real-world noises, we test our MLC on Clothing1M dataset. As shown in Table 2, the results of CrossEntropy and Forward are copied from [28], GLC and Mask are copied from [12] and [10], respectively. We can see that our MLC and Mask [10] achieve the best performance, significantly outperforming other approaches. It
239
+
240
+ means that our MLC and Mask [10] are both very robust to real-world noises. Note that Mask [10] manually defines the prior knowledge that which classes are similar (e.g. cat and dog) and which are not (e.g. cat and car). Then this human-defined prior knowledge is used to optimize the noise transition matrix $T$ . In comparison, our MLC learns $T$ directly and automatically from data.
241
+
242
+ Table 2: Test accuracy (%) on Clothing1M.
243
+
244
+ <table><tr><td>Approach</td><td>Prior knowledge</td><td>Accuracy</td></tr><tr><td>CrossEntropy [28]</td><td>no</td><td>68.94</td></tr><tr><td>Forward [28]</td><td>yes</td><td>69.84</td></tr><tr><td>GLC [12]</td><td>yes</td><td>70.84</td></tr><tr><td>Mask [10]</td><td>yes</td><td>71.10</td></tr><tr><td>MLC</td><td>no</td><td>71.06</td></tr></table>
245
+
246
+ # 5. Conclusion
247
+
248
+ In this work, when a small clean dataset is available, we propose a learning-based loss correction approach, Meta Loss Correction (MLC), which can learn noise transition matrix $T$ and network weights jointly via meta-learning. Unlike most existing approaches which estimate $T$ using prior knowledge, MLC learns $T$ directly from data without 'perfect example' assumption and human-in-the-loop process. Extensive experiments are conducted on both CV and NLP datasets. Results show that our MLC approach compares favorably with other loss correction approaches and general state-of-the-art noise-robust deep learning approaches.
249
+
250
+ # Acknowledgment
251
+
252
+ This work is supported by National Key Research and Development Project under Grant 2019YFB2101901 and National Natural Science Foundation of China under Grants 61925602 and 61732011.
253
+
254
+ # References
255
+
256
+ [1] Alan Joseph Bekker and Jacob Goldberger. Training deep neural-networks based on unreliable labels. In ICASSP, pages 2682-2686. IEEE, 2016.
257
+ [2] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2017.
258
+ [3] Li Deng. The mnist database of handwritten digit images for machine learning research [best of the web]. IEEE Signal Processing Magazine, 29(6):141-142, 2012.
259
+ [4] Yang Fan, Fei Tian, Tao Qin, Jiang Bian, and TieYan Liu. Learning what data to learn. arXiv preprint arXiv:1702.08635, 2017.
260
+ [5] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, pages 1126-1135. JMLR.org, 2017.
261
+ [6] Aritra Ghosh, Himanshu Kumar, and PS Sastry. Robust loss functions under label noise for deep neural networks. In AAAI, pages 1919-1925, 2017.
262
+ [7] Aritra Ghosh, Naresh Manwani, and PS Sastry. Making risk minimization tolerant to label noise. Neurocomputing, 160:93-107, 2015.
263
+ [8] Kevin Gimpel, Nathan Schneider, Brendan O'Connor, Dipanjan Das, Daniel Mills, Jacob Eisenstein, Michael Heilman, Dani Yogatama, Jeffrey Flanigan, and Noah A Smith. Part-of-speech tagging for twitter: Annotation, features, and experiments. Technical report, Carnegie-Mellon Univ Pittsburgh Pa School of Computer Science, 2010.
264
+ [9] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 580-587, 2014.
265
+ [10] Bo Han, Jiangchao Yao, Gang Niu, Mingyuan Zhou, Ivor Tsang, Ya Zhang, and Masashi Sugiyama. Masking: A new perspective of noisy supervision. In Advances in Neural Information Processing Systems, 2018.
266
+ [11] 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 Advances in Neural Information Processing Systems, 2018.
267
+ [12] Dan Hendrycks, Mantas Mazeika, Duncan Wilson, and Kevin Gimpel. Using trusted data to train deep networks on labels corrupted by severe noise. NIPS, 2018.
268
+ [13] Guosheng Hu, Yang Hua, Yang Yuan, Zhihong Zhang, Zheng Lu, Sankha S Mukherjee, Timothy M Hospedales, Neil M Robertson, and Yongxin Yang. Attribute-enhanced face recognition with neural tensor fusion networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 3744-3753, 2017.
269
+ [14] Guosheng Hu, Yongxin Yang, Dong Yi, Josef Kittler, William Christmas, Stan Z Li, and Timothy Hospedales. When face recognition meets with deep learning: an evaluation of convolutional neural networks for face recognition.
270
+
271
+ In Proceedings of the IEEE international conference on computer vision workshops, pages 142-150, 2015.
272
+ [15] Lu Jiang, Deyu Meng, Shouou-I Yu, Zhenzhong Lan, Shiguang Shan, and Alexander Hauptmann. Self-paced learning with diversity. In Advances in Neural Information Processing Systems, pages 2078-2086, 2014.
273
+ [16] Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. Mentornet: Regularizing very deep neural networks on corrupted labels. ICML, 2017.
274
+ [17] Ishan Jindal, Matthew Nokleby, and Xuewen Chen. Learning deep networks from noisy labels with dropout regularization. In ICDM, pages 967–972. IEEE, 2016.
275
+ [18] Donald R Jones. A taxonomy of global optimization methods based on response surfaces. Journal of global optimization, 21(4):345-383, 2001.
276
+ [19] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Cite-seer, 2009.
277
+ [20] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012.
278
+ [21] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
279
+ [22] Yuncheng Li, Jianchao Yang, Yale Song, Liangliang Cao, Jiebo Luo, and Li-Jia Li. Learning from noisy labels with distillation. In ICCV, pages 1928-1936, 2017.
280
+ [23] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018.
281
+ [24] Tongliang Liu and Dacheng Tao. Classification with noisy labels by importance reweighting. IEEE TPAMI, 38(3):447-461, 2016.
282
+ [25] Xin Liu, Shaoxin Li, Meina Kan, Shiguang Shan, and Xilin Chen. Self-error-correcting convolutional neural network for learning with noisy labels. In ICFG 2017, pages 111-117. IEEE, 2017.
283
+ [26] Dougal Maclaurin, David Duvenaud, and Ryan Adams. Gradient-based hyperparameter optimization through reversible learning. In ICML-2015, pages 2113–2122, 2015.
284
+ [27] Volodymyr Mnih and Geoffrey E Hinton. Learning to label aerial images from noisy data. In ICML-12, pages 567-574, 2012.
285
+ [28] Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, pages 2233-2241, 2017.
286
+ [29] Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. arXiv preprint arXiv:1412.6596, 2014.
287
+ [30] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. arXiv preprint arXiv:1803.09050, 2018.
288
+ [31] Sainbayar Sukhbaatar and Rob Fergus. Learning from noisy labels with deep neural networks. arXiv preprint arXiv:1406.2080, 2(3):4, 2014.
289
+
290
+ [32] Andreas Veit, Neil Alldrin, Gal Chechik, Ivan Krasin, Abhinav Gupta, and Serge J Belongie. Learning from noisy large-scale datasets with minimal supervision. In CVPR, pages 6575-6583, 2017.
291
+ [33] Yisen Wang, Weiyang Liu, Xingjun Ma, James Bailey, Hongyuan Zha, Le Song, and Shu-Tao Xia. Iterative learning with open-set noisy labels. arXiv preprint arXiv:1804.00092, 2018.
292
+ [34] 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), 2018.
293
+ [35] Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In CVPR, pages 2691-2699, 2015.
294
+ [36] Kun Yi and Jianxin Wu. Probabilistic end-to-end noise correction for learning with noisy labels. CVPR2019, 2019.
295
+ [37] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
296
+ [38] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
297
+ [39] Dingwen Zhang, Deyu Meng, and Junwei Han. Co-saliency detection via a self-paced multiple-instance learning framework. IEEE transactions on pattern analysis and machine intelligence, 39(5):865-878, 2017.
298
+ [40] Zhilu Zhang and Mert Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NIPS, pages 8778-8788, 2018.
299
+ [41] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
trainingnoiserobustdeepneuralnetworksviametalearning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7708191e4ce731773b9d2a1c01d7c9e14238d36d58763f73708a35cf933a1a7
3
+ size 563161
trainingnoiserobustdeepneuralnetworksviametalearning/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26af4e54473e8af5fc59cc4710d332d1fa82cd63553ed06fffa63c54c06d0f1a
3
+ size 437308
trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/d30d93b9-95d1-4cc4-ba15-114829164f29_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06e274dde4b17f3f7089660bb6153095cfaa811a10556ffe4a3474b8c8d53197
3
+ size 80891
trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/d30d93b9-95d1-4cc4-ba15-114829164f29_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7be750ed93988e9cfc9d316cd378916cd47e43a7669f357872e405a09c35aec
3
+ size 101866
trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/d30d93b9-95d1-4cc4-ba15-114829164f29_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0d72e4beae93c2db19b71436fc7b517425ccbb96d5ce257ae58fd133d0b206b
3
+ size 443336
trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/full.md ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Training Quantized Neural Networks with a Full-precision Auxiliary Module
2
+
3
+ Bohan Zhuang $^{1}$ Lingqiao Liu $^{1}$ Mingkui Tan $^{2}$ Chunhua Shen $^{1*}$ Ian Reid $^{1}$ $^{1}$ The University of Adelaide $^{2}$ South China University of Technology
4
+
5
+ # Abstract
6
+
7
+ In this paper, we seek to tackle a challenge in training low-precision networks: the notorious difficulty in propagating gradient through a low-precision network due to the non-differentiable quantization function. We propose a solution by training the low-precision network with a full-precision auxiliary module. Specifically, during training, we construct a mix-precision network by augmenting the original low-precision network with the full precision auxiliary module. Then the augmented mix-precision network and the low-precision network are jointly optimized. This strategy creates additional full-precision routes to update the parameters of the low-precision model, thus making the gradient back-propagates more easily. At the inference time, we discard the auxiliary module without introducing any computational complexity to the low-precision network. We evaluate the proposed method on image classification and object detection over various quantization approaches and show consistent performance increase. In particular, we achieve near lossless performance to the full-precision model by using a 4-bit detector, which is of great practical value.
8
+
9
+ # 1. Introduction
10
+
11
+ Deep neural networks (DNNs) have made great strides in many computer vision tasks such as image classification [11, 20], segmentation [8, 10] and detection [37, 40]. Even though deep and/or wide models can achieve promising accuracy, their huge computational complexity makes them incompatible with energy constrained devices which usually have limited memory bandwidth and computational power. This has motivated the community to design energy-efficient models, often based on quantized precision, aiming not to sacrifice accuracy relative to the full-precision models. In this paper, we propose to improve the training of the low-precision networks.
12
+
13
+ The core challenge for quantization is the non-differentiability of the discrete quantizer. As a result, we cannot directly optimize the discretised network with
14
+
15
+ stochastic gradient descent. And the current solutions can be divided into two categories. The first category is to employ a surrogate of gradient. The most commonly used approach is the straight-through estimator (STE) [2]. Some recent works have been proposed to relax the discrete quantizer to be continuous for gradient-based optimization [1, 31]. Even though the discontinuity of the discretization operation during training can be partly solved by smoothing it appropriately, some important information may still be missed due to the approximation which can lead to an undesirable drop in accuracy. The second category is to seeking guidance from a full-precision model for discretised network training. For example, new training strategies such as knowledge distillation [32, 56, 57] have been proposed to learn a low-precision student network by distilling knowledge from a full-precision teacher network.
16
+
17
+ Our method falls into the second category and our approach is based on the idea of sharing parameters between a mixed-precision (partially fully-precision) model and a low-precision model. Specifically, our method constructs a full-precision auxiliary module which connects to multiple layers of a low-precision model (see Fig. 1). During training, the low-precision network and the full-precision auxiliary module will be combined to form an augmented mixed-precision network. Then, the mixed-precision network and the low-precision model are jointly optimized. Since the parameters from the low-precision model are shared, they can receive gradient from both full-precision connections and low-precision connections. Consequently, the parameters of low-precision model can be updated via two routes, and this can overcome the gradient propagation difficulty due to the discontinuity of the quantizer. Note that only the low-precision network will be utilized for inference and therefore there is no additional complexity introduced at the test stage.
18
+
19
+ In addition to image classification, we further extend the proposed approach to building quantized networks for object detection. Building low-precision networks for object detection is more challenging since detection needs the network outputs richer information, such as locations of bounding boxes. There has been several works in literature to address the quantized object detectors [16, 22, 48]. How
20
+
21
+ ever, there still exists a significant performance drop of 4-bit or lower-precision quantized detectors comparing to their full-precision counterpart. We apply our techniques to train a 4-bit RetinaNet [25] detector and further propose a modification to RetinaNet to better accommodate the quantization design. Through extensive experiments on the COCO benchmark, we show that our 4-bit models can achieve near lossless performance comparing to the full-precision model, which has a significant value in practice.
22
+
23
+ Our contributions can be summarized as follows:
24
+
25
+ - We propose a new training method to account for the non-differentiability of the quantization operator in a low-precision network. Our method can lead to more accurate low-precision model without increasing the model complexity at the testing stage.
26
+ - We apply our learning approach and propose a new design modification to build a 4-bit quantized object detection which achieves comparable performance to its full-precision counterpart.
27
+
28
+ # 1.1. Related work
29
+
30
+ Network quantization. Quantized network represents the weights and activations with very low precision, thus yielding highly compact DNN models compared to their floating-point counterparts. Moreover, the convolution operations can be efficiently computed via bitwise operations. Quantization can be categorized into fixed-point quantization and binary neural networks (BNNs), in which fixed-point quantization can also be divided into uniform and non-uniform. Uniform approaches [17,54,57] design quantizers with a constant quantization step. To reduce the quantization error, non-uniform strategies [4, 52] propose to learn the quantization intervals by jointly optimizing parameters and quantizers. A fundamental problem of quantization is to approximate gradient of the non-differentiable quantizer. To solve this problem, some works have studied relaxed quantization [1, 31, 47, 57]. Moreover, with the popularity of automatic machine learning, some recent literature employs reinforcement learning to search for the optimal bitwidth for each layer [6, 46, 49]. BNNs [14, 36] constrain both weights and activations to binary values (i.e., $+1$ or $-1$ ), which brings great benefits to specialized hardware devices. The development of BNNs can be classified into two categories: (i) a focus on improving the training of BNNs [13, 30, 36, 45]; (ii) multiple binarizations to approximate the full-precision tensor or structure [9, 23, 27, 28, 45, 58]. In this paper, we propose a general auxiliary learning approach that can work on all categories of quantization approaches.
31
+
32
+ Weight sharing. Weight sharing has been attracting increasing attention for efficient, yet accurate computation. In visual recognition, region proposal networks (RPN) in Faster-RCNN [40] and Mask-RCNN [10] share the same
33
+
34
+ backbone with task-specific networks, which greatly saves testing time. For neural architecture search, ENAS [35] allows parameters to be shared among all architectures in the search space, which saves orders of magnitude GPU hours. In the network compression field, weight/activation quantization intends to partition the weight/activation distribution into clusters and use the centers of clusters as the possible discrete values. This strategy can be interpreted as a special case of weight sharing. Different from these approaches, we propose to utilize weight sharing for jointly optimizing the full-precision auxiliary module and the original low-precision network to improve the accuracy of the latter quantized model.
35
+
36
+ Auxiliary supervision. One straightforward way of adding auxiliary supervision is introducing additional losses into intermediate layers, which serves to combat the vanishing gradient problem while providing regularization. The effectiveness of additional losses has been demonstrated in some literature, like GoogLeNet [43], DSN [21], semantic segmentation [33,53], etc. However, these methods are usually sensitive to the positions and scales of the guidance signals. Knowledge distillation (KD) is initially proposed for model compression, where a powerful wide/shallow teacher distills knowledge to a narrow/shallow student to improve its performance [12,41], which can also be treated as adding auxiliary supervisions. In terms of the definition of knowledge to be distilled from the teacher, existing models typically use teacher's class probabilities [12] and/or intermediate features [15,34,41,51,57]. It is worth noting that our proposed auxiliary learning strategy uses weight sharing to assist optimization, where the motivation is very different from the KD methods. We does not need to pre-train a teacher network which is usually much deeper and may be the upper bound of the performance. Moreover, on network quantization, we show consistent superior performance over KD methods in Sec. 4.1.
37
+
38
+ Object detection. Object detection can be divided into two categories. As one of the dominant detection framework, two-stage detection methods [7, 8, 40] first generate region proposals and then refine them by subsequent networks. Another main category is the one-stage methods which are represented by YOLO [37-39], SSD [29] and RetinaNet [25]. The objective is to improve the detection efficiency by directly classifying and regressing the predefined anchors without the proposal generation step. The recent developing trends in object detection is designing light-weight frameworks for mobile applications [5, 44, 48], which usually requires real-time, low-power and fully embedded. In this paper, we explore to compress and accelerate detectors from the quantization perspective. Note that, we are the first to achieve near lossless 4-bit detectors in the literature.
39
+
40
+ ![](images/bf16e6bf07727d5e698e85d706de05de47fa5d9ca8f579ccd19284b78c50d0dc.jpg)
41
+ (a): Overview of the training stage.
42
+
43
+ ![](images/c57998cfda0d07d49bc84f25dadd95270915ae252774e59889799f683671a83d.jpg)
44
+ (b): Overview of the testing stage.
45
+ Figure 1: An overview of the proposed framework. Blue color represents low-precision operations while pink color denotes full-precision operations. During training, the full-precision $H$ is connected to the quantized $F$ to form a mixed-precision network $F \circ H$ . Then the mixed-precision network and the low-precision $F$ are jointly optimized with weight sharing. It is worth noting that only the learnt quantized network $F$ is used during testing.
46
+
47
+ # 2. Method
48
+
49
+ In this section, we describe the proposed learning strategy for training a low-precision network. We first give an overview of the proposed approach in Sec. 2.1. Then we introduce the auxiliary module design in Sec. 2.2 and optimization in Sec. 2.3, respectively. After that, we provide discussions in Sec. 2.4 and explain how to extend it to quantized object detection in Sec. 3. Through the following part, we adopt the following terminologies: A layer is a standard parameterized layer in a network such as a dense or convolutional layer. A block is a collection of layers in which the output of its last layer is connected to the input of the next block (e.g., a residual block).
50
+
51
+ # 2.1. Overview and motivation
52
+
53
+ The overview of the framework is shown in Fig. 1. The blue part, denoted as $F$ , shows the low-precision network we aim to learn. The pink part, denoted as $H$ , is a full-precision sub-network, which we call the auxiliary module. It connects to intermediate outputs from $F$ . The input image is fed into $F$ but generates two outputs, one is from the last layer in $F$ and the other is from the last layer in $H$ . In other words, the combination of $F$ and $H$ forms an augmented mix-precision network $F \circ H$ and the parameters of the low-precision network is shared by this augmented network. At the training time, two loss functions are applied to both outputs, and the mixed-precision network and low-precision network are trained jointly. After training, the auxiliary module $H$ will be discarded and only $F$ will be used at the test time.
54
+
55
+ The motivation of such a design is to create full-precision routes to update parameters of the low-precision model and thus alleviating the difficulty of propagating gradient in a quantized model. Specifically, the intermediate output of
56
+
57
+ each block in $F$ can directly influence the output of the mixed-precision network $F \circ H$ through the full-precision connections in $H$ . Consequently, the gradient from the loss of the second output will back propagate to the parameters of each block in the low-precision model.
58
+
59
+ # 2.2. Module design
60
+
61
+ We now elaborate the design for the auxiliary module $H$ , which is made up of a sequential of adaptors and aggregators as shown in Fig. 1 (a). In particular, the auxiliary module $H$ receives $P$ output feature maps $\{\mathbf{O}_p\}_{p=1}^P$ of the corresponding blocks in $F$ . Let $\{B_1, \dots, B_P\}$ be the block indexes where we generate the feature maps. For the $p$ -th input of $H$ , we adopt a trainable adaptor $\phi_p(\cdot)$ , which receives the output feature map $\mathbf{O}_p$ of the $B_p$ -th block from $F$ and outputs an adapted feature representation $\phi_p(\mathbf{O}_p)$ . The motivation of using the adapter is to compensate the distribution discrepancy between the low-precision model and full-precision model. It ensures the quantized activations $\{\mathbf{O}_p\}_{p=1}^P$ to be compatible to the full-precision calculation in $H$ . We implement those adapters by a simple $1 \times 1$ convolutional layer followed by a batch normalization layer in this paper.
62
+
63
+ In the auxiliary module $H$ , the outputs of the adaptor are then sequentially aggregated. Formally, let $\pmb{g}_p$ denotes the $p$ -th aggregated feature. It is achieved by adding the adapted feature $\phi_p(\mathbf{O}_p)$ from $F$ and the $(p - 1)$ -th aggregated feature from $H$ followed by a $\mathrm{ReLU}(\cdot)$ nonlinearity:
64
+
65
+ $$
66
+ \boldsymbol {g} _ {p} = \operatorname {R e L U} \left(\phi_ {p} \left(\mathbf {O} _ {p}\right) + \boldsymbol {g} _ {p - 1}\right). \tag {1}
67
+ $$
68
+
69
+ At the last layer in $H$ , a classifier layer is applied to $g_{P}$ to make the class prediction. Then an auxiliary loss is employed. Note that the auxiliary module $H$ is akin the skip connections in ResNet [11].
70
+
71
+ Algorithm 1: Joint training approach w.r.t. the main low-precision network $F$ and the full-precision auxiliary module $H$ .
72
+
73
+ Input: Current mini-batch $\{\pmb{x}_i,\pmb{y}_i\}$ ; parameter $\pmb{\theta}^F$ of the low-precision network $F$ ; parameter $\pmb{\theta}^H$ of the full-precision auxiliary module $H$ .
74
+
75
+ Output: Updated parameters $\{\pmb {\theta}^F,\pmb {\theta}^H\}$
76
+
77
+ 1 Obtain the quantized weight $Q^{F} = q(\pmb{\theta}^{F})$ , where $q(\cdot)$ is the quantization function;
78
+ 2 $\pmb{y}_F, \pmb{y}_H = \text{Forward}(\pmb{x}_i, \pmb{Q}^F, \pmb{\theta}^H)$ ;
79
+ 3 Compute the loss $\mathcal{L}(\pmb {y}_i,\pmb {y}_F)$ for the main network $F$
80
+ 4 Compute the loss $\mathcal{L}_{aux}(\pmb{y}_i, \pmb{y}_H)$ for the auxiliary module $H$ ;
81
+ 5 $\frac{\partial\mathcal{L}}{\partial Q^F},\frac{\partial\mathcal{L}_{aux}}{\partial Q^F},\frac{\partial\mathcal{L}_{aux}}{\partial\pmb{\theta}^H} =$ Backward( $\frac{\partial\mathcal{L}}{\partial\pmb{y}_F},\frac{\partial\mathcal{L}_{aux}}{\partial\pmb{y}_H},\pmb {Q}^F,\pmb {\theta}^H)$
82
+ 6 Compute the gradient, in particular
83
+
84
+ $$
85
+ \nabla Q ^ {F} = \frac {1}{2} \left(\frac {\partial \mathcal {L}}{\partial Q ^ {F}} + \frac {\partial \mathcal {L} _ {a u x}}{\partial Q ^ {F}}\right);
86
+ $$
87
+
88
+ 7 Update parameters using Adam;
89
+
90
+ # 2.3. Optimization
91
+
92
+ Let $\{\pmb{x}_i,\pmb{y}_i\}_{i = 1}^N$ be the training samples. The proposed method jointly optimize the main network $F$ and the mixed-precision network which is the combination of $F$ and $H$ , denoting as $F\circ H$ . The training objective is:
93
+
94
+ $$
95
+ \begin{array}{l} \min _ {\left. \boldsymbol {\theta} ^ {F}, \boldsymbol {\theta} ^ {H} \right\}} \sum_ {i = 1} ^ {N} \mathcal {L} \left(F \left(\boldsymbol {x} _ {i}; \boldsymbol {\theta} ^ {F}\right), \boldsymbol {y} _ {i}\right) \tag {2} \\ + \mathcal {L} _ {a u x} ((F \circ H) (\boldsymbol {x} _ {i}; \boldsymbol {\theta} ^ {H}, \boldsymbol {\theta} ^ {F}), \boldsymbol {y} _ {i}), \\ \end{array}
96
+ $$
97
+
98
+ where $\theta^F$ and $\theta^H$ represent the parameters for the backbone $F$ and the auxiliary module $H$ , respectively. $\mathcal{L}$ is the task objective and $\mathcal{L}_{aux}$ is the auxiliary loss. In the classification task, both terms are set to the cross-entropy loss. From Eq. (2), we can note that $\theta^F$ is shared among $F$ and $F \circ H$ . Following the chain rule, the gradient of $\theta^F$ will have an additional term comes from $\mathcal{L}_{aux}$ . As a result, the approximated gradient is averaged from both the mixed-precision network and the original low-precision network to achieve more accurate updating direction. In other words, the full-precision module $H$ provides direct gradient for $F$ using weight sharing during back-propagation. We summarize the proposed learning process for a quantized neural network in Algorithm 1.
99
+
100
+ # 2.4. Relationship to other methods
101
+
102
+ In this section, we will elaborate the relationship between the proposed auxiliary learning and other related approaches.
103
+
104
+ Differences to applying auxiliary classification losses to
105
+
106
+ ![](images/6b93cfaf12df224a86236101f427259e96e1c04be17e7adb6fd7c81771d8104b.jpg)
107
+ (b):
108
+
109
+ ![](images/a9308c50f2241b62b95aee7e0c52ef0a6eb4ada61a767d9b419fc3e4d93ef3ef.jpg)
110
+ Figure 2: Overview of the two related approaches. (a): Adding additional classification losses to intermediate layers. (b): Knowledge distillation. In network quantization, the pink teacher network is full-precision while the blue student network is low-precision.
111
+
112
+ intermediate activations. An alternatively way to create auxiliary full-precision routes for learning low-precision network is to apply classification losses to intermediate activations. The schematic illustration of this idea is shown in Fig. 2 (a), where each intermediate output is attached to a classifier to perform classification. In such a case, the final training objective becomes:
113
+
114
+ $$
115
+ \widetilde {\mathcal {L}} _ {o b j} = \widetilde {\mathcal {L}} + \sum_ {i = 1} ^ {M} \alpha_ {i} \widetilde {\ell} _ {i}, \tag {3}
116
+ $$
117
+
118
+ where $\widetilde{\mathcal{L}}$ is the classification loss of the original low-precision network, $\widetilde{\ell}_i$ is the classification loss applies to the $i$ -th intermediate output, and $\alpha_{i}$ is the weight associated to the $i$ -th loss function. This scheme can directly propagate gradient to each block during training through the full-precision classifiers. However, its supervision is very restrictive since it essentially assumes that the intermediate output can be directly used for classification. In practice, we often find that choosing the positions of adding the additional supervisions or the weight $\alpha_{i}$ can be challenging. An inappropriate setting of those factors may lead to inferior performance than that achieved by directly training the low-precision model.
119
+
120
+ Differences with knowledge distillation. Knowledge distillation (KD) has been explored to assist the quantized model training [32, 56, 57]. In particular, a low-precision student network learns to generate similar posterior probabilities and/or feature representations of a full-precision teacher network (see Fig. 2 (b)). The training objective can be formulated as
121
+
122
+ $$
123
+ \hat {\mathcal {L}} _ {o b j} = \hat {\mathcal {L}} _ {1} + \hat {\mathcal {L}} _ {2} + \sum_ {i = 1} ^ {M} \beta_ {i} \hat {\ell} _ {i}, \tag {4}
124
+ $$
125
+
126
+ where $\hat{\mathcal{L}}_1$ and $\hat{\mathcal{L}}_2$ are task-specific objectives for student and teacher networks respectively. $\hat{\ell}_i$ represents the $i$ -th distillation loss.
127
+
128
+ Although both the proposed method and $KD$ use a full-precision network to guide the training of a low-precision network, the ways of exerting this guidance are significantly different in $KD$ and the proposed method. Specifically, in $KD$ , the guidance from the full-precision model to the low-precision model is from the distillation losses while in our method this is achieved by making the parameters of a low-precision model shared with the mixed-precision model. There are many advantages of our method comparing to $KD$ : (1) Our method only needs an extra memory to store the auxiliary module rather than a full-precision network. Comparing to $KD$ , our method is more memory-efficient. (2) Our method only uses a single auxiliary loss but can create guidance signals to various blocks of the low-precision model. In contrast, $KD$ needs multiple distillation losses to achieve this. Thus it usually involves more hyperparameters, i.e., the weight of each loss term $\beta_{i}$ . Moreover, we empirically find that the proposed learning strategy performs consistently superior than $KD$ for learning quantized networks in Sec. 4.1.3 and Sec. 4.1.4.
129
+
130
+ # 3. Extension to object detection
131
+
132
+ Most existing methods evaluate low-precision network with the classification task. Building a low-precision network for more difficult object detection task remains a challenge. To fill this gap, we further extend our method to build a quantized object detector. Following the work in [24, 25], we consider the object detection framework consisting of a backbone, a feature pyramid and prediction heads. We directly use the quantized network pretrained on the ImageNet classification task to initialize the detection backbone. We adopt the uniform quantization approach QIL [17] to quantize both weights and activations, where the quantization intervals are explicitly parameterized and jointly optimized with the network parameters. We add an individual auxiliary module for each prediction head while sharing a single module for the backbone.
133
+
134
+ Beside of applying the proposed auxiliary module and learning strategy to help training the quantized detector, we also propose a modification which we find beneficial. Specifically, unlike [22] which freezes the batch normalization (BN) statistics during training to stabilize optimization, we instead propose an alternative strategy where the BN statistics still keeps updating: we propose that except the last layers for classification and regression, parameters of the prediction heads are not shared across all feature pyramid levels. This is different from the common full-precision setup. The motivation of this design is that the multi-scale semantic information can not be encoded effectively due to the quantization process at different pyramid levels. For a full-precision network, using a shared head is sufficient to represent rich semantic information for classification and regression with the continuous activations. However, in the
135
+
136
+ low-precision setting, the representational capability of activations is highly degraded due to its discrete values. For the same reason, the batch statistics of quantized activations may differ drastically across different levels. Therefore, each head should learn independent parameters to capture the corresponding multi-scale information.
137
+
138
+ Remark: (1) The proposed modification does not share prediction heads and thus uses more parameters in the low-precision model. However, we should note that without sharing does not increase any additional computational complexity. Even though the number of parameters is increased, the memory consumption is still significantly reduced comparing to the full-precision model due to the low-bit storage. (2) We empirically find that not sharing heads may not improve (but reduce) the performance in the full-precision setting. So the proposed modification is only for low-precision networks. Please check the experiments in Sec. 4.2.3 for more discussions.
139
+
140
+ # 4. Experiments
141
+
142
+ In this section, we evaluate our proposed methods on image classification in Sec. 4.1 and object detection in Sec. 4.2, respectively. To investigate the effectiveness of the proposed method, we define several methods for comparison: Auxi: We optimize the network with the auxiliary module. KD: We employ the joint knowledge distillation in [56, 57] to improve the quantized network. Additional loss: We evenly insert classification losses at intermediate layers to assist training. Note that we will detail the settings in specific sections.
143
+
144
+ # 4.1. Experiments on image classification
145
+
146
+ We perform experiments on two standard image classification datasets: CIFAR-100 [19] and ImageNet [42]. The CIFAR-100 dataset consists of 60,000 color images of size $32 \times 32$ belonging to 100 classes. There are 50,000 training and 10,000 test images. ImageNet contains about 1.2 million training and 50K validation images of 1,000 object categories. To verify the effectiveness of the proposed auxiliary learning strategy, we experiment on various representative quantization approaches, including uniform fixed-point approach DoReFa-Net [54], non-uniform fixed-point method LQ-Net [52], as well as binary neural network approaches BiReal-Net [30] and Group-Net [58].
147
+
148
+ # 4.1.1 Implementation details
149
+
150
+ Following previous approaches [14,52,54,55,57], we quantize all the convolutional layers to ultra-low precision except the first and last layers. However, to further improve the efficiency, we quantize the first convolutional layer and the last fully-connected layer to 8-bit. We first pre-train the full-precision counterpart as initialization and then fine
151
+
152
+ ![](images/9e9aab284c56bc247f162c58739ea410675d7f9b2308f5fd00631bdb77190146.jpg)
153
+ Figure 3: The convergence curves of 2-bit DoReFa-Net ResNet-50 baseline and the proposed auxiliary learning approach on ImageNet validation set during fine-tuning.
154
+
155
+ tune the quantized model. For all ImageNet experiments, training images are resized to $256 \times 256$ , and $224 \times 224$ patches are randomly cropped from an image or its horizontal flip, with the per-pixel mean subtracted. We use the single-crop setting for testing. No bias terms are used. We use SGD optimizer for the pre-training stage. For the fine-tuning stage, we adopt the Adam optimizer [18]. The minibatch size is set to 256. We train a maximum 35 epochs and decay the learning rate by 10 at the 25-th and 30-th epochs. For fine-tuning the fixed-point methods [52, 54], the learning rate is initialized to 1e-3. For fine-tuning binary neural networks [30, 58], the initial learning rate is set to 5e-4. In practice, we take the output of each residual block [11] as the input of the auxiliary module. Our implementation is based on PyTorch.
156
+
157
+ # 4.1.2 Effect of the auxiliary module
158
+
159
+ Table 1: Accuracy $(\%)$ of different comparing methods on the ImageNet validation set.
160
+
161
+ <table><tr><td>model</td><td>method</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td rowspan="2">ResNet-101</td><td>DoReFa-Net (2-bit)</td><td>70.8</td><td>89.6</td></tr><tr><td>DoReFa-Net + Auxi</td><td>74.6</td><td>91.9</td></tr><tr><td rowspan="2">ResNet-50</td><td>DoReFa-Net (2-bit)</td><td>70.2</td><td>89.1</td></tr><tr><td>DoReFa-Net + Auxi</td><td>73.8</td><td>91.4</td></tr><tr><td rowspan="2">ResNet-50</td><td>LQ-Net (3-bit)</td><td>74.2</td><td>91.6</td></tr><tr><td>LQ-Net + Auxi</td><td>75.4</td><td>92.4</td></tr><tr><td rowspan="2">ResNet-18</td><td>BiReal-Net</td><td>56.4</td><td>79.5</td></tr><tr><td>BiReal-Net + Auxi</td><td>58.6</td><td>81.2</td></tr><tr><td rowspan="2">ResNet-18</td><td>Group-Net (5 bases)</td><td>64.8</td><td>85.7</td></tr><tr><td>Group-Net + Auxi</td><td>66.0</td><td>86.5</td></tr></table>
162
+
163
+ In this section, we explore the effect of auxiliary module on assisting the low-precision network optimization. The results are reported in Table 1. By combining the baseline with Auxi, we can observe a steady performance increase compared with the original baseline. This strongly
164
+
165
+ supports that the learned auxiliary gradient can facilitate the convergence of the low-precision model. In particular, the gradient of the shared weights is averaged from both the auxiliary module and the original low-precision network to achieve more accurate updating direction. Moreover, increasing gradient paths is important to solve the non-differentiability of the discrete quantization process has been proved by [3, 30]. To make it more clear, we plot the convergence curves of DoReFa-Net with ResNet-50 in Fig. 3. From the figure, we can observe that baseline + Auxi converges much faster and better than the baseline. After the first epoch, the baseline + Auxi outperforms baseline by $\sim 20\%$ on the Top-1 accuracy. This result strongly justifies that the auxiliary module efficiently solves the nondifferentiable problem by providing accurate hierarchical gradient for updating parameters during back-propagation.
166
+
167
+ It is worth noting that when the network becomes deeper (e.g., ResNet-50, 101), the improvement turns out to be more obvious. For instance, Auxi brings $3.8\%$ Top-1 accuracy increase over the 2-bit baseline on ResNet-101. It can be attributed to that when the quantized network goes deeper, the optimization becomes more difficult due to the non-differentiable discretization process. However, the full-precision auxiliary module can provide direct hierarchical gradient to effectively solve this problem. Note that with the basic uniform DoReFa-Net baseline, we currently achieve the comparing results with state-of-the-arts on ResNet-50 and ResNet-101 [17, 31, 52] without advanced non-uniform or relaxation strategies.
168
+
169
+ # 4.1.3 Comparison with other related approaches
170
+
171
+ In this section, we compare the auxiliary module with the related approaches discussed in Sec. 2.4 and report the performance in Table 2. The experiments are based on the 2-bit DoReFa-Net with ResNet-18, ResNet-34 and ResNet-50 on ImageNet. For KD experiments, the results are directly cited from [56]. We can observe that introducing additional losses into intermediate layers does not show obvious improvement to the final performance. Compared to $KD$ , we don't need to pre-train a complex teacher network whose quality is sensitive to the final performance. In contrast, we propose a simpler yet effective weight sharing strategy to jointly optimize the low-precision network and the floating-point auxiliary module. More detailed analysis on the difference between two approaches can be referred to Sec. 2.4. From the results, we can observe that Auxi consistently outperforms $KD$ . For instance, on ResNet-50, Auxi exceeds $KD$ by $2.4\%$ on the Top-1 accuracy. These results justify that the auxiliary module can effectively solve the non-differentiable problem during back-propagation in the low-precision network training. With a very different learning strategy, Auxi shows consistently superior empirical results than $KD$ . We therefore argue that the proposed auxil
172
+
173
+ iary learning may be a substitute to $KD$ methods [32,57] in network quantization.
174
+
175
+ Table 2: Accuracy (%) of different supervision strategies on the ImageNet validation set based on 2-bit DoReFa-Net on ResNet-18, ResNet-34 and ResNet-50.
176
+
177
+ <table><tr><td>model</td><td>method</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td rowspan="4">ResNet-18</td><td>baseline (2-bit)</td><td>64.7</td><td>86.0</td></tr><tr><td>baseline + Additional loss</td><td>64.9</td><td>86.1</td></tr><tr><td>baseline + KD</td><td>65.6</td><td>86.3</td></tr><tr><td>baseline + Auxi</td><td>66.7</td><td>87.0</td></tr><tr><td rowspan="4">ResNet-34</td><td>baseline (2-bit)</td><td>68.2</td><td>88.1</td></tr><tr><td>baseline + Additional loss</td><td>68.5</td><td>88.2</td></tr><tr><td>baseline + KD</td><td>69.0</td><td>88.6</td></tr><tr><td>baseline + Auxi</td><td>71.2</td><td>89.8</td></tr><tr><td rowspan="4">ResNet-50</td><td>baseline (2-bit)</td><td>70.2</td><td>89.1</td></tr><tr><td>baseline + Additional loss</td><td>70.5</td><td>89.3</td></tr><tr><td>baseline + KD</td><td>71.4</td><td>90.0</td></tr><tr><td>baseline + Auxi</td><td>73.8</td><td>91.4</td></tr></table>
178
+
179
+ # 4.1.4 Experiments on plain networks
180
+
181
+ Table 3: Accuracy (\%) of the proposed approaches on the ImageNet validation set. All the cases are 2-bit and without skip connections except for the baselines. We can observe that the auxiliary module can significantly improve the plain network performance.
182
+
183
+ <table><tr><td>model</td><td>method</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td rowspan="4">DoReFa-Net on ResNet-18</td><td>baseline (2-bit)</td><td>64.7</td><td>86.0</td></tr><tr><td>plain</td><td>61.5</td><td>84.3</td></tr><tr><td>plain + KD</td><td>62.7</td><td>85.0</td></tr><tr><td>plain + Auxi</td><td>63.9</td><td>85.5</td></tr><tr><td rowspan="4">DoReFa-Net on ResNet-34</td><td>baseline (2-bit)</td><td>68.2</td><td>88.1</td></tr><tr><td>plain</td><td>62.1</td><td>83.9</td></tr><tr><td>plain + KD</td><td>64.5</td><td>85.4</td></tr><tr><td>plain + Auxi</td><td>66.4</td><td>86.8</td></tr><tr><td rowspan="4">LQ-Net on ResNet-34</td><td>baseline (2-bit)</td><td>69.8</td><td>89.1</td></tr><tr><td>plain</td><td>63.5</td><td>84.6</td></tr><tr><td>plain + KD</td><td>65.7</td><td>86.8</td></tr><tr><td>plain + Auxi</td><td>68.6</td><td>88.5</td></tr></table>
184
+
185
+ Table 4: Accuracy (%) of 2-bit DoReFa-Net using ResNet-18 on the CIFAR-100 dataset.
186
+
187
+ <table><tr><td>model</td><td>method</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td rowspan="4">ResNet-18</td><td>full-precision</td><td>70.7</td><td>91.3</td></tr><tr><td>baseline (2-bit)</td><td>67.6</td><td>90.2</td></tr><tr><td>plain</td><td>64.6</td><td>88.3</td></tr><tr><td>plain + Auxi</td><td>67.9</td><td>90.0</td></tr></table>
188
+
189
+ We further explore an interesting by-product of the auxiliary module for network quantization. We assume that the auxiliary module mimics the effect of skip connections and can partially share its effect. We therefore analyze training a plain low-precision network without skip connections. The results can be referred in Table 3 and Table 4. plain represents we directly optimize a low-precision plain network without skip connections. By comparing plain and plain +
190
+
191
+ Auxi, we observe apparent accuracy increase by incorporating Auxi. For example, in LQ-Net ResNet-34 based experiments, introducing Auxi can boost the Top-1 accuracy by $5.1\%$ . On tiny CIFAR-100 dataset, plain + Auxi even outperforms the Top-1 baseline. Moreover, same as the observation in Sec. 4.1.3, Auxi still performs consistently better than KD. From the plain network setting, we can strongly justify that the auxiliary module can provide hierarchical gradient to promote convergence of the quantized network.
192
+
193
+ However, we still observe performance gap between plain + Auxi and the baseline on large-scale ImageNet. This can be attributed to two assumptions of skip connections. First, the skip connections may improve the convergence of training, as indicated by the improvement observed when using Auxi. Second, the skip connection and the feature map after one convolution are added through a tensor addition. Then the representational capability (i.e., the value range) of each entry in the added activations is significantly enhanced. In other words, the plain network has less representational capability than its residual counterpart.
194
+
195
+ # 4.1.5 Effect of different auxiliary architectures
196
+
197
+ We further explore the influence of different auxiliary module architectures in Table 5. From the table, we observe that increasing the complexity of the auxiliary module can further boost the performance. For example, by replacing the $1 \times 1$ convolution in the adaptor with a larger kernel of $3 \times 3$ , we further get slightly performance gain. This can be attributed to that the gradient of shared parameters is averaged from $F$ and $F \circ H$ , where better representational capability of $H$ can result in more accurate gradient update.
198
+
199
+ Table 5: Accuracy (%) of using different adaptors. We use DoReFa-Net on ImageNet as our baseline.
200
+
201
+ <table><tr><td>model</td><td>method</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td rowspan="3">ResNet-18</td><td>baseline (2-bit)</td><td>64.7</td><td>86.0</td></tr><tr><td>baseline + 1 × 1 Auxi</td><td>66.7</td><td>87.0</td></tr><tr><td>baseline + 3 × 3 Auxi</td><td>66.9</td><td>87.1</td></tr></table>
202
+
203
+ # 4.2. Experiments on quantized object detection
204
+
205
+ In this section, we evaluate the proposed approach on the general object detection task. Our experiments are conducted on the large-scale detection benchmark COCO [26]. Following [24, 25], we use the COCO trainval35k split (115K images) for training and minival split (5K images) for validation. We conduct experiments based on RetinaNet [25] and compare with the state-of-the-art FQN [22].
206
+
207
+ # 4.2.1 Training details
208
+
209
+ Training is divided into two stages. In the first stage, the detection framework is kept to full-precision. The backbone is initialized with the classification model pre-trained
210
+
211
+ on the ImageNet dataset. Unless specified, we use the same hyper-parameters with RetinaNet. Specifically, all training and evaluation images are resized so that their shorter edges are 800 pixels. We augment training images by random horizontal flipping while no evaluation augmentations are performed. Our network is trained with stochastic gradient descent (SGD) for 90K iterations with the initial learning rate being 0.01 and the batch size of 16. The learning rate is decayed by a factor of 10 at iterations 60K and 80K, respectively. In the second stage, we use the converged model in the first stage as initialization and fine-tune with quantization. This stage uses identical settings as the full-precision training, except that we use Adam optimizer and the initial learning rate is set to 1e-3. Our implementation is based on Detector2 [50].
212
+
213
+ # 4.2.2 Performance evaluation
214
+
215
+ We report the performance of the proposed quantized detection framework in Table 6. From the results, we can observe that our 4-bit detector can achieve near lossless results over the full-precision counterparts, which meets the requirement for practical deployment. Moreover, we can achieve significant performance boost over FQN on all comparing architectures. For example, on ResNet-50, the improvement reaches to 3.6 on AP.
216
+
217
+ Table 6: Performance on the COCO validation set with 4-bit quantization.
218
+
219
+ <table><tr><td>Backbone</td><td>Method</td><td>AP</td><td>\( AP_{50} \)</td><td>\( AP_{75} \)</td><td>\( AP_S \)</td><td>\( AP_M \)</td><td>\( AP_L \)</td></tr><tr><td rowspan="3">ResNet-50</td><td>RetinaNet</td><td>36.5</td><td>56.5</td><td>39.2</td><td>21.4</td><td>40.4</td><td>46.9</td></tr><tr><td>FQN [22]</td><td>32.5</td><td>51.5</td><td>34.7</td><td>17.3</td><td>35.6</td><td>42.6</td></tr><tr><td>Ours</td><td>36.1</td><td>55.8</td><td>38.9</td><td>21.2</td><td>39.9</td><td>46.3</td></tr><tr><td rowspan="3">ResNet-34</td><td>RetinaNet</td><td>35.2</td><td>54.3</td><td>37.6</td><td>19.5</td><td>38.5</td><td>46.2</td></tr><tr><td>FQN [22]</td><td>31.3</td><td>50.4</td><td>33.3</td><td>16.1</td><td>34.4</td><td>41.6</td></tr><tr><td>Ours</td><td>34.7</td><td>53.7</td><td>36.9</td><td>19.3</td><td>38.0</td><td>45.9</td></tr><tr><td rowspan="3">ResNet-18</td><td>RetinaNet</td><td>32.1</td><td>50.5</td><td>34.1</td><td>16.9</td><td>34.8</td><td>42.6</td></tr><tr><td>FQN [22]</td><td>28.6</td><td>46.9</td><td>29.9</td><td>14.9</td><td>31.2</td><td>38.7</td></tr><tr><td>Ours</td><td>31.9</td><td>50.4</td><td>33.7</td><td>16.5</td><td>34.6</td><td>42.3</td></tr></table>
220
+
221
+ # 4.2.3 Ablation studies
222
+
223
+ We now perform ablation studies to give comprehensive analysis and insights of the quantized detection framework. The results are reported in Table 7. "Backbone only" indicates we only quantize the backbone to 4-bit while other parts are kept to full-precision. "Baseline" represents we directly quantize the RetinaNet using QIL [17].
224
+
225
+ When we only quantize the backbone network, we don't observe AP drop at least on ResNet-18. This justifies that 4-bit backbone can encode accurate features for further decoding. However, when quantizing all the components including feature pyramid and prediction heads, we can find obvious precision drop. The baseline result indicates that quantizing the continuous features to a fixed range of integers can cause great multi-scale information loss.
226
+
227
+ We now explore the effect of the two strategies described in Sec. 3. First, we incorporate the proposed auxiliary
228
+
229
+ Table 7: Ablation studies on the COCO validation set with 4-bit quantization.
230
+
231
+ <table><tr><td>Method</td><td>AP</td><td>\( AP_{50} \)</td><td>\( AP_{75} \)</td><td>\( AP_S \)</td><td>\( AP_M \)</td><td>\( AP_L \)</td></tr><tr><td>RetinaNet (w/ sharing)</td><td>32.1</td><td>50.5</td><td>34.1</td><td>16.9</td><td>34.8</td><td>42.6</td></tr><tr><td>RetinaNet (w/o sharing)</td><td>31.2</td><td>49.2</td><td>32.9</td><td>15.8</td><td>34.3</td><td>41.5</td></tr><tr><td>Backbone only (w/ sharing)</td><td>32.1</td><td>50.7</td><td>34.0</td><td>16.7</td><td>34.7</td><td>42.7</td></tr><tr><td>Baseline (w/ sharing)</td><td>29.2</td><td>47.1</td><td>31.0</td><td>14.4</td><td>31.5</td><td>38.5</td></tr><tr><td>Baseline + Auxi (w/ sharing)</td><td>30.6</td><td>48.8</td><td>32.8</td><td>15.5</td><td>33.1</td><td>40.2</td></tr><tr><td>Baseline + Auxi (w/o sharing)</td><td>31.9</td><td>50.4</td><td>33.7</td><td>16.5</td><td>34.6</td><td>42.3</td></tr></table>
232
+
233
+ learning strategy to assist the convergence of quantized detector. Specifically, Baseline + Auxi can boost the AP of Baseline by 1.4. Second, not sharing heads is particularly designed for the low-precision detector. We should note that this strategy deteriorates the performance in the full-precision setting. The reason is that a separate head can only see a certain range size of objects. In contrast, not sharing heads can boost the AP by 1.3 in the quantization setting compared with the sharing heads counterpart. It can be attributed that when quantizing both weights and activations to 4-bit, the representational capability of each head is very limited and the statistics of activations differ a lot. Therefore, each head should learn independent parameters to transform the corresponding level feature for classification and regression.
234
+
235
+ # 5. Conclusion
236
+
237
+ In this paper, we have proposed an auxiliary learning strategy to tackle the non-differentiable quantization process in training low-bitwise convolutional neural networks. Specifically, we have explicitly utilized weight sharing to construct a full-precision auxiliary module. During training, the auxiliary module is combined with the low-precision network to form a mix-precision network, which is jointly optimized with the low-precision model. In this way, the full-precision auxiliary module can provide direct hierarchical gradient during back-propagation to assist the optimization of the low-precision network. In the testing phase, the auxiliary module is removed without introducing any additional computational complexity. Moreover, we have also worked on quantized object detection and proposed several practical solutions. We have conducted extensive experiments based on various quantization approaches and observed consistent performance increase on the image classification and object detection. To be emphasized, we have achieved near lossless results using 4-bit detectors.
238
+
239
+ Acknowledgement MT was in part supported by Guangdong Provincial Scientific and Technological Funds under Grants 2018B010107001. CS was in part supported by ARC DP Project 'Deep learning that scales'. IR was in part supported by ARC Laureate Fellowship FL130100102. We acknowledge the support of the Australian Research Council through the Centre of Excellence for Robotic Vision.
240
+
241
+ # References
242
+
243
+ [1] Yu Bai, Yu-Xiang Wang, and Edo Liberty. Proxquant: Quantized neural networks via proximal operators. In Proc. Int. Conf. Learn. Repren., 2019. 1, 2
244
+ [2] Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013. 1
245
+ [3] Joseph Bethge, Marvin Bornstein, Adrian Loy, Haojin Yang, and Christoph Meinel. Training competitive binary neural networks from scratch. arXiv preprint arXiv:1812.01965, 2018. 6
246
+ [4] Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep learning with low precision by half-wave gaussian quantization. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 5918-5926, 2017. 2
247
+ [5] Guobin Chen, Wongun Choi, Xiang Yu, Tony Han, and Manmohan Chandraker. Learning efficient object detection models with knowledge distillation. In Proc. Adv. Neural Inf. Process. Syst., pages 742-751, 2017. 2
248
+ [6] Yukang Chen, Gaofeng Meng, Qian Zhang, Xinbang Zhang, Liangchen Song, Shiming Xiang, and Chunhong Pan. Joint neural architecture search and quantization. arXiv preprint arXiv:1811.09426, 2018. 2
249
+ [7] Ross Girshick. Fast r-cnn. In Proc. IEEE Int. Conf. Comp. Vis., pages 1440-1448, 2015. 2
250
+ [8] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 580-587, 2014. 1, 2
251
+ [9] Yiwen Guo, Anbang Yao, Hao Zhao, and Yurong Chen. Network sketching: Exploiting binary structure in deep cnns. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 5955-5963, 2017. 2
252
+ [10] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proc. IEEE Int. Conf. Comp. Vis., pages 2980-2988, 2017. 1, 2
253
+ [11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 770-778, 2016. 1, 3, 6
254
+ [12] Geoffrey Hinton, Oriol Vinyls, and Jeff Dean. Distilling the knowledge in a neural network. In Proc. Adv. Neural Inf. Process. Syst. Workshops, 2014. 2
255
+ [13] Lu Hou, Quanming Yao, and James T Kwok. Loss-aware binarization of deep networks. In Proc. Int. Conf. Learn. Repren., 2017. 2
256
+ [14] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In Proc. Adv. Neural Inf. Process. Syst., pages 4107-4115, 2016. 2, 5
257
+ [15] Seung Hyun Lee, Dae Ha Kim, and Byung Cheol Song. Self-supervised knowledge distillation using singular value decomposition. In Proc. Eur. Conf. Comp. Vis., 2018. 2
258
+ [16] Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry
259
+
260
+ Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2704-2713, 2018. 1
261
+ [17] Sangil Jung, Changyong Son, Seohyung Lee, Jinwoo Son, Jae-Joon Han, Youngjun Kwak, Sung Ju Hwang, and Changkyu Choi. Learning to quantize deep networks by optimizing quantization intervals with task loss. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4350-4359, 2019. 2, 5, 6, 8
262
+ [18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proc. Int. Conf. Learn. Repren., 2015. 6
263
+ [19] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. 5
264
+ [20] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Proc. Adv. Neural Inf. Process. Syst., pages 1097-1105, 2012. 1
265
+ [21] Chen-Yu Lee, Saining Xie, Patrick Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeply-supervised nets. In Artificial Intelligence and Statistics, pages 562-570, 2015. 2
266
+ [22] Rundong Li, Yan Wang, Feng Liang, Hongwei Qin, Junjie Yan, and Rui Fan. Fully quantized network for object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2810-2819, 2019. 1, 5, 7, 8
267
+ [23] Zefan Li, Bingbing Ni, Wenjun Zhang, Xiaokang Yang, and Wen Gao. Performance guaranteed network acceleration via high-order residual quantization. In Proc. IEEE Int. Conf. Comp. Vis., pages 2584-2592, 2017. 2
268
+ [24] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2117-2125, 2017. 5, 7
269
+ [25] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In Proc. IEEE Int. Conf. Comp. Vis., pages 2980-2988, 2017. 2, 5, 7
270
+ [26] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dálár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Proc. Eur. Conf. Comp. Vis., pages 740-755, 2014. 7
271
+ [27] Xiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. In Proc. Adv. Neural Inf. Process. Syst., pages 344-352, 2017. 2
272
+ [28] Chunlei Liu, Wenrui Ding, Xin Xia, Baochang Zhang, Jiaxin Gu, Jianzhuang Liu, Rongrong Ji, and David Doermann. Circulant binary convolutional networks: Enhancing the performance of 1-bit dcnns with circulant back propagation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2691-2699, 2019. 2
273
+ [29] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In Proc. Eur. Conf. Comp. Vis., pages 21-37, 2016. 2
274
+ [30] 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 Proc. Eur. Conf. Comp. Vis., pages 722-737, 2018. 2, 5, 6
275
+
276
+ [31] Christos Louizos, Matthias Reisser, Tijmen Blankevoort, Efstratos Gavves, and Max Welling. Relaxed quantization for discretized neural networks. In Proc. Int. Conf. Learn. Repren., 2019. 1, 2, 6
277
+ [32] Asit Mishra and Debbie Marr. Apprentice: Using knowledge distillation techniques to improve low-precision network accuracy. In Proc. Int. Conf. Learn. Repren., 2018. 1, 4, 7
278
+ [33] Vladimir Nekrasov, Hao Chen, Chunhua Shen, and Ian Reid. Fast neural architecture search of compact semantic segmentation models via auxiliary cells. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 9126-9135, 2019. 2
279
+ [34] Wonpyo Park, Dongju Kim, Yan Lu, and Minsu Cho. Relational knowledge distillation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019. 2
280
+ [35] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In Proc. Int. Conf. Mach. Learn., pages 4092-4101, 2018. 2
281
+ [36] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In Proc. Eur. Conf. Comp. Vis., pages 525-542, 2016. 2
282
+ [37] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 779-788, 2016. 1, 2
283
+ [38] Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 7263-7271, 2017. 2
284
+ [39] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. 2
285
+ [40] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Proc. Adv. Neural Inf. Process. Syst., pages 91-99, 2015. 1, 2
286
+ [41] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. In Proc. Int. Conf. Learn. Repren., 2015. 2
287
+ [42] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. Int. J. Comp. Vis., 115(3):211-252, 2015. 5
288
+ [43] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 1-9, 2015. 2
289
+ [44] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2820-2828, 2019. 2
290
+ [45] Wei Tang, Gang Hua, and Liang Wang. How to train a compact binary neural network with high accuracy? In Proc. AAAI Conf. on Arti. Intel., pages 2625-2631, 2017. 2
291
+
292
+ [46] Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. Haq: Hardware-aware automated quantization. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019. 2
293
+ [47] Peisong Wang, Qinghao Hu, Yifan Zhang, Chunjie Zhang, Yang Liu, Jian Cheng, et al. Two-step quantization for low-bit neural networks. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4376-4384, 2018. 2
294
+ [48] Yi Wei, Xinyu Pan, Hongwei Qin, Wanli Ouyang, and Junjie Yan. Quantization mimic: Towards very tiny cnn for object detection. In Proc. Eur. Conf. Comp. Vis., pages 267-283, 2018. 1, 2
295
+ [49] Bichen Wu, Yanghan Wang, Peizhao Zhang, Yuandong Tian, Peter Vajda, and Kurt Keutzer. Mixed precision quantization of convnets via differentiable neural architecture search. arXiv preprint arXiv:1812.00090, 2018. 2
296
+ [50] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019.8
297
+ [51] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In Proc. Int. Conf. Learn. Repren., 2017. 2
298
+ [52] Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In Proc. Eur. Conf. Comp. Vis., pages 365-382, 2018. 2, 5, 6
299
+ [53] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2881-2890, 2017. 2
300
+ [54] Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016. 2, 5, 6
301
+ [55] Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. Proc. Int. Conf. Learn. Repren., 2017. 5
302
+ [56] Bohan Zhuang, Jing Liu, Mingkui Tan, Lingqiao Liu, Ian Reid, and Chunhua Shen. Effective training of convolutional neural networks with low-bitwidth weights and activations. arXiv preprint arXiv:1908.04680, 2019. 1, 4, 5, 6
303
+ [57] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian Reid. Towards effective low-bitwidth convolutional neural networks. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 7920-7928, 2018. 1, 2, 4, 5, 7
304
+ [58] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian Reid. Structured binary neural network for accurate image classification and semantic segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 413-422, 2019, 2, 5, 6
trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3189bdb0ba431c428d7f6d2f05a42f2986c21d6135508e58854adc13daac3630
3
+ size 333617
trainingquantizedneuralnetworkswithafullprecisionauxiliarymodule/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e94283f98a2f851382f10398dfdcbee8ac859a98ec945e4a0cc3fb3600b6a5a
3
+ size 420584
transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/7a38f569-03ba-4ee1-89ea-d306b726afe0_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3023ea0e91804c55acc871186a97d2cf76f01b7997cc400ccf609a1eedc40ab7
3
+ size 89301
transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/7a38f569-03ba-4ee1-89ea-d306b726afe0_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8390ebee807fca83660fabbae8496671f9f1fc35153eb523e7973679995727a9
3
+ size 109993
transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/7a38f569-03ba-4ee1-89ea-d306b726afe0_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caa49bd81c24d55cdc80ed5d668c94bc26ba18dd82192e3d9657310c974d015e
3
+ size 1480456
transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/full.md ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Transferable, Controllable, and Inconspicuous Adversarial Attacks on Person Re-identification With Deep Mis-Ranking
2
+
3
+ Hongjun Wang $^{1*}$ Guangrun Wang $^{1*}$ Ya Li $^{2}$ Dongyu Zhang $^{2}$ Liang Lin $^{1,3\dagger}$
4
+
5
+ $^{1}$ Sun Yat-sen University $^{2}$ Guangzhou University $^{3}$ DarkMatter AI
6
+
7
+ $^{1}\{wanghq8, wanggrun, zhangdy27\} \text{}@mail2.sysu.edu.cn$ $^{2}$ liya@gzhu.edu.cn $^{3}$ linliang@ieee.org
8
+
9
+ # Abstract
10
+
11
+ The success of DNNs has driven the extensive applications of person re-identification (ReID) into a new era. However, whether ReID inherits the vulnerability of DNNs remains unexplored. To examine the robustness of ReID systems is rather important because the insecurity of ReID systems may cause severe losses, e.g., the criminals may use the adversarial perturbations to cheat the CCTV systems.
12
+
13
+ In this work, we examine the insecurity of current best-performing ReID models by proposing a learning-to-mis-rank formulation to perturb the ranking of the system output. As the cross-dataset transferability is crucial in the ReID domain, we also perform a back-box attack by developing a novel multi-stage network architecture that pyramids the features of different levels to extract general and transferable features for the adversarial perturbations. Our method can control the number of malicious pixels by using differentiable multi-shot sampling. To guarantee the inconspicuousness of the attack, we also propose a new perception loss to achieve better visual quality.
14
+
15
+ Extensive experiments on four of the largest ReID benchmarks (i.e., Market1501 [45], CUHK03 [17], DukeMTMC [33], and MSMT17 [40]) not only show the effectiveness of our method, but also provides directions of the future improvement in the robustness of ReID systems. For example, the accuracy of one of the best-performing ReID systems drops sharply from $91.8\%$ to $1.4\%$ after being attacked by our method. Some attack results are shown in Fig. 1. The code is available at https://github.com/whj363636/Adversarial-attack-on-Person-ReID-With-Deep-Mis-Ranking.
16
+
17
+ # 1. Introduction
18
+
19
+ The success of deep neural networks (DNNs) has benefited a wide range of computer vision tasks, such as person
20
+
21
+ ![](images/0b83cb9904e5d70ee105621027f755c3d005613a9880d25ee458d796654f30dd.jpg)
22
+ Figure 1. The rank-10 predictions of AlignedReID [36] (one of the state-of-the-art ReID models) before and after our attack on Market-1501. The green boxes represent the correctly matching images, while the red boxes represent the mismatching images.
23
+
24
+ re-identification (ReID), a crucial task aiming at matching pedestrians across cameras. In particular, DNNs have benefited ReID in learning discriminative features and adaptive distance metrics for visual matching, which drives ReID to a new era [36,44]. Thanks to DNNs, there have been extensive applications of ReID in video surveillance or criminal identification for public safety.
25
+
26
+ Despite the impressive gain obtained from DNNs, whether ReID inherits the vulnerability of DNNs remains unexplored. Specifically, recent works found that DNNs are vulnerable to adversarial attacks [23, 35] (An adversarial attack is to mislead a system with adversarial examples). In the past two years, the adversarial attack has achieved remarkable success in fooling DNN-based systems, e.g., image classification. Can the recent DNN-based ReID systems survive from an adversarial attack? The answer seems not promising. Empirically, evidence has shown that a person wearing bags, hats, or glasses can mislead a ReID system to output a wrong prediction [7, 11, 16, 22, 43]. These examples may be regarded as natural adversarial examples.
27
+
28
+ To examine the robustness of ReID systems against adversarial attacks is of significant importance. Because the insecurity of ReID systems may cause severe losses, for example, in criminal tracking, the criminal may disguise themselves by placing adversarial perturbations (e.g., bags, hats, and glasses) on the most appropriate position of the
29
+
30
+ body to cheat the video surveillance systems. By investigating the adversarial examples for the ReID systems, we can identify the vulnerability of these systems and help improve the robustness. For instance, we can identify which parts of a body are most vulnerable to the adversarial attack and require future ReID systems to pay attention to these parts. We can also improve ReID systems by using adversarial training in the future. In summary, developing adversarial attackers to attack ReID is desirable, although no work has been done before.
31
+
32
+ As the real-world person identities are endless, and the queried person usually does not belong to any category in the database, ReID is defined as a ranking problem rather than a classification problem. But existing attack methods for image classification, segmentation, detection, and face recognition do not fit a ranking problem. Moreover, since the image domains vary at different times and in different cameras, examining the robustness of ReID models by employing a cross-dataset black-box attack should also be taken into consideration. However, existing adversarial attack methods often have poor transferability, i.e., they are often designed for a sole domain of task (e.g., Dataset A) and can not be reused to another domain (e.g., Dataset B) due to their incapacity to find general representations for attacking. Furthermore, we focus on attacks that are inconspicuous to examine the insecurity of ReID models. Existing adversarial attack methods usually have a defective visual quality that can be perceived by humans.
33
+
34
+ To address the aforementioned issues, we design a transferable, controllable, and inconspicuous attacker to examine the insecurity of current best-performing ReID systems. We propose a learning-to-mis-rank formulation to perturb the ranking prediction of ReID models. A new mis-ranking loss function is designed to attack the ranking of the potential matches, which fits the ReID problem perfectly. Our mis-ranking based attacker is complementary to existing misclassification based attackers. Besides, as is suggested by [12], adversarial examples are features rather than bugs. Hence, to enhance the transferability of the attacker, one needs to improve the representation learning ability of the attacker to extract the general features for the adversarial perturbations. To this end, we develop a novel multi-stage network architecture for representation learning by pyramiding the features of different levels of the discriminator. This architecture shows impressive transferability in blackbox attack for the complicated ReID tasks. The transferability leads to our joint solution of both white- and blackbox attack. To make our attack inconspicuous, we improve the existing adversarial attackers in two aspects. First, the number of target pixels to be attacked is controllable in our method, due to the use of a differentiable multi-shot sampling. Generally, the adversarial attack can be considered as searching for a set of target pixels to be contaminated
35
+
36
+ by noise. To make the search space continuous, we relax the choice of a pixel as a Gumbel softmax over all possible pixels. The number of target pixels is determined by the dynamic threshold of the softmax output and thus can be controllable. Second, a new perception loss is designed by us to improve the visual quality of the attacked images, which guarantees the inconspicuousness.
37
+
38
+ Experiments were performed on four of the largest ReID benchmarks, i.e., Market1501 [45], CUHK03 [17], DukeMTMC [33], and MSMT17 [40]. The results show the effectiveness of our method. For example, the performance of one of the best-performing systems [44] drops sharply from $91.8\%$ to $1.4\%$ after attacked by our method. Except for showing a higher success attack rate, our method also provides interpretable attack analysis, which provides direction for improving the robustness and security of the ReID system. Some attack results are shown in Fig. 1. To summarize, our contribution is four-fold:
39
+
40
+ - To attack ReID, we propose a learning-to-mis-rank formulation to perturb the ranking of the system output. A new mis-ranking loss function is designed to attack the ranking of the predictions, which fits the ReID problem perfectly. Our mis-ranking based adversarial attacker is complementary to the existing misclassification based attackers.
41
+ - To enhance the transferability of our attacker and perform a black-box attack, we improve the representation capacity of the attacker to extract general and transferable features for the adversarial perturbations.
42
+ - To guarantee the inconspicuousness of the attack, we propose a differentiable multi-shot sampling to control the number of malicious pixels and a new perception loss to achieve better visual quality.
43
+ - By using the above techniques, we examine the insecurity of existing ReID systems against adversarial attacks. Experimental validations on four of the largest ReID benchmarks show not only the successful attack and the visual quality but also the interpretability of our attack, which provides directions for the future improvement in the robustness of ReID systems.
44
+
45
+ # 2. Related Work
46
+
47
+ Person Re-identification. ReID is different from image classification tasks in the setup of training and testing data. In an image classification task, the training and test set share the same categories, while in ReID, there is no category overlap between them. Therefore, deep ranking [4] is usually in desire for ReID. However, deep ranking is sensitive to alignment. To address the (dis)alignment problem, several methods have been proposed by using structural messages [18, 36]. Recently, Zhang et al. [44] introduce the shortest path loss to supervise local parts align
48
+
49
+ ![](images/5f49015fa77ae3dbd029424d2ebbd405f2c0619a0b1fe9bacd9846d2ba4f4961.jpg)
50
+ (a)
51
+
52
+ ![](images/0aa2f69b741cc06b10f579dee27fc1ffa08d5cf35ae0d3398635af703de420ab.jpg)
53
+ (b)
54
+ Figure 2. (a) The framework of our method. Our goal is to generate some noise $\mathcal{P}$ to disturb the input images $\mathcal{I}$ . The disturbed images $\hat{\mathcal{I}}$ is able to cheat the ReID system $\mathcal{T}$ by attacking the visual similarities. (b) Specifically, the distance of each pair of samples from different categories (e.g., $(\hat{I}_c^k, I)$ , $\forall I \in \{I_{cd}\}$ ) is minimized, while the distance of each pair of the samples from the same category (e.g., $(\hat{I}_c^k, I)$ , $\forall I \in \{I_{cs}\}$ ) is maximized. The overall framework is trained by a generative adversarial network (GAN).
55
+
56
+ ing and adopt a mutual learning approach in the metric learning setting, which has obtained the surpassing human-level performance. Besides the supervised learning mentioned above, recent advance GANs have been introduced to ReID to boost performance in some unsupervised manner [3, 47, 49, 50]. Despite their success, the security and robustness of the existing ReID system have not yet been examined. Analyzing the robustness of a ReID system to resist attacks should be raised on the agenda.
57
+
58
+ Adversarial Attacks. Since the discovery of adversarial examples for DNNs [38], several adversarial attacks have been proposed in recent years. Goodfellow et al. [6] proposes to generate adversarial examples by using a single step based on the sign of the gradient for each pixel, which often leads to sub-optimal results and the lack of generalization capacity. Although DeepFool [28] is capable of fooling deep classifiers, it also lacks generalization capacity. Both methods fail to control the number of pixels to be attacked. To address this problem, [30] utilize the Jacobian matrix to implicitly conduct a fixed length of noise through the direction of each axis. Unfortunately, it cannot arbitrarily decide the number of target pixels to be attacked. [35] proposes to modify the single-pixel adversarial attack. However, the searching space and time grow dramatically with the increment of target pixels to be attacked. Besides the image classification, the adversarial attack is also introduced to face recognition [5, 34]. As discussed Section 1, all of the above methods do not fit the deep ranking problem. Also, their transferability is poor. Furthermore, many of them do not focus on the inconspicuousness of the visual quality. These drawbacks limit their applications in open-set tasks, e.g., ReID, which is our focus in this work. Although [1] has studied in metric analysis in person ReID, it does not provide a new adversarial attack method for ReID. It just uses the off-the-shelf methods for misclassification to examine very few ReID methods.
59
+
60
+ # 3. Methodology
61
+
62
+ # 3.1. Overall Framework
63
+
64
+ The overall framework of our method is presented in Fig. 2 (a). Our goal is to use the generator $\mathcal{G}$ to produce deceptive noises $\mathcal{P}$ for each input image $\mathcal{I}$ . By adding the noises $\mathcal{P}$ to the image $\mathcal{I}$ , we obtain the adversarial example $\hat{\mathcal{I}}$ , using which we are able to cheat the ReID system $\mathcal{T}$ to output the wrong results. Specifically, the ReID system $\mathcal{T}$ may consider the matched pair of images dissimilar, while considering the mismatched pair of images similar, as shown in Fig.2 (b). The overall framework is trained by a generative adversarial network ( $GAN$ ) with a generator $\mathcal{G}$ and a novel discriminator $\mathcal{D}$ , which will be described in Section 3.3.
65
+
66
+ # 3.2. Learning-to-Mis-Rank Formulation For ReID
67
+
68
+ We propose a learning-to-mis-rank formulation to perturb the ranking of system output. A new mis-ranking loss function is designed to attack the ranking of the predictions, which fits the ReID problem perfectly. Our method tends to minimize the distance of the mismatched pair and maximize the distance of the matched pair simultaneously. We have:
69
+
70
+ $$
71
+ \begin{array}{l} \mathcal {L} _ {a d v \_ e t r i} = \sum_ {k = 1} ^ {K} \sum_ {c = 1} ^ {C _ {k}} \left[ \max _ {\substack {j \neq k \\ j = 1 \dots K \\ c _ {d} = 1 \dots C _ {j}}} \left\| \mathcal {T} \left(\hat {\mathcal {I}} _ {c} ^ {k}\right) - \mathcal {T} \left(\hat {\mathcal {I}} _ {c _ {d}} ^ {j}\right) \right\| _ {2} ^ {2} \right. \tag{1} \\ \left. - \min _ {c _ {s} = 1 \dots C _ {k}} \left\| \mathcal {T} \left(\hat {\mathcal {I}} _ {c} ^ {k}\right) - \mathcal {T} \left(\hat {\mathcal {I}} _ {c _ {s}} ^ {k}\right) \right\| _ {2} ^ {2} + \Delta \right] _ {+}, \\ \end{array}
72
+ $$
73
+
74
+ where $C_k$ is the number of samples drawn from the $k$ -th person ID, $\mathcal{I}_c^k$ is the $c$ -th images of the $k$ ID in a mini-batch, $c_s$ and $c_d$ are the samples from the same ID and the different IDs, $\left\| \cdot \right\|_2^2$ is the square of L2 norm used as the distance metric, and $\Delta$ is a margin threshold. Eqn.1 attacks the deep ranking in the form of triplet loss [4], where the distance of the easiest distinguished pairs of inter-ID images are encouraged to small, while the distance of the easiest distinguished pairs of intra-ID images are encouraged to large.
75
+
76
+ Remarkably, using the mis-ranking loss has a couple of advantages. First, the mis-ranking loss fits the ReID problem perfectly. As is mentioned above, ReID is different from image classification tasks in the setup of training and testing data. In an image classification task, the training and test set share the same categories, while in ReID, there is no category overlap between them. Therefore, the mis-ranking loss is suitable for attacking ReID. Second, the mis-ranking loss not only fits the ReID problem; it may fit all the open-set problems. Therefore, the use of mis-ranking loss may also benefit the learning of general and transferable features for the attackers. In summary, our mis-ranking based adversarial attacker is perfectly complementary to the existing misclassification based attackers.
77
+
78
+ # 3.3. Learning Transferable Features for Attacking
79
+
80
+ As is suggested by [12], adversarial examples are features rather than bugs. Hence, to enhance the transferability of an attacker, one needs to improve the representation learning ability of the attacker to extract the general features for the adversarial perturbations. In our case, the representation learners are the generator $\mathcal{G}$ and the discriminator $\mathcal{D}$ (see Fig. 2 (a)). For the generator $\mathcal{G}$ , we use the ResNet50. For the discriminator $\mathcal{D}$ , recent adversarial defenders have utilized cross-layer information to identify adversarial examples [2, 19, 20, 26, 42]. As their rival, we develop a novel multi-stage network architecture for representation learning by pyramiding the features of different levels of the discriminator. Specifically, as shown in Fig. 3, our discriminator $\mathcal{D}$ consists of three fully convolutional sub-networks, each of which includes five convolutional, three downsampling, and several normalization layers [13, 27]. The three sub-networks receives $\{1, 1/2^2, 1/4^2\}$ areas of the original images as the input, respectively. Next, the feature maps from these sub-networks with the same size are combined into the same stage following [21]. A stage pyramid with series of downsampled results with a ratio of $\{1/32, 1/16, 1/8, 1/4\}$ of the image is thus formulated. With the feature maps from the previous stage, we upsample the spatial resolution by a factor of 2 using bilinear upsampling and attach a $1 \times 1$ convolutional layer to reduce channel dimensions. After an element-wise addition and a $3 \times 3$ convolutions, the fused maps are fed into the next stage. Lastly, the network ends with two atrous convolution layers and a $1 \times 1$ convolution to perform feature re-weighting, whose final response map $\lambda$ is then fed into downstream sampler $\mathcal{M}$ discussed in Section 3.4. Remarkably, all these three sub-networks are optimized by standard loss following [25].
81
+
82
+ # 3.4. Controlling the Number of the Attacked Pixels
83
+
84
+ To make our attack inconspicuous, we improve the existing attackers in two aspects. The first aspect is to control the number of the target pixels to be attacked. Generally, an
85
+
86
+ ![](images/e871599c06947564ca144ac45bed8a3ae87202606a878f5105ca47b7922d6c61.jpg)
87
+ Figure 3. Detail of our multi-stage discriminator.
88
+
89
+ adversarial attack is to introduce a set of noise to a set of target pixels for a given image to form an adversarial example. Both the noise and the target pixels are unknown, which will be searched by the attacker. Here, we present the formulation of our attacker in searching for the target pixels. To make the search space continuous, we relax the choice of a pixel as a Gumbel softmax over all possible pixels:
90
+
91
+ $$
92
+ p _ {i, j} = \frac {\exp \left(\left(l o g \left(\lambda_ {i , j} + \mathcal {N} _ {i , j}\right)\right) / \tau\right)}{\sum_ {i , j = 1} ^ {H , W} \exp \left(l o g \left(\lambda_ {i , j} + \mathcal {N} _ {i , j}\right) / \tau\right)}, \tag {2}
93
+ $$
94
+
95
+ where $i \in (0, H), j \in (0, W)$ denote the index of pixel in a feature map of size $H \times W$ , where $H / W$ are the height/width of the input images. The probability $p_{i,j}$ of a pixel to be chosen is parameterized by a softmax output vector $\lambda_{i,j}$ of dimension $H \times W$ . $\mathcal{N}_{i,j} = -\log(-\log(U))$ is random variable at position $(i,j)$ , which is sampled from Gumbel distribution [8] with $U \sim \text{Uniform}(0,1)$ . Note that $\tau$ is a temperature parameter to soften transition from uniform distribution to categorical distribution when $\tau$ gradually reduces to zero. Thus, the number of the target pixels to be attacked is determined by the mask $\mathcal{M}$ :
96
+
97
+ $$
98
+ \mathcal {M} _ {i j} = \left\{ \begin{array}{l l} \mathcal {K e e p T o p k} \left(p _ {i, j}\right), & \text {i n f o r w a r d p r o p a g a t i o n} \\ p _ {i, j}, & \text {i n b a c k w a r d p r o p a g a t i o n} \end{array} \right. \tag {3}
99
+ $$
100
+
101
+ where $\mathcal{K}eep\mathcal{T}opk$ is a function by which the top-k pixels with the highest probability $p_{i,j}$ are retained in $\mathcal{M}$ while the other pixels are dropped during the forward propagation. Moreover, the difference between the forward and backward propagation ensures the differentiability. By multiplying the mask $\mathcal{M}$ and the preliminary noise $\mathcal{P}'$ , we obtain the final noise $\mathcal{P}$ with controllable number of activated pixels. The usage of $\mathcal{M}$ is detailed in Fig. 2 (a).
102
+
103
+ # 3.5. Perception Loss for Visual Quality
104
+
105
+ In addition to controlling the number of the attacked pixels, we also focus on the visual quality to ensure the inconspicuousness of our attackers. Existing works introduce
106
+
107
+ noises to images to cheat the machines without considering the visual quality of the images, which is inconsistent with human cognition. Motivated by MS-SSIM [39] that is able to provide a good approximation to perceive image quality for visual perception, we include an perception loss $\mathcal{L}_{VP}$ in our formulation to improve the visual quality:
108
+
109
+ $$
110
+ \mathcal {L} _ {V P} (\mathcal {I}, \hat {\mathcal {I}}) = [ l _ {L} (\mathcal {I}, \hat {\mathcal {I}}) ] ^ {\alpha_ {L}} \cdot \prod_ {j = 1} ^ {L} \left[ c _ {j} (\mathcal {I}, \hat {\mathcal {I}}) \right] ^ {\beta_ {j}} \left[ s _ {j} (\mathcal {I}, \hat {\mathcal {I}}) \right] ^ {\gamma_ {j}}, \tag {4}
111
+ $$
112
+
113
+ where $c_{j}$ and $s_j$ are the measures of the contrast comparison and the structure comparison at the $j$ -th scale respectively, which are calculated by $c_{j}(\mathcal{I},\hat{\mathcal{I}}) = \frac{2\sigma_{\mathcal{I}}\sigma_{\hat{\mathcal{I}}} + C_2}{\sigma_{\mathcal{I}}^2 + \sigma_{\hat{\mathcal{I}}}^2 + C_2}$ and $s_j(\mathcal{I},\hat{\mathcal{I}}) = \frac{\sigma_{\mathcal{I}}\hat{\mathcal{I}} + C_3}{\sigma_{\mathcal{I}}\sigma_{\hat{\mathcal{I}}} + C_3}$ , where $\sigma$ is the variance/covariance. $L$ is the level of scales, $\alpha_L$ , $\beta_j$ , and $\gamma_j$ are the factors to re-weight the contribution of each component. Thanks to $\mathcal{L}_{VP}$ , the attack with high magnitude is available without being noticed by humans.
114
+
115
+ # 3.6. Objective Function
116
+
117
+ Besides the mis-ranking loss $\mathcal{L}_{adv\_etri}$ , the perception loss $\mathcal{L}_{VP}$ , we have two additional losses, i.e., a misclassification loss $\mathcal{L}_{adv\_xent}$ , and a GAN loss $\mathcal{L}_{GAN}$ .
118
+
119
+ Misclassification Loss. Existing works usually consider the least likely class as the target to optimize the cross-entropy between the output probabilities and its least likely class. However, the model may misclassify the inputs as any class except for the correct one. Inspired by [37], we propose a mechanism for relaxing the model for non-targeted attack by:
120
+
121
+ $$
122
+ \mathcal {L} _ {\text {a d v . x e n t}} = - \sum_ {k = 1} ^ {K} \mathcal {S} (\mathcal {T} (\hat {\mathcal {I}})) _ {k} ((1 - \delta) \mathbb {1} _ {\arg \min \mathcal {T} (\mathcal {I}) _ {k}} + \delta v _ {k}), \tag {5}
123
+ $$
124
+
125
+ where $S$ denotes the log-softmax function, $K$ is the total number of person IDs and $v = \left[\frac{1}{K - 1},\dots ,0,\dots ,\frac{1}{K - 1}\right]$ is smoothing regularization in which $v_{k}$ equals to $\frac{1}{K - 1}$ everywhere except when $k$ is the ground-truth ID. The term arg min in Eqn. 5 is similar to numpy.argmax which returns the indices of the minimum values of an output probability vector, indicating the least likely class. In practice, this smoothing regularization improves the training stability and the success attack rate.
126
+
127
+ GAN Loss. For our task, the generator $\mathcal{G}$ attempts to produce deceptive noises from input images, while the discriminator D distinguishes real images from adversarial examples as much as possible. Hence, the GAN loss $\mathcal{L}_{GAN}$ is given as:
128
+
129
+ $$
130
+ \mathcal {L} _ {G A N} = \mathbb {E} _ {\left(I _ {c d}, I _ {c s}\right)} \left[ \log \mathcal {D} _ {1, 2, 3} \left(I _ {c d}, I _ {c s}\right) \right] + \mathbb {E} _ {\mathcal {I}} \left[ \log \left(1 - \mathcal {D} _ {1, 2, 3} (\mathcal {I}, \hat {\mathcal {I}})\right) \right], \tag {6}
131
+ $$
132
+
133
+ where $\mathcal{D}_{1,2,3}$ is our multi-stage discriminator shown in Fig. 3. We access to the final loss function:
134
+
135
+ $$
136
+ \mathcal {L} = \mathcal {L} _ {G A N} + \mathcal {L} _ {a d v. x e n t} + \zeta \mathcal {L} _ {a d v. e t r i} + \eta (1 - \mathcal {L} _ {V P}), \tag {7}
137
+ $$
138
+
139
+ where $\zeta$ and $\eta$ are loss weights for balance.
140
+
141
+ # 4. Experiment
142
+
143
+ We first present the results of attacking state-of-the-art ReID systems and then perform ablation studies on our method. Then, the generalization ability and interpretability of our method are examined by exploring black-box attacks.
144
+
145
+ Datasets. Our method is evaluated on four of the largest ReID datasets: Market1501 [45], CUHK03 [17] DukeMTMC [33] and MSMT17 [40]. Market1501 is a fully studied dataset containing 1,501 identities and 32,688 bounding boxes. CUHK03 includes 1,467 identities and 28,192 bounding boxes. To be consistent with recent works, we follow the new training/testing protocol to perform our experiments [48]. DukeMTMC provides 16,522 bounding boxes of 702 identities for training and 17,661 for testing. MSMT17 covers 4,101 identities and 126,441 bounding boxes taken by 15 cameras in both indoor and outdoor scenes. We adopt the standard metric of mAP and rank{1,5,10,20} accuracy for evaluation. Note that in contrast to a ReID problem, lower rank accuracy and mAP indicate better success attack rate in a attack problem.
146
+
147
+ Protocols. The details about training protocols and hyper-parameters can be seen in Appendix C. The first two subsections validate a white-box attack, i.e., the attacker has full access to training data and target models. In the third subsection, we explore a black-box attack to examine the transferability and interpretability of our method, i.e., the attacker has no access to the training data and target models. Following the standard protocols of the literature, all experiments below are performed by $L_{\infty}$ -bounded attacks with $\varepsilon = 16$ without special instruction, where $\varepsilon$ is an upper bound imposed on the amplitude of the generated noise ( $\{\| \hat{\mathcal{I}} - \mathcal{I} \|_{1,2, \text{or } \infty} \leq \epsilon \}$ ) that determines the attack intensity and the visual quality.
148
+
149
+ # 4.1. Attacking State-of-the-Art ReID Systems
150
+
151
+ To demonstrate the generality of our method, we divide the state-of-the-art ReID systems into three groups as follows.
152
+
153
+ Attacking Different Backbones. We first examine the effectiveness of our method in attacking different best-performing network backbones, including ResNet-50 [9] (i.e., IDE [46]), DenseNet-121 [10], and Inception-v3 [37] (i.e., Mudeep [32]). The results are shown in Table 1 (a) & (b). We can see that the rank-1 accuracy of all backbones drop sharply approaching zero (e.g., from $89.9\%$ to $1.2\%$ for DenseNet) after it has been attacked by our method, suggesting that changing backbones cannot defend our attack.
154
+
155
+ Attacking Part-based ReID Systems. Many best-performing ReID systems learn both local and global similarity by considering part alignment. However, they still fail to defend our attack (Table 1 (a)(b)). For example, the accuracy of one of the best-performing ReID systems (AlignedReID [44]) drops sharply from $91.8\%$ to $1.4\%$ after it has been attacked by our method. This comparison
156
+
157
+ Table 1. Attacking the state-of-the-art ReID systems. IDE: [46]; DenseNet-121: [10]; Mudeep: [32]; AlignedReid: [44]; PCB: [36]; HACNN: [18]; LSRO: [47]; HHL: [49]; SPGAN: [3]; CamStyle+Era: [50]. We select GAP [31] and PGD [24] as the baseline attackers.
158
+ (a) Market1501
159
+
160
+ <table><tr><td rowspan="2" colspan="2">Methods</td><td colspan="4">Rank-1</td><td colspan="4">Rank-5</td><td colspan="4">Rank-10</td><td colspan="4">mAP</td></tr><tr><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td></tr><tr><td rowspan="3">Backbone</td><td>IDE (ResNet-50)</td><td>83.1</td><td>5.0</td><td>4.5</td><td>3.7</td><td>91.7</td><td>10.0</td><td>8.7</td><td>8.3</td><td>94.6</td><td>13.9</td><td>12.1</td><td>11.5</td><td>63.3</td><td>5.0</td><td>4.6</td><td>4.4</td></tr><tr><td>DenseNet-121</td><td>89.9</td><td>2.7</td><td>1.2</td><td>1.2</td><td>96.0</td><td>6.7</td><td>1.0</td><td>1.3</td><td>97.3</td><td>8.5</td><td>1.5</td><td>2.1</td><td>73.7</td><td>3.7</td><td>1.3</td><td>1.3</td></tr><tr><td>Mudeep (Inception-V3)</td><td>73.0</td><td>3.5</td><td>2.6</td><td>1.7</td><td>90.1</td><td>5.3</td><td>5.5</td><td>1.7</td><td>93.1</td><td>7.6</td><td>6.9</td><td>5.0</td><td>49.9</td><td>2.8</td><td>2.0</td><td>1.8</td></tr><tr><td rowspan="3">Part-Aligned</td><td>AlignedReid</td><td>91.8</td><td>10.1</td><td>10.2</td><td>1.4</td><td>97.0</td><td>18.7</td><td>15.8</td><td>3.7</td><td>98.1</td><td>23.2</td><td>19.1</td><td>5.4</td><td>79.1</td><td>9.7</td><td>8.9</td><td>2.3</td></tr><tr><td>PCB</td><td>88.6</td><td>6.8</td><td>6.1</td><td>5.0</td><td>95.5</td><td>14.0</td><td>12.7</td><td>10.7</td><td>97.3</td><td>19.2</td><td>15.8</td><td>14.3</td><td>70.7</td><td>5.6</td><td>4.8</td><td>4.3</td></tr><tr><td>HACNN</td><td>90.6</td><td>2.3</td><td>6.1</td><td>0.9</td><td>95.9</td><td>5.2</td><td>8.8</td><td>1.4</td><td>97.4</td><td>6.9</td><td>10.6</td><td>2.3</td><td>75.3</td><td>3.0</td><td>5.3</td><td>1.5</td></tr><tr><td rowspan="4">Data Augmentation</td><td>CamStyle+Era (IDE)</td><td>86.6</td><td>6.9</td><td>15.4</td><td>3.9</td><td>95.0</td><td>14.1</td><td>23.9</td><td>7.5</td><td>96.6</td><td>18.0</td><td>29.1</td><td>10.0</td><td>70.8</td><td>6.3</td><td>12.6</td><td>4.2</td></tr><tr><td>LSRO (DenseNet-121)</td><td>89.9</td><td>5.0</td><td>7.2</td><td>0.9</td><td>96.1</td><td>10.2</td><td>13.1</td><td>2.2</td><td>97.4</td><td>12.6</td><td>15.2</td><td>3.1</td><td>77.2</td><td>5.0</td><td>8.1</td><td>1.3</td></tr><tr><td>HHL (IDE)</td><td>82.3</td><td>5.0</td><td>5.7</td><td>3.6</td><td>92.6</td><td>9.8</td><td>9.8</td><td>7.3</td><td>95.4</td><td>13.5</td><td>12.2</td><td>9.7</td><td>64.3</td><td>5.4</td><td>5.5</td><td>4.1</td></tr><tr><td>SPGAN (IDE)</td><td>84.3</td><td>8.8</td><td>10.1</td><td>1.5</td><td>94.1</td><td>18.6</td><td>16.7</td><td>3.1</td><td>96.4</td><td>24.5</td><td>20.9</td><td>4.3</td><td>66.6</td><td>8.0</td><td>8.6</td><td>1.6</td></tr></table>
161
+
162
+ (b) CUHK03
163
+
164
+ <table><tr><td rowspan="2" colspan="2">Methods</td><td colspan="4">Rank-1</td><td colspan="4">Rank-5</td><td colspan="4">Rank-10</td><td colspan="4">mAP</td></tr><tr><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td></tr><tr><td rowspan="3">Backbone</td><td>IDE (ResNet-50)</td><td>24.9</td><td>0.9</td><td>0.8</td><td>0.4</td><td>43.3</td><td>2.0</td><td>1.2</td><td>0.7</td><td>51.8</td><td>2.9</td><td>2.1</td><td>1.5</td><td>24.5</td><td>1.3</td><td>0.8</td><td>0.9</td></tr><tr><td>DenseNet-121</td><td>48.4</td><td>2.4</td><td>0.1</td><td>0.0</td><td>50.1</td><td>4.4</td><td>0.1</td><td>0.2</td><td>70.1</td><td>5.9</td><td>0.3</td><td>0.6</td><td>84.0</td><td>1.6</td><td>0.2</td><td>0.3</td></tr><tr><td>Mudeep (Inception-V3)</td><td>32.1</td><td>1.1</td><td>0.4</td><td>0.1</td><td>53.3</td><td>3.7</td><td>1.0</td><td>0.5</td><td>64.1</td><td>5.6</td><td>1.5</td><td>0.8</td><td>30.1</td><td>2.0</td><td>0.8</td><td>0.3</td></tr><tr><td rowspan="3">Part-Aligned</td><td>AlignedReid</td><td>61.5</td><td>2.1</td><td>1.4</td><td>1.4</td><td>79.4</td><td>4.6</td><td>2.2</td><td>3.7</td><td>85.5</td><td>6.2</td><td>4.1</td><td>5.4</td><td>59.6</td><td>3.4</td><td>2.1</td><td>2.1</td></tr><tr><td>PCB</td><td>50.6</td><td>0.9</td><td>0.5</td><td>0.2</td><td>71.4</td><td>4.5</td><td>2.1</td><td>1.3</td><td>78.7</td><td>5.8</td><td>4.5</td><td>1.8</td><td>48.6</td><td>1.4</td><td>1.2</td><td>0.8</td></tr><tr><td>HACNN</td><td>48.0</td><td>0.9</td><td>0.4</td><td>0.1</td><td>69.0</td><td>2.4</td><td>0.9</td><td>0.3</td><td>78.1</td><td>3.4</td><td>1.3</td><td>0.4</td><td>47.6</td><td>1.8</td><td>0.8</td><td>0.4</td></tr></table>
165
+
166
+ (c) DukeMTMC
167
+
168
+ <table><tr><td rowspan="2" colspan="2">Methods</td><td colspan="4">Rank-1</td><td colspan="4">Rank-5</td><td colspan="4">Rank-10</td><td colspan="4">mAP</td></tr><tr><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td><td>Before</td><td>GAP</td><td>PGD</td><td>Ours</td></tr><tr><td rowspan="4">Data augmentation</td><td>CamStyle+Era (IDE)</td><td>76.5</td><td>3.3</td><td>22.9</td><td>1.2</td><td>86.8</td><td>7.0</td><td>34.1</td><td>2.6</td><td>90.0</td><td>9.6</td><td>39.9</td><td>3.4</td><td>58.1</td><td>3.5</td><td>16.8</td><td>1.5</td></tr><tr><td>LSRO (DenseNet-121)</td><td>72.0</td><td>1.3</td><td>7.2</td><td>0.7</td><td>85.7</td><td>2.9</td><td>12.5</td><td>1.6</td><td>89.5</td><td>4.0</td><td>18.4</td><td>2.2</td><td>55.2</td><td>1.4</td><td>8.1</td><td>0.9</td></tr><tr><td>HHL (IDE)</td><td>71.4</td><td>1.8</td><td>9.5</td><td>1.0</td><td>83.5</td><td>3.4</td><td>15.6</td><td>2.0</td><td>87.7</td><td>4.2</td><td>19.0</td><td>2.5</td><td>51.8</td><td>1.9</td><td>7.4</td><td>1.3</td></tr><tr><td>SPGAN (IDE)</td><td>73.6</td><td>5.3</td><td>12.4</td><td>0.1</td><td>85.2</td><td>10.3</td><td>21.1</td><td>0.5</td><td>88.9</td><td>13.4</td><td>26.3</td><td>0.6</td><td>54.6</td><td>4.7</td><td>10.2</td><td>0.3</td></tr></table>
169
+
170
+ proves that the testing tricks, e.g., extra local features ensemble in AlignedReID [44] and flipped image ensembling in PCB [36], are unable to resist our attack.
171
+
172
+ Attacking Augmented ReID Systems. Many state-of-the-art ReID systems use the trick of data augmentation. Next, we examine the effectiveness of our model in attacking these augmentation-based systems. Rather than conventional data augmentation trick (e.g., random cropping, flipping, and 2D-translation), we examine four new augmentation tricks using GAN to increase the training data. The evaluation is conducted on Market1501 and DukeMTMC. The results in Table 1 (a)(c) show that although GAN data augmentations improve the ReID accuracy, they cannot defend our attack. In contrast, we have even observed that better ReID accuracy may lead to worse robustness.
173
+
174
+ Discussion. We have three remarks for rethinking the robustness of ReID systems for future improvement. First, there is no effective way so far to defend against our attacks, e.g., after our attack, all rank-1 accuracies drop below $3.9\%$ . Second, the robustness of Mudeep [32] and PCB [36] are strongest. Intuitively, Mudeep may benefit from its nonlinear and large receptive field. For PCB, reprocessing the query images and hiding the network architecture during evaluation may improve the robustness. Third, HACNN [18] has the lowest rank-1 to rank-20 accuracy after the attack, suggesting that attention mechanism may be harmful to the defensibility. The returns from the target ReID system before and after the adversarial attack are provided in Appendix A.
175
+
176
+ # 4.2. Ablation Study
177
+
178
+ We conduct comprehensive studies to validate the effectiveness of each component of our method. AlignedReID [44] is used as our target model in the rest of the paper for its
179
+
180
+ remarkable results in ReID domain.
181
+
182
+ Different Losses. We report the rank-1 accuracy of four different losses to validate the effectiveness of our loss. The results are shown in Table 2 (a), where the four rows represent (A) the conventional misclassification loss, (B) our misclassification, (C) our mis-ranking loss, and (D) our misclassification + our mis-ranking loss, respectively. Actually, we observe that conventional misclassification loss A is incompatible with the perception loss, leading to poor attack performance $(28.5\%)$ . In contrast, our visual misranking loss D achieves very appealing attack performance $(1.4\%)$ . We also observe that our misclassification loss B and our visual mis-ranking loss C benefit each other. Specifically, by combining these two losses, we obtain Loss D, which outperforms all the other losses.
183
+
184
+ Multi-stage vs. Common Discriminator. To validate the effectiveness of our multi-stage discriminator, we compare the following settings: (A) using our multi-stage discriminator and (B) using a commonly used discriminator. Specifically, we replace our multi-stage discriminator with PatchGAN [14]. Table 2 (c) shows a significant degradation of attack performance after changing the discriminator, demonstrating the superiority of our multi-stage discriminator to capture more details for a better attack.
185
+
186
+ Using MS-SSIM. To demonstrate the superiority of MS-SSIM, we visualize the adversarial examples under different perception supervisions in Fig. 4. We can see that at the same magnitude, the adversarial example generated under the supervision of MS-SSIM are much better than those generated under the supervision of SSIM and without any supervision. This comparison verifies that MS-SSIM is critical to reserve the raw appearance.
187
+
188
+ Comparisons of Different $\epsilon$ . Although using perception loss has great improvement for visual quality with large $\epsilon$ ,
189
+
190
+ Table 2. Ablations. We present six major ablation experiments in this table. R-1,R-5,& R-10: Rank-1, Rank-5, & Rank-10.
191
+
192
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>(A) cent</td><td>28.5</td><td>43.9</td><td>51.4</td><td>23.8</td></tr><tr><td>(B) xent</td><td>13.7</td><td>22.5</td><td>28.7</td><td>12.5</td></tr><tr><td>(C) etri</td><td>4.5</td><td>9.1</td><td>12.5</td><td>5.1</td></tr><tr><td>(D) xent+etri</td><td>1.4</td><td>3.7</td><td>5.4</td><td>2.3</td></tr></table>
193
+
194
+ (a) Different Objectives: The modified xent loss outperforms the cent loss, but both of them are unstable. Our loss brings more stable and higher fooling rate than misclassification.
195
+
196
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>ε=40</td><td>0.0</td><td>0.2</td><td>0.6</td><td>0.2</td></tr><tr><td>ε=20</td><td>0.1</td><td>0.4</td><td>0.8</td><td>0.4</td></tr><tr><td>ε=16</td><td>1.4</td><td>3.7</td><td>5.4</td><td>2.3</td></tr><tr><td>ε=10</td><td>24.4</td><td>38.5</td><td>46.6</td><td>21.0</td></tr></table>
197
+
198
+ (b) Comparisons of different $\epsilon$ : Results on the variants of our model using different $\epsilon$ . Our proposed method achieves good results even when $\epsilon = 10$ .
199
+
200
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>PatchGAN (ε=40)</td><td>48.3</td><td>65.8</td><td>73.1</td><td>37.7</td></tr><tr><td>Ours (ε=40)</td><td>0.0</td><td>0.2</td><td>0.6</td><td>0.2</td></tr><tr><td>PatchGAN (ε=10)</td><td>53.3</td><td>69.2</td><td>75.6</td><td>43.2</td></tr><tr><td>Ours (ε=10)</td><td>24.4</td><td>38.5</td><td>46.6</td><td>21.0</td></tr></table>
201
+
202
+ (c) Multi-stage vs. Common discriminator: Multi-stage technique improves results under both large and small $\epsilon$ for utilizing the information from previous layers.
203
+
204
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>Market→CUHK</td><td>4.9</td><td>9.2</td><td>12.1</td><td>6.0</td></tr><tr><td>CUHK→Market</td><td>34.3</td><td>51.6</td><td>58.6</td><td>28.2</td></tr><tr><td>Market→Duke</td><td>17.7</td><td>26.7</td><td>32.6</td><td>14.2</td></tr><tr><td>Market→MSMT</td><td>35.1</td><td>49.4</td><td>55.8</td><td>27.0</td></tr></table>
205
+
206
+ (d) Crossing Dataset. $\mathbf{Market}\rightarrow \mathbf{CUHK}$ : noises learned from Market1501 mislead inferring on CUHK03. All experiments are based on Aligned-ReID model.
207
+
208
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>→PCB</td><td>31.7</td><td>46.1</td><td>53.2</td><td>22.9</td></tr><tr><td>→HACNN</td><td>14.8</td><td>24.4</td><td>29.8</td><td>13.4</td></tr><tr><td>→LSRO</td><td>17.0</td><td>28.9</td><td>35.1</td><td>14.8</td></tr></table>
209
+
210
+ (e) Crossing Model. $\rightarrow$ PCB: noises learned from AlignedReID attack pretrained PCB model. All experiments are performed on Market1501.
211
+
212
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>→PCB(C)</td><td>6.9</td><td>12.9</td><td>18.9</td><td>8.2</td></tr><tr><td>→HACNN(C)</td><td>3.6</td><td>7.1</td><td>9.2</td><td>4.6</td></tr><tr><td>→LSRO(D)</td><td>19.4</td><td>30.2</td><td>34.7</td><td>15.2</td></tr><tr><td>→Mudeep(C)*</td><td>19.4</td><td>27.7</td><td>34.9</td><td>16.2</td></tr></table>
213
+
214
+ (f) Crossing Dataset & Model. $\rightarrow$ PCB(C): noises learned from AlignedReID pretrained on Market-1501 are borrowed to attack PCB model inferred on CUHK03. * denotes 4k-pixel attack.
215
+
216
+ Table 3. Proportion of adversarial points. † denotes the results with appropriate relaxation.
217
+
218
+ <table><tr><td></td><td>R-1</td><td>R-5</td><td>R-10</td><td>mAP</td></tr><tr><td>Full size</td><td>1.4</td><td>3.7</td><td>5.4</td><td>2.3</td></tr><tr><td>Ratio=1/2</td><td>39.3</td><td>55.0</td><td>62.4</td><td>31.5</td></tr><tr><td>Ratio=1/4</td><td>72.7</td><td>85.9</td><td>89.7</td><td>58.3</td></tr><tr><td>Ratio=1/4†</td><td>0.3</td><td>1.5</td><td>2.7</td><td>0.7</td></tr><tr><td>Ratio=1/8†</td><td>0.6</td><td>1.8</td><td>3.0</td><td>1.1</td></tr><tr><td>Ratio=1/16†</td><td>8.2</td><td>14.7</td><td>17.8</td><td>6.9</td></tr><tr><td>Ratio=1/32†</td><td>59.4</td><td>76.5</td><td>82.2</td><td>47.3</td></tr><tr><td>Ratio=1/64†</td><td>75.5</td><td>87.6</td><td>91.6</td><td>61.5</td></tr></table>
219
+
220
+ Table 4. Effectiveness of our multi-shot sampling.
221
+
222
+ <table><tr><td></td><td colspan="2">(A) random location</td><td colspan="2">(B) our learned location</td></tr><tr><td></td><td>R-1</td><td>mAP</td><td>R-1</td><td>mAP</td></tr><tr><td>Gaussian noise</td><td>81.9</td><td>68.1</td><td>79.4</td><td>65.3</td></tr><tr><td>Uniform noise</td><td>51.1</td><td>40.1</td><td>50.7</td><td>39.2</td></tr><tr><td>Ours</td><td>-</td><td>-</td><td>39.7</td><td>30.7</td></tr></table>
223
+
224
+ we also provide baseline models with smaller $\epsilon$ for full studies. We manually control $\epsilon$ by considering it as a hyperparameter. The comparisons of different $\epsilon$ are reported in Table 2 (b). Our method has achieved good results, even when $\epsilon = 15$ . The visualization of several adversarial examples with different $\epsilon$ can be seen in Appendix D.
225
+
226
+ Number of the Pixels to be Attacked. Let $H$ and $W$ denote the height and the width of the image. We control the number of the pixels to be attacked in the range of $\{1, 1/2, 1/4, 1/8, 1/16, 1/32, 1/64\} \times HW$ respectively by using Eqn. 3. We have two major observations from Table 3. First, the attack is definitely successful when the number of the pixels to be attacked $> \frac{HW}{2}$ . This indicates that we can fully attack the ReID system by using a noise number of only $\frac{HW}{2}$ . Second, when the number of pixels to be attacked $< \frac{HW}{2}$ , the success attack rate drops significantly. To compensate for the decrease in noise number, we propose to enhance the noise magnitude without significantly affecting the perception. In this way, the least number of pixels to be attacked is reduced to $\frac{HW}{32}$ , indicating that the number and the magnitude of the noise are both important.
227
+
228
+ Effectiveness of Our Multi-shot Sampling. To justify the effectiveness of our learned noise in attacking ReID, we compare them with random noise under the restriction of
229
+
230
+ $\varepsilon = 40$ in two aspects in Table 4. (A) Random noise is imposed on random locations of an image. The results suggest that rand noise is inferior to our learned noise. (B) Random noise is imposed on our learned location of an image. Interestingly, although (B) has worse attack performance than our learned noise, (B) outperforms (A). This indicates our method successfully finds the sensitive location to attack.
231
+
232
+ Interpretability of Our Attack. After the analysis of the superiority of our learned noise, we further visualize the noise layout to explore the interpretability of our attack in ReID. Unfortunately, a single image cannot provide intuitive information (see Appendix B). We statistically display query images and masks when noise number equals to $\frac{HW}{8}$ in Fig. 5 for further analysis. We can observe from Fig. 5 (b) that the network has a tendency to attack the top half of the average image, which corresponds to the upper body of a person in Fig. 5(a). This implies that the network is able to sketch out the dominant region of the image for ReID. For future improvement of the robustness of ReID systems, attention should be paid to this dominant region.
233
+
234
+ # 4.3. Black-Box Attack
235
+
236
+ Different from the above white-box attack, a black-box attack denotes that the attacker has no access to the training data and target models, which is very challenging.
237
+
238
+ Cross-dataset attack. Cross-dataset denotes that the attacker is learned on a known dataset, but is reused to attack a model that is trained on an unknown dataset. Table 2 (d) shows the success of our cross-dataset attack in AlignedReID [44]. We also observe that the success rate of the cross-dataset attack is almost as good as the naive white-box attack. Moreover, MSMT17 is a dataset that simulates the real scenarios by covering multi-scene and multi-time. Therefore, the successful attack on MSMT17 proves that our method is able to attack ReID systems in the real scene without knowing the information of real-scene data.
239
+
240
+ Cross-model attack. Cross-model attack denotes that
241
+
242
+ ![](images/485663789f1776cb25f23fd31238f32763a20376015de803d0dd4de4edc50786.jpg)
243
+ (a) Original
244
+
245
+ ![](images/3f2e2c111792d7cebbfd8076b276f02d8b49d455fea54c54f0d610ee7dce0ff3.jpg)
246
+ (b) Without supervision
247
+
248
+ ![](images/d45bc703590211d1cf0f8c5175b85cedef71dd532e0c518db8eb5726169b0f4c.jpg)
249
+ Table 5. Accuracy after non-targeted white-box attacks on CIFAR10. Original: the accuracy on clean images. DeepFool: [28]; NewtonFool: [15]; NewtonFool: [15]; CW: [2]; GAP: [41];
250
+
251
+ ![](images/7c485a9d5f26749436acf744f2c7aaece14adb1536dd5d3d72171aa88f126d45.jpg)
252
+ (c) SSIM
253
+ (d) MS-SSIM
254
+ Figure 4. Visual comparison of using different supervisions.
255
+
256
+ the attacker is learned by attacking a known model, but is reused to attack an unknown model. Experiments on Market1501 show that existing ReID systems are also fooled by our cross-model attacked (Table 2 (e)). It is worth to mention that PCB seems to be more robust than others, indicating that hiding the testing protocol benefits the robustness.
257
+
258
+ Cross-dataset-cross-model attack. We further examine the most challenging setting, i.e., our attacker has no access to both the training data and the model. The datasets and models are randomly chosen in Table 2 (f). Surprisingly, we have observed that our method has successfully fooled all the ReID systems, even in such an extreme condition. Note that Mudeep has been attacked by only 4,000 pixels.
259
+
260
+ Discussion. We have the following remarks for future improvement in ReID. First, although the bias of data distributions in different ReID datasets reduces the accuracy of a ReID system, it is not the cause of security vulnerability, as is proved by the success of cross-dataset attack above. Second, the success of cross-model attack implies that the flaws of networks should be the cause of security vulnerability. Third, the success of a cross-dataset-cross-model attack drives us to rethink the vulnerability of existing ReID systems. Even we have no prior knowledge of a target system; we can use the public available ReID model and datasets to learn an attacker, using which we can perform the cross-dataset-cross-model attack in the target systems. Actually, we have fooled a real-world system (see Appendix D).
261
+
262
+ # 4.4. Comparison with Existing Attackers
263
+
264
+ To show the generalization capability of our method, we perform an additional experiment on image classification using CIFAR10. We compare our method with four ad
265
+
266
+ ![](images/88eae690db227c20a1de9e1f7b4ea07b1835d8a599986432681676212beeec8c.jpg)
267
+ (a) Average image
268
+ Figure 5. Left: The average image of all queries on Market1501. Right: The frequency of adversarial points appears at different positions among Market1501 when ratio $= 1/8$ . The higher the color temperature is, the frequently the position tends to be selected.
269
+
270
+ ![](images/a1c07c26b0ddafa2dded555e20715e23a4240f84088b0c4b36e8b843b2b2cda1.jpg)
271
+ (b) Position statistics
272
+
273
+ <table><tr><td>Method</td><td colspan="4">Accuracy (%)</td></tr><tr><td>Original</td><td colspan="4">90.55</td></tr><tr><td>DeepFool</td><td rowspan="4">ε = 8</td><td>58.22</td><td rowspan="4">ε = 2</td><td>58.59</td></tr><tr><td>NewtonFool</td><td>69.79</td><td>69.32</td></tr><tr><td>CW</td><td>52.27</td><td>53.44</td></tr><tr><td>GAP</td><td>51.26</td><td>51.8</td></tr><tr><td>Ours</td><td></td><td>47.31</td><td></td><td>50.3</td></tr></table>
274
+
275
+ vanced white-box attack methods in adversarial examples community, including DeepFool [28], NewtonFool [15], CW [2], and GAP [41]. We employ adversarially trained ResNet32 as our target model and fix $\varepsilon = 8$ . Other hyperparameters are configured using default settings the same as [29]. For each attack method, we list the accuracy of the resulting network on the full CIFAR10 val set. The results in Table 5 imply that our proposed algorithm is also effective in obfuscating the classification system. Note that changing $\varepsilon$ to other numbers (e.g., $\varepsilon = 2$ ) does not reduce the superiority of our method over the competitors.
276
+
277
+ # 5. Conclusion
278
+
279
+ We examine the insecurity of current ReID systems by proposing a learning-to-mis-rank formulation to perturb the ranking of the system output. Our mis-ranking based attacker is complementary to the existing misclassification based attackers. We also develop a multi-stage network architecture to extract general and transferable features for the adversarial perturbations, allowing our attacker to perform a black-box attack. We focus on the inconspicuousness of our attacker by controlling the number of attacked pixels and keeping the visual quality. The experiments not only show the effectiveness of our method but also provides directions for the future improvement in the robustness of ReID.
280
+
281
+ # Acknowledgement
282
+
283
+ This work was supported in part by the State Key Development Program (No. 2018YFC0830103), in part by NSFC (No.61876224,U1811463,61622214,61836012,61906049), and by GD-NSF (No.2017A030312006,2020A1515010423).
284
+
285
+ # References
286
+
287
+ [1] Song Bai, Yingwei Li, Yuyin Zhou, Qizhu Li, and Philip H. S. Torr. Metric attack and defense for person re-identification, 2019. 3
288
+ [2] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In S&P, pages 39-57. IEEE, 2017. 4, 8
289
+ [3] Weijian Deng, Liang Zheng, Qixiang Ye, Guoliang Kang, Yi Yang, and Jianbin Jiao. Image-image domain adaptation with preserved self-similarity and domain-dissimilarity for person reidentification. In CVPR, 2018. 3, 6
290
+ [4] Shengyong Ding, Liang Lin, Guangrun Wang, and Hongyang Chao. Deep feature learning with relative distance comparison for person re-identification. PR, 48(10):2993-3003, 2015. 2, 3
291
+ [5] Yinpeng Dong, Hang Su, Baoyuan Wu, Zhifeng Li, Wei Liu, Tong Zhang, and Jun Zhu. Efficient decision-based blackbox adversarial attacks on face recognition. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 7714-7722, 2019. 3
292
+ [6] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. CoRR, abs/1412.6572, 2014. 3
293
+ [7] Mengran Gou, Xikang Zhang, Angels Rates-Borras, Sadjad Asghari-Esfeden, Octavia I. Camps, and Mario Sznaier. Person re-identification in appearance impaired scenarios. In Proceedings of the British Machine Vision Conference 2016, BMVC 2016, York, UK, September 19-22, 2016, 2016. 1
294
+ [8] Emil Julius Gumbel. Statistical theory of extreme values and some practical applications: a series of lectures. US Govt. Print. Office, 1954. 4
295
+ [9] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 5
296
+ [10] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. 5, 6
297
+ [11] Yan Huang, Qiang Wu, Jingsong Xu, and Yi Zhong. Celebrities-reid: A benchmark for clothes variation in long-term person re-identification. In International Joint Conference on Neural Networks, IJCNN 2019 Budapest, Hungary, July 14-19, 2019, pages 1-8, 2019. 1
298
+ [12] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. NeurIPS, 2019. 2, 4
299
+ [13] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, pages 448-456, 2015. 4
300
+ [14] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In CVPR, pages 1125-1134, 2017. 6
301
+ [15] Uyeong Jang, Xi Wu, and Somesh Jha. Objective metrics and gradient descent algorithms for adversarial examples in machine learning. In ACSAC, pages 262-277. ACM, 2017. 8
302
+
303
+ [16] Annan Li, Luoqi Liu, Kang Wang, Si Liu, and Shuicheng Yan. Clothing attributes assisted person reidentification. IEEE Trans. Circuits Syst. Video Techn., 25(5):869-878, 2015. 1
304
+ [17] Wei Li, Rui Zhao, Tong Xiao, and Xiaogang Wang. Deepreid: Deep filter pairing neural network for person re-identification. In CVPR, pages 152–159, 2014. 1, 2, 5
305
+ [18] Wei Li, Xiatian Zhu, and Shaogang Gong. Harmonious attention network for person re-identification. In CVPR, pages 2285–2294, 2018. 2, 6
306
+ [19] Xin Li and Fuxin Li. Adversarial examples detection in deep networks with convolutional filter statistics. In ICCV, pages 5764-5772, 2017. 4
307
+ [20] Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Xiaolin Hu, and Jun Zhu. Defense against adversarial attacks using high-level representation guided denoiser. In CVPR, pages 1778-1787, 2018. 4
308
+ [21] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, pages 2117-2125, 2017. 4
309
+ [22] Yutian Lin, Liang Zheng, Zhedong Zheng, Yu Wu, Zhilan Hu, Chenggang Yan, and Yi Yang. Improving person re-identification by attribute and identity learning. Pattern Recognit., 95:151-161, 2019. 1
310
+ [23] Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017. 1
311
+ [24] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings, 2018. 6
312
+ [25] Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In ICCV, pages 2794–2802, 2017. 4
313
+ [26] Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. In ICLR, 2017. 4
314
+ [27] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In ICLR, 2018. 4
315
+ [28] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In CVPR, pages 2574–2582, 2016. 3, 8
316
+ [29] Maria-Irina Nicolae, Mathieu Sinn, Minh Ngoc Tran, Beat Buesser, Ambrish Rawat, Martin Wistuba, Valentina Zantedeschi, Nathalie Baracaldo, Bryant Chen, Heiko Ludwig, Ian Molloy, and Ben Edwards. Adversarial robustness toolbox v0.6.0. CoRR, 2018. 8
317
+ [30] Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In EuroS&P, pages 372-387. IEEE, 2016. 3
318
+
319
+ [31] Omid Poursaeed, Isay Katsman, Bicheng Gao, and Serge Belongie. Generative adversarial perturbations. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 6
320
+ [32] Xuelin Qian, Yanwei Fu, Yu-Gang Jiang, Tao Xiang, and Xiangyang Xue. Multi-scale deep learning architectures for person re-identification. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 5409-5418, 2017. 5, 6
321
+ [33] Ergys Ristani, Francesco Solera, Roger Zou, Rita Cucchiara, and Carlo Tomasi. Performance measures and a data set for multi-target, multi-camera tracking. In ECCV, pages 17-35. Springer, 2016. 1, 2, 5
322
+ [34] Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K. Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, October 24-28, 2016, pages 1528-1540, 2016. 3
323
+ [35] Jiawei Su, Danilo Vasconcellos Vargas, and Kouichi Sakurai. One pixel attack for fooling deep neural networks. TEVC, 2019. 1, 3
324
+ [36] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and a strong convolutional baseline). In ECCV, pages 480-496, 2018. 1, 2, 6
325
+ [37] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pages 2818-2826, 2016. 5
326
+ [38] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014. 3
327
+ [39] Zhou Wang, Eero P Simoncelli, Alan C Bovik, et al. Multiscale structural similarity for image quality assessment. In ACSSC, volume 2, pages 1398-1402. IEEE, 2003. 5
328
+ [40] Longhui Wei, Shiliang Zhang, Wen Gao, and Qi Tian. Person transfer gan to bridge domain gap for person re-identification. In CVPR, pages 79–88, 2018. 1, 2, 5
329
+ [41] Chaowei Xiao, Bo Li, Jun-Yan Zhu, Warren He, Mingyan Liu, and Dawn Song. Generating adversarial examples with adversarial networks. In IJCAI, pages 3905-3911, 2018. 8
330
+ [42] Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan L Yuille, and Kaiming He. Feature denoising for improving adversarial robustness. In CVPR, pages 501-509, 2019. 4
331
+ [43] Jia Xue, Zibo Meng, Karthik Katipally, Haibo Wang, and Kees van Zon. Clothing change aware person identification. In 2018 IEEE Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 2112-2120, 2018. 1
332
+ [44] Xuan Zhang, Hao Luo, Xing Fan, Weilai Xiang, Yixiao Sun, Qiqi Xiao, Wei Jiang, Chi Zhang, and Jian Sun. Aligndread: Surpassing human-level performance in person re-identification. CoRR, 2017. 1, 2, 5, 6, 7
333
+ [45] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, pages 1116–1124, 2015. 1, 2, 5
334
+
335
+ [46] Liang Zheng, Yi Yang, and Alexander G. Hauptmann. Person re-identification: Past, present and future. CoRR, 2016. 5, 6
336
+ [47] Zhedong Zheng, Liang Zheng, and Yi Yang. Unlabeled samples generated by gan improve the person re-identification baseline in vitro. In ICCV, pages 3754–3762, 2017. 3, 6
337
+ [48] Zhun Zhong, Liang Zheng, Donglin Cao, and Shaozi Li. Re-ranking person re-identification with k-reciprocal encoding. In CVPR, pages 1318–1327, 2017. 5
338
+ [49] Zhun Zhong, Liang Zheng, Shaozi Li, and Yi Yang. Generalizing a person retrieval model hetero-and homogeneously. In ECCV, pages 172-188, 2018. 3, 6
339
+ [50] Zhun Zhong, Liang Zheng, Zhedong Zheng, Shaozi Li, and Yi Yang. Camera style adaptation for person re-identification. In CVPR, pages 5157–5166, 2018. 3, 6
transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:442026f3833ac77aed329a0f5eff3c3bfb6b6e2653fa4c9a9c8f767858de3dd9
3
+ size 512531
transferablecontrollableandinconspicuousadversarialattacksonpersonreidentificationwithdeepmisranking/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ca21ddbdfd02b01d4d5ffd5565691803340716967b3c99c154d833bdc39dbc3
3
+ size 461934
transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/895e41ae-8939-4e80-985b-e89d876db16f_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67fda99bd079403fe36a34f71bcadf3a1a5c7b1732c2ef5fec6c6240712ec0e0
3
+ size 82437
transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/895e41ae-8939-4e80-985b-e89d876db16f_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4f993323a3b3b8dd3af2fbd7606ba09aeb4b960903a2a46bbdb46f54cb7e689
3
+ size 106565
transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/895e41ae-8939-4e80-985b-e89d876db16f_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2b7caec214b71e794a53facb9ff54c3f34ce5a07893c212ede79fc604f4f852
3
+ size 1058968
transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/full.md ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Transfer Learning from Synthetic to Real-Noise Denoising with Adaptive Instance Normalization
2
+
3
+ Yoonsik Kim
4
+
5
+ Jae Woong Soh
6
+
7
+ Gu Yong Park
8
+
9
+ Nam Ik Cho
10
+
11
+ Departmet of ECE, INMC, Seoul National University, Seoul Korea
12
+
13
+ {terryoo, soh90815, benkay}@ispl.snu.ac.kr, nicho@snu.ac.kr
14
+
15
+ # Abstract
16
+
17
+ Real-noise denoising is a challenging task because the statistics of real-noise do not follow the normal distribution, and they are also spatially and temporally changing. In order to cope with various and complex real-noise, we propose a well-generalized denoising architecture and a transfer learning scheme. Specifically, we adopt an adaptive instance normalization to build a denoiser, which can regularize the feature map and prevent the network from overfitting to the training set. We also introduce a transfer learning scheme that transfers knowledge learned from synthetic-noise data to the real-noise denoiser. From the proposed transfer learning, the synthetic-noise denoiser can learn general features from various synthetic-noise data, and the real-noise denoiser can learn the real-noise characteristics from real data. From the experiments, we find that the proposed denoising method has great generalization ability, such that our network trained with synthetic-noise achieves the best performance for Darmstadt Noise Dataset (DND) among the methods from published papers. We can also see that the proposed transfer learning scheme robustly works for real-noise images through the learning with a very small number of labeled data.
18
+
19
+ # 1. Introduction
20
+
21
+ Image restoration tasks [18, 29, 31, 30, 57, 48, 27, 36] have achieved noticeable improvement with the development of convolutional neural network (CNN). Although most of image restoration methods work well on synthetically degraded images [24, 58, 9, 25], they show insufficient performance on the real degradations.
22
+
23
+ Regarding the denoising methods, the networks trained with synthetic-noise (SN) do not work well for the realworld images because of the discrepancy in the distribution of SN and real-noise (RN). Specifically, CNNs [54, 55, 56] trained with Gaussian noise do not work well for the real-
24
+
25
+ world images, because the CNNs are overfitted to the Gaussian distribution. The problem of overfitting can also be seen from a toy regression example in Fig. 1. As shown in Fig. 1(a), the severely overfitted regression method ('w/o Regularizer') shows worse performance than a regularized method ('w/ Regularizer') on the synthetic test data. Moreover, it can be seen in Fig. 1(b) that the generalization ability is much worse when the training and test domains are different.
26
+
27
+ To better address the problem due to the different data distribution between training and test sets, two kinds of approaches have been developed: (1) obtaining the pairs of RN image and corresponding near-noise-free image [38, 42, 5, 2, 49], and (2) finding more realistic noise model [20, 7].
28
+
29
+ The RN datasets enable the quantitative comparison of denoising performance on real-world images and also provide the training sets for learning-based methods. The CNNs trained with RN datasets robustly work on the real-world images, because domains of training and test set almost coincide. However, acquiring the pairs of RN images needs specialized knowledge, and the amount of provided datasets would not be enough for training a deeper CNN [52, 50]. Furthermore, learning-based methods can be easily overfitted to a specific camera device (dataset), which cannot cover all the devices that have different characteristics such as gamma correction, color correction, and other in-camera pipelines.
30
+
31
+ For a finding more realistic noise model, CBDNet [20] synthesized near-RN images by considering realistic noise models and simulating the in-camera pipeline. It generates enough dataset that simulates more than 200 camera response functions. The CBDNet shows excellent performance on RN images even though the CNN is trained with the SN. Furthermore, they showed that additional training with RN dataset improves performance. Although realistic noise modeling indeed reduces the domain discrepancy between SN and RN, there still remains a domain discrepancy to be handled. Moreover, CNN can be overfitted to a certain
32
+
33
+ ![](images/32471bc11df1a63c77714545bfc5910d34e89d75964eed198ef10dc5817b6b7f.jpg)
34
+ (a) Synthetic Data
35
+
36
+ ![](images/d1e686fcb756308ee2590c230c7b0930f92e2227a238dcaf8720fd14c30f0c45.jpg)
37
+ (b) Real Data
38
+
39
+ ![](images/13e16d04210979aa014023526ae7a7834b6effe0e389de1777bc4c1c37cd5a14.jpg)
40
+ (c) Transfer Learning
41
+ Figure 1: A toy regression example presenting the effects of regularization and transfer learning. (a) We assume that training and test data are sampled from a 5th order polynomial, with additive white Gaussian noise (AWGN). The original regression model (without regularizer) is denoted as w/o Regularizer, which is a 10th order polynomial model. As well know, the higher-order model overfits the data. Assuming that a regularization method successfully degenerates the model to a 6th order one (w/ Regularizer), then overfitting is relieved. It can be seen from mean squared error (MSE) on synthetic test data that the regularization can enhance the performance when training and test distributions are the same. (b) We assume another 5th-order polynomial that generates a real data that has some domain difference from the synthetic one. It can be seen from the MSE on real test data that the regularization is essential for processing other distributions. (c) Transfer learning regression method w/ Regularizer + TF is fine-tuned with few real data samples from w/ Regularizer. It can be seen from the MSE on real test data that transfer learning can be trained efficiently with few real training samples.
42
+
43
+ noise model that is actually not a 'real' noise.
44
+
45
+ From these observations, we propose a novel denoiser that is well generalized to the various RN from camera devices by employing an adaptive instance normalization (AIN) [46, 22, 32, 41]. In recent CNN based methods for restoring the synthetic degradations [33, 58, 25], regularization methods have not been exploited due to the small performance gain (even degrading performance). This indicates that a CNN is overfitted to the training data to get the best performance when domains of training and test set coincide [16].
46
+
47
+ On the other hand, the denoiser trained with SN needs regularization, for applying it to the RN denoising. As shown in the example of Fig. 1 (a) and (b) with 'w/Regularizer', the network needs to be generalized through the regularization. In this respect, we propose a well-regularized denoiser by adopting the AIN as a regularization method. Specifically, the affine transform parameters for the normalization of features are generated from the pixel-wise noise level. Then, the transform parameters adaptively scale and shift the feature maps according to the noise characteristics, which results in the generalization of the CNN.
48
+
49
+ Furthermore, we propose a transfer learning scheme from SN to RN denoising network to reduce the domain discrepancy between the synthetic and the real. As mentioned above, the RN dataset would not be sufficient to train a CNN, which can also be easily overfitted to a certain RN dataset. Hence, we devise a transfer learning scheme that learns the general and invariant information of denoising from the SN domain and then transfer-learns the domain
50
+
51
+ specific information from the information of RN. As can be seen in Fig. 1(c), we believe that the SN denoiser can be adapted to an RN denoiser by re-transforming normalized features. Specifically, the parameters of AIN are updated using the RN dataset. The proposed scheme based on transfer learning can be applied to any dataset that has a small number of labeled data. That is, a CNN trained with the SN is easily transferred to work for the RN removal, without the need for training the whole network with the RN.
52
+
53
+ The contribution of this work can be summarized as follows:
54
+
55
+ - We propose a novel well-generalized denoiser based on the AIN, which enables the CNN to work for various noise from many camera devices.
56
+ - We introduce a transfer learning for the denoising scheme, which learns the domain-invariant information from SN data and updates affine transform parameters of AIN for the different-domain data.
57
+ - The proposed method achieves state-of-the-art performance on the SN and RN images.
58
+
59
+ # 2. Related Works
60
+
61
+ The statistics of RN in standard RGB (sRGB) images depend on the properties of camera sensors and in-camera pipelines. Specifically, shot noise and readout noise are generated from the sensor, and the statistics of generated noise are changed according to the in-camera pipeline such
62
+
63
+ ![](images/e56fb8392f004c1855c8e4ae093b983e4e8f3ff5fa609ffdc25c6c2b97b2dacf.jpg)
64
+ Figure 2: Illustration of the proposed denoiser. The noise level estimator and reconstruction network are U-Net based architecture, so the feature maps are down/up-sampled by average-pool/transposed convolution. We denote each scale of feature map as $1 / s$ where $s$ can be 1, 2, and 4. All the represented convolutions in reconstruction network are $3 \times 3$ kernel having $64s$ feature maps excluding last convolution. Feature representation of noise level estimator is also composed of $3 \times 3$ convolutions with 32 channels and noise level maps are achieved from $3 \times 3$ convolutions having 3 channel outputs. The amount of overall parameters is $13.7\mathrm{M}$ .
65
+
66
+ as demosaicing, gamma correction, in-camera denoiser, white balancing, color correction, etc [39]. There have been several works to approximate the RN model, including Gaussian-Poisson [17, 34], heteroscedastic Gaussian [21], Gaussian Mixture Model (GMM) [59], and deep leaning based methods [11, 1]. Considering the camera pipeline, CBDNet [20] and Unprocessing [7] also considered realistic noise models. Specifically, they obtained near-RN images by adding the heteroscedastic Gaussian noise to the pseudo-raw images and feeding them to the camera pipeline. These methods can simulate more than 200 camera response functions, and thus generate noisy images having different characteristics. Moreover, CBDNet is alternately trained with the RN and SN to overcome overfitting to the noise model. We think the alternate training scheme would incur training instability due to different data distributions, and also cannot train quite different RN effectively. Thus, we introduce a new transfer learning scheme that can simply but effectively adapt SN denoiser to other RN ones by re-transforming the normalized feature map.
67
+
68
+ # 3. Proposed
69
+
70
+ We aim to train a robust RN denoiser, which reduces the discrepancy between the distributions of training and test sets, by proposing a novel denoiser and transfer learning. Precisely, we propose denoising architecture using the AIN, which can be well generalized to RN images. Also, we introduce a transfer learning scheme to reduce the remaining data discrepancy, which consists of two stages: (1) training a denoiser with SN dataset $\mathcal{S} = \{X_s,Y_s\}$ and (2) transfer learning with RN dataset $\mathcal{T} = \{X_r,Y_r\}$ , where $X$ and
71
+
72
+ $Y$ are noise-free images and noisy images respectively, and the subscript $s$ is for SN and $r$ for RN. We use the noise model from CBDNet for generating $Y_{s}$ from $X_{s}$ with the noise level of $\sigma (\mathbf{y}_s)$ where $\mathbf{y}_s\in Y_s$ denotes SN image. After training SN denoiser with $S$ , RN denoiser is trained with $\mathcal{T}$ (pairs of RN image $\mathbf{y}_r\in Y_r$ and near noise-free image $\mathbf{x}_r\in X_r$ ). In the transfer learning stage, domain-specific parameters are only updated to effectively preserve learned knowledge from SN data.
73
+
74
+ # 3.1. Adaptive Instance Normalization Denoising Network
75
+
76
+ We present a novel AIN denoising network (AINDNet), where the same architecture is employed both for SN and RN denoiser. We compose AINDNet with a noise level estimator and a reconstruction network, which is presented in Fig. 2. The noise level estimator takes a noisy image $\mathbf{y}$ as an input and generates the estimated noise level map $\hat{\sigma} (\mathbf{y}) = F_{est}(\mathbf{y};\theta_{est})$ where $\theta_{est}$ denotes a training parameter of estimator. The reconstruction network takes $\hat{\sigma} (\mathbf{y})$ and $\mathbf{y}$ as input and generates denoised image $\hat{\mathbf{x}} = F_{rec}(\mathbf{y},\hat{\sigma} (\mathbf{y});\theta_{rec})$ where $\theta_{rec}$ denotes a training parameter of reconstruction network. The reconstruction network is U-Net based architecture with AIN Residual blocks (AIN-ResBlocks).
77
+
78
+ Noise Level Estimator Estimating the noise level would not be an easy task due to the complex noise model and in-camera pipeline. In our experiment, we find that previous simple noise level estimator [20], which consist of five convolutions, could not accurately estimate the noise level. The main reason is that the previous estimator has a
79
+
80
+ ![](images/d744c6dcc73d4856532d6af1c0c99190dec627faa77dba9ce4ea7eeb58179008.jpg)
81
+ Figure 3: Illustration of the proposed AIN-ResBlock with corresponding kernel size $(k)$ , feature scale $(s)$ , and number of features $(n)$ . Note that $n$ is linearly increasing according to $s$ . Leaky ReLU is employed for an activation function. The Norm (red) block denotes channel-wise spatial normalization block. Average-pool scales the size of $\hat{\sigma}(\mathbf{y})$ to be the same as that of $h$ .
82
+
83
+ small receptive field so that it could not fully capture complex noise information. From this observation, we design a new noise level estimator with a larger receptive field by employing down/up-sampling and multi-scale estimations. Specifically, estimator produces down-scaled estimation map $\hat{\sigma}_4(\mathbf{y})\in R^{H / 4\times W / 4\times 3}$ and original-sized estimation map $\hat{\sigma}_{1}(\mathbf{y})\in R^{H\times W\times 3}$ . Then, these two outputs are weight averaged to feed reconstruction network:
84
+
85
+ $$
86
+ \hat {\sigma} (\mathbf {y}) = \lambda_ {m s} L \left(\hat {\sigma} _ {4} (\mathbf {y})\right) + \left(1 - \lambda_ {m s}\right) \hat {\sigma} _ {1} (\mathbf {y}) \tag {1}
87
+ $$
88
+
89
+ where $H, W, L(\cdot)$ denotes the height and width of the image, and the linear interpolation respectively. $\lambda_{ms}$ is empirically determined to 0.8. From the weight average of multiscale estimates, we can achieve region-wisely smoothed $\hat{\sigma} (\mathbf{y})$ , which follows general the characteristic of RN.
90
+
91
+ Adaptive Instance Normalization The proposed AIN-ResBlock plays two crucial roles in the proposed denoising scheme. One is regularizing the network not to be overfitted to SN images, and the other is adapting SN denoiser to RN denoiser. For this, we build AIN-ResBlcok with two convolutions and two AIN modules, which is presented in Fig. 3. The AIN module affine transforms normalized feature map $h \in R^{H' \times W' \times C}$ of convolution by taking a conditional input $\hat{\sigma}(\mathbf{y})$ where $H' \times W'$ denotes the spatial size of feature map at each scale $s$ , and $C$ is the number of channels. Specifically, the AIN module produces affine transform parameters such as scale $(\gamma)$ and shift $(\beta)$ for each pixel. Thus, every feature map is channel-wisely normalized and pixel-wisely affine transformed according to the noise level. The update process of feature map in AIN module at site $(p \in R^{H'}, q \in R^{W'}, c \in R^{C})$ is formally repre
92
+
93
+ ![](images/d119a9ab77ad046d9c1bb4c2b0850ec8ddeba8cdbd3ca70f5c1f554bd6950c35.jpg)
94
+ Figure 4: Illustration of the proposed transfer learning scheme. AIN module, noise level estimator, and last convolution are only updated when learning RN data. For the better visualization, we omit the noise level estimator in this figure.
95
+
96
+ sented as
97
+
98
+ $$
99
+ h _ {p, q, c} ^ {\text {n e w}} = \gamma_ {p, q, c} ^ {*} \left(\frac {h _ {p , q , c} - \mu_ {c}}{\sigma_ {c}}\right) + \beta_ {p, q, c} ^ {*} \tag {2}
100
+ $$
101
+
102
+ where the variables with superscript \* are generated from $\hat{\sigma} (\mathbf{y})$ , and $\mu_{c}$ and $\sigma_{c}$ denote the mean and standard deviation of $h$ respectively, in channel $c$ . Precisely,
103
+
104
+ $$
105
+ \mu_ {c} = \frac {1}{H ^ {\prime} W ^ {\prime}} \sum_ {p} ^ {H ^ {\prime}} \sum_ {q} ^ {W ^ {\prime}} h _ {p, q, c} \tag {3}
106
+ $$
107
+
108
+ $$
109
+ \sigma_ {c} ^ {2} = \frac {1}{H ^ {\prime} W ^ {\prime}} \sum_ {p} ^ {H ^ {\prime}} \sum_ {q} ^ {W ^ {\prime}} \left(h _ {p, q, c} - \mu_ {c}\right) ^ {2} + \epsilon \tag {4}
110
+ $$
111
+
112
+ where $\epsilon$ denotes the stability parameter, which prevents divide-by-zero in eq. (2), and we set $\epsilon = 10^{-5}$ in our implementation. Note that $\gamma_{p,q,c}^{*}$ and $\beta_{p,q,c}^{*}$ can be generated pixel-wisely and thus the proposed method can process spatially variant noisy images adaptively. In another point of view, AIN module acts as feature attention [12, 58, 47, 15, 26] with explicitly constrained information $(\hat{\sigma} (\mathbf{y}))$ .
113
+
114
+ # 3.2. Transfer Learning
115
+
116
+ We propose transfer learning scheme to leverage $S$ to accelerate the training of RN denoiser with $\mathcal{T}$ that has a limited number of elements (RN pairs). We expect that SN denoiser learns general and invariant feature representations and RN denoiser learns noise characteristics that cannot be fully modeled from SN data. The proposed transfer learning scheme can achieve these two merits by adapting SN denoiser to RN denoiser. For this, we focus on normalization parameter to handle different data distribution, which is inspired from other style transfer and classification tasks [46, 22, 41, 10]. In these methods, transform
117
+
118
+ ing normalization parameters can transfer different style domain, and different domain classifications can be handled by switching the batch normalization parameters. From these observations, we try to adapt different domain denoisers by transfer-learning the normalization parameters assuming that data discrepancy between $S$ and $\mathcal{T}$ can be adapted by re-transforming the normalized feature maps.
119
+
120
+ Specifically, AIN parameters of SN denoiser can be adapted pixel-wisely with conditional $\hat{\sigma}_i(\mathbf{y}_s)$ . Thus, AIN modules and noise level estimator are transfer-learned with RN data. Although the objective function of noise level cannot be present in $\mathcal{T}$ , noise level estimator can be trained with the reconstruction loss. We consider that last convolution plays a crucial role reconstructing feature maps to RGB image, hence last convolution is also updated. The overall proposed transfer learning scheme is presented in Fig. 4.
121
+
122
+ Since the proposed transfer learning scheme only updates the parts of well generalized denoiser, it can be converged with faster speed and get better performance with very few number of elements from $\mathcal{T}$ than training from scratch. Moreover, the proposed scheme effectively copes with multiple models, which are inevitably required due to severely different noise statics, saving lots of memory by switching specific parameters.
123
+
124
+ Training For training SN denoiser, we exploit multi-scale asymmetric loss as an estimation loss where asymmetric loss is introduced from CBDNet [20] to prevent under estimation. Formally, multi-scale asymmetric loss is defined as,
125
+
126
+ $$
127
+ \begin{array}{l} \mathcal {L} _ {m s - a s y m m} = \sum_ {i \in \{1, 4 \}} w _ {i} | \alpha - \mathbb {1} _ {\left(\hat {\sigma} _ {i} \left(\mathbf {y} _ {s}\right) - \sigma_ {i} \left(\mathbf {y} _ {s}\right) < 0\right)} | \tag {5} \\ \cdot \left(\hat {\sigma} _ {i} (\mathbf {y} _ {s}) - \sigma_ {i} (\mathbf {y} _ {s})\right). ^ {2} \\ \end{array}
128
+ $$
129
+
130
+ where $\mathbb{1},\cdot ,$ and. $^2$ denote element-wise operations such as indicator function, multiplication, and power respectively. Hyperparameters $\{w_{1},w_{4},\alpha \}$ are empirically determined as $\{0.2,0.8,0.25\}$ $\sigma_4(\mathbf{y}_s)$ is achieved from $4\times 4$ average pooling $\sigma_1(\mathbf{y}_s)$
131
+
132
+ Then, the proposed SN denoiser is jointly trained with estimation loss and $L_{1}$ reconstruction loss as,
133
+
134
+ $$
135
+ \mathcal {L} = \| F \left(\mathbf {y} _ {s}; \theta_ {s}\right) - \mathbf {x} _ {s} \| _ {1} ^ {1} + \lambda_ {m s - a s y m m} \mathcal {L} _ {m s - a s y m m} \tag {6}
136
+ $$
137
+
138
+ where $\theta_{s}$ denotes the SN denoiser training parameter including noise level estimator and reconstruction network. $\lambda_{ms - asymm}$ denotes the weight term of noise level estimator and is empirically determined to 0.05.
139
+
140
+ For the RN denoiser, it is only trained with reconstruction loss:
141
+
142
+ $$
143
+ \mathcal {L} = \| F \left(\mathbf {y} _ {r}; \theta_ {r}\right) - \mathbf {x} _ {r} \| _ {1} ^ {1} \tag {7}
144
+ $$
145
+
146
+ where $\theta_r$ denotes the RN denoiser training parameter that is transferred from $\theta_s$ . Previously stated parameter such as AIN modules, estimator, and last convolution are only updated, and other parameters are fixed when training the RN denoiser. We use Adam optimizer for both SN denoiser and RN denoiser.
147
+
148
+ # 4. Experiments
149
+
150
+ We present the results of AWGN and RN images by training a Gaussian denoiser and RN denoiser.
151
+
152
+ # 4.1. Experimental Setup
153
+
154
+ Training Settings For the Gaussian denoiser, the training images are obtained from DIV2K [44] and BSD400 [37], and noisy image is generated by AWGN model. For the RN denoiser, we train a denoiser with two steps: training an SN denoiser and training the RN denoiser by transfer learning. We achieve pairs of SN images and noise-free images from Waterloo dataset [35] with heteroscedastic Gaussian noise model and simulating in-camera pipelines. The RN denoiser, which is transferred from SN denoiser, is trained with SIDD training set [2]. All the training images are cropped into patches of size $256 \times 256$ .
155
+
156
+ Test Set In the AWGN experiments, we evaluate Set12 [54] and BSD68 [43] that are widely used for validating the AWGN denoiser. Furthermore, we adopt three datasets for real-world noisy images:
157
+
158
+ - RNI15 [28] is composed of 15 real-world noisy images. Unfortunately, the ground-truth clean images are unavailable, therefore we only present qualitative results.
159
+ - DND [42] provides 50 noisy images that are captured by mirrorless cameras. Since we cannot access near noise-free counterparts, the objective results (PSNR/SSIM) can be achieved by submitting the denoised images to DND site.
160
+ - SIDD [2] is obtained from smartphone cameras. It provides 320 pairs of noisy images and corresponding near noise-free ones for the learning based methods where the captured scenes are mostly static. Furthermore, it provides 1280 patches for validation that has similar scenes with training set. The quantitative results (PSNR/SSIM) can be achieved by uploading the denoised image to SIDD site.
161
+
162
+ # 4.2. Comparison with state-of-the-arts
163
+
164
+ Noise Level Estimation We evaluate an accuracy of noise level estimator on exploited noise model images. We compare the proposed noise level estimator with fully convolutional network (FCN) that is widely used [20]. In order
165
+
166
+ Table 1: Average MAE and error STD for the images from Kodak24 where the inputs are corrupted by heteroscedastic Gaussian including in-camera pipeline.
167
+
168
+ <table><tr><td>Method</td><td colspan="2">FCN</td><td colspan="2">Ours</td></tr><tr><td>(σs, σc)</td><td>MAE</td><td>STD</td><td>MAE</td><td>STD</td></tr><tr><td>(0.08, 0.02)</td><td>0.039</td><td>0.013</td><td>0.014</td><td>0.012</td></tr><tr><td>(0.08, 0.04)</td><td>0.059</td><td>0.014</td><td>0.012</td><td>0.011</td></tr><tr><td>(0.08, 0.06)</td><td>0.076</td><td>0.013</td><td>0.020</td><td>0.010</td></tr><tr><td>(0.12, 0.02)</td><td>0.052</td><td>0.021</td><td>0.015</td><td>0.014</td></tr><tr><td>(0.12, 0.04)</td><td>0.071</td><td>0.020</td><td>0.017</td><td>0.014</td></tr><tr><td>(0.12, 0.06)</td><td>0.087</td><td>0.020</td><td>0.030</td><td>0.014</td></tr><tr><td>Average</td><td>0.064</td><td>0.017</td><td>0.018</td><td>0.013</td></tr><tr><td># params</td><td colspan="2">29.5 K</td><td colspan="2">29.7 K</td></tr></table>
169
+
170
+ Table 2: Average PSNR of the denoised images, where the inputs are corrupted by AWGN with $\sigma = 15,25$ , and 50, for the images from Set12 and BSD68 datasets. (red: the best result, blue: the second best)
171
+
172
+ <table><tr><td>Test Set</td><td colspan="3">Set12</td><td colspan="3">BSD68</td></tr><tr><td>Method</td><td>15</td><td>25</td><td>50</td><td>15</td><td>25</td><td>50</td></tr><tr><td>BM3D [14]</td><td>32.38</td><td>29.95</td><td>26.70</td><td>31.07</td><td>28.56</td><td>25.62</td></tr><tr><td>TNRD [13]</td><td>32.50</td><td>30.04</td><td>26.78</td><td>31.42</td><td>28.91</td><td>25.96</td></tr><tr><td>DnCNN [54]</td><td>32.68</td><td>30.36</td><td>27.21</td><td>31.61</td><td>29.16</td><td>26.23</td></tr><tr><td>UNLNet [30]</td><td>32.67</td><td>30.25</td><td>27.04</td><td>31.47</td><td>28.98</td><td>26.04</td></tr><tr><td>FFDNET [56]</td><td>32.75</td><td>30.43</td><td>27.32</td><td>31.63</td><td>29.19</td><td>26.29</td></tr><tr><td>RIDNet [6]</td><td>32.91</td><td>30.60</td><td>27.43</td><td>31.81</td><td>29.34</td><td>26.40</td></tr><tr><td>AINDNet</td><td>32.92</td><td>30.61</td><td>27.51</td><td>31.69</td><td>29.26</td><td>26.32</td></tr></table>
173
+
174
+ to evaluate the accuracy of estimator itself, each estimator is trained with $L_{1}$ regression. The employed quantitative measurements are mean absolute error (MAE) and standard deviation (STD) of the error. We report the accuracy of each estimator in Table 1 where the input images are simultaneously corrupted with signal dependent noise level $\sigma_{s}$ and signal independent noise level $\sigma_{c}$ . We can find that proposed estimator gets more accurate results than previous estimator with a similar number of parameters. The results of more various noise levels will be presented in supplementary file. Furthermore, we will present the denoising performance when combined with reconstruction network.
175
+
176
+ AWGN Denoising We compare proposed denoiser on the noisy grayscale images that are corrupted by AWGN. For this, we train Gaussian denoiser in a single network that learns noise level in [0,60]. The comparisons between the proposed method and other methods are presented in Table 2. We can see that the proposed denoiser achieves the best performance on Set12 where composition of Set12 is independent from training sets. On the other hand, the proposed method gets second best performance on BSD68 that consists of similar objects in BSD400 (training set). We think these results present robust generalization ability of the proposed denoising architecture for training set.
177
+
178
+ Real Noise Denoising We also investigate the proposed denoiser and transfer learning scheme on RN datasets. Processing RN image is considered very practical, but difficult, because the noises are signal dependent, spatially variant, and visualized diversely according to different in-camera pipelines. Thus, we think RN denoising is an appropriate task for showing the generalization ability of the proposed denoiser and the effects of the proposed transfer learning.
179
+
180
+ For the precise comparison, we train four different denoisers according to training sets and learning methods:
181
+
182
+ - AINDNet(S): AINDNet is trained with $S$ , which is proposed SN denoiser.
183
+ - AINDNet(R): AINDNet is trained with $\mathcal{T}$ .
184
+ - AINDNet+RT: All the parameters from AINDNet(S) are re-trained with $\mathcal{T}$ , which is common transfer learning scheme.
185
+ - AINDNet+TF: Specified parameters from AINDNet(S) are updated with $\mathcal{T}$ , which is proposed RN denoiser.
186
+
187
+ Moreover, we present the geometric self-ensemble [45] results denoting super script * in order to maximize potential performance of the proposed methods.
188
+
189
+ Meanwhile, there have been a challenge on real image denoising [3] where the SIDD is used. Our method shows lower performance than the top-ranked ones in the challenge, but it needs to be noted that the number of parameters of our network is much smaller than those in the challenge. For example, DHDN [40] and DIDN [53] that appeared in the challenge require about $160\mathrm{M}$ and $190\mathrm{M}$ training parameters respectively which are about 12 - 15 times larger than ours. Moreover, challenge methods have been slightly overfitted to SIDD where the winning denoiser [23] gets comparably lower performance (38.78 dB) on DND than our method. Therefore, we would not directly compare the proposed method with challenge methods.
190
+
191
+ The comparisons, including internal comparisons, are presented in Table 3 and 4. We can find that proposed methods get the best performance on DND and SIDD benchmarks. Specifically, the proposed AINDNet(S) achieves the best performance on DND benchmark, which is impressive performance that outperforms RN trained denoisers. Moreover, AINDNet(S) gets 1.5 dB and 2.4 dB gains from CBDNet on DND and SIDD respectively where employed noise models are the same. These results indicate that the proposed denoiser is not overfitted to noise model and can be well generalized to RN images. However, AINDNet(S) has inferior performance than AINDNet(R) on SIDD with big margin. The main reason is that AINDNet(R) is solely trained with SIDD training images where test set consists of similar scenes and objects in training set. In other words,
192
+
193
+ Table 3: Average PSNR of the denoised images on the DND benchmark, we denote the environment of training, i.e., training with SN data only, RN data only, and both. * denotes geometric self-ensemble [45] result. (red: the best result, blue: the second best)
194
+
195
+ <table><tr><td>Method</td><td>Blind/Non-blind</td><td>Training Env.</td><td>PSNR</td><td>SSIM</td></tr><tr><td>CDnCNN-B [54]</td><td>Blind</td><td>Synthetic</td><td>32.43</td><td>0.7900</td></tr><tr><td>TNRD [13]</td><td>Non-blind</td><td>Synthetic</td><td>33.65</td><td>0.8306</td></tr><tr><td>MLP [8]</td><td>Non-blind</td><td>Synthetic</td><td>34.23</td><td>0.8331</td></tr><tr><td>FFDNet [56]</td><td>Non-blind</td><td>Synthetic</td><td>34.40</td><td>0.8474</td></tr><tr><td>BM3D [14]</td><td>Non-blind</td><td>-</td><td>34.51</td><td>0.8507</td></tr><tr><td>WNNM [19]</td><td>Non-blind</td><td>-</td><td>34.67</td><td>0.8646</td></tr><tr><td>GCBD [11]</td><td>Blind</td><td>Synthetic</td><td>35.58</td><td>0.9217</td></tr><tr><td>KSVD [4]</td><td>Non-blind</td><td>-</td><td>36.49</td><td>0.8978</td></tr><tr><td>TWSC [51]</td><td>Blind</td><td>-</td><td>37.94</td><td>0.9403</td></tr><tr><td>CBDNet [20]</td><td>Blind</td><td>Synthetic</td><td>37.57</td><td>0.9360</td></tr><tr><td>CBDNet [20]</td><td>Blind</td><td>Real</td><td>37.72</td><td>0.9408</td></tr><tr><td>CBDNet [20]</td><td>Blind</td><td>All</td><td>38.06</td><td>0.9421</td></tr><tr><td>RIDNet [6]</td><td>Blind</td><td>Real</td><td>39.23</td><td>0.9526</td></tr><tr><td>AINDNet(S)</td><td>Blind</td><td>Synthetic</td><td>39.53</td><td>0.9561</td></tr><tr><td>AINDNet(R)</td><td>Blind</td><td>Real</td><td>39.16</td><td>0.9515</td></tr><tr><td>AIDNet + RT</td><td>Blind</td><td>All</td><td>39.21</td><td>0.9505</td></tr><tr><td>AINDNet + TF</td><td>Blind</td><td>All</td><td>39.37</td><td>0.9505</td></tr><tr><td>AINDNet(S)*</td><td>Blind</td><td>Synthetic</td><td>39.77</td><td>0.9590</td></tr><tr><td>AINDNet(R)*</td><td>Blind</td><td>Real</td><td>39.34</td><td>0.9524</td></tr><tr><td>AINDNet + RT*</td><td>Blind</td><td>All</td><td>39.34</td><td>0.9522</td></tr><tr><td>AINDNet + TF*</td><td>Blind</td><td>All</td><td>39.52</td><td>0.9522</td></tr></table>
196
+
197
+ AINDNet(R) can be slightly overfitted to SIDD benchmark and this phenomenon can be seen from insufficient performance on DND.
198
+
199
+ In contrast, AINDNet+RT and AINDNet+TF get satisfying performance on both DND and SIDD. Concretely, AINDNet+RT and AINDNet+TF have better performance than others, including AINDNet(R) on SIDD, which indicates that pre-training the SN images results in better performance. AINDNet+TF more likely preserves priorly learned knowledges from SN data than AINDNet+RT, so AINDNet+TF achieves the best overall performance among compared methods.
200
+
201
+ We present visualized comparisons on SIDD and RNI15 in Figs. 5 and 6, which show that proposed methods remove noises robustly while preserving the edges. Thus, characters in output images are more apparent than in other methods' results. Furthermore, we also present visual enhancement in Fig. 7 when the proposed transfer learning scheme is applied. Since RN denoiser transfer-learns characteristics of RN, AINDNet+TF successfully removes unusual noise that cannot be removed with AINDNet(S). Moreover, RN denoiser learns the properties of JPEG compression artifacts that is not priorly learned in SN denoiser, so it can also successfully reduces compression artifacts. We will also present other visualized comparisons in supplementary file.
202
+
203
+ Table 4: Average PSNR of the denoised images on the SIDD benchmark, we denote the environment of training, i.e., training with SN data only, RN data only, and both. * denotes geometric self-ensemble [45] result. (red: the best result, blue: the second best)
204
+
205
+ <table><tr><td>Method</td><td>Blind/Non-blind</td><td>Training Env.</td><td>PSNR</td><td>SSIM</td></tr><tr><td>CDnCNN-B [54]</td><td>Blind</td><td>Synthetic</td><td>23.66</td><td>0.583</td></tr><tr><td>MLP [8]</td><td>Non-blind</td><td>Synthetic</td><td>24.71</td><td>0.641</td></tr><tr><td>TNRD [13]</td><td>Non-blind</td><td>Synthetic</td><td>24.73</td><td>0.643</td></tr><tr><td>BM3D [14]</td><td>Non-blind</td><td>-</td><td>25.65</td><td>0.685</td></tr><tr><td>WNNM [19]</td><td>Non-blind</td><td>-</td><td>25.78</td><td>0.809</td></tr><tr><td>KSVD [4]</td><td>Non-blind</td><td>-</td><td>26.88</td><td>0.842</td></tr><tr><td>CBDNet [20]</td><td>Blind</td><td>All</td><td>33.28</td><td>0.868</td></tr><tr><td>AINDNet(S)</td><td>Blind</td><td>Synthetic</td><td>35.66</td><td>0.903</td></tr><tr><td>AINDNet(R)</td><td>Blind</td><td>Real</td><td>38.73</td><td>0.950</td></tr><tr><td>AIDNet + RT</td><td>Blind</td><td>All</td><td>39.04</td><td>0.955</td></tr><tr><td>AINDNet + TF</td><td>Blind</td><td>All</td><td>38.95</td><td>0.952</td></tr><tr><td>AINDNet(S)*</td><td>Blind</td><td>Synthetic</td><td>35.87</td><td>0.905</td></tr><tr><td>AINDNet(R)*</td><td>Blind</td><td>Real</td><td>38.84</td><td>0.951</td></tr><tr><td>AINDNet + RT*</td><td>Blind</td><td>All</td><td>39.15</td><td>0.955</td></tr><tr><td>AINDNet + TF*</td><td>Blind</td><td>All</td><td>39.08</td><td>0.953</td></tr></table>
206
+
207
+ # 4.3. Discussions
208
+
209
+ Effect of Transfer Learning with Limited RN Pairs We investigate the relation between denoising performance and the amount of RN image pairs in $\mathcal{T}$ , because we consider that preparation of $\mathcal{T}$ is quite difficult and the number of elements can also be limited. For this, we train each network with constrained image pairs from one to all (320) from SIDD [2]. The average PSNR of each denoiser is presented in Table 5. It can be seen that transfer learning schemes can infer great performance with the small number of real training images. It is notable that AINDNet+TF trained with 32 pairs of real data achieves better performance than RIDNet that exploits all. Thus, we can conclude that the transfer learning with SN denoiser dramatically accelerate the performance with a small number of labeled data from other domain.
210
+
211
+ Architecture of Denoiser We demonstrate the effectiveness of reconstruction network for training with $S$ . For this, AINDNet(S) is compared with a baseline (IN + Concat), which replaces AIN module with IN and concatenated input of noisy image and noise level map [55, 56]. Furthermore, we compare an adaptive Gaussian denoiser [25] that can process spatially variant noise map by feeding gated-residual block (Gated-ResBlock). Since it has not reported the performance on RN dataset, we train SN denoiser by replacing AIN-ResBlock to Gated-ResBlock where other settings are same as AINDNet. Table 6 shows that the proposed AIN-ResBlock shows the best performance on RN datasets. Thus, we believe that the AIN-ResBlock is an appropriate architecture for the generalization. We will present ablation study about update variable for transfer learning in supplementary file.
212
+
213
+ Table 5: Investigation of denoiser RN denoising performance according to the amount of RN dataset. The quantitative results (in average PSNR (dB)) are reported on SIDD validation dataset.
214
+
215
+ <table><tr><td>Num of Real Images</td><td>0</td><td>1</td><td>2</td><td>4</td><td>8</td><td>16</td><td>32</td><td>64</td><td>320 (full)</td></tr><tr><td>RIDNet</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>38.71</td></tr><tr><td>AINDNet(R)</td><td>-</td><td>30.36</td><td>32.19</td><td>36.94</td><td>37.70</td><td>38.14</td><td>38.66</td><td>38.70</td><td>38.81</td></tr><tr><td>AINDNet+RT</td><td>35.21</td><td>36.23</td><td>37.16</td><td>38.02</td><td>38.40</td><td>38.63</td><td>38.82</td><td>39.00</td><td>39.01</td></tr><tr><td>AINDNet+TF</td><td>35.21</td><td>36.19</td><td>37.14</td><td>37.93</td><td>38.27</td><td>38.52</td><td>38.75</td><td>38.83</td><td>38.90</td></tr></table>
216
+
217
+ ![](images/f2c34faf06463d5068330f132041375363db23eb243624c3ce90bfc3821fd505.jpg)
218
+
219
+ ![](images/6c6934f2434ab93c1b9d7b8433fcad9a15f590c78fd15766c9ea39753c4c36ce.jpg)
220
+
221
+ ![](images/f3716af503ef85ef28aec9f86b1c6a25a0f88b6a629a3865aa49ea761558370b.jpg)
222
+
223
+ ![](images/1efb0bd744fc6af0e4ac40b10e7a655cef2bffb5dc506c58073fafe753fbfeb9.jpg)
224
+ (a) Noisy Image
225
+ (d) RIDNet
226
+
227
+ ![](images/4096179b61bd59220cb1fa12db2af196af8594e500eab93c6a2ce24113567dc5.jpg)
228
+ (b) DnCNN-C
229
+ (e) AINDNet(S)
230
+
231
+ ![](images/bf19508f07715b63f95120baec6e91e048a30789f49741855a65850ac416c9c9.jpg)
232
+ (c) CBDNet
233
+ (f) AINDNet+TF
234
+
235
+ ![](images/c412cc17af6f3a7d79ec81e42e44641a7358f496bc38b62a6472534689317ebc.jpg)
236
+ Figure 5: The real noisy image from SIDD, and the comparison of the results.
237
+
238
+ ![](images/97483a22dfc83e5c2de65aabbf9aca36bca15153a888b9977fb4c14f7d943af1.jpg)
239
+
240
+ ![](images/6015932ab55f2c9ef402f8d7c07b9e2f15ed9e60186e15dd6612afa4b792e3b9.jpg)
241
+
242
+ ![](images/6bd3a0e761ee278b4a3c56c9e439265f97f375b2fc387bcf32f487ba70275cc3.jpg)
243
+ (a) Noisy Image
244
+ (d) RIDNet
245
+ Figure 6: The real noisy image from RNI15, and the comparison of the results.
246
+
247
+ ![](images/8f9c9c6e81a2afd3a23e89b7f5f758d7cc64d3c2c6aa0c5f5b8a07024c33a041.jpg)
248
+ (b) DnCNN-C
249
+ (e) AINDNet(S)
250
+
251
+ ![](images/484674b4833227d7e47cc488cd408d7e153b9c7b704a6f4ac89918235e082f9b.jpg)
252
+ (c)CBDNet
253
+ (f) AINDNet+TF
254
+
255
+ # 5. Conclusion
256
+
257
+ In this paper, we have presented a novel denoiser and transfer learning scheme of RN denoising. The proposed denoiser employs an AIN to regularize the network and also to prevent the network from overfitting to SN. The transfer learning mainly updates the AIN module using RN data to adjust data distribution. From the experimental results, we could find that the proposed denoising scheme can be well generalized to RN even if it is trained with SN. Moreover,
258
+
259
+ ![](images/fbd75dbd887ab6f376535164bfd7dba50b488bd879423da932282d508bff6a76.jpg)
260
+
261
+ ![](images/066cd0ea3d4a1c0c895c9009dbdcc7e649f65dab53d9f578b5783c3a58e3fa61.jpg)
262
+
263
+ ![](images/8abad2fa793ad506ddfbb209615f17be6dfece514832c72cd06d292e4a406858.jpg)
264
+
265
+ ![](images/6e466d8f33a97f40e1222c7cd9c8521a9cf740d924e188abe7a6379ce0732c8d.jpg)
266
+ (a) Noisy Image
267
+ (d) Noisy Image
268
+ Figure 7: The real noisy image from RNI15, and the comparison of the results showing the effectiveness of the proposed transfer learning scheme.
269
+
270
+ ![](images/8a47b372c85e7dda9b1f3601fb8e62c1308015a73f995f7b763ab23e2aa20f5d.jpg)
271
+ (b) AINDNet(S)
272
+ (e) AINDNet(S)
273
+
274
+ ![](images/adc78e1b38b1a47b8cdac69319f67ee3fd4c0e0ddab95ed7511201796fe935b3.jpg)
275
+ (c) AINDNet+TF
276
+ (f) AINDNet+TF
277
+
278
+ Table 6: Investigation of the proposed reconstruction network when denoisers are trained with SN data. The quantitative results (in average PSNR (dB)) are reported on DND test dataset and SIDD validation dataset.
279
+
280
+ <table><tr><td>Method</td><td>DND</td><td>SIDD</td></tr><tr><td>IN + Concat</td><td>38.53</td><td>34.74</td></tr><tr><td>Gated-ResBlock [25]</td><td>39.19</td><td>34.93</td></tr><tr><td>Ours</td><td>39.53</td><td>35.19</td></tr></table>
281
+
282
+ the transfer learning scheme can effectively adapt an SN denoiser to an RN denoiser, with very few additional training with real- noise pairs. We will make our codes publicly available at https://github.com/terryoo/AINDNet for further research and comparison.
283
+
284
+ Acknowledgments This work was supported in part by Institute for Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No.N190004, Development of AI based Robot Technologies for Understanding Assembly Instruction and Automatic Assembly Task Planning), and in part by Samsung Electronics Co., Ltd.
285
+
286
+ # References
287
+
288
+ [1] Abdelrahman Abdelhamed, Marcus A Brubaker, and Michael S Brown. Noise flow: Noise modeling with conditional normalizing flows. In Proceedings of the IEEE International Conference on Computer Vision, pages 3165-3173, 2019. 3
289
+ [2] Abdelrahman Abdelhamed, Stephen Lin, and Michael S Brown. A high-quality denoising dataset for smartphone cameras. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 1, 5, 7
290
+ [3] Abdelrahman Abdelhamed, Radu Timofte, and Michael S Brown. Ntire 2019 challenge on real image denoising: Methods and results. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0-0, 2019. 6
291
+ [4] Michal Aharon, Michael Elad, and Alfred Bruckstein. K-svd: An algorithm for designing overcomplete dictionaries for sparse representation. IEEE Transactions on signal processing, 54(11):4311-4322, 2006. 7
292
+ [5] Josue Anaya and Adrian Barbu. Renoir-a dataset for real low-light image noise reduction. Journal of Visual Communication and Image Representation, 51:144-154, 2018. 1
293
+ [6] Saeed Anwar and Nick Barnes. Real image denoising with feature attention. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 6, 7
294
+ [7] Tim Brooks, Ben Mildenhall, Tianfan Xue, Jiawen Chen, Dillon Sharlet, and Jonathan T Barron. Unprocessing images for learned raw denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 1, 3
295
+ [8] Harold C Burger, Christian J Schuler, and Stefan Harmeling. Image denoising: Can plain neural networks compete with bm3d? In 2012 IEEE conference on computer vision and pattern recognition, 2012. 7
296
+ [9] Jianrui Cai, Hui Zeng, Hongwei Yong, Zisheng Cao, and Lei Zhang. Toward real-world single image super-resolution: A new benchmark and a new model. arXiv preprint arXiv:1904.00523, 2019. 1
297
+ [10] Woong-Gi Chang, Tackgeun You, Seonguk Seo, Suha Kwak, and Bohyung Han. Domain-specific batch normalization for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7354-7362, 2019. 4
298
+ [11] Jingwen Chen, Jiawei Chen, Hongyang Chao, and Ming Yang. Image blind denoising with generative adversarial network based noise modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 3, 7
299
+ [12] Long Chen, Hanwang Zhang, Jun Xiao, Liqiang Nie, Jian Shao, Wei Liu, and Tat-Seng Chua. Sca-cnn: Spatial and channel-wise attention in convolutional networks for image captioning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5659-5667, 2017. 4
300
+ [13] Yunjin Chen and Thomas Pock. Trainable nonlinear reaction diffusion: A flexible framework for fast and effective image
301
+
302
+ restoration. IEEE transactions on pattern analysis and machine intelligence, 39(6):1256-1272, 2016. 6, 7
303
+ [14] Kostadin Dabov, Alessandro, Vladimir Katkovnik, and Karen Egiazarian. Color image denoising via sparse 3d collaborative filtering with grouping constraint in luminance-chrominance space. In 2007 IEEE International Conference on Image Processing, 2007. 6, 7
304
+ [15] Tao Dai, Jianrui Cai, Yongbing Zhang, Shu-Tao Xia, and Lei Zhang. Second-order attention network for single image super-resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 11065-11074, 2019. 4
305
+ [16] Ruicheng Feng, Jinjin Gu, Yu Qiao, and Chao Dong. Suppressing model overfitting for image super-resolution networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2019. 2
306
+ [17] Alessandro Foi, Mejdi Trimeche, Vladimir Katkovnik, and Karen Egiazarian. Practical poissonian-gaussian noise modeling and fitting for single-image raw-data. IEEE Transactions on Image Processing, 17(10):1737-1754, 2008. 3
307
+ [18] Michael Gharbi, Gaurav Chaurasia, Sylvain Paris, and Frédo Durand. Deep joint demosaicking and denoising. ACM Transactions on Graphics (TOG), 35(6):191, 2016. 1
308
+ [19] Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2014. 7
309
+ [20] Shi Guo, Zifei Yan, Kai Zhang, Wangmeng Zuo, and Lei Zhang. Toward convolutional blind denoising of real photographs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 1, 3, 5, 7
310
+ [21] Samuel W Hasinoff, Frédo Durand, and William T Freeman. Noise-optimal capture for high dynamic range photography. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 553-560. IEEE, 2010. 3
311
+ [22] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision, pages 1501-1510, 2017. 2, 4
312
+ [23] Dong-Wook Kim, Jae Ryun Chung, and Seung-Won Jung. Grdn: Grouped residual dense network for real image denoising and gan-based real-world noise modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0-0, 2019. 6
313
+ [24] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Accurate image super-resolution using very deep convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1646-1654, 2016. 1
314
+ [25] Yoonsik Kim, Jae Woong Soh, and Nam Ik Cho. Adaptively tuning a convolutional neural network by gate process for image denoising. IEEE Access, 7:63447-63456, 2019. 1, 2, 7, 8
315
+ [26] Yoonsik Kim, Jae Woong Soh, and Nam Ik Cho. Agarnet: Adaptively gated jpeg compression artifacts removal network for a wide range quality factor. IEEE Access, 8:20160-20170, 2020. 4
316
+
317
+ [27] Filippos Kokkinos and Stamatis Lefkimmiatis. Iterative residual cnns for burst photography applications. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5929-5938, 2019. 1
318
+ [28] Marc Lebrun, Miguel Colom, and Jean-Michel Morel. The noise clinic: a blind image denoising algorithm. Image Processing On Line, 5:1-54, 2015. 5
319
+ [29] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4681-4690, 2017. 1
320
+ [30] Stamatios Lefkimmiatis. Universal denoising networks: a novel cnn architecture for image denoising. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3204-3213, 2018. 1, 6
321
+ [31] Jaakko Lehtinen, Jacob Munkberg, Jon Hasselgren, Samuli Laine, Tero Karras, Miika Aittala, and Timo Aila. Noise2noise: Learning image restoration without clean data. In International Conference on Machine Learning, pages 2971-2980, 2018. 1
322
+ [32] Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Universal style transfer via feature transforms. In Advances in neural information processing systems, pages 386-396, 2017. 2
323
+ [33] Bee Lim, Sanghyun Son, Heewon Kim, Seungjun Nah, and Young Mu Lee. Enhanced deep residual networks for single image super-resolution. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, 2017. 2
324
+ [34] Xinhao Liu, Masayuki Tanaka, and Masatoshi Okutomi. Practical signal-dependent noise parameter estimation from a single noisy image. IEEE Transactions on Image Processing, 23(10):4361-4371, 2014. 3
325
+ [35] Kede Ma, Zhengfang Duanmu, Qingbo Wu, Zhou Wang, Hongwei Yong, Hongliang Li, and Lei Zhang. Waterloo exploration database: New challenges for image quality assessment models. IEEE Transactions on Image Processing, 26(2):1004-1016, 2016. 5
326
+ [36] Ilja Manakov, Markus Rohm, Christoph Kern, Benedikt Schworm, Karsten Kortuem, and Volker Tresp. Noise as domain shift: Denoising medical images by unpaired image translation. In Domain Adaptation and Representation Transfer and Medical Image Learning with Less Labels and Imperfect Data, pages 3-10. Springer, 2019. 1
327
+ [37] David Martin, Charless Fowlkes, Doron Tal, Jitendra Malik, et al. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In The IEEE International Conference on Computer Vision (ICCV), 2001. 5
328
+ [38] Seonghyeon Nam, Youngbae Hwang, Yasuyuki Matsushita, and Seon Joo Kim. A holistic approach to cross-channel image noise modeling and its application to image denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1683-1691, 2016. 1
329
+
330
+ [39] Alberto Ortiz and Gabriel Oliver. Radiometric calibration of ccd sensors: Dark current and fixed pattern noise estimation. In IEEE International Conference on Robotics and Automation, 2004. Proceedings. ICRA'04. 2004, volume 5, pages 4730-4735. IEEE, 2004. 3
331
+ [40] Bumjun Park, Songhyun Yu, and Jechang Jeong. Densely connected hierarchical network for image denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0–0, 2019. 6
332
+ [41] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2337-2346, 2019. 2, 4
333
+ [42] Tobias Plotz and Stefan Roth. Benchmarking denoising algorithms with real photographs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. 1, 5
334
+ [43] Stefan Roth and Michael J Black. Fields of experts. International Journal of Computer Vision, 82(2):205, 2009. 5
335
+ [44] Radu Timofte, Eirikur Agustsson, Luc Van Gool, Ming-Hsuan Yang, and Lei Zhang. Ntire 2017 challenge on single image super-resolution: Methods and results. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 114-125, 2017. 5
336
+ [45] Radu Timofte, Rasmus Rothe, and Luc Van Gool. Seven ways to improve example-based single image super resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1865-1873, 2016. 6, 7
337
+ [46] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. 2, 4
338
+ [47] Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. Cbam: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), pages 3–19, 2018. 4
339
+ [48] Lei Xiao, Felix Heide, Wolfgang Heidrich, Bernhard Schölkopf, and Michael Hirsch. Discriminative transfer learning for general image restoration. IEEE Transactions on Image Processing, 27(8):4091-4104, 2018. 1
340
+ [49] Jun Xu, Hui Li, Zhetong Liang, David Zhang, and Lei Zhang. Real-world noisy image denoising: A new benchmark. arXiv preprint arXiv:1804.02603, 2018. 1
341
+ [50] Jun Xu, Lei Zhang, and David Zhang. External prior guided internal prior learning for real-world noisy image denoising. IEEE Transactions on Image Processing, 27(6):2996-3010, 2018. 1
342
+ [51] Jun Xu, Lei Zhang, and David Zhang. A trilateral weighted sparse coding scheme for real-world image denoising. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 7
343
+ [52] Jun Xu, Lei Zhang, David Zhang, and Xiangchu Feng. Multi-channel weighted nuclear norm minimization for real color image denoising. In Proceedings of the IEEE International Conference on Computer Vision, pages 1096-1104, 2017. 1
344
+
345
+ [53] Songhyun Yu, Bumjun Park, and Jechang Jeong. Deep iterative down-up cnn for image denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0–0, 2019. 6
346
+ [54] Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a gaussian denoiser: Residual learning of deep cnn for image denoising. IEEE Transactions on Image Processing, 26(7):3142-3155, 2017. 1, 5, 6, 7
347
+ [55] Kai Zhang, Wangmeng Zuo, Shuhang Gu, and Lei Zhang. Learning deep cnn denoiser prior for image restoration. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3929-3938, 2017. 1, 7
348
+ [56] Kai Zhang, Wangmeng Zuo, and Lei Zhang. Ffdnet: Toward a fast and flexible solution for cnn-based image denoising. IEEE Transactions on Image Processing, 27(9):4608-4622, 2018. 1, 6, 7
349
+ [57] Kai Zhang, Wangmeng Zuo, and Lei Zhang. Learning a single convolutional super-resolution network for multiple degradations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3262-3271, 2018. 1
350
+ [58] Yulun Zhang, Kunpeng Li, Kai Li, Lichen Wang, Bineng Zhong, and Yun Fu. Image super-resolution using very deep residual channel attention networks. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 1, 2, 4
351
+ [59] Fengyuan Zhu, Guangyong Chen, and Pheng-Ann Heng. From noise modeling to blind image denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 420–429, 2016. 3
transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d5b7d53551c3e2e0d53acb2718323f03cf3f1b18d01c68b70d0c3edb2016f5a
3
+ size 528373
transferlearningfromsynthetictorealnoisedenoisingwithadaptiveinstancenormalization/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02018c61f439e60ae46a79c4e9e1f1b28156720fc3395f23c95f06a637dffe18
3
+ size 444631
transferringandregularizingpredictionforsemanticsegmentation/e373af93-119e-45bf-8ebd-6369043d9ad9_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70c9cfee94e92821f6922e8e58eba0cbd1a2d2cb13d30ad0ae377b7300fda6c0
3
+ size 84433
transferringandregularizingpredictionforsemanticsegmentation/e373af93-119e-45bf-8ebd-6369043d9ad9_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbd50756c71ac77d45a8320f6398551a1474c553bb8dbc6c160ae772de7dbf5d
3
+ size 104169
transferringandregularizingpredictionforsemanticsegmentation/e373af93-119e-45bf-8ebd-6369043d9ad9_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:294d4c29cc736867673fbe9cb116622f0bf1f042e8adf643745a8d371a31ab54
3
+ size 3391030
transferringandregularizingpredictionforsemanticsegmentation/full.md ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Transferring and Regularizing Prediction for Semantic Segmentation*
2
+
3
+ Yiheng Zhang†, Zhaofan Qiu†, Ting Yao‡, Chong-Wah Ngo§, Dong Liu†, and Tao Mei‡ † University of Science and Technology of China, Hefei, China
4
+
5
+ ‡ JD AI Research, Beijing, China $\S$ City University of Hong Kong, Kowloon, Hong Kong {yihengzhang.chn, zhaofanqiu, tingyao.ustc}@gmail.com cscwngo@cityu.edu.hk, dongeliu@ustc.edu.cn, tmei@jd.com
6
+
7
+ # Abstract
8
+
9
+ Semantic segmentation often requires a large set of images with pixel-level annotations. In the view of extremely expensive expert labeling, recent research has shown that the models trained on photo-realistic synthetic data (e.g., computer games) with computer-generated annotations can be adapted to real images. Despite this progress, without constraining the prediction on real images, the models will easily overfit on synthetic data due to severe domain mismatch. In this paper, we novelly exploit the intrinsic properties of semantic segmentation to alleviate such problem for model transfer. Specifically, we present a Regularizer of Prediction Transfer (RPT) that imposes the intrinsic properties as constraints to regularize model transfer in an unsupervised fashion. These constraints include patch-level, cluster-level and context-level semantic prediction consistencies at different levels of image formation. As the transfer is label-free and data-driven, the robustness of prediction is addressed by selectively involving a subset of image regions for model regularization. Extensive experiments are conducted to verify the proposal of RPT on the transfer of models trained on GTA5 and SYNTHIA (synthetic data) to Cityscapes dataset (urban street scenes). RPT shows consistent improvements when injecting the constraints on several neural networks for semantic segmentation. More remarkably, when integrating RPT into the adversarial-based segmentation framework, we report to-date the best results: mIoU of $53.2\% / 51.7\%$ when transferring from GTA5/SYNTHIA to Cityscapes, respectively.
10
+
11
+ # 1. Introduction
12
+
13
+ Semantic segmentation aims at assigning semantic labels to every pixel of an image. Leveraging on CNNs [18, 22, 42, 45, 46], significant progress has been reported for this fundamental task [6, 7, 30, 36]. One drawback of the existing approaches, nevertheless, is the requirement of large quantities of pixel-level annotations, such as in VOC [15],
14
+
15
+ COCO [28] and Cityscapes [11] datasets, for model training. Labeling of semantics at pixel-level is cost expensive and time consuming. For example, the Cityscapes dataset is composed of 5,000 high-quality pixel-wise annotated images, and the annotation on a single image is reported to take more than 1.5 hours.
16
+
17
+ An alternative is by utilizing synthetic data, which is largely available in 3D engines (e.g., SYNTHIA [41]) and 3D computer games (e.g., GTA5 [40]). The ground-truth semantics of these data can be automatically generated without manual labeling. Nevertheless, in the case where the synthetic data is different from the real images, the domain gap might be difficult to bridge. Unsupervised domain adaptation is generally regarded as an appealing way to address the problem of domain gap. The existing approaches include narrowing the gap by transferring images across domains [14, 32, 50] and learning domain-invariant representation via adversarial mechanism [13, 31, 49].
18
+
19
+ In this paper, we consider model overfitting in source domain as the major cause of domain mismatch. As shown in Figure 1(a), although Fully Convolutional Networks (FCN) perfectly segment the synthetic image by correct labeling of pixels, directly deploying this model for real image yields poor results. Instead of leveraging training samples in the target domain for model fine-tuning, this paper explores label-free constraints to alleviate the problem of model overfitting. These constraints are intrinsic and generic in the context of semantic segmentation. Figure 1(b)~(d) illustrate three label-free constraints being investigated. The first two constraints, namely patch-based and cluster-based consistencies guide the segmentation based on the prediction consistency among the pixels in an image patch and among the clusters of patches sharing similar visual properties, respectively. The last criterion, namely spatial logic, contextualizes the prediction of labels based on spatial relation between image patches. Based on these criteria, we propose a novel Regularizer of Prediction Transfer (RPT) for transferring the model trained on synthetic data for semantic segmentation of real images.
20
+
21
+ ![](images/fe50c025fa7bbb7841d93eddb1195de9744993b65fb53a81d7f220ff370fb43e.jpg)
22
+ (a) FCN trained on synthetic images
23
+
24
+ ![](images/b8f13965b927185d590e98e3dc73982d6191cf276c31b4c56f5f8ce75baa5829.jpg)
25
+ (b) Patch-based consistency
26
+ Figure 1. The examples of (a) predictions on two domains by fully convolutional networks trained on synthetic data; $(\mathrm{b})\sim (\mathrm{d})$ the three evaluation criteria we studied, i.e., patch-based consistency, cluster-based consistency and spatial logic.
27
+
28
+ ![](images/e106e94f08d470c5d0d0bf29ca70810e00d67237fbfb1e521f71e1d64d80fc3f.jpg)
29
+ (c) Cluster-based consistency
30
+
31
+ ![](images/a7c20c948ac1852736eb298f8131cb6030bbfa34e98d585a1c79a1f52fe805b4.jpg)
32
+ (d) Spatial logic
33
+
34
+ The main contribution of this paper is on the exploration of label-free data-driven constraints for transferring of model to bridge domain gap. These constraints are imposed as regularizers during training to transfer an overfitted source model for proper labeling of pixels in the target domain. Specifically, at the lowest level of regularization, majority voting is performed to derive a dominant category for each image patch. The dominant category serves as a local cue for pixels with low prediction confidence to adjust their label prediction during training. The patch-level regularization is then extended to a higher level of regularization to explore cluster-level and context-level prediction consistency. Despite its simplicity, the three regularizers, when jointed optimized in a fully convolutional network with adversarial learning, show impressive performances by outperforming several state-of-the-art methods, when transferring the models trained on GTA5 and SYNTHIA for semantic segmentation on the Cityscapes dataset.
35
+
36
+ # 2. Related Work
37
+
38
+ CNN Based Semantic Segmentation. As one of the most challenging computer vision task, semantic segmentation has received intensive research attention. With the surge of deep learning and convolutional neural networks (CNNs), Fully Convolutional Network (FCN) [30] successfully serves as an effective approach that employs CNNs to perform dense semantic prediction. Following FCN, various schemes, ranging from multi-path feature aggregation and refinement [16, 27, 36, 38, 56, 58] to multi-scale context extraction and integration [5, 6, 17, 39, 51, 53, 59], have been developed and achieved great success in leveraging contextual information for semantic segmentation. Post-processing techniques, such as CRF [6] and MRF [29], could further be applied to take the spatial consistency of labels into account and improve the predictions from FCNs. Considering that such methods typically rely on the datasets with pixel-level annotations which are extremely expensive and laborious to collect, researchers have also strived to utilize a weaker form of annotation, such as image-level tags [34, 37], bounding boxes [12], scribbles [2] and statistics [35], for semantic segmentation. The development of computer graphics techniques provides an alternative approach that exploits synthetic data with free annotations. This work aims to study the methods of applying the semantic segmentation model learnt on the computer-generated syn
39
+
40
+ thetic data to unlabeled real data.
41
+
42
+ Domain Adaptation of Semantic Segmentation. To alleviate the issues of expensive labeling efforts in collecting pixel-level annotations, domain adaptation is studied for semantic segmentation. FCNWild [20], which is one of the early works, attempts to align the features in different domains from both global and local aspects by adversarial training. Curriculum [55] proposes a curriculum-style learning approach to bridge the domain gap between synthetic and real data. Later on, similar to domain adaptation in image recognition and object detection [3, 33, 52], visual appearance-level and/or representation-level adaptation are exploited in [14, 32, 47, 57] for this task. [14, 32] perform an image-to-image translation that transfers the synthetic images to the real domain in the appearance-level. From the perspective of the representation-level adaptation, AdaSegNet [47] proposes to apply adversarial learning on segmentation maps for adapting structured output space. FCAN [57] employs the two levels of adaptation simultaneously, in which the appearance gap between synthetic and real images is minimized and the network is encouraged to learn domain-invariant representations. There have been several other strategies [4, 9, 10, 19, 23, 25, 61], being performed for cross-domain semantic segmentation. For example, ROAD [10] devises a target guided distillation module and a spatial-aware adaptation module for real style and distribution orientation. Labels from the source domain are transferred to the target domain as the additional supervision in CyCADA [19]. Depth maps which are available in virtual 3D environments are utilized as geometric information to reduce domain shift in [9]. [23, 25, 61] treat target predictions as the guide for learning a model applicable to the images in target domain by self-supervised learning. [4] proposes a domain invariant structure extraction framework that decouples the structure and texture representations of images and improves the performance of segmentation.
43
+
44
+ Summary. Most of the aforementioned approaches mainly investigate the problem of domain adaptation for semantic segmentation through bridging the domain gap during training. Our work is different in the way that we seek the additional regularization for the prediction in target domain based on the intrinsic and generic properties of semantic segmentation task. Such solution formulates an innovative and promising research direction for this task.
45
+
46
+ ![](images/2709c6faf54b29191ccf1a0527a586996e67b2fd43fc54093bda60bb485d8572.jpg)
47
+ Figure 2. Example of pixels to be unpunished (a) or punished (b) in optimization. (a) For the unpunished cases, some pixels are very confident in the class differed from the dominant category. (b) For the punished cases, most pixels inside the region predict relatively high probabilities for the dominant category.
48
+
49
+ # 3. Regularizer of Prediction Transfer
50
+
51
+ We start by introducing the Regularizer of Prediction Transfer (RPT) for semantic segmentation. Three criteria are defined to assess the quality of segmentation. The result of assessment is leveraged to guide the transfer of a learnt model in the source domain for semantic segmentation in the target domain.
52
+
53
+ # 3.1. Patch-based Consistency
54
+
55
+ The idea is to enforce all pixels in a patch to be consistent in the prediction of semantic labels. Here, a patch is defined as a superpixel that groups neighboring pixels with similar visual appearance. We employ Simple Linear Iterative Clustering (SLIC) [1], which is both speed and memory efficient in the generation of superpixels by adopting k-means algorithm. Given one image from target domain $x_{t}$ , SLIC splits the image into $N$ superpixels $\{S_{i}|i = 1,\dots,N\}$ . Each superpixel $S_{i} = \{p_{i}^{j}|j = 1,\dots,M_{i}\}$ is composed of $M_{i}$ adjacent pixels with similar appearance. We assume that all or the majority of pixels will be annotated with the same semantic labels. Here, the dominant category $\hat{y}_i$ of a superpixel is defined as the most number of predicted labels among all the pixels in this superpixel.
56
+
57
+ As SLIC considers only visual cue, a superpixel usually contains multiple regions of different semantic labels. Simply involving all pixels in network optimization can run into the risk of skew optimization. To address this problem, a subset of pixels is masked out from patch-based regularization. Specifically, in superpixel $S_{i}$ , pixels $p_i^j \in S_i$ are clustered into two groups depending on the predicted probability of the dominant category $\hat{y}_i$ : (a) $P_{seg}(\hat{y}_i|p_i^j) < = \lambda_{pc}$ means that the probability is less than or equal to a pre
58
+
59
+ ![](images/333d8c77e2689cffbb4e58b29c561a426a86552fa1d6fe1c6ca73866d0479943.jpg)
60
+ Figure 3. Feature space visualization of seven superpixel clusters using t-SNE. The dominant category is given for each cluster.
61
+
62
+ defined threshold $\lambda_{pc}$ . In other words, the pixel $p_i^j$ is predicted with labels different from the dominant category with relatively high probability. This group of pixels should be exempted from regularization. (b) $P_{seg}(\hat{y}_i|p_i^j) > \lambda_{pc}$ represents that $p_i^j$ has relatively higher confidence to be predicted as the dominant category. In this case, the dominant $\hat{y}_i$ is leveraged as a cue to guide the prediction of these pixels. To the end, the loss item for patch-based consistency regularization of a target image $x_t$ is formulated as:
63
+
64
+ $$
65
+ \mathcal {L} _ {p c} \left(x _ {t}\right) = - \sum_ {i, j} I _ {\left(P _ {s e g} \left(\hat {y} _ {i} \mid p _ {i} ^ {j}\right) > \lambda_ {p c}\right)} \log P _ {s e g} \left(\hat {y} _ {i} \mid p _ {i} ^ {j}\right), \tag {1}
66
+ $$
67
+
68
+ where $I_{(\cdot)}$ is an indicator function to selectively mask out pixels from optimization by thresholding. Figure 2 shows examples of superpixels that are masked out (i.e., unpunished) and involved (i.e., punished) for optimization.
69
+
70
+ # 3.2. Cluster-based Consistency
71
+
72
+ In addition to patch, we also enforce the consistency of label prediction among the clusters of patches that are visually similar. Specifically, cluster-level regularization imposes a constraint that the superpixels with similar visual properties should predict the cluster dominant category as their label. To this end, superpixels are further grouped into clusters. The feature representation of a superpixel is extracted through ResNet-101 [18], which is pre-trained on ImageNet dataset [42]. The feature vector utilized for clustering is generated by averagely pooling the feature maps of the superpixel region from $res5c$ layer. All the superpixels from target domain images are grouped into $K = 2048$ clusters by k-means algorithm. The cluster-level dominant category $\tilde{y}_k$ is determined by majority voting among the superpixels within a cluster. Figure 3 visualizes seven examples of clusters and the corresponding dominant categories by t-SNE [48]. As clustering is imperfect, it is ex
73
+
74
+ pected that some superpixels will be incorrectly grouped. Denote $P_{seg}(\tilde{y}_k|p_i^j)$ , where $p_i^j \in S_i \in C_k$ , as the probability of predicting cluster-level dominant category as label for pixel $p_i^j$ . Similar to patch-based consistency regularization, pixels with low confidence on the cluster-level category will not be punished during network optimization. Thus, the loss item of cluster-based consistency regularization for a target image $x_t$ is defined as:
75
+
76
+ $$
77
+ \mathcal {L} _ {c c} \left(x _ {t}\right) = - \sum_ {i, j, S _ {i} \in C _ {k}} I _ {\left(P _ {s e g} \left(\tilde {y} _ {k} \mid p _ {i} ^ {j}\right) > \lambda_ {c c}\right)} \log P _ {s e g} \left(\tilde {y} _ {k} \mid p _ {i} ^ {j}\right), \tag {2}
78
+ $$
79
+
80
+ where $\lambda_{cc}$ is a pre-defined threshold to gate whether a pixel should be masked out from regularization.
81
+
82
+ # 3.3. Spatial Logic
83
+
84
+ A useful cue to leverage for target-domain segmentation is the spatial relation between semantic labels. For instance, a superpixel of category sky is likely on the top of another superpixel labeled with building or road, and not vice versa. These relations are expected to be invariant across the source and target domains. The supportive hypothesis behind is introduced in [4] that the high-level structure information of an image is informative for semantic segmentation and can be readily shared across domains. As such, the motivation of spatial logic is to preserve the spatial relations learnt in source domain to target domain.
85
+
86
+ Formally, we exploit the LSTM encoder-decoder architecture to learn the vertical relation between superpixels, as shown in Figure 4. The main goal of this architecture is to speculate the category of the masked segment in the sequence according to context information. Then, the produced probability can be used to evaluate the logical validity of the predicted category in the masked segment. Suppose we have a prediction sequence $\mathcal{V}$ , where $\mathcal{V} = \{\mathbf{y}_1,\mathbf{y}_2,\dots,\mathbf{y}_{T - 1},\mathbf{y}_T\}$ including $T$ superpixel predictions sliced from one column of prediction map. Let $\mathbf{y}_t\in \mathbb{R}^{C + 1}$ denote the one-hot vector of the $t$ -th prediction in the sequence, and the dimension of $\mathbf{y}_t$ , i.e., $C + 1$ , is the number of semantic categories plus one symbol as an identification of masked prediction. The masked prediction sequence $\hat{\mathcal{V}}$ , which is fed into the LSTM encoder, is generated by masking a segment of consecutive predictions with the identical semantic category in the original sequence $\mathcal{V}$ . The LSTM encoder embeds the masked prediction sequence $\hat{\mathcal{V}}$ into a sequence representation. The LSTM decoder, which is attached on the top of the encoder, then speculates the categories of the masked segment and reconstructs the original sequence $\mathcal{V}$ . To learn the aforementioned spatial logic, the encoder-decoder architecture is optimized with the cross-entropy loss supervised by the label from source domain.
87
+
88
+ Next, the optimized model can be utilized to estimate the validity of each prediction from the view of spatial logic. For the target image $x_{t}$ , we first slice the prediction map
89
+
90
+ ![](images/825014716b25c2390b7fe20899109c963fe0a31bae6fc5f899ce0643400f72bf.jpg)
91
+ Figure 4. The LSTM encoder-decoder architecture to learn the spatial logic in the prediction map.
92
+
93
+ to several columns consisting of vertically neighbored superpixels. The patch-level dominant categories of the superpixels in the column are organized into a prediction sequence. For the superpixel $S_{i}$ in the column, the spatial logical probability $P_{logic}(\hat{y}_i|S_i)$ is measured by the LSTM encoder-decoder only when the prediction of this superpixel is masked in the input sequence. Once this probability is lower than the threshold $\lambda_{sl}$ , we consider this prediction to be illogical and punish the prediction of $\hat{y}_i$ by the segmentation network. The loss of spatial logic regularization is computed as:
94
+
95
+ $$
96
+ \mathcal {L} _ {s l} \left(x _ {t}\right) = \sum_ {i, j} I _ {\left(P _ {\text {l o g i c}} \left(\hat {y} _ {i} \mid S _ {i}\right) < \lambda_ {s l}\right)} \log P _ {\text {s e g}} \left(\hat {y} _ {i} \mid p _ {i} ^ {j}\right), \tag {3}
97
+ $$
98
+
99
+ where $P_{logic}(\cdot)$ denotes the prediction from LSTM encoder-decoder architecture.
100
+
101
+ # 4. Semantic Segmentation with RPT
102
+
103
+ The proposed Regularizer of Prediction Transfer (RPT) can be easily integrated into most of the existing frameworks for domain adaptation of semantic segmentation. Here, we choose the widely adopted framework based on adversarial learning as shown in Figure 5. The principle in this framework is equivalent to guiding the semantic segmentation in both domains by fooling a domain discriminator $D$ with the learnt source and target representations. Formally, given the training set $\mathcal{X}_s = \{x_s^i | i = 1, \dots, N_s\}$ in source domain and $\mathcal{X}_t = \{x_t^i | i = 1, \dots, N_t\}$ in target domain, the adversarial loss $\mathcal{L}_{adv}$ is the average classification loss, which is formulated as:
104
+
105
+ $$
106
+ \mathcal {L} _ {a d v} \left(\mathcal {X} _ {s}, \mathcal {X} _ {t}\right) = - E _ {x _ {t} \sim \mathcal {X} _ {t}} [ \log (D (x _ {t})) ] - E _ {x _ {s} \sim \mathcal {X} _ {s}} [ \log (1 - D (x _ {s}) ]. \tag {4}
107
+ $$
108
+
109
+ ![](images/aa74232f02c50ba2bb23ae24e318c2a64d8a734d827f96298c65103dc0557a90.jpg)
110
+ Figure 5. The adversarial-based semantic segmentation adaptation framework with RPT. The shared FCN is learnt with adversarial loss for domain-invariant representations across two domains. The predictions on source domain are optimized by supervised label, while the target domain predictions are regularized by RPT loss.
111
+
112
+ where $E$ denotes the expectation over the image set. The discriminator $D$ will attempt to minimize this loss by differentiating between source and target representations, and the shared Fully Convolutional Network (FCN) is learnt to fool the domain discriminator. Considering that the image region corresponding to the receptive field of each spatial unit in the final feature map is treated as an individual instance during semantic segmentation, the representations of such instances are expected to be invariant across domains. Thus we employ a fully convolutional domain discriminator whose outputs are the domain prediction of each image region corresponding to the spatial unit in the feature map.
113
+
114
+ Since training labels are available in the source domain, the loss function is based on the pixel-level classification loss $\mathcal{L}_{seg}$ . In contrast, due to the absence of training labels, the loss function in the target domain is defined based upon the following three regularizers:
115
+
116
+ $$
117
+ \mathcal {L} _ {r p t} \left(\mathcal {X} _ {t}\right) = \underset {x _ {t} \sim \mathcal {X} _ {t}} {E} \left[ \mathcal {L} _ {c c} \left(x _ {t}\right) + \mathcal {L} _ {p c} \left(x _ {t}\right) + \mathcal {L} _ {s l} \left(x _ {t}\right) \right]. \tag {5}
118
+ $$
119
+
120
+ Here, we empirically treat each loss in RPT equally. Thus, the overall objective of the segmentation framework integrates $\mathcal{L}_{adv}$ , $\mathcal{L}_{seg}$ and $\mathcal{L}_{rpt}$ as:
121
+
122
+ $$
123
+ \min _ {F C N} \left\{- \varepsilon \min _ {D} \mathcal {L} _ {a d v} \left(\mathcal {X} _ {s}, \mathcal {X} _ {t}\right) + \mathcal {L} _ {s e g} \left(\mathcal {X} _ {s}\right) + \mathcal {L} _ {r p t} \left(\mathcal {X} _ {t}\right) \right\}, \tag {6}
124
+ $$
125
+
126
+ where $\varepsilon = 0.1$ is the trade-off parameter to align the scale of different losses.
127
+
128
+ # 5. Implementation
129
+
130
+ Training strategy. Our proposed network is implemented in Caffe [24] framework and the weights are trained by SGD optimizer. We employ dilated FCN [6] originated from the ImageNet pre-trained ResNet-101 as our backbone followed by a PSP module [59], unless otherwise stated. The domain discriminator for adversarial learning is borrowed from FCAN [57]. During the training stage, images are randomly cropped to $713 \times 713$ due to the limitation of GPU memory. Both random horizontal flipping and image resizing are utilized for data augmentation. To make
131
+
132
+ the training process stable, we pre-train the FCN on data from the source domain with annotations. At the stage of pre-training, the "poly" policy whose power is fixed to 0.9 is adopted with the initial learning rate 0.001. Momentum and weight decay are 0.9 and 0.0005 respectively. Each mini-batch has 8 samples and maximum training iterations is set as $30\mathrm{K}$ . With the source domain pre-trained weights, we perform the domain adaptation by finetuning the whole adaptation framework which is equipped with our proposed RPT. The initial learning rate is 0.0001 and the total training iteration is $10\mathrm{K}$ . Other training hyper-parameters remain unchanged. Following [26], we randomly selected 500 images from the official training set of Cityscapes as a general validation set. The hyper-parameters $(\lambda_{pc} = \lambda_{cc} = \lambda_{sl} = 0.25, \varepsilon = 0.1)$ are all determined on this set.
133
+
134
+ Complexity of superpixel. RPT highly relies on the quality of superpixel extraction. For robustness, superpixels with complex content ideally should be excluded from model training. The term "complex" refers to the distribution of semantic labels in a superpixel. In our case, we measure complexity based on the proportion of pixels being predicted with the dominant category over the number of pixels in a superpixel. A larger value implies consistency in prediction and hence safer to involve the corresponding superpixel in regularizations. Empirically, RPT only regularizes the top-50% of superpixels. The empirical choice will be further validated in the next section.
135
+
136
+ State update of RPT. During network optimization, the segmentation prediction $P_{seg}$ , superpixel dominant category $\hat{y}_i$ and cluster dominant category $\tilde{y}_k$ change gradually. Iteratively updating these "states" is computationally expensive because reassigning the categories to superpixel and cluster (e.g., $\hat{y}_i$ and $\tilde{y}_k$ ) requires the semantic predictions collected from the whole training set of the target domain. Considering these predictions only change slightly during training, we first calculate these states before the optimization (without regularization) and fix these states at the beginning of iterations. Then, we will update the predictions or states for $N_{su}$ times evenly during training.
137
+
138
+ # 6. Experiments
139
+
140
+ # 6.1. Datasets
141
+
142
+ The experiments are conducted on GTA5 [40], SYNTHIA [41] and Cityscapes [11] datasets. The proposed RPT is trained on GTA5 and SYNTHIA (source domain) and Cityscapes (target domain). GTA5 is composed of 24,966 synthetic images of size $1914\times 1052$ . These images are generated by Grand Theft Auto V (GTA5), a modern computer game, to render city scenes. The pixels of these images are annotated with 19 classes that are compatible with the labels in Cityscapes. Similarly, SYNTHIA consists of synthetic images of urban scenes with resolutions of $1280\times 760$ . Following [4, 9, 21, 25, 47], we use the subset, SYNTHIA-
143
+
144
+ Table 1. RPT performances in terms of mean IoU for domain adaptation of semantic segmentation on GTA5 $\rightarrow$ Cityscapes.
145
+
146
+ <table><tr><td rowspan="2">Method</td><td colspan="3">ResNet-50</td><td colspan="3">ResNet-101</td></tr><tr><td>FCN</td><td>+ABN</td><td>+ADV</td><td>FCN</td><td>+ABN</td><td>+ADV</td></tr><tr><td>baseline</td><td>30.1</td><td>35.7</td><td>45.7</td><td>32.3</td><td>39.1</td><td>47.2</td></tr><tr><td>RPT¹</td><td>33.0</td><td>39.3</td><td>48.7</td><td>36.1</td><td>42.9</td><td>50.4</td></tr><tr><td>RPT²</td><td>33.4</td><td>39.9</td><td>50.0</td><td>37.9</td><td>44.2</td><td>51.7</td></tr><tr><td>RPT³</td><td>33.5</td><td>40.0</td><td>50.0</td><td>39.1</td><td>44.6</td><td>52.6</td></tr></table>
147
+
148
+ ![](images/951adfacf812cd68e43d96a09bc651402f7d241eff089bcc2045952b25653abc.jpg)
149
+ (a) State updating
150
+
151
+ ![](images/59930af77d005b761318fd624a6ab7b94a02be53968ed905176426d474c7bc7d.jpg)
152
+ (b) Filtering complex superpixels
153
+ Figure 6. Two analysis experiments of (a) the effectiveness of state updating during training of $\mathrm{RPT}^3$ ; (b) the percentage of filtered complex superpixels of $\mathrm{RPT}^1$ .
154
+
155
+ RAND-CITYSCAPES, which has 9,400 images being annotated with labels consistent with Cityscapes for experiments. Cityscapes is composed of 5,000 images of resolution $2048 \times 1024$ . These images are split into three subsets of sizes 2,975, 500 and 1,525 for training, validation and testing, respectively. The pixels of these images are annotated with 19 classes. In the experiments, the training subset is treated as the target-domain training data, where the pixel-level annotation is assumed unknown to RPT. On the other hand, the target-domain testing data is from validation subset. The same setting is also exploited in [4, 25, 47].
156
+
157
+ To this end, the performance of RPT is assessed by treating GTA5 as source domain and Cityscapes as target domain (i.e., $\mathrm{GTA5} \rightarrow \mathrm{Cityscapes}$ ), and similarly, SYNTHIA $\rightarrow$ Cityscapes. The metrics are per class Intersection over Union (IoU) and mean IoU over all the classes.
158
+
159
+ # 6.2. Evaluation of RPT
160
+
161
+ RPT is experimented on top of six different network architectures derived from FCN which leverages on either ResNet-50 or ResNet-101 as the backbone network. Specially, we adopt Adaptive Batch Normalization (ABN) to replace the mean and variance of BN in the original version of FCN, resulting in a variant of network named FCN+ABN. Note that the BN layer is first learnt in source domain and then replaced by ABN when being applied to the target domain. In addition, leveraging on the adversarial training (ADV), another variant, FCN+ABN+ADV, is trained to learn domain-invariant representations.
162
+
163
+ We first verify the impact of $N_{su}$ , the number of state updating, in RPT. Table 1 summarizes the impact on six variants of network for domain adaptation on GTA5 → Cityscapes. All the networks are pre-trained on ImageNet dataset and then injected with RPT. The super
164
+
165
+ Table 2. Contribution of each design in RPT for domain adaptation of semantic segmentation on GTA5 $\rightarrow$ Cityscapes.
166
+
167
+ <table><tr><td>Method</td><td colspan="5">ABN ADV PCR CCR SLR SU</td><td>mIoU</td></tr><tr><td>FCN</td><td></td><td></td><td></td><td></td><td></td><td>32.3</td></tr><tr><td>+ABN</td><td>✓</td><td></td><td></td><td></td><td></td><td>39.1</td></tr><tr><td>\(FCN_{adv}\) (+ADV)</td><td>✓</td><td>✓</td><td></td><td></td><td></td><td>47.2</td></tr><tr><td>+PCR</td><td>✓</td><td>✓</td><td>✓</td><td></td><td></td><td>49.0</td></tr><tr><td>+CCR</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td></td><td>49.6</td></tr><tr><td>\(RPT^1\) (+SLR)</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>50.4</td></tr><tr><td>\(RPT^3\)</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>52.6</td></tr></table>
168
+
169
+ script, $\mathrm{RPT}^n$ , refers to the number of times for state updating (see Table 1 for exact number). The baselines are obtained by performing domain adaptation of semantic segmentation on the use of the corresponding network architectures, but without RPT. Overall, RPT improves the baseline without regularization. The improvement is consistently observed across the variants of networks, and proportional to the number of state updating at the expense of computation cost. $\mathrm{RPT}^3$ achieves the best performance ( $\mathrm{mIoU} = 52.6\%$ ) and with $5.4\%$ improvement over the baseline of the same network ( $\mathrm{FCN + ABN + ADV}$ ). Figure 6(a) shows the performance changes in terms of mIoU during training over different times of state updating. The training starts with model learning in source domain. State updating, such as the assignment of dominant categories at superpixel and cluster levels, is then performed three times evenly during the training process in the target domain. Despite dropping in performance at the start of training after each state updating, mIoU gradually improves and eventually converges to a higher value than the previous round. Figure 6(b) shows the performance trend when the percentage of complex superpixels being excluded from learning gradually increases. As shown, the value mIoU constantly increases till reaching the level when $50\%$ of superpixels are filtered. In the remaining experiments, we fix the setting of RPT to involve $50\%$ of superpixels in regularization.
170
+
171
+ # 6.3. An Ablation Study
172
+
173
+ Next, we conduct an ablation study to assess the performance impacts of different design components. We separately assess the three regularizations in RPT: patch-based consistency regularization (PCR), cluster-based consistency regularization (CCR) and spatial logic regularization (SLR). Table 2 details the contribution of each component towards the overall performance. $\mathrm{FCN}_{\text {adv }}$ , by considering adaptive batch normalization and adversarial learning (ABN+ADV), successfully boosts mIoU from $32.3\%$ to $47.2\%$ . The result indicates the importance of narrowing the domain gap between synthetic data and real images. The three regularizations in target domain introduce $1.8\%$ , $0.6\%$ and $0.8\%$ of improvement, respectively. Furthermore, by increasing the number of state updating during network optimization, additional $2.2\%$ of improvement is observed
174
+
175
+ Table 3. Comparisons with the state-of-the-art unsupervised domain adaptation methods on GTA5 $\rightarrow$ Cityscapes adaptation. Please note that the baseline methods are divided into five groups: (1) representation-level domain adaptation by adversarial learning [10, 13, 19, 21, 31, 44, 47]; (2) appearance-level domain adaptation by image translation [14, 32]; (3) appearance-level + representation-level adaptation [4, 50, 57]; (4) self-learning [23, 26, 54, 61]; (5) others [8, 25, 43, 55, 60].
176
+
177
+ <table><tr><td>Method</td><td>road</td><td>sdwlk</td><td>bldng</td><td>wall</td><td>fence</td><td>pole</td><td>light</td><td>sign</td><td>vgttn</td><td>trrn</td><td>sky</td><td>person</td><td>rider</td><td>car</td><td>truck</td><td>bus</td><td>train</td><td>mcycl</td><td>bcycl</td><td>mIoU</td></tr><tr><td>FCNWild [20]</td><td>70.4</td><td>32.4</td><td>62.1</td><td>14.9</td><td>5.4</td><td>10.9</td><td>14.2</td><td>2.7</td><td>79.2</td><td>21.3</td><td>64.6</td><td>44.1</td><td>4.2</td><td>70.4</td><td>8.0</td><td>7.3</td><td>0.0</td><td>3.5</td><td>0.0</td><td>27.1</td></tr><tr><td>Learning [44]</td><td>88.0</td><td>30.5</td><td>78.6</td><td>25.2</td><td>23.5</td><td>16.7</td><td>23.5</td><td>11.6</td><td>78.7</td><td>27.2</td><td>71.9</td><td>51.3</td><td>19.5</td><td>80.4</td><td>19.8</td><td>18.3</td><td>0.9</td><td>20.8</td><td>18.4</td><td>37.1</td></tr><tr><td>ROAD [10]</td><td>76.3</td><td>36.1</td><td>69.6</td><td>28.6</td><td>22.4</td><td>28.6</td><td>29.3</td><td>14.8</td><td>82.3</td><td>35.3</td><td>72.9</td><td>54.4</td><td>17.8</td><td>78.9</td><td>27.7</td><td>30.3</td><td>4.0</td><td>24.9</td><td>12.6</td><td>39.4</td></tr><tr><td>CyCADA [19]</td><td>79.1</td><td>33.1</td><td>77.9</td><td>23.4</td><td>17.3</td><td>32.1</td><td>33.3</td><td>31.8</td><td>81.5</td><td>26.7</td><td>69.0</td><td>62.8</td><td>14.7</td><td>74.5</td><td>20.9</td><td>25.6</td><td>6.9</td><td>18.8</td><td>20.4</td><td>39.5</td></tr><tr><td>AdaptSegNet [47]</td><td>86.5</td><td>36.0</td><td>79.9</td><td>23.4</td><td>23.3</td><td>23.9</td><td>35.2</td><td>14.8</td><td>83.4</td><td>33.3</td><td>75.6</td><td>58.5</td><td>27.6</td><td>73.7</td><td>32.5</td><td>35.4</td><td>3.9</td><td>30.1</td><td>28.1</td><td>42.4</td></tr><tr><td>CLAN [31]</td><td>87.0</td><td>27.1</td><td>79.6</td><td>27.3</td><td>23.3</td><td>28.3</td><td>35.5</td><td>24.2</td><td>83.6</td><td>27.4</td><td>74.2</td><td>58.6</td><td>28.0</td><td>76.2</td><td>33.1</td><td>36.7</td><td>6.7</td><td>31.9</td><td>31.4</td><td>43.2</td></tr><tr><td>Conditional [21]</td><td>89.2</td><td>49.0</td><td>70.7</td><td>13.5</td><td>10.9</td><td>38.5</td><td>29.4</td><td>33.7</td><td>77.9</td><td>37.6</td><td>65.8</td><td>75.1</td><td>32.4</td><td>77.8</td><td>39.2</td><td>45.2</td><td>0.0</td><td>25.5</td><td>35.4</td><td>44.5</td></tr><tr><td>SSF-DAN [13]</td><td>90.3</td><td>38.9</td><td>81.7</td><td>24.8</td><td>22.9</td><td>30.5</td><td>37.0</td><td>21.2</td><td>84.8</td><td>38.8</td><td>76.9</td><td>58.8</td><td>30.7</td><td>85.7</td><td>30.6</td><td>38.1</td><td>5.9</td><td>28.3</td><td>36.9</td><td>45.4</td></tr><tr><td>ADVENT [49]</td><td>89.4</td><td>33.1</td><td>81.0</td><td>26.6</td><td>26.8</td><td>27.2</td><td>33.5</td><td>24.7</td><td>83.9</td><td>36.7</td><td>78.8</td><td>58.7</td><td>30.5</td><td>84.8</td><td>38.5</td><td>44.5</td><td>1.7</td><td>31.6</td><td>32.4</td><td>45.5</td></tr><tr><td>I2I Adapt [32]</td><td>85.8</td><td>37.5</td><td>80.2</td><td>23.3</td><td>16.1</td><td>23.0</td><td>14.5</td><td>9.8</td><td>79.2</td><td>36.5</td><td>76.4</td><td>53.4</td><td>7.4</td><td>82.8</td><td>19.1</td><td>15.7</td><td>2.8</td><td>13.4</td><td>1.7</td><td>35.7</td></tr><tr><td>Stylization [14]</td><td>86.9</td><td>44.5</td><td>84.7</td><td>38.8</td><td>26.6</td><td>32.1</td><td>42.3</td><td>22.5</td><td>84.7</td><td>30.9</td><td>85.9</td><td>67.0</td><td>28.1</td><td>85.7</td><td>38.3</td><td>31.8</td><td>21.5</td><td>31.3</td><td>24.6</td><td>47.8</td></tr><tr><td>DCAN [50]</td><td>85.0</td><td>30.8</td><td>81.3</td><td>25.8</td><td>21.2</td><td>22.2</td><td>25.4</td><td>26.6</td><td>83.4</td><td>36.7</td><td>76.2</td><td>58.9</td><td>24.9</td><td>80.7</td><td>29.5</td><td>42.9</td><td>2.5</td><td>26.9</td><td>11.6</td><td>41.7</td></tr><tr><td>DISE [4]</td><td>91.5</td><td>47.5</td><td>82.5</td><td>31.3</td><td>25.6</td><td>33.0</td><td>33.7</td><td>25.8</td><td>82.7</td><td>28.8</td><td>82.7</td><td>62.4</td><td>30.8</td><td>85.2</td><td>27.7</td><td>34.5</td><td>6.4</td><td>25.2</td><td>24.4</td><td>45.4</td></tr><tr><td>FCAN [57]</td><td>88.9</td><td>37.9</td><td>82.9</td><td>33.2</td><td>26.1</td><td>42.8</td><td>43.2</td><td>28.4</td><td>86.5</td><td>35.2</td><td>78.0</td><td>65.9</td><td>22.8</td><td>86.7</td><td>23.7</td><td>34.9</td><td>2.7</td><td>24.0</td><td>41.9</td><td>46.6</td></tr><tr><td>FCTN [54]</td><td>72.2</td><td>28.4</td><td>74.9</td><td>18.3</td><td>10.8</td><td>24.0</td><td>25.3</td><td>17.9</td><td>80.1</td><td>36.7</td><td>61.1</td><td>44.7</td><td>0.0</td><td>74.5</td><td>8.9</td><td>1.5</td><td>0.0</td><td>0.0</td><td>0.0</td><td>30.5</td></tr><tr><td>CBST [61]</td><td>89.6</td><td>58.9</td><td>78.5</td><td>33.0</td><td>22.3</td><td>41.4</td><td>48.2</td><td>39.2</td><td>83.6</td><td>24.3</td><td>65.4</td><td>49.3</td><td>20.2</td><td>83.3</td><td>39.0</td><td>48.6</td><td>12.5</td><td>20.3</td><td>35.3</td><td>47.0</td></tr><tr><td>PyCDA [26]</td><td>92.3</td><td>49.2</td><td>84.4</td><td>33.4</td><td>30.2</td><td>33.3</td><td>37.1</td><td>35.2</td><td>86.5</td><td>36.9</td><td>77.3</td><td>63.3</td><td>30.5</td><td>86.6</td><td>34.5</td><td>40.7</td><td>7.9</td><td>17.6</td><td>35.5</td><td>48.0</td></tr><tr><td>MLSL [23]</td><td>89.0</td><td>45.2</td><td>78.2</td><td>22.9</td><td>27.3</td><td>37.4</td><td>46.1</td><td>43.8</td><td>82.9</td><td>18.6</td><td>61.2</td><td>60.4</td><td>26.7</td><td>85.4</td><td>35.9</td><td>44.9</td><td>36.4</td><td>37.2</td><td>49.3</td><td>49.0</td></tr><tr><td>Curriculum [55]</td><td>72.9</td><td>30</td><td>74.9</td><td>12.1</td><td>13.2</td><td>15.3</td><td>16.8</td><td>14.1</td><td>79.3</td><td>14.5</td><td>75.5</td><td>35.7</td><td>10</td><td>62.1</td><td>20.6</td><td>19</td><td>0</td><td>19.3</td><td>12</td><td>31.4</td></tr><tr><td>Penalizing [60]</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><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>38.1</td></tr><tr><td>Effective [43]</td><td>79.8</td><td>29.3</td><td>77.8</td><td>24.2</td><td>21.6</td><td>6.9</td><td>23.5</td><td>44.2</td><td>80.5</td><td>38.0</td><td>76.2</td><td>52.7</td><td>22.2</td><td>83.0</td><td>32.3</td><td>41.3</td><td>27.0</td><td>19.3</td><td>27.7</td><td>42.5</td></tr><tr><td>MaxSquare [8]</td><td>89.3</td><td>40.5</td><td>81.2</td><td>29.0</td><td>20.4</td><td>25.6</td><td>34.4</td><td>19.0</td><td>83.6</td><td>34.4</td><td>76.5</td><td>59.2</td><td>27.4</td><td>83.8</td><td>38.4</td><td>43.6</td><td>7.1</td><td>32.2</td><td>32.5</td><td>45.2</td></tr><tr><td>Bidirectional [25]</td><td>91.0</td><td>44.7</td><td>84.2</td><td>34.6</td><td>27.6</td><td>30.2</td><td>36.0</td><td>36.0</td><td>85.0</td><td>43.6</td><td>83.0</td><td>58.6</td><td>31.6</td><td>83.3</td><td>35.3</td><td>49.7</td><td>3.3</td><td>28.8</td><td>35.6</td><td>48.5</td></tr><tr><td>\(FCN_{adv}+RPT^1\)</td><td>88.7</td><td>37.0</td><td>85.2</td><td>36.6</td><td>27.7</td><td>42.6</td><td>49.1</td><td>30.0</td><td>86.9</td><td>37.6</td><td>80.7</td><td>66.8</td><td>27.5</td><td>88.1</td><td>30.3</td><td>39.5</td><td>22.5</td><td>28.0</td><td>53.0</td><td>50.4</td></tr><tr><td>\(FCN_{adv}+RPT^3\)</td><td>89.2</td><td>43.3</td><td>86.1</td><td>39.5</td><td>29.9</td><td>40.2</td><td>49.6</td><td>33.1</td><td>87.4</td><td>38.5</td><td>86.0</td><td>64.4</td><td>25.1</td><td>88.5</td><td>36.6</td><td>45.8</td><td>23.9</td><td>36.5</td><td>56.8</td><td>52.6</td></tr><tr><td>\(FCN_{adv}+RPT^3+MS\)</td><td>89.7</td><td>44.8</td><td>86.4</td><td>44.2</td><td>30.6</td><td>41.4</td><td>51.7</td><td>33.0</td><td>87.8</td><td>39.4</td><td>86.3</td><td>65.6</td><td>24.5</td><td>89.0</td><td>36.2</td><td>46.8</td><td>17.6</td><td>39.1</td><td>58.3</td><td>53.2</td></tr></table>
178
+
179
+ ![](images/ebc370845c302d7fabf20899348c524ac671f4b2adb876363c3b80ac5f14b7dd.jpg)
180
+ Figure 7. Examples of semantic segmentation results on GTA5-Cityscapes adaptation. The original images, their ground truth and comparative results at different stages of $\mathrm{FCN}_{adv} + \mathrm{RPT}^3$ are given.
181
+
182
+ from $\mathrm{RPT}^1$ to $\mathrm{RPT}^3$ . Figure 7 shows the gradual improvement on semantic segmentation of five images, when different design components are incrementally integrated.
183
+
184
+ # 6.4. Comparisons with State-of-the-Art
185
+
186
+ We compare with several state-of-the-art techniques for unsupervised domain adaptation on GTA5 $\rightarrow$ Cityscapes. Broadly, we can categorize the baseline methods into five categories: (1) representation-level domain adaptation by adversarial learning [10, 13, 19, 21, 31, 44, 47]; (2) appearance-level domain adaptation by image translation [14, 32]; (3) appearance-level + representation-level adaptation [4, 50, 57]; (4) self-learning [23, 26, 54, 61];
187
+
188
+ (5) others [8, 25, 43, 55, 60]. The performance comparisons on GTA5 $\rightarrow$ Cityscapes adaptation are summarized in Table 3. $\mathrm{FCN}_{adv} + \mathrm{RPT}^3$ achieves new state-of-the-art performance with mIoU of $52.6\%$ . Benefiting from the proposed regularizations, $\mathrm{FCN}_{adv} + \mathrm{RPT}^3$ outperforms SSF-DAN [13] and ADVENT [49], which also adopt a similar adversarial mechanism, by additional improvement of $7.2\%$ and $7.1\%$ , respectively. The performance is also better than the most recently proposed FCAN [57] and Stylization [14], which exploit a novel appearance transferring module that is not considered in RPT. Comparing to the best reported result to-date by MLSL [23], our proposed model still leads the performance by $3.6\%$ . By further integrating with the multi-scale (MS) scheme, i.e., $\mathrm{FCN}_{adv} + \mathrm{RPT}^3 + \mathrm{MS}$ , the mIoU boosts to $53.2\%$ with 9 out of the 19 categories reach to-date the best reported performances.
189
+
190
+ To verify the generalization of RPT, we also test the performance on SYNTHIA $\rightarrow$ Cityscapes using the same settings. Following previous works [23, 26, 49, 61], the performances are reported in terms of mIoU@16 and mIoU@13 by not considering the different number of categories. The performance comparisons are summarized in Table 4. Similarly, $\mathrm{FCN}_{adv} + \mathrm{RPT}^3 +\mathrm{MS}$ achieves the best performance with mIoU@16 = 51.7% and mIoU@13 = 59.5%. The performances are better than PyCDA, which reports the best known results, by 5% and 6.2% respectively.
191
+
192
+ Table 4. Comparisons with the state-of-the-art unsupervised domain adaptation methods on SYNTHIA $\rightarrow$ Cityscapes transfer.
193
+
194
+ <table><tr><td></td><td>road</td><td>sdwlk</td><td>bldng</td><td>wall</td><td>fence</td><td>pole</td><td>light</td><td>sign</td><td>vgttn</td><td>sky</td><td>person</td><td>rider</td><td>car</td><td>bus</td><td>mcycl</td><td>bcycl</td><td>mIoU@16</td><td>mIoU@13</td></tr><tr><td>Learning [44]</td><td>80.1</td><td>29.1</td><td>77.5</td><td>2.8</td><td>0.4</td><td>26.8</td><td>11.1</td><td>18.0</td><td>78.1</td><td>76.7</td><td>48.2</td><td>15.2</td><td>70.5</td><td>17.4</td><td>8.7</td><td>16.7</td><td>36.1</td><td>-</td></tr><tr><td>ROAD [10]</td><td>77.7</td><td>30.0</td><td>77.5</td><td>9.6</td><td>0.3</td><td>25.8</td><td>10.3</td><td>15.6</td><td>77.6</td><td>79.8</td><td>44.5</td><td>16.6</td><td>67.8</td><td>14.5</td><td>7.0</td><td>23.8</td><td>36.2</td><td>-</td></tr><tr><td>AdaptSegNet [47]</td><td>84.3</td><td>42.7</td><td>77.5</td><td>-</td><td>-</td><td>-</td><td>4.7</td><td>7.0</td><td>77.9</td><td>82.5</td><td>54.3</td><td>21.0</td><td>72.3</td><td>32.2</td><td>18.9</td><td>32.3</td><td>-</td><td>46.7</td></tr><tr><td>CLAN [31]</td><td>81.3</td><td>37.0</td><td>80.1</td><td>-</td><td>-</td><td>-</td><td>16.1</td><td>13.7</td><td>78.2</td><td>81.5</td><td>53.4</td><td>21.2</td><td>73.0</td><td>32.9</td><td>22.6</td><td>30.7</td><td>-</td><td>47.8</td></tr><tr><td>Conditional [21]</td><td>85.0</td><td>25.8</td><td>73.5</td><td>3.4</td><td>3.0</td><td>31.5</td><td>19.5</td><td>21.3</td><td>67.4</td><td>69.4</td><td>68.5</td><td>25.0</td><td>76.5</td><td>41.6</td><td>17.9</td><td>29.5</td><td>41.2</td><td>-</td></tr><tr><td>SSF-DAN [13]</td><td>84.6</td><td>41.7</td><td>80.8</td><td>-</td><td>-</td><td>-</td><td>11.5</td><td>14.7</td><td>80.8</td><td>85.3</td><td>57.5</td><td>21.6</td><td>82.0</td><td>36.0</td><td>19.3</td><td>34.5</td><td>-</td><td>50.0</td></tr><tr><td>ADVENT [49]</td><td>85.6</td><td>42.2</td><td>79.7</td><td>8.7</td><td>0.4</td><td>25.9</td><td>5.4</td><td>8.1</td><td>80.4</td><td>84.1</td><td>57.9</td><td>23.8</td><td>73.3</td><td>36.4</td><td>14.2</td><td>33.0</td><td>41.2</td><td>48.0</td></tr><tr><td>DCAN [50]</td><td>82.8</td><td>36.4</td><td>75.7</td><td>5.1</td><td>0.1</td><td>25.8</td><td>8.0</td><td>18.7</td><td>74.7</td><td>76.9</td><td>51.1</td><td>15.9</td><td>77.7</td><td>24.8</td><td>4.1</td><td>37.3</td><td>38.4</td><td>-</td></tr><tr><td>DISE [4]</td><td>91.7</td><td>53.5</td><td>77.1</td><td>2.5</td><td>0.2</td><td>27.1</td><td>6.2</td><td>7.6</td><td>78.4</td><td>81.2</td><td>55.8</td><td>19.2</td><td>82.3</td><td>30.3</td><td>17.1</td><td>34.3</td><td>41.5</td><td>-</td></tr><tr><td>CBST [61]</td><td>53.6</td><td>23.7</td><td>75.0</td><td>12.5</td><td>0.3</td><td>36.4</td><td>23.5</td><td>26.3</td><td>84.8</td><td>74.7</td><td>67.2</td><td>17.5</td><td>84.5</td><td>28.4</td><td>15.2</td><td>55.8</td><td>42.5</td><td>48.4</td></tr><tr><td>PyCDA [26]</td><td>75.5</td><td>30.9</td><td>83.3</td><td>20.8</td><td>0.7</td><td>32.7</td><td>27.3</td><td>33.5</td><td>84.7</td><td>85.0</td><td>64.1</td><td>25.4</td><td>85.0</td><td>45.2</td><td>21.2</td><td>32.0</td><td>46.7</td><td>53.3</td></tr><tr><td>MLSL [23]</td><td>59.2</td><td>30.2</td><td>68.5</td><td>22.9</td><td>1.0</td><td>36.2</td><td>32.7</td><td>28.3</td><td>86.2</td><td>75.4</td><td>68.6</td><td>27.7</td><td>82.7</td><td>26.3</td><td>24.3</td><td>52.7</td><td>45.2</td><td>51.0</td></tr><tr><td>Curriculum [55]</td><td>57.4</td><td>23.1</td><td>74.7</td><td>0.5</td><td>0.6</td><td>14.0</td><td>5.3</td><td>4.3</td><td>77.8</td><td>73.7</td><td>45.0</td><td>11.0</td><td>44.8</td><td>21.2</td><td>1.9</td><td>20.3</td><td>29.7</td><td>-</td></tr><tr><td>Penalizing [60]</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><td>-</td><td>-</td><td>-</td><td>34.2</td><td>40.3</td></tr><tr><td>MaxSquare [8]</td><td>82.9</td><td>40.7</td><td>80.3</td><td>10.2</td><td>0.8</td><td>25.8</td><td>12.8</td><td>18.2</td><td>82.5</td><td>82.2</td><td>53.1</td><td>18.0</td><td>79.0</td><td>31.4</td><td>10.4</td><td>35.6</td><td>41.4</td><td>48.2</td></tr><tr><td>Bidirectional [25]</td><td>86.0</td><td>46.7</td><td>80.3</td><td>-</td><td>-</td><td>-</td><td>14.1</td><td>11.6</td><td>79.2</td><td>81.3</td><td>54.1</td><td>27.9</td><td>73.7</td><td>42.2</td><td>25.7</td><td>45.3</td><td>-</td><td>51.4</td></tr><tr><td>FCNadv+RPT1</td><td>87.7</td><td>43.1</td><td>84.0</td><td>10.5</td><td>0.5</td><td>42.2</td><td>40.5</td><td>33.1</td><td>86.0</td><td>81.9</td><td>56.0</td><td>26.1</td><td>85.9</td><td>35.8</td><td>24.8</td><td>56.2</td><td>49.6</td><td>57.0</td></tr><tr><td>FCNadv+RPT3</td><td>88.9</td><td>46.5</td><td>84.5</td><td>15.1</td><td>0.5</td><td>38.5</td><td>39.5</td><td>30.1</td><td>85.9</td><td>85.8</td><td>59.8</td><td>26.1</td><td>88.1</td><td>46.8</td><td>27.7</td><td>56.1</td><td>51.2</td><td>58.9</td></tr><tr><td>FCNadv+RPT3+MS</td><td>89.1</td><td>47.3</td><td>84.6</td><td>14.5</td><td>0.4</td><td>39.4</td><td>39.9</td><td>30.3</td><td>86.1</td><td>86.3</td><td>60.8</td><td>25.7</td><td>88.7</td><td>49.0</td><td>28.4</td><td>57.5</td><td>51.7</td><td>59.5</td></tr></table>
195
+
196
+ ![](images/6340c461966c95e8e7c6e2a01ed4d592f75b6022c0c549913a3efba53b20bc2e.jpg)
197
+ Figure 8. Examples showing the effectiveness of patch-based consistency and cluster-based consistency in RPT.
198
+
199
+ # 6.5. Examples of Regularization
200
+
201
+ Figure 8 shows examples to demonstrate the effectiveness of patch-based and cluster-based consistency regularizations. Here, we crop some highlighted regions of input image, ground truth, prediction by $\mathrm{FCN}_{adv}$ and prediction by $\mathrm{FCN}_{adv} + \mathrm{RPT}^3$ , respectively. On one hand, as shown in Figure 8(a), patch-based consistency encourages the pixels to be predicted as the dominant category of the superpixel. On the other hand, cluster-based consistency is able to correct the predictions with the cue of visual similarity across superpixels as illustrated in Figure 8(b). These examples validate our motivation of enforcing label consistency within superpixel and cluster, where most semantic labels are correctly predicted in the target domain. Figure 9 further visualizes the merit of modeling spatial context by spatial logic regularization. Given the segmentation results from $\mathrm{FCN}_{adv}$ , our proposed LSTM encoder-decoder outputs the logical probability of assigning current semantic labels to each region. The darkness indicates that the region is predicted with low logical probability. Better results are achieved by penalizing the illogical predictions, such as road on the top of vegetation (1st row) or car (2nd row), sky below building (3rd row), fence above building (4th row).
202
+
203
+ ![](images/82be9f26483fb7da347012fda823df8358d83586cd00574fc3c2dd731d7096ec.jpg)
204
+ Figure 9. The examples of punished patches by spatial logic.
205
+
206
+ # 7. Conclusion
207
+
208
+ We have presented Regularizer of Prediction Transfer (RPT) for unsupervised domain adaptation of semantic segmentation. RPT gives light to a novel research direction, by directly exploring the three intrinsic criteria of semantic segmentation to restrict the label prediction on the target domain. These criteria, when imposed as regularizers during training, are found to be effective in alleviating the problem of model overfitting. The patch-based consistency attempts to unify the prediction inside each region by introducing its dominant category to the unconfident pixels. The cluster-based consistency further amends the prediction according to other visually similar regions which belong to the same cluster. In pursuit of suppressing illogical predictions, spatial logic is involved to regularize the spatial relation which is shared across domains. Experiments conducted on the transfer from GTA5 to Cityscapes show that the injection of RPT can consistently improve the domain adaptation across different network architectures. More remarkably, the setting of $\mathrm{FCN}_{adv} + \mathrm{RPT}^3$ achieves new state-of-the-art performance. A similar conclusion is also drawn from the adaptation from SYNTHIA to Cityscapes, which demonstrates the generalization ability of RPT.
209
+
210
+ # References
211
+
212
+ [1] Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Süsstrunk. Slic superpixels compared to state-of-the-art superpixel methods. IEEE Trans. on PAMI, 34(11):2274-2282, 2012.
213
+ [2] Amy Bearman, Olga Russakovsky, Vittorio Ferrari, and Li Fei-Fei. What's the point: Semantic segmentation with point supervision. In ECCV, 2016.
214
+ [3] Qi Cai, Yingwei Pan, Chong-Wah Ngo, Xinmei Tian, Lingyu Duan, and Ting Yao. Exploring object relation in mean teacher for cross-domain detection. In CVPR, 2019.
215
+ [4] Wei-Lun Chang, Hui-Po Wang, Wen-Hsiao Peng, and Wei-Chen Chiu. All about structure: Adapting structural information across domains for boosting semantic segmentation. In CVPR, 2019.
216
+ [5] Liang-Chieh Chen, Maxwell D. Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jonathon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In NIPS, 2018.
217
+ [6] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Trans. on PAMI, 40(4):834-848, 2018.
218
+ [7] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In ECCV, 2018.
219
+ [8] Minghao Chen, Hongyang Xue, and Deng Cai. Domain adaptation for semantic segmentation with maximum squares loss. In ICCV, 2019.
220
+ [9] Yuhua Chen, Wen Li, Xiaoran Chen, and Luc Van Gool. Learning semantic segmentation from synthetic data: A geometrically guided input-output adaptation approach. In CVPR, 2019.
221
+ [10] Yuhua Chen, Wen Li, and Luc Van Gool. Road: Reality oriented adaptation for semantic segmentation of urban scenes. In CVPR, 2018.
222
+ [11] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In CVPR, 2016.
223
+ [12] Jifeng Dai, Kaiming He, and Jian Sun. Boxsup: Exploiting bounding boxes to supervise convolutional networks for semantic segmentation. In ICCV, 2015.
224
+ [13] Liang Du, Jingang Tan, Hongye Yang, Jianfeng Feng, Xi-angyang Xue, Qibao Zheng, Xiaqing Ye, and Xiaolin Zhang. Ssf-dan: Separated semantic feature based domain adaptation network for semantic segmentation. In ICCV, 2019.
225
+ [14] Aysegul Dundar, Ming-Yu Liu, Ting-Chun Wang, John Zedlewski, and Jan Kautz. Domain stylization: A strong, simple baseline for synthetic to real image domain adaptation. arXiv preprint arXiv:1807.09384, 2018.
226
+
227
+ [15] Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. *IJCV*, 88(2):303–338, 2010.
228
+ [16] Golnaz Ghiasi and Charless C. Fowlkes. Laplacian pyramid reconstruction and refinement for semantic segmentation. In ECCV, 2016.
229
+ [17] Junjun He, Zhongying Deng, and Yu Qiao. Dynamic multiscale filters for semantic segmentation. In ICCV, 2019.
230
+ [18] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
231
+ [19] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. CyCADA: Cycle-consistent adversarial domain adaptation. In ICML, 2018.
232
+ [20] Judy Hoffman, Dequan Wang, Fisher Yu, and Trevor Darrell. Fcns in the wild: Pixel-level adversarial and constraint-based adaptation. arXiv preprint arXiv:1612.02649, 2016.
233
+ [21] Weixiang Hong, Zhenzhen Wang, Ming Yang, and Junsong Yuan. Conditional generative adversarial network for structured domain adaptation. In CVPR, 2018.
234
+ [22] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018.
235
+ [23] Javed Iqbal and Mohsen Ali. Mlsl: Multi-level self-supervised learning for domain adaptation with spatially independent and semantically consistent labeling. arXiv preprint arXiv:1909.13776, 2019.
236
+ [24] Yangqing Jia, Evan Shelhamer, Jeff Donahue, Sergey Karayev, Jonathan Long, Ross Girshick, Sergio Guadarrama, and Trevor Darrell. Caffe: Convolutional architecture for fast feature embedding. In ACM MM, 2014.
237
+ [25] Yunsheng Li, Lu Yuan, and Nuno Vasconcelos. Bidirectional learning for domain adaptation of semantic segmentation. In CVPR, 2019.
238
+ [26] Qing Lian, Fengmao Lv, Lixin Duan, and Boqing Gong. Constructing self-motivated pyramid curriculums for cross-domain semantic segmentation: A non-adversarial approach. In ICCV, 2019.
239
+ [27] Guosheng Lin, Anton Milan, Chunhua Shen, and Ian Reid. Refinenet: Multi-path refinement networks for high-resolution semantic segmentation. In CVPR, 2017.
240
+ [28] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dolkar, and C. Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014.
241
+ [29] Ziwei Liu, Xiaoxiao Li, Ping Luo, Chen Change Loy, and Xiaou Tang. Deep learning markov random field for semantic segmentation. IEEE Trans. on PAMI, 40(8):1814-1828, 2018.
242
+ [30] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015.
243
+ [31] Yawei Luo, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Taking a closer look at domain shift: Category-level adversaries for semantics consistent domain adaptation. In CVPR, 2019.
244
+
245
+ [32] Zak Murez, Soheil Kolouri, David Kriegman, Ravi Ramamoorthi, and Kyungnam Kim. Image to image translation for domain adaptation. In CVPR, 2018.
246
+ [33] Yingwei Pan, Ting Yao, Yehao Li, Yu Wang, Chong-Wah Ngo, and Tao Mei. Transferrable prototypical networks for unsupervised domain adaptation. In CVPR, 2019.
247
+ [34] George Papandreou, Liang-Chieh Chen, Kevin Murphy, and Alan L. Yuille. Weakly- and semi-supervised learning of a deep convolutional network for semantic image segmentation. In ICCV, 2015.
248
+ [35] Deepak Pathak, Philipp Krahenbuhl, and Trevor Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In ICCV, 2015.
249
+ [36] Chao Peng, Xiangyu Zhang, Gang Yu, Guiming Luo, and Jian Sun. Large kernel matters - improve semantic segmentation by global convolutional network. In CVPR, 2017.
250
+ [37] Pedro O. Pinheiro and Ronan Collobert. From image-level to pixel-level labeling with convolutional networks. In CVPR, 2015.
251
+ [38] Tobias Pohlen, Alexander Hermans, Markus Mathias, and Bastian Leibe. Full-resolution residual networks for semantic segmentation in street scenes. In CVPR, 2017.
252
+ [39] Zhaofan Qiu, Ting Yao, and Tao Mei. Learning deep spatio-temporal dependence for semantic video segmentation. IEEE Trans. on Multimedia, 2017.
253
+ [40] Stephan R. Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In ECCV, 2016.
254
+ [41] German Ros, Laura Sellart, Joanna Materzynska, David Vazquez, and Antonio M Lopez. The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In CVPR, 2016.
255
+ [42] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. IJCV, 115(3):211-252, 2015.
256
+ [43] Fatemeh Sadat Saleh, Mohammad Sadegh Aliakbarian, Mathieu Salzmann, Lars Petersson, and Jose M Alvarez. Effective use of synthetic data for urban scene semantic segmentation. In ECCV, 2018.
257
+ [44] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chellappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In CVPR, 2018.
258
+ [45] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
259
+ [46] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015.
260
+ [47] Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kiyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In CVPR, 2018.
261
+ [48] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. JMLR, 2008.
262
+
263
+ [49] Tuan-Hung Vu, Himalaya Jain, Maxime Bucher, Matthieu Cord, and Patrick Perez. Advent: Adversarial entropy minimization for domain adaptation in semantic segmentation. In CVPR, 2019.
264
+ [50] Zuxuan Wu, Xintong Han, Yen-Liang Lin, Mustafa Gokhan Uzunbas, Tom Goldstein, Ser Nam Lim, and Larry S Davis. Dcan: Dual channel-wise alignment networks for unsupervised scene adaptation. In ECCV, 2018.
265
+ [51] Maoke Yang, Kun Yu, Chi Zhang, Zhiwei Li, and Kuiyuan Yang. Denseaspp for semantic segmentation in street scenes. In CVPR, 2018.
266
+ [52] Ting Yao, Yingwei Pan, Chong-Wah Ngo, Houqiang Li, and Tao Mei. Semi-supervised domain adaptation with subspace learning for visual recognition. In CVPR, 2015.
267
+ [53] Hang Zhang, Kristin Dana, Jianping Shi, Zhongyue Zhang, Xiaogang Wang, Ambrish Tyagi, and Amit Agrawal. Context encoding for semantic segmentation. In CVPR, 2018.
268
+ [54] Junting Zhang, Chen Liang, and C-C Jay Kuo. A fully convolutional tri-branch network (fctn) for domain adaptation. In ICASSP, 2018.
269
+ [55] Yang Zhang, Philip David, Hassan Foroosh, and Boqing Gong. A curriculum domain adaptation approach to the semantic segmentation of urban scenes. IEEE Trans. on PAMI, 2019.
270
+ [56] Yiheng Zhang, Zhaofan Qiu, Jingen Liu, Ting Yao, Dong Liu, and Tao Mei. Customizable architecture search for semantic segmentation. In CVPR, 2019.
271
+ [57] Yiheng Zhang, Zhaofan Qiu, Ting Yao, Dong Liu, and Tao Mei. Fully convolutional adaptation networks for semantic segmentation. In CVPR, 2018.
272
+ [58] Hengshuang Zhao, Xiaojuan Qi, Xiaoyong Shen, Jianping Shi, and Jiaya Jia. Icnet for real-time semantic segmentation on high-resolution images. In ECCV, 2018.
273
+ [59] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In CVPR, 2017.
274
+ [60] Xinge Zhu, Hui Zhou, Ceyuan Yang, Jianping Shi, and Dahua Lin. Penalizing top performers: Conservative loss for semantic segmentation adaptation. In ECCV, 2018.
275
+ [61] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic segmentation via class-balanced self-training. In ECCV, 2018.
transferringandregularizingpredictionforsemanticsegmentation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c46301570d22133fa9b19f5abcd1710564ab3dd47a7597e441af661ec7dcacb
3
+ size 891053
transferringandregularizingpredictionforsemanticsegmentation/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0b59a5a90754b0e9eafbda29b3da80965caf72f5e5310f8d397cc321500a219
3
+ size 401797
transferringcrossdomainknowledgeforvideosignlanguagerecognition/783ce4c9-6ca2-46a8-b07e-9e9b3e4796a3_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a127aee20af8159e226250e56d94ed3df1b0c2bee3b427ed675e32069db5c64
3
+ size 77138
transferringcrossdomainknowledgeforvideosignlanguagerecognition/783ce4c9-6ca2-46a8-b07e-9e9b3e4796a3_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67da9ca45e73b50d4df62db969cdfa644f8db54475d9245ca4cec9c9baf75080
3
+ size 94176