ZHANGYUXUAN-zR commited on
Commit
e2a3e83
·
verified ·
1 Parent(s): 1547e7b

Add files using upload-large-folder tool

Browse files
parse/train/B186cP9gx/B186cP9gx.md ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EIGENVALUES OF THE HESSIAN IN DEEP LEARNING: SINGULARITY AND BEYOND
2
+
3
+ Levent Sagun Mathematics Department New York University sagun@cims.nyu.edu
4
+
5
+ Leon Bottou´
6
+ Facebook AI Research New York
7
+ leon@bottou.org
8
+
9
+ Yann LeCun Computer Science Department New York University yann@cs.nyu.edu
10
+
11
+ # ABSTRACT
12
+
13
+ We look at the eigenvalues of the Hessian of a loss function before and after training. The eigenvalue distribution is seen to be composed of two parts, the bulk which is concentrated around zero, and the edges which are scattered away from zero. We present empirical evidence for the bulk indicating how overparametrized the system is, and for the edges that depend on the input data.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Given a (piece-wise) differentiable loss function, and a gradient based algorithm to minimize it, the knowledge of the second order information about it can tell us quite a bit about how the landscape looks like, and how we could modify our algorithm to make it go faster and find better solutions. But, one of the biggest challenges in second order optimization methods is in accessing that second order information itself. In particular, in deep learning there have been many proposals to accelerate training using second order information. Ngiam et al. (2011) has an in depth review of some of the proposals for approximating the Hessian of the loss function. Nevertheless, given the computational complexity of the problems at hand, it is hard to acquire information on what the actual Hessian looks like. This work is part of a series of papers that explore the data-model-algorithm connection along with Sagun et al. (2014; 2015) and it builds on top of the intuition developed in LeCun et al. (2012). We also note that the singularity of the Fisher information matrix have been explored (see for instance Watanabe (2007)). In another recent work, Dauphin et al. (2014) investigate saddle points of the landscape, in particular, they locate saddle points that are near the training path. In this work, however, we strictly focus on the Hessian of the loss function at the exact point of the training. We train the main examples using gradient descent. We perform our calculations of the Hessian using the implementation for the exact Hessian vector product that has been introduced in Pearlmutter (1994). And we find two new observations: one where the eigenvalues are zero, and one where we have a large, positive, and discrete set of eigenvalues.
18
+
19
+ In this short note, we show how the data and the architecture depends on the eigenvalues of the Hessian of the loss function. In particular, we observe that the top discrete eigenvalues depend on the data, and the bulk of the eigenvalues depend on the architecture. Furthermore, as we keep growing the size of the network, we observe that the discrete part that depends on data remains the same, but the concentration around zero sharpens.
20
+
21
+ There are various conclusions and implications of this singularity. Recent research suggest new insights into convergence properties of gradient based algorithms in non-convex systems (Lee et al., 2016; Hardt et al., 2015). The results come together with their implications on neural networks. However, the proofs require the system at hand to be non-degenerate. An immediate conclusion of our observation is that the Hessian of the loss function is very singular. Therefore, a lot of the theory and methodology that assumes non-singular Hessian cannot be applied without an appropriate modification.
22
+
23
+ # 2 THE CASE OF THE FULLY-CONNECTED NETWORK
24
+
25
+ # 2.1 MNIST WITH INCREASING SIZES OF HIDDEN LAYERS
26
+
27
+ We calculate the exact Hessian of the loss function of a network with two hidden layers. The inputs are 1000 randomly selected examples of $2 8 * 2 8$ MNIST data, the network has one hidden layer with ReLU nonlinearity, the top layer has a softmax and a negative log likelihood loss function at the end. We train the system with gradient descent (i.e. with minibatch size equal to the number of examples). We plot the histogram of the eigenvalues of the Hessian for a varying number of hidden units after convergence. The Hessian at the end of the training turns out to be extremely singular, and increasing the number of units in hidden layers only add to the singularity of the Hessian (see figure 1). The effect of the training on the eigenvalue spectrum of the model with 10 hidden-units is visible when comparing figure 1 and figure 2 (left).
28
+
29
+ ![](images/dd1acc1635843f37ab94f9cf60f9e2da4f2083a0eab4254d2e20839b469cbdce.jpg)
30
+ Figure 1: (left) Full Hessian matrix for a 784-2-10 system after convergence. (right) Eigenvalue profile for increasingly bigger networks. For $k$ hidden networks there are $( 7 8 4 + 1 ) * k + ( k + 1 ) *$ $k + ( k + 1 ) * 1 0$ eigenvalues.
31
+
32
+ # 2.2 VARYING THE DATA
33
+
34
+ To demonstrate how the eigenvalue distribution may depend on data itself, we keep the same architecture and change the inputs to random patterns. Initially, a random point in the weight space is selected, and we calculated the Hessian without any training (first two histograms of figure 2). After training the system until the norm of the gradient is close to zero. We again calculate the exact Hessian and plot the histogram of their eigenvalues which can be seen in the last one in figure 2.
35
+
36
+ ![](images/dbd3e0af2d2bd3b422bbe9ae65f92bdbab9f8fcd532be25af456a3f4e83c2ffc.jpg)
37
+ Figure 2: Comparing random input (last two) with the MNIST data (first). Initial eigenvalue profiles are very different, as well as the final profile when compared to figure 1.
38
+
39
+ # 3 A SIMPLER CASE
40
+
41
+ In this section, we will repeat the same experiment in two-dimensional data, in an attempt to understand better the connection between the data and the spectrum of the Hessian. A simple figure can be seen in figure 3. We create two Gaussian blobs, centered at $( 1 , 1 )$ and $( - 1 , - 1 )$ , and first we keep the standard deviation the same, and increase the network size.
42
+
43
+ ![](images/a5b2f09a14544328cbe6a2d353c6731b174e2ce612242a052acb7714ecfb8e64.jpg)
44
+ Figure 3: The input data for the simple case.
45
+
46
+ The network architecture is similar, this time with two hidden layers and a fully connected network with ReLU nonlinearities including a softmax at the top layer combined with a negative loglikelihood loss function. We train the system with gradient descent with constant step size. At the end of the training the norm of the gradient is at the order of $1 0 ^ { - 4 }$ .
47
+
48
+ ![](images/96d054e39eaf077474555be323200e40b663b27ad51a06f28dae6d87aa779415.jpg)
49
+ Figure 4: Increasing the network size: Systems with 18, 74, 162, 282, and 434 parameters, respectively. And a network with MSE loss.
50
+
51
+ There are two eigenvalues that are isolated, and away from the bulk of the spectrum. Increasing the network only adds to the concentration of eigenvalues at and around zero (see figure 4). To give an insight into how the Hessian’s themselves look like, in figure 6 we plot the full Hessian matrices for three of the systems above after training.
52
+
53
+ Moreover, this property of the singular and discrete parts is not specific to the log loss. In figure 5, we plot the histogram for a system that is trained on the same data as in figure 3, and the same architecture. But the training is carried out with the mean square loss rather than the negative loglikelihood. Consistent with our previous observations, we still see the same discrete, data-dependent part, and the part that is at zero.
54
+
55
+ ![](images/d78b500e86e48df19ea2b8e1173790b3681ece06c52972fd00d204608978b894.jpg)
56
+ Figure 5: Spectrum for the loss with the mean square loss.
57
+
58
+ ![](images/56c7efe5a491974dbb598a3b011b0a7a40513aa6172f7a19a7a26ad08702eefe.jpg)
59
+ Figure 6: Hessian heatmaps for 18, 74 and 162 paramters systems after training. The plots are 90 degrees rotates counter-clock wise.
60
+
61
+ The training procedure itself acts like a process by which the eigenvalues concentrate at zero. To demonstrate this in further detail we calculated the full Hessian peridoically throughout the training. In figure 7 we plot the eigenvalue profile as the training progresses.
62
+
63
+ All of the training has been done with random initializations on the weight space with the same standard deviation. In other words, initial points are randomly chosen on the surface of a sphere with a fixed radius given the total number of parameters. This begs the question of the effect of the choice of the initial point. Therefore, now we fix the network size, and repeat the experiment with different random initializations over 5K times. In figure 8 we plot the fluctuations of the top eigenvalue.
64
+
65
+ The next question is how the spectrum responds to the increased complexity of data. The notion of complexity for a given dataset can be tricky to describe, here we use a loose notion of complexity to point out the fact that the more complex data is the less separable one. To this end, we keep the architecture the same, and increase the standard deviation of the two Gaussian blobs. They are still centered at the same two points, but it becomes harder to separate them as they merge together. Gradient descent still converges to a low-cost value, but the error is higher, and it can’t learn how to separate them perfectly as the blobs merge together. In figure 9, we observe that the top two eigenvalues grow significantly, and beyond its natural fluctuations due to the initialization. We also note that the norm of the weights are similar for all the cases, therefore the growth in the sizes of eigenvalues can not solely be accounted for the growth in weights.
66
+
67
+ ![](images/e94fd0cf79fcc2289e65dc61ff5925cb6e40a198c66630de45a6d239f1ae0002.jpg)
68
+ Figure 7: Eigenvalue profile during the training procedure.
69
+
70
+ ![](images/83f42e916d5c819b62f679e30c7bcfc2eed23b19130849669781aea0662a2360.jpg)
71
+ Figure 8: Top eigenvalue fluctuations over 5000 runs of the same system with same data and algorithm but different initial points.
72
+
73
+ # 4 CONCLUSION
74
+
75
+ We show that the Hessian of the loss functions in deep learning is degenerate. This has implications on the theoretical work which requires improvements in its premises. One such step has been taken in Panageas & Piliouras (2016) in relaxing the isolated singularity condition that was assumed in Lee et al. (2016). From a practical point of view this has multiple implications:
76
+
77
+ • The landscape may be flat beyond the notion of wide basins. • Training stops at a point that has a small gradient. The norm of the gradient is not zero, therefore it does not, technically speaking, converge to a critical point. • There are still negative eigenvalues even when they are small in magnitude.
78
+
79
+ This suggests that we may be able to look beyond the classical notions of basins when exploring the energy landscapes of loss functions. Next obvious question is to find low energy paths between solutions to show the kind of flatness in such landscapes. This will be explored in a subsequent work in the same series.
80
+
81
+ ![](images/c494a36f1d013d88138f4b17e3eb8dbcc4753f72bc91263a76a8c5cfaae6d07c.jpg)
82
+ Figure 9: Response of the top eigenvalues to the increasingly less-separable data. The numbers on top of the figures indicate the standard deviation of the Gaussian blobs. Their means are kept the same at $( 1 , 1 )$ and $( - 1 , - 1 )$ , respectively.
83
+
84
+ We also demonstrate the two phases of the spectrum, one that is concentrated around zero that depends on the size of the model, and the second part that is away from the bulk of the spectrum, that is isolated and depends on the data.
85
+
86
+ This kind of two-phased non-degeneracy can, in fact, be a desirable property. A degenerate Hessian implies locally flat regions. A degenerate Hessian at the scale that we observe in deep learning may imply flat regions across space, at the global scale.
87
+
88
+ • We can devise separate methods for the directions that correspond to the top eigenvalues. • We can take advantage of the directions that correspond to the zero or small eigenvalues by attempting to find paths of low energies in the weight space.
89
+
90
+ As a first step to the last item, initial experiments are promising: Let’s take a random point on the weight space and train two systems from that point: (1) with gradient descent, and (2) with stochastic gradient descent. At each step, take a straight line between the two points and interpolate the cost value. The resulting profile is completely flat even when the points keep diverging from one another. Next, take two random initial points on the weight space, so now they are orthogonal to each other. And train two systems with different shuffling of data for SGD. This time one would expect the line interpolation to give arbitrary values since the initial points are completely orthogonal, surprisingly, the line interpolation also decreases albeit not as flat as the previous one. Further considerations on connecting paths between solutions in the weight space of loss functions can be found in Freeman & Bruna (2016).
91
+
92
+ ![](images/6748bb39191314495e4007b3bab22f2e125251a32c216292586f5262943af024.jpg)
93
+ Figure 10: $z$ -axis is the distance between points. The left most and right most curves in each plot are actual training profiles, and the lines in between are interpolations only. (left figure) same initial point (right figure) random (hence orthogonal) initial points.
94
+
95
+ # ACKNOWLEDGMENTS
96
+
97
+ We would like to thank Afonso Bandeira, Yann Dauphin, Ruoyu Sun, Arthur Szlam and Soumith Chintala for valuable discussions. We also thank the reviewers for valuable feedback. Part of the research has been conducted when the first author was an intern at FAIR.
98
+
99
+ # REFERENCES
100
+
101
+ Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in Neural Information Processing Systems, pp. 2933–2941, 2014.
102
+ C Daniel Freeman and Joan Bruna. Topology and geometry of deep rectified network optimization landscapes. arXiv preprint arXiv:1611.01540, 2016.
103
+ Moritz Hardt, Benjamin Recht, and Yoram Singer. Train faster, generalize better: Stability of stochastic gradient descent. arXiv preprint arXiv:1509.01240, 2015.
104
+ Yann A LeCun, Leon Bottou, Genevieve B Orr, and Klaus-Robert M ´ uller. Efficient backprop. In ¨ Neural networks: Tricks of the trade, pp. 9–48. Springer, 2012.
105
+ Jason D Lee, Max Simchowitz, Michael I Jordan, and Benjamin Recht. Gradient descent converges to minimizers. University of California, Berkeley, 1050:16, 2016.
106
+ Jiquan Ngiam, Adam Coates, Ahbik Lahiri, Bobby Prochnow, Quoc V Le, and Andrew Y Ng. On optimization methods for deep learning. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 265–272, 2011.
107
+ Ioannis Panageas and Georgios Piliouras. Gradient descent only converges to minimizers: Nonisolated critical points and invariant regions. arXiv preprint arXiv:1605.00405, 2016.
108
+ Barak A Pearlmutter. Fast exact multiplication by the hessian. Neural computation, 6(1):147–160, 1994.
109
+ Levent Sagun, V Ugur G ˘ uney, G ¨ erard Ben Arous, and Yann LeCun. Explorations on high dimen- ´ sional landscapes. ICLR 2015 Workshop Contribution, arXiv:1412.6615, 2014.
110
+
111
+ Levent Sagun, Thomas Trogdon, and Yann LeCun. Universality in halting time and its applications in optimization. arXiv preprint arXiv:1511.06444, 2015.
112
+
113
+ Sumio Watanabe. Almost all learning machines are singular. In Foundations of Computational Intelligence, 2007. FOCI 2007. IEEE Symposium on, pp. 383–388. IEEE, 2007.
parse/train/B186cP9gx/B186cP9gx_content_list.json ADDED
@@ -0,0 +1,613 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EIGENVALUES OF THE HESSIAN IN DEEP LEARNING: SINGULARITY AND BEYOND ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Levent Sagun Mathematics Department New York University sagun@cims.nyu.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 362,
21
+ 226
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Leon Bottou´ \nFacebook AI Research New York \nleon@bottou.org ",
28
+ "bbox": [
29
+ 400,
30
+ 170,
31
+ 552,
32
+ 226
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Yann LeCun Computer Science Department New York University yann@cs.nyu.edu ",
39
+ "bbox": [
40
+ 589,
41
+ 170,
42
+ 794,
43
+ 226
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 262,
54
+ 544,
55
+ 277
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "We look at the eigenvalues of the Hessian of a loss function before and after training. The eigenvalue distribution is seen to be composed of two parts, the bulk which is concentrated around zero, and the edges which are scattered away from zero. We present empirical evidence for the bulk indicating how overparametrized the system is, and for the edges that depend on the input data. ",
62
+ "bbox": [
63
+ 232,
64
+ 310,
65
+ 764,
66
+ 380
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 446,
77
+ 336,
78
+ 463
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Given a (piece-wise) differentiable loss function, and a gradient based algorithm to minimize it, the knowledge of the second order information about it can tell us quite a bit about how the landscape looks like, and how we could modify our algorithm to make it go faster and find better solutions. But, one of the biggest challenges in second order optimization methods is in accessing that second order information itself. In particular, in deep learning there have been many proposals to accelerate training using second order information. Ngiam et al. (2011) has an in depth review of some of the proposals for approximating the Hessian of the loss function. Nevertheless, given the computational complexity of the problems at hand, it is hard to acquire information on what the actual Hessian looks like. This work is part of a series of papers that explore the data-model-algorithm connection along with Sagun et al. (2014; 2015) and it builds on top of the intuition developed in LeCun et al. (2012). We also note that the singularity of the Fisher information matrix have been explored (see for instance Watanabe (2007)). In another recent work, Dauphin et al. (2014) investigate saddle points of the landscape, in particular, they locate saddle points that are near the training path. In this work, however, we strictly focus on the Hessian of the loss function at the exact point of the training. We train the main examples using gradient descent. We perform our calculations of the Hessian using the implementation for the exact Hessian vector product that has been introduced in Pearlmutter (1994). And we find two new observations: one where the eigenvalues are zero, and one where we have a large, positive, and discrete set of eigenvalues. ",
85
+ "bbox": [
86
+ 174,
87
+ 492,
88
+ 825,
89
+ 742
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this short note, we show how the data and the architecture depends on the eigenvalues of the Hessian of the loss function. In particular, we observe that the top discrete eigenvalues depend on the data, and the bulk of the eigenvalues depend on the architecture. Furthermore, as we keep growing the size of the network, we observe that the discrete part that depends on data remains the same, but the concentration around zero sharpens. ",
96
+ "bbox": [
97
+ 174,
98
+ 750,
99
+ 823,
100
+ 819
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "There are various conclusions and implications of this singularity. Recent research suggest new insights into convergence properties of gradient based algorithms in non-convex systems (Lee et al., 2016; Hardt et al., 2015). The results come together with their implications on neural networks. However, the proofs require the system at hand to be non-degenerate. An immediate conclusion of our observation is that the Hessian of the loss function is very singular. Therefore, a lot of the theory and methodology that assumes non-singular Hessian cannot be applied without an appropriate modification. ",
107
+ "bbox": [
108
+ 174,
109
+ 825,
110
+ 823,
111
+ 922
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 THE CASE OF THE FULLY-CONNECTED NETWORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 173,
121
+ 103,
122
+ 612,
123
+ 117
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "2.1 MNIST WITH INCREASING SIZES OF HIDDEN LAYERS ",
130
+ "text_level": 1,
131
+ "bbox": [
132
+ 174,
133
+ 137,
134
+ 584,
135
+ 151
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "We calculate the exact Hessian of the loss function of a network with two hidden layers. The inputs are 1000 randomly selected examples of $2 8 * 2 8$ MNIST data, the network has one hidden layer with ReLU nonlinearity, the top layer has a softmax and a negative log likelihood loss function at the end. We train the system with gradient descent (i.e. with minibatch size equal to the number of examples). We plot the histogram of the eigenvalues of the Hessian for a varying number of hidden units after convergence. The Hessian at the end of the training turns out to be extremely singular, and increasing the number of units in hidden layers only add to the singularity of the Hessian (see figure 1). The effect of the training on the eigenvalue spectrum of the model with 10 hidden-units is visible when comparing figure 1 and figure 2 (left). ",
142
+ "bbox": [
143
+ 173,
144
+ 165,
145
+ 825,
146
+ 291
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "image",
152
+ "img_path": "images/dd1acc1635843f37ab94f9cf60f9e2da4f2083a0eab4254d2e20839b469cbdce.jpg",
153
+ "image_caption": [
154
+ "Figure 1: (left) Full Hessian matrix for a 784-2-10 system after convergence. (right) Eigenvalue profile for increasingly bigger networks. For $k$ hidden networks there are $( 7 8 4 + 1 ) * k + ( k + 1 ) *$ $k + ( k + 1 ) * 1 0$ eigenvalues. "
155
+ ],
156
+ "image_footnote": [],
157
+ "bbox": [
158
+ 184,
159
+ 319,
160
+ 816,
161
+ 525
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "2.2 VARYING THE DATA ",
168
+ "text_level": 1,
169
+ "bbox": [
170
+ 176,
171
+ 625,
172
+ 351,
173
+ 638
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "To demonstrate how the eigenvalue distribution may depend on data itself, we keep the same architecture and change the inputs to random patterns. Initially, a random point in the weight space is selected, and we calculated the Hessian without any training (first two histograms of figure 2). After training the system until the norm of the gradient is close to zero. We again calculate the exact Hessian and plot the histogram of their eigenvalues which can be seen in the last one in figure 2. ",
180
+ "bbox": [
181
+ 173,
182
+ 654,
183
+ 825,
184
+ 724
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "image",
190
+ "img_path": "images/dbd3e0af2d2bd3b422bbe9ae65f92bdbab9f8fcd532be25af456a3f4e83c2ffc.jpg",
191
+ "image_caption": [
192
+ "Figure 2: Comparing random input (last two) with the MNIST data (first). Initial eigenvalue profiles are very different, as well as the final profile when compared to figure 1. "
193
+ ],
194
+ "image_footnote": [],
195
+ "bbox": [
196
+ 183,
197
+ 739,
198
+ 808,
199
+ 861
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "3 A SIMPLER CASE ",
206
+ "text_level": 1,
207
+ "bbox": [
208
+ 176,
209
+ 102,
210
+ 348,
211
+ 117
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "In this section, we will repeat the same experiment in two-dimensional data, in an attempt to understand better the connection between the data and the spectrum of the Hessian. A simple figure can be seen in figure 3. We create two Gaussian blobs, centered at $( 1 , 1 )$ and $( - 1 , - 1 )$ , and first we keep the standard deviation the same, and increase the network size. ",
218
+ "bbox": [
219
+ 173,
220
+ 133,
221
+ 825,
222
+ 190
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "image",
228
+ "img_path": "images/a5b2f09a14544328cbe6a2d353c6731b174e2ce612242a052acb7714ecfb8e64.jpg",
229
+ "image_caption": [
230
+ "Figure 3: The input data for the simple case. "
231
+ ],
232
+ "image_footnote": [],
233
+ "bbox": [
234
+ 374,
235
+ 212,
236
+ 614,
237
+ 315
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "The network architecture is similar, this time with two hidden layers and a fully connected network with ReLU nonlinearities including a softmax at the top layer combined with a negative loglikelihood loss function. We train the system with gradient descent with constant step size. At the end of the training the norm of the gradient is at the order of $1 0 ^ { - 4 }$ . ",
244
+ "bbox": [
245
+ 173,
246
+ 376,
247
+ 825,
248
+ 433
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "image",
254
+ "img_path": "images/96d054e39eaf077474555be323200e40b663b27ad51a06f28dae6d87aa779415.jpg",
255
+ "image_caption": [
256
+ "Figure 4: Increasing the network size: Systems with 18, 74, 162, 282, and 434 parameters, respectively. And a network with MSE loss. "
257
+ ],
258
+ "image_footnote": [],
259
+ "bbox": [
260
+ 204,
261
+ 450,
262
+ 812,
263
+ 758
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "There are two eigenvalues that are isolated, and away from the bulk of the spectrum. Increasing the network only adds to the concentration of eigenvalues at and around zero (see figure 4). To give an insight into how the Hessian’s themselves look like, in figure 6 we plot the full Hessian matrices for three of the systems above after training. ",
270
+ "bbox": [
271
+ 174,
272
+ 832,
273
+ 825,
274
+ 888
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "Moreover, this property of the singular and discrete parts is not specific to the log loss. In figure 5, we plot the histogram for a system that is trained on the same data as in figure 3, and the same architecture. But the training is carried out with the mean square loss rather than the negative loglikelihood. Consistent with our previous observations, we still see the same discrete, data-dependent part, and the part that is at zero. ",
281
+ "bbox": [
282
+ 173,
283
+ 895,
284
+ 823,
285
+ 924
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "image",
291
+ "img_path": "images/d78b500e86e48df19ea2b8e1173790b3681ece06c52972fd00d204608978b894.jpg",
292
+ "image_caption": [
293
+ "Figure 5: Spectrum for the loss with the mean square loss. "
294
+ ],
295
+ "image_footnote": [],
296
+ "bbox": [
297
+ 374,
298
+ 132,
299
+ 614,
300
+ 301
301
+ ],
302
+ "page_idx": 3
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "",
307
+ "bbox": [
308
+ 174,
309
+ 377,
310
+ 823,
311
+ 420
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "image",
317
+ "img_path": "images/56c7efe5a491974dbb598a3b011b0a7a40513aa6172f7a19a7a26ad08702eefe.jpg",
318
+ "image_caption": [
319
+ "Figure 6: Hessian heatmaps for 18, 74 and 162 paramters systems after training. The plots are 90 degrees rotates counter-clock wise. "
320
+ ],
321
+ "image_footnote": [],
322
+ "bbox": [
323
+ 218,
324
+ 439,
325
+ 782,
326
+ 617
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "The training procedure itself acts like a process by which the eigenvalues concentrate at zero. To demonstrate this in further detail we calculated the full Hessian peridoically throughout the training. In figure 7 we plot the eigenvalue profile as the training progresses. ",
333
+ "bbox": [
334
+ 174,
335
+ 686,
336
+ 825,
337
+ 728
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "All of the training has been done with random initializations on the weight space with the same standard deviation. In other words, initial points are randomly chosen on the surface of a sphere with a fixed radius given the total number of parameters. This begs the question of the effect of the choice of the initial point. Therefore, now we fix the network size, and repeat the experiment with different random initializations over 5K times. In figure 8 we plot the fluctuations of the top eigenvalue. ",
344
+ "bbox": [
345
+ 174,
346
+ 734,
347
+ 825,
348
+ 819
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "The next question is how the spectrum responds to the increased complexity of data. The notion of complexity for a given dataset can be tricky to describe, here we use a loose notion of complexity to point out the fact that the more complex data is the less separable one. To this end, we keep the architecture the same, and increase the standard deviation of the two Gaussian blobs. They are still centered at the same two points, but it becomes harder to separate them as they merge together. Gradient descent still converges to a low-cost value, but the error is higher, and it can’t learn how to separate them perfectly as the blobs merge together. In figure 9, we observe that the top two eigenvalues grow significantly, and beyond its natural fluctuations due to the initialization. We also note that the norm of the weights are similar for all the cases, therefore the growth in the sizes of eigenvalues can not solely be accounted for the growth in weights. ",
355
+ "bbox": [
356
+ 173,
357
+ 827,
358
+ 825,
359
+ 924
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "image",
365
+ "img_path": "images/e94fd0cf79fcc2289e65dc61ff5925cb6e40a198c66630de45a6d239f1ae0002.jpg",
366
+ "image_caption": [
367
+ "Figure 7: Eigenvalue profile during the training procedure. "
368
+ ],
369
+ "image_footnote": [],
370
+ "bbox": [
371
+ 236,
372
+ 112,
373
+ 764,
374
+ 304
375
+ ],
376
+ "page_idx": 4
377
+ },
378
+ {
379
+ "type": "image",
380
+ "img_path": "images/83f42e916d5c819b62f679e30c7bcfc2eed23b19130849669781aea0662a2360.jpg",
381
+ "image_caption": [
382
+ "Figure 8: Top eigenvalue fluctuations over 5000 runs of the same system with same data and algorithm but different initial points. "
383
+ ],
384
+ "image_footnote": [],
385
+ "bbox": [
386
+ 253,
387
+ 357,
388
+ 732,
389
+ 585
390
+ ],
391
+ "page_idx": 4
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "",
396
+ "bbox": [
397
+ 174,
398
+ 657,
399
+ 825,
400
+ 700
401
+ ],
402
+ "page_idx": 4
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "4 CONCLUSION ",
407
+ "text_level": 1,
408
+ "bbox": [
409
+ 176,
410
+ 719,
411
+ 318,
412
+ 736
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "We show that the Hessian of the loss functions in deep learning is degenerate. This has implications on the theoretical work which requires improvements in its premises. One such step has been taken in Panageas & Piliouras (2016) in relaxing the isolated singularity condition that was assumed in Lee et al. (2016). From a practical point of view this has multiple implications: ",
419
+ "bbox": [
420
+ 176,
421
+ 751,
422
+ 825,
423
+ 808
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "• The landscape may be flat beyond the notion of wide basins. • Training stops at a point that has a small gradient. The norm of the gradient is not zero, therefore it does not, technically speaking, converge to a critical point. • There are still negative eigenvalues even when they are small in magnitude. ",
430
+ "bbox": [
431
+ 215,
432
+ 818,
433
+ 823,
434
+ 883
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "This suggests that we may be able to look beyond the classical notions of basins when exploring the energy landscapes of loss functions. Next obvious question is to find low energy paths between solutions to show the kind of flatness in such landscapes. This will be explored in a subsequent work in the same series. ",
441
+ "bbox": [
442
+ 173,
443
+ 895,
444
+ 821,
445
+ 924
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "image",
451
+ "img_path": "images/c494a36f1d013d88138f4b17e3eb8dbcc4753f72bc91263a76a8c5cfaae6d07c.jpg",
452
+ "image_caption": [
453
+ "Figure 9: Response of the top eigenvalues to the increasingly less-separable data. The numbers on top of the figures indicate the standard deviation of the Gaussian blobs. Their means are kept the same at $( 1 , 1 )$ and $( - 1 , - 1 )$ , respectively. "
454
+ ],
455
+ "image_footnote": [],
456
+ "bbox": [
457
+ 197,
458
+ 107,
459
+ 790,
460
+ 505
461
+ ],
462
+ "page_idx": 5
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "",
467
+ "bbox": [
468
+ 174,
469
+ 607,
470
+ 821,
471
+ 635
472
+ ],
473
+ "page_idx": 5
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "We also demonstrate the two phases of the spectrum, one that is concentrated around zero that depends on the size of the model, and the second part that is away from the bulk of the spectrum, that is isolated and depends on the data. ",
478
+ "bbox": [
479
+ 174,
480
+ 642,
481
+ 823,
482
+ 684
483
+ ],
484
+ "page_idx": 5
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "This kind of two-phased non-degeneracy can, in fact, be a desirable property. A degenerate Hessian implies locally flat regions. A degenerate Hessian at the scale that we observe in deep learning may imply flat regions across space, at the global scale. ",
489
+ "bbox": [
490
+ 174,
491
+ 690,
492
+ 823,
493
+ 733
494
+ ],
495
+ "page_idx": 5
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "• We can devise separate methods for the directions that correspond to the top eigenvalues. • We can take advantage of the directions that correspond to the zero or small eigenvalues by attempting to find paths of low energies in the weight space. ",
500
+ "bbox": [
501
+ 209,
502
+ 748,
503
+ 823,
504
+ 797
505
+ ],
506
+ "page_idx": 5
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "As a first step to the last item, initial experiments are promising: Let’s take a random point on the weight space and train two systems from that point: (1) with gradient descent, and (2) with stochastic gradient descent. At each step, take a straight line between the two points and interpolate the cost value. The resulting profile is completely flat even when the points keep diverging from one another. Next, take two random initial points on the weight space, so now they are orthogonal to each other. And train two systems with different shuffling of data for SGD. This time one would expect the line interpolation to give arbitrary values since the initial points are completely orthogonal, surprisingly, the line interpolation also decreases albeit not as flat as the previous one. Further considerations on connecting paths between solutions in the weight space of loss functions can be found in Freeman & Bruna (2016). ",
511
+ "bbox": [
512
+ 174,
513
+ 813,
514
+ 825,
515
+ 924
516
+ ],
517
+ "page_idx": 5
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "",
522
+ "bbox": [
523
+ 173,
524
+ 103,
525
+ 825,
526
+ 132
527
+ ],
528
+ "page_idx": 6
529
+ },
530
+ {
531
+ "type": "image",
532
+ "img_path": "images/6748bb39191314495e4007b3bab22f2e125251a32c216292586f5262943af024.jpg",
533
+ "image_caption": [
534
+ "Figure 10: $z$ -axis is the distance between points. The left most and right most curves in each plot are actual training profiles, and the lines in between are interpolations only. (left figure) same initial point (right figure) random (hence orthogonal) initial points. "
535
+ ],
536
+ "image_footnote": [],
537
+ "bbox": [
538
+ 235,
539
+ 159,
540
+ 764,
541
+ 340
542
+ ],
543
+ "page_idx": 6
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "ACKNOWLEDGMENTS ",
548
+ "text_level": 1,
549
+ "bbox": [
550
+ 176,
551
+ 438,
552
+ 326,
553
+ 450
554
+ ],
555
+ "page_idx": 6
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "We would like to thank Afonso Bandeira, Yann Dauphin, Ruoyu Sun, Arthur Szlam and Soumith Chintala for valuable discussions. We also thank the reviewers for valuable feedback. Part of the research has been conducted when the first author was an intern at FAIR. ",
560
+ "bbox": [
561
+ 174,
562
+ 460,
563
+ 825,
564
+ 502
565
+ ],
566
+ "page_idx": 6
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "REFERENCES ",
571
+ "text_level": 1,
572
+ "bbox": [
573
+ 174,
574
+ 525,
575
+ 285,
576
+ 540
577
+ ],
578
+ "page_idx": 6
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in Neural Information Processing Systems, pp. 2933–2941, 2014. \nC Daniel Freeman and Joan Bruna. Topology and geometry of deep rectified network optimization landscapes. arXiv preprint arXiv:1611.01540, 2016. \nMoritz Hardt, Benjamin Recht, and Yoram Singer. Train faster, generalize better: Stability of stochastic gradient descent. arXiv preprint arXiv:1509.01240, 2015. \nYann A LeCun, Leon Bottou, Genevieve B Orr, and Klaus-Robert M ´ uller. Efficient backprop. In ¨ Neural networks: Tricks of the trade, pp. 9–48. Springer, 2012. \nJason D Lee, Max Simchowitz, Michael I Jordan, and Benjamin Recht. Gradient descent converges to minimizers. University of California, Berkeley, 1050:16, 2016. \nJiquan Ngiam, Adam Coates, Ahbik Lahiri, Bobby Prochnow, Quoc V Le, and Andrew Y Ng. On optimization methods for deep learning. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 265–272, 2011. \nIoannis Panageas and Georgios Piliouras. Gradient descent only converges to minimizers: Nonisolated critical points and invariant regions. arXiv preprint arXiv:1605.00405, 2016. \nBarak A Pearlmutter. Fast exact multiplication by the hessian. Neural computation, 6(1):147–160, 1994. \nLevent Sagun, V Ugur G ˘ uney, G ¨ erard Ben Arous, and Yann LeCun. Explorations on high dimen- ´ sional landscapes. ICLR 2015 Workshop Contribution, arXiv:1412.6615, 2014. ",
583
+ "bbox": [
584
+ 169,
585
+ 549,
586
+ 826,
587
+ 926
588
+ ],
589
+ "page_idx": 6
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "Levent Sagun, Thomas Trogdon, and Yann LeCun. Universality in halting time and its applications in optimization. arXiv preprint arXiv:1511.06444, 2015. ",
594
+ "bbox": [
595
+ 171,
596
+ 103,
597
+ 823,
598
+ 132
599
+ ],
600
+ "page_idx": 7
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "Sumio Watanabe. Almost all learning machines are singular. In Foundations of Computational Intelligence, 2007. FOCI 2007. IEEE Symposium on, pp. 383–388. IEEE, 2007. ",
605
+ "bbox": [
606
+ 173,
607
+ 141,
608
+ 823,
609
+ 170
610
+ ],
611
+ "page_idx": 7
612
+ }
613
+ ]
parse/train/B186cP9gx/B186cP9gx_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B186cP9gx/B186cP9gx_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1TWfmnNf/H1TWfmnNf.md ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DO CONVOLUTIONAL NEURAL NETWORKS ACT AS COMPOSITIONAL NEAREST NEIGHBORS?
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We present a simple approach based on pixel-wise nearest neighbors to understand and interpret the internal operations of state-of-the-art neural networks for pixel-level tasks. Specifically, we aim to understand the synthesis and prediction mechanisms of state-of-the-art convolutional neural networks for pixel-level tasks. To this end, we primarily analyze the synthesis process of generative models and the prediction mechanism of discriminative models. The main hypothesis of this work is that convolutional neural networks for pixel-level tasks learn a fast compositional nearest neighbor synthesis or prediction function. Our experiments on semantic segmentation and image-to-image translation show qualitative and quantitative evidence supporting this hypothesis.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Convolutional neural networks (CNNs) have revolutionized computer vision, producing impressive results for discriminative tasks such as image classification and semantic segmentation. More recently, they have also produced startlingly impressive results for image generation through generative models. However, in both cases, such feed-forward networks largely operate as “black boxes.” As a community, we are still not able to succinctly state why and how such feed-forward functions generate a particular output from a given input. If a network fails on a particular input, why? How will a network behave on never-before-seen data? To answer such questions, there is a renewed interest in so-called explainable $A I ^ { 1 }$ . The central goal in this (re)invigorated space is the development of machine learning systems that are designed to be more interpretable and explanatory.
12
+
13
+ Explanation-by-correspondence: One attractive approach to interpretability stems from casebased reasoning or “explanation-by-example” (Lipton, 2016). Such an approach dates back to classic AI systems that predict medical diagnoses or legal judgments that were justified through case studies or historical precedent (Aamodt $\&$ Plaza, 1994). For example, radiologists can justify diagnoses of an imaged tumor as ‘malignant’ by reference to a previously-seen example (Caruana et al., 1999). However, this approach can generate only $N$ explanations given $N$ training exemplars. Our work demonstrates that deep networks can generate exponentially more explanations through composition: e.g., this part of the image looks like this part of exemplar A, while another part looks like that part of exemplar B. We term this “explanation-by-correspondence”, since our explanations provide detailed correspondence of parts (or even pixels) of a query image to a set of exemplars.
14
+
15
+ Spatial prediction: In this work, we focus on the class of CNNs designed to make predictions at each image pixel. Many problems in computer vision can be cast in this framework, e.g., semantic segmentation, depth estimation, image synthesis, and image translation. We explore a simple hypothesis for explaining the behavior of such networks: they operate by cutting-and-pasting image patches found in training data. Consider the top row of Fig. 1, where we visualize the output of Isola et al. (2016)’s translation network trained to synthesize images of building facades from label masks. Why does the network generate the strange diagonal gray edge at the top? To answer this question, we visualize image pixels extracted from the closest-matching nearest-neighbor (NN) patches found in the training data. Remarkably, NN-synthesis looks quite similar to the CNN output, providing a clear explanation for the synthesized corner artifact.
16
+
17
+ ![](images/3068de974981f909e4dbd8e7e2ab4168f3e7f7946c8802c8d041f6e90ffc8e33.jpg)
18
+ Figure 1: We propose a non-parametric method to explain and modify the behavior of convolutional Figure 1: We propose a non-parametric method to explain and modifyrametric method to explain and modify the behavior of convolutionalnetworks, including those that classify pixels and those that generate images. For example, given the label mask on the top, why does a network generate strange gray border artifacts? Given the cluding those that classify pixels and those that generate images. Forluding those that classify pixels and those that generate images. For enetworks, including those that classify pixels and those that generate classify pixels and those that generate images. For example, givenimage on the bottom, how is a network able to segment out the left-most telephone pole in shadow? ask on the top, why does a network generate strange gray border artifk on the top, why does a network generate strange gray border artifacthe label mask on the top, why does a network generate strange grayy does a network generate strange gray border artifacts? Given theWe advocate an “explanation-by-example” approach to interpretation (Caruana et al., 1999). Next to the CNN output, we show the closest-matching training exemplar image. It appears to provide e bottom, how is a network able to segment out the barely-visible la bottom, how is a network able to segment out the barely-visible lam coarse explanations of such behaviors, though the quality of the output is still lacking (e.g., addixplanation-by-example” approach to interpretation (Caruana et al., 19planation-by-example” approach to interpretation (Caruana et al., 199vocate an “explanation-by-example” approach to interpretation (Carumple” approach to interpretation (Caruana et al., 1999). Next to thetional cars are hallucinated in the bottom row). One the right, we show the output obtained through CNN output, we show the closest-matching training exemplar image.est-matching training exemplar image. It appears to provide coarsea compositional nearest-neighbor operation that simply (1) matches input patches to those in the training set and (2) returns the corresponding output label. This means that the output is created by s of such behaviors, though the quality of the output is still lacking (e.g.of such behaviors, though the quality of the output is still lacking (e.g., cutting-and-pasting (composing) patches of training images. To ensure that inconsistent patches are ated in the bottom row). One the right, we show the output obtainedted in the bottom row). One the right, we show the output obtained tare hallucinated in the bottom row). One the right, we show the outrow). One the right, we show the output obtained through a com-not composed together, one needs to match patches using an embedding that captures both global semantics (e.g., architectural styles) and local structure (e.g., windows versus doors). We demonearest-neighbor operation that simply (1) matches input patches to thoarest-neighbor operation that simply (1) matches input patches to those strate that local convolutional neighborhoods of feature activations produce such rich embedding. eturns the corresponding output label. This means that the output is crturns the corresponding output label. This means that the output is creaset and (2) returns the corresponding output label. This means that thending output label. This means that the output is created by cutting-Such a perspective allows one to explain errors and modify the biases of a network by changing the and-pasting (composing) patches of thes of training images. To ensure thatset of image patches used for non-parametric matching.
19
+
20
+ ., architectural styles) and local structure (e.g., windows versus doors). architectural styles) and local structure (e.g., windows versus doors). Wmantics (e.g., architectural styles) and local structure (e.g., windows ves) and local structure (e.g., windows versus doors). We demonstrateCompositional nearest-neighbors: Our central thesis is consistent with recent work on network that local convolutional neighborhoods of feature activations produceorhoods of feature activations produce such rich embedding. Such amemorization (Zhang et al., 2016), but notably, naive memorization fails to explain how and why perspective allows one to explain errors and modify the biases of a neain errors and modify the biases of a network by changing the set ofnetworks generalize to never-before-seen data. We explain the latter through composition: the synallows one to explain errors and modify the biases of a network by challows one to explain errors and modify the biases of a network by chan thesized output in Fig. 1 consists of image patches copied from different training images. Given a es useds used foimagerametricdatabase of $N$ r non-parametrnon-parametricatches used foratching. [Devtraining images with $K$ matching. [Deva: Can you switcmatching. [Deva: Can you switchon-parametric matching. [Deva: Ca Can you switch the order of compixels each, global nearest-neighbors can produce $N$ the ore orde you s nnpossible and global nn, like teaser-deva.pdf?]a.pdf?]output images. On the other hand, compositional nearest-neighbors can produce $( N K ) ^ { K }$ outputs, nn, like teaser-deva.pdf?]n, like teaser-deva.pdf?]an exponentially larger set of outputs. Each output image can be obtained by independently matching each of the $K$ patches in the input query to one of $N K$ patches in the training set. However, many of these outputs may be unrealistic. For example, one should not synthesize a facade by composing a door above a window. To ensure global consistency, one needs to match patches using a carefully-tuned metric that captures such global knowledge. But where do we obtain such a metric?
21
+
22
+ Patch embeddings: Much past work has demonstrated that intermediate feature activations of a nal nearest-neighbors: Our central thesis is consistent with recent wal nearest-neighbors: Our central thesis is consistent with recent woCompositional nearest-neighbors: Our central thesis is consistent bors: Our central thesis is consistent with recent work on networkneural network can be interpreted as global embeddings for comparing entire images. For exammemorization (Zhang et al., 2016), but notably, naive memorization f016), but notably, naive memorization fails to explain how and whyple, Sharif Razavian et al. (2014); Devlin et al. (2015) show that the penultimate (“FC7”) layer of n (Zhang et al., 2016), but notably, naive memorization fails to expla (Zhang et al., 2016), but notably, naive memorization fails to explainimage classification networks learn embeddings of images that produce remarkably accurate nearestneralize to never-before-seen data. We explain the latter through comperalize to never-before-seen data. We explain the latter through compos neighbors. We apply this observation to spatial prediction networks in order to learn local embeddings of image patches or even pixels. These embeddings are quite rich in that they encode semantic knowledge that is both local (geometric structures centered at the pixel) and global (e.g., color and architectural style of the entire facade).
23
+
24
+ Correspondence and bias: Beyond being a mechanism for interpretation, we demonstrate that compositional NN matching is a viable algorithm that may approach the accuracy of highly-tuned CNNs. Although slower than a feed-forward net, compositional matching is attractive in two respects: (1) It provides spatial correspondences between pixels in the predicted output and pixels in the training set. Spatial correspondences may be useful in practical applications such as label transfer (Liu et al., 2011). (2) Implicit biases of the network can be explicitly manipulated by changing the set of images used for matching – it need not be the same set used for training the network. As an illustrative example, we can force a pre-trained image generation network to predict European or American building facades by restricting the set of images used for matching. Such a manipulation may, for example, be used to modify a biased face recognition network to process genders and races in a more egalitarian fashion.
25
+
26
+ Contribution: We introduce a Compositional Nearest Neighbors pipeline for interpreting and modifying the behavior of Convolutional Neural Networks. Specifically, we demonstrate that CNNs appear to work by memorizing image patches from training data, and then composing them into new configurations. To make compositional matching viable, CNNs learn a local embedding of image patches that captures both global and local semantics. An accurate local embedding is crucial in order to efficiently process an exponentially-large set of potential outputs. We validate our hypothesis on state-of-the-art networks for image translation and semantic image segmentation. Finally, we also show evidence that compositional matching can be used to predict activations of internal layers, generate spatial correspondences, and manipulate the implicitly-learned biases of a network.
27
+
28
+ # 2 RELATED WORK
29
+
30
+ We broadly classify networks for spatial prediction into two categories: (1) discriminative prediction, where one is seeking to infer high-level semantic information from RGB values; and (2) image generation, where the intent is to synthesize a new image from a given input “prior”. There is a broad literature for each of these tasks, and here we discuss the ones most relevant to ours.
31
+
32
+ Discriminative models: An influential formulation for state-of-the-art spatial prediction tasks is that of fully convolutional networks (Long et al., 2015). These have been used for pixel prediction problems such as semantic segmentation (Long et al., 2015; Hariharan et al., 2015; Ronneberger et al., 2015; Bansal et al., 2017a; Chen et al., 2016), depth/surface-normal estimation (Bansal et al., 2016; Eigen & Fergus, 2015), or low-level edge detection (Xie & Tu, 2015; Bansal et al., 2017a). Substantial progress has been made to improve the performance by employing deeper architectures (He et al., 2015), or increasing the capacity of the models (Bansal et al., 2017a), or utilizing skip connections, or intermediate supervision (Xie & Tu, 2015). However, we do not precisely know what these models are actually capturing to do pixel-level prediction. In the race for better performance, the interpretability of these models has been typically ignored. In this work, we focus on interpreting encoder-decoder architectures for spatial classification (Ronneberger et al., 2015; Badrinarayanan et al., 2017).
33
+
34
+ Image generation: Goodfellow et al. (2014) proposed a two-player min-max formulation where a generator $G$ synthesized an image from random noise $z$ , and a discriminator $( D )$ is used to distinguish the generated images from the real images. While this Generative Adversarial Network (GAN) formulation was originally proposed to synthesize an image from random noise vectors $z$ , this formulation could also be used to synthesize new images from other priors, such as, a low resolution image or label mask by treating $z$ as an explicit input to be conditioned upon. This conditional image synthesis via generative adversarial formulation has been well utilized by multiple follow-up works to synthesize a new image conditioned on a low-resolution image (Denton et al., 2015), class labels (Radford et al., 2015), and other inputs (Isola et al., 2016; Zhu et al., 2017). While the quality of synthesis from different inputs has rapidly improved in recent history, interpretation of GANs has been relatively unexplored. In this work, we examine the influential Pix2Pix network Isola et al. (2016) and demonstrate an intuitive non-parametric representation for explaining its impressive results.
35
+
36
+ Interpretability: There is a substantial body of work (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Zhou et al., 2014; Bau et al., 2017) on interpreting general convolutional neural networks (CNNs). The earlier work of Zeiler & Fergus (2014) presented an approach to understand and visualize the functioning of intermediate layers of CNN. Mahendran & Vedaldi (2015) proposed to invert deep features to visualize what is learned by CNNs, similar to inverting HOG features to understand object detection (Vondrick et al., 2013). Zhou et al. (2014) demonstrated that object detectors automatically pop up while learning the representation for scene categories. Krishnan & Ramanan (2016) explored interactive modification of a pre-trained network to learn novel concepts, and recently Bau et al. (2017) proposed to quantify interpretability by measuring scene semantics such as objects, parts, texture, material etc. Despite this, understanding the space of pixel-level CNNs is not well studied. The recent work of PixelNN (Bansal et al., 2017b) focuses on highquality image synthesis by making use of a two-stage matching process that begins by feed-forward CNN processing and ends with a nonparametric matching of high-frequency detail. We differ in our focus on interpretability rather than image synthesis, our examination of networks for both discriminative classification and image synthesis, and our simpler single-stage matching process that does not require feed-forward processing.
37
+
38
+ Compositionality: The design of part-based models (Crandall et al., 2005; Felzenszwalb et al., 2008), pictorial structures or spring-like connections (Fischler & Elschlager, 1973; Felzenszwalb & Huttenlocher, 2005), star-constellation models (Weber et al., 2000; Fergus et al., 2003), and the recent works using CNNs share a common theme of compositionality. While the earlier works explicitly enforce the idea of composing different parts for object recognition in the algorithmic formulation, there have been suggestions that CNNs also take a compositional approach (Zeiler & Fergus, 2014; Krishnan & Ramanan, 2016; Bau et al., 2017). We see compositional embeddings as rather different than compositional objects/parts. Using (Hinton, 1986)’s terminology, embeddings can be viewed as “distributed representations”, while objects/parts can be viewed as “sparse representations”. Much past work has argued that distributed representations are central to the success of deep networks (LeCun et al., 2015). We agree and posit that this is one reason why CNNs outperform classic hierarchical models of parts/objects. Specifically, Girshick et al. (2015) point out that classic part models can be implemented as CNNs with sparse activations, where individual neurons correspond to individual part responses. In practice, many neurons are not interpretable when examined individually, as pointed out by Zhou et al. (2014). An embedding perspective offers one solution that does not require individual dimensions to be meaningful - e.g., nearest neighbors in an embedding will not change if one applies a well-behaved linear transformation (e.g., rotation) to the embedding space. This is consistent with past work (Szegedy et al., 2013) that suggests that that linear combinations of activations are equally as informative as the original activations. Finally, if high-level activations represent objects, how can 4K activations (e.g., the typical dimension of FC7) represent $3 0 \mathrm { K } +$ objects (Biederman, 1987)? Our central thesis is that activations do not correspond to individual objects/parts, but rather the dimensions of a local embedding space in which objects/parts are points (matchable with nearest-neighbors).
39
+
40
+ # 3 COMPOSITIONAL NEAREST NEIGHBORS
41
+
42
+ We now introduce our method to interpret various fully convolutional networks designed for pixellevel tasks.
43
+
44
+ Global nearest-neighbors: Our starting point is the observation that classification networks can be interpreted as linear classifiers defined on nonlinear features extracted from the penultimate layer (e.g., “FC7” features) of the network. We formalize this perspective with the following notation:
45
+
46
+ $$
47
+ \operatorname { L a b e l } ( x ) = k ^ { * } \quad { \mathrm { w h e r e } } \quad k ^ { * } = { \underset { k \in \{ 1 \ldots K \} } { \operatorname { a r g m a x } } } \ w _ { k } \cdot \phi ( x ) , \qquad [ \operatorname { K - w a y } \ { \mathrm { c l a s s i f i c a t i o n } } ]
48
+ $$
49
+
50
+ where $\boldsymbol { \phi } ( \boldsymbol { x } ) \in \mathbb { R } ^ { N }$ corresponds to the penultimate FC7 features computed from input image $x$ . Typically, the parameters of the linear classifier $\{ w _ { y } \}$ and those of the feature encoder $\phi ( \cdot )$ are trained on large-scale supervised datasets:
51
+
52
+ $$
53
+ \mathcal { D } = \{ ( x _ { n } , y _ { n } ) \} . \quad [ \mathrm { T r a i n i n g ~ d a t a b a s e } ]
54
+ $$
55
+
56
+ Devlin et al. (2015) make the observation that penultimate features $\phi ( x )$ can be interpreted as an embedding in $\mathbb { R } ^ { N }$ . By extracting such embeddings for training images $x _ { n }$ , Devlin et al. (2015) build
57
+
58
+ ![](images/086b38ab71ff270080fe87eb0eb7bf231b3635e2466888a05e7e6ce45710b947.jpg)
59
+ Figure 2: Overview of pipeline: Given an input label or image (top-left of each box), our approach extracts an embedding for each pixel. We visualize two pixels with a yellow and white dot. The embedding captures both local and global context, which are crudely visualized with the surrounding rectangular box. We then find the closest matching patches in the training set (with a nearest neighbor search), and then report back the corresponding pixel labels to generate the final output (bottom-left of each box). We visualize an example for label-to-image synthesis on the left, and image-to-label prediction on the right.
60
+
61
+ a nonparametric nearest-neighbor (NN) predictor for complex tasks such as image captioning. We write this as follows:
62
+
63
+ $$
64
+ \operatorname { L a b e l } ( x ) = y _ { n ^ { * } } \quad { \mathrm { w h e r e } } \quad n ^ { * } = \operatorname { a r g m i n } _ { n } \operatorname { D i s t } \Bigl ( \phi ( x ) , \phi ( x _ { n } ) \Bigr ) . \qquad [ \operatorname { G l o b a l } \operatorname { N I }
65
+ $$
66
+
67
+ Importantly, the above NN classifier performs quite well even when feature encoders $\phi ( \cdot )$ are trained for classification rather than as an explicit embedding. In some sense, deep nets seem to implicitly learn embeddings upon which simple linear classifiers (or regressors) operate. We argue that such a NN perspective is useful in interpreting the predicted classification since the corresponding training example can be seen as a visual “explanation” of the prediction - e.g., the predicted label for $x$ is “dog” because $x$ looks similar to training image $x _ { n * }$ .
68
+
69
+ Pixel nearest-neighbors: We now extend the above observation to pixel-prediction networks that return back a prediction for each pixel $i$ in an image:
70
+
71
+ $$
72
+ \operatorname { L a b e l } _ { i } ( x ) = k ^ { * } \quad { \mathrm { w h e r e } } \quad k ^ { * } = \operatorname { a r g m a x } _ { k \in \{ 1 . . . K \} } w _ { k } \cdot \phi _ { i } ( x ) . \qquad [ \operatorname { K - w a y } \operatorname { p i x e l } \operatorname { c l a s s i f i c a t i o n } ]
73
+ $$
74
+
75
+ We write $\mathrm { L a b e l } _ { i } ( \cdot )$ for the label of the $i ^ { t h }$ pixel and $\phi _ { i } ( \cdot )$ for its corresponding feature vector. Because we will also examine pixel-level prediction networks trained to output a continuous value, we write out the following formulation for pixel-level regression:
76
+
77
+ $$
78
+ \mathrm { P r e d i c t } _ { i } ( x ) = W \phi _ { i } ( x ) \quad \mathrm { w h e r e } \quad W \in \mathbb { R } ^ { M \times N } . \qquad [ \mathrm { P i x e l ~ r e g r e s s i o n } ]
79
+ $$
80
+
81
+ For concreteness, consider a Pix2Pix (Isola et al., 2016) network trained to regress RGB values at each pixel location. These predictions are obtained by convolving features from the penultimate layer with filters of size $4 \times 4 \times 1 2 8$ . In this case, the three filters that generate R,G, and B values can be written as a matrix $W$ of size $M \times N$ , where $M = 3$ and $N = 4 * 4 * 1 2 8 = 2 0 4 8$ . Analogously, $\phi _ { i } ( x )$ corresponds to $N$ dimensional features extracted by reshaping local $4 \times 4$ convolutional neighborhoods of features from the penultimate feature map (of size $H \times W \times 1 2 8$ ). We now can perform nearest-neighbor regression to output pixel values:
82
+
83
+ $$
84
+ \mathsf { r e d i c t } _ { i } ( x ) = y _ { n ^ { * } , m ^ { * } } \quad \mathrm { w h e r e } \quad ( n ^ { * } , m ^ { * } ) = \underset { n , m } { \mathrm { a r g m i n } } \mathrm { D i s t } \Big ( \phi _ { i } ( x ) , \phi _ { m } ( x _ { n } ) \Big ) , \qquad [ \mathrm { C o m p ~ N N ~ P i x e l s ~ o f ~ \phi _ { i } ( x ) ~ , }
85
+ $$
86
+
87
+ where $y _ { n ^ { * } , m ^ { * } }$ refers to the $m ^ { t h }$ pixel from the $n ^ { t h }$ training image. Importantly, pixel-level nearest neighbors reveals spatial correspondences for each output pixel. We demonstrate that these can be used to provide an intuitive explanation of pixel outputs, including an explanation of errors that otherwise seem quite mysterious (see Fig.1 and Fig. 2).
88
+
89
+ Distance function: We explored different distance functions such as Euclidean and cosine distance. Similar to past work (Devlin et al., 2015), we found that cosine distance consistently performed slightly better, so we use that in all of our experiments.
90
+
91
+ ![](images/10f6fef70cbf81fb141b8eeff16ec182f7dc49ff393ea7106efecb1bb82dc1ca.jpg)
92
+ Figure 3: We visualize a non-parametric approach to computing activations from internal layers. By matching to a training database of $\mathop { d e c o d e r _ { 4 } }$ features from Pix2Pix, we can compute activations for the next layer (decoder3) with nearest-neighbors. Each image represents a feature map of 3 continuous channels visualized in the R,G, and B planes. The collective set of 4 images displays 12 out of the 256 channels in decoder3. Global nearest-neighbors (i.e., matching to the training image with the most similar $\mathop { d e c o d e r _ { 4 } }$ layer and returning its associated decoder3 layer) produces poor matches, but compositional-pasting matches together from different exemplars produce activations that are nearly identical to those computed by the underlying CNN.
93
+
94
+ Convolutional embeddings: We now extend our compositional nearest-neighbor formulation to internal convolutional layers. Recall that activations $a$ at a spatial position $i$ and layer $j$ can be computed using thresholded linear functions of features (activations) from the previous layer:
95
+
96
+ $$
97
+ a _ { i j } ( x ) = \operatorname* { m a x } { \Bigl ( } 0 , W \phi _ { i j } ( x ) { \Bigr ) } , \qquad \mathrm { w h e r e } \quad a _ { i j } \in \mathbb { R } ^ { M } , \phi _ { i j } \in \mathbb { R } ^ { N } , W \in \mathbb { R } ^ { M \times N }
98
+ $$
99
+
100
+ where we write $a _ { i j }$ for the vector of activations corresponding to the $i ^ { t h }$ pixel position from layer $j$ , possibly computed with bilinear interpolation (Long et al., 2015). We write $\phi _ { i j }$ for the local convolutional neighborhood of features (activations) from the previous layer that are linearly combined with bank of linear filters $W$ to produce $a _ { i j }$ . For concreteness, let the previous layer be decoder4 from Pix2Pix, and the current layer be decoder3. We can then write, $a _ { i j } \in R ^ { M }$ where $M = 2 5 6$ and $\phi _ { i j } \in R ^ { N }$ where $N = 4 * 4 * 5 1 2 = 8 1 9 2$ . We similarly posit that one can produce approximate activations by nearest neighbors. Specifically, let us run Pix2Pix on the set of training images, and construct a dataset of training patches with features $\phi _ { i j } ( x _ { n } )$ as data and corresponding activation vectors $a _ { i j } ( x _ { n } )$ as labels. We can then predict activation maps for a query image $x$ with NN:
101
+
102
+ $$
103
+ a _ { i j } ( x ) = a _ { m ^ { * } , j } ( x _ { n ^ { * } } ) \quad { \mathrm { w h e r e } } \quad ( m ^ { * } , n ^ { * } ) = \underset { m , n } { \mathrm { a r g m i n } } \ : \mathrm { D i s t } \Bigl ( \phi _ { i j } ( x ) , \phi _ { m j } ( x _ { n } ) \Bigr ) .
104
+ $$
105
+
106
+ Notably, this is done without requiring explicit access to the filters $W$ . Rather such responses are implicitly encoded in the training dataset of patches and activation labels. We show that such an approach actually produces reasonable activations (Fig. 3).
107
+
108
+ Patch nearest-neighbors: The previous paragraph demonstrated that composing image patches using embeddings from interior layers could “explain” the behavior of the subsequent layer. We now ask a more ambitious question - could such a procedure “explain” the behavior of all subsequent layers? That is, could it produce output predictions that mimic the behavior of the entire network? To do so, we regress the final-layer pixel value from each stored patch:
109
+
110
+ $$
111
+ { \mathrm { P r e d i c t } } _ { i j } ( x ) = y _ { n ^ { * } , m ^ { * } } \quad { \mathrm { w h e r e } } \quad ( n ^ { * } , m ^ { * } ) = { \underset { n , m } { \mathrm { a r g m i n } } } { \mathrm { D i s t } } \Bigl ( \phi _ { i j } ( x ) , \phi _ { m j } ( x _ { n } ) \Bigr ) .
112
+ $$
113
+
114
+ [Comp NN Patches]
115
+
116
+ As written, the above procedure is inefficient because features are interpolated (to pixel resolution) before they are matched to the patch database. Instead, it is natural to match features at their native resolution, and then interpolate the matches. This results in significant speed ups. For example, the bottleneck layer has an activation map of size $1 \times 1 \times 5 1 2$ . Matching to bottleneck features in the re y refers to pixels of set S (m⇤) from the nth training image.training set is quite fast because it acts as a compact global descriptor for matching entire images. j The downside is that the matches are not compositional. By matching to convolutional embeddings rse-to-fine nearest-neighbor search: An important special case is the bottleneck feature, whichextracted from later layers, one can compute progressively more compositional matches, that are omputed from an activation map of size 1 ⇥ 1 ⇥ 512. In this case, we posit that the corresponding512initially global, then patch-based, and finally pixel-based (see Fig. 4). In our experiments, we found ure ij (x) 2 R is a good global descriptor of image x. In our experiments, we found thatthat such patch embeddings could be used to prune the NN pixel search, significantly speeding up run-time performance (e.g., we first prune the training database to a shortlist of images with similar bottleneck features, and then search through these images for similar patches, and then search through those patches for similar pixels).
117
+
118
+ ![](images/0c1372504d35f1c2317feb5577039d1e3798a26a4860ffdf287db12a4dec58b1.jpg)
119
+ Comp-NN in different embedding space: [Deva: Add the input label image on theFigure 4: Adding composition by matching to later layers: We apply compositional nearestneighbor matching to features extracted from different layers, starting with the bottleneck layer 6 2 and progressing to the penultimate deconv2 layer. We match local neighborhoods of convolutional embeddings, which naturally allows for more composition as we use later laters.
120
+
121
+ ![](images/2f69f8c3f1a1c1a94d612af578ad3b9b81228e2ebe646b107d6af265738d00e4.jpg)
122
+ ixels to apply a linear projection. For correctness, considering feature positions i in decoder4Figure 5: Original labels v.s. self-supervised labels: Given the label input on the left, we show reh a shape of 32 ⇤ 32 ⇤ 256, we can rewrite i as (x, y) where x = i/32, y = i%32. Thus, eachsults of Pix2Pix in the Convolutional Neural Networks column, and non-parametric matching to the ure is corresponding to a 8 ⇤ 8 image patch on final output with a shape of 256 ⇤ 256 ⇤ 3. Hence,training set using the original labels and the predicted “self-supervised” labels of the Pix2Pix netj ⇤ ⇤ ⇤ ⇤work. Generating images with the predicted labels looks smoother, though the qualitative behavior ...3]. Thus, one can generate output results by constructing a dataset of training patches withof the network is still explained by the original training labels. We quantify this in our experimental ij n n,Sj (i) results, and include additional qualitative visualizations of the original and self-supervised labels in Figs. 13 and 14.
123
+
124
+ Bias modification: Finally, our results suggest that the matching database from Eq.(2) serves as mory by changing the dataset of training images x , labels y , or both. We experimentan explicit “associative memory” of a network (Carpenter, 1989). We can explicitly modify the various modifications in our experimental results. Onememory by changing the dataset of training images $\ { \bar { \{ \{ x } } _ { n } \}$ cation th, labels $\left\{ y _ { n } \right\}$ sistently produced, or both. We experiment other visual results was to refine the training labels to those predicted by a network:with various modifications in our experimental results. One modification that consistently produced smoother visual results was to refine the training labels to those predicted by a network:
125
+
126
+ $$
127
+ \{ \left( x _ { n } , y _ { n } \right) \} \Rightarrow \{ \left( x _ { n } , C N N ( x _ { n } ) \right) \} .
128
+ $$
129
+
130
+ Such as procedure for “self-supervised” learning is sometimes used when training labels are known to be noisy. From an associative network perspective, we posit that such labels capture a more 7faithful representation of a network’s internal memory. Unless otherwise specified, all results make use of the above matching database. We visualize the impact of self-supervised labels in Fig. 5.
131
+
132
+ ![](images/68dc94203828b1287562ac58c3ff7116df6b24f7b97e1ec0388f4d5d1ec6db6d.jpg)
133
+ Figure 6: Reconstruction: We can use our nonparametric matching framework to generate reconstructions by replacing the exemplar target label $y _ { n }$ with the exemplar input image $x _ { n }$ . This can be done for both image generation and discrete label prediction. We find that, perhaps surprisingly, pixel embeddings contain enough local information to reconstruct the input pixel. We show additional results in Fig. 10.
134
+
135
+ Reconstruction: We found that replacing the label $y _ { n }$ with the input image $x _ { n }$ is a helpful diagnostic for visualization. This illustrates the ability of the learned embedding and compositional matching framework to reconstruct the input query. The reconstructed input for a global NN match is simply the best-matching exemplar input image (see Fig. 6). We find that, perhaps surprisingly, pixel embeddings contain enough local information to reconstruct the input pixel. We show additional results in our experimental results.
136
+
137
+ $$
138
+ \left\{ \left( x _ { n } , y _ { n } \right) \right\} \Rightarrow \left\{ \left( x _ { n } , x _ { n } \right) \right\} \quad { \mathrm { [ R e c o n s t r u c t i o n ] } }
139
+ $$
140
+
141
+ # 3.1 SUFFICIENT STATISTICS FOR PIXEL-LEVEL TASKS
142
+
143
+ We now discuss information-theoretic properties of the introduced nearest-neighbor embedding $\phi _ { i } ( \cdot )$ presented in Sec. 3. Specifically, we show that this embedding produces sufficient statistics (Tishby & Zaslavsky, 2015; Shwartz-Ziv & Tishby, 2017; Achille & Soatto, 2017) for various pixel level tasks.
144
+
145
+ Global embeddings: We begin with the simpler case of predicting a global class label $y$ from an image $x$ . If we assume that the input image $x$ , global feature embedding $\phi ( x )$ , and output label $y$ form a Markov chain $x \to \phi ( x ) \to y$ , we can write the following:
146
+
147
+ $$
148
+ p ( y ~ | ~ \phi ( x ) , ~ x ) = p ( y ~ | ~ \phi ( x ) ) . \qquad [ \mathrm { S u f f i c i e n c y } ]
149
+ $$
150
+
151
+ As Achille & Soatto (2017) show, standard loss functions in deep learning (such as cross-entropy) search for an embedding that minimizes the entropy of the label $y$ given the representation $\phi ( x )$ . This observation explicitly shows that the embedding $\phi ( x )$ is trained to serve as a sufficient representation of the data $x$ that is rich enough in information to predict the label $y$ . In particular, if the learned embedding satisfies the above Markov assumption, the prediction $y$ will not improve even when given access to the raw data $x$ .
152
+
153
+ Pixel-wise embeddings: Spatial networks predict a set of pixel-wise labels $\{ y _ { i } \}$ given an input image. If we assume that the pixel-wise labels are conditionally independent given $\{ \phi _ { i } ( x ) \}$ and $x$ , then we can write the joint posterior distribution over labels with the following product:
154
+
155
+ $$
156
+ \begin{array} { l l } { { p ( \{ y _ { i } \} \mid \phi ( x ) , x ) = \displaystyle { \prod _ { i } p ( y _ { i } \mid \phi ( x ) , x ) } } } & { { \quad \scriptstyle { [ \mathrm { C o n d i t i o n a l ~ S p a t i a l ~ I n d e p e n d e n c e } ] } } } \\ { { \displaystyle { \phantom { \sum _ { i } p ( y _ { i } \mid \phi ( x ) , x ) } } } } & { { \quad \scriptstyle { [ \mathrm { S u f f i c i e n c y } ] } } } \end{array}
157
+ $$
158
+
159
+ where $\phi _ { i } ( x )$ are the sufficient statistics needed to predict label $y _ { i }$ , and $\phi ( x ) ~ = ~ \{ \phi _ { i } ( x ) \}$ is the aggregate set of these sufficient statistics. One can similarly show that pixel-wise cross-entropy losses jointly minimize the entropy of the labels $y _ { i }$ given $\phi _ { i } ( x )$ . This suggests that pixel-wise features $\phi _ { i } ( x )$ do serve as a remarkably rich characterization of the image. This characterization includes both global properties (e.g., the color of a building facade being synthesized) as well as local properties (e.g., the presence of a particular window ledge being synthesized). Importantly, this requires the conditional independence assumption from Eq. (11) to be conditioned on the entire image $x$ rather than just the local pixel value $x _ { i }$ (from which it would be hard to extract global properties).
160
+
161
+ An interesting observation from the factorization shown in Eq. (12) is that we can synthesize an image by predicting pixel values independently. Thus, this theoretical observation suggests that a simple nearest-neighbor regression for every output pixel can synthesize plausible images.
162
+
163
+ Multi-layered representations: The above pixel-wise formulation also suggests that internal feature layers serve as sufficient representations to predict activations for subsequent layers. Interestingly, skip connections that directly connect lower layers to higher layers break the Markov independence assumption. In other words, skip connections suggest that higher layer features often do not serve as sufficient representations, in that subsequent predictions improve when given access to earlier layers. However, Eq.(12) technically still holds so long as we write $\phi _ { i } ( x )$ for the concatenated representation including lower-level features. For example, in Pix2Pix, we write $\phi _ { i } ( x ) \in \mathbb { R } ^ { N }$ where $N = 4 * 4 * ( 6 4 + 6 4 ) = 2 0 4 8$ , where the second set of 64 channel features are copied from the first encoder layer. In the next Section, we show qualitative and quantitative experiments supporting this analysis.
164
+
165
+ Prior work on embeddings: Now that our framework has been described both algorithmically and theoretically, we compare it to a large body of related work. The idea that intermediate CNN layers learn embeddings is not new. This dates back at least to Caruana et al. (1999), and was popularized in recent history with (Sharif Razavian et al., 2014; Devlin et al., 2015). Indeed, much contemporary work makes use of “off-the-shelf” CNN layers as features, where earlier layers tend to encode more generic feature representations (Zeiler & Fergus, 2013). However, such representations are typically global and refer to the entire image. Alternatively, one can extract local pixel-based feature representations, but these are typically defined by $1 x 1$ slices of a convolutional feature map (Hariharan et al., 2015; Long et al., 2014). Our theoretical analysis, while quite straightforward, shows that the optimal local representation (in terms of sufficiency) is given by a convolutional neighborhood of overlapping activations. Finally, we show that compositional matching with such local embeddings significantly outperforms global matching (see Fig. 3), and rivals the accuracy of feedforward CNN predictions (Table 1).
166
+
167
+ # 4 EXPERIMENTS
168
+
169
+ We now present experimental results for discriminative networks trained for semantic segmentation, as well as generative networks trained for image synthesis. The goal of the experiments is to show that images generated with a simple NN regression are a good way to interpret the internal operations of a convolutional neural network.
170
+
171
+ Networks: We use SegNet (Badrinarayanan et al., 2017), a recent state-of-the-art network for image segmentation, and Pix2Pix (Isola et al., 2016), a state-of-the-art network for conditional image synthesis and translation. We evaluate our findings for multiple datasets and tasks on which the original networks were trained. These include tasks such as synthesizing facades from architectural labels and vice versa, predicting segmentation class labels from urban RGB images, and synthesizing Google maps from aerial or satellite views.
172
+
173
+ Semantic segmentation: We use the CityScape (Cordts et al., 2016) and CamVid (Brostow et al., 2008; 2009) datasets for the task of semantic segmentation. Both datasets are annotated with semantic class labels for outdoor images collected from a car driving on the road. We use SegNet (Badrinarayanan et al., 2017) for CamVid sequences, and Pix2Pix (Isola et al., 2016) for the CityScape dataset. Figure 7 shows qualitatively results for these datasets. We can observe in Figure 7 that the compositional NN produces a nearly-identical result (CompNN column) to the one produced by the network (Pix2Pix and SegNet columns). This suggests that our method enables a good interpretation of discriminative deep networks on pixel-level classification.
174
+
175
+ ![](images/e460edc990296b1f2b28a4c77e96e98f0530f4aca69e53025c155769f3c66238.jpg)
176
+ Figure 7: Semantic segmentation: The results of semantic segmentation on cityscape and CamVid dataset. This result suggests the following observations. First, the difference between images generated by generative networks (Pix2Pix and SegNet columns) and NN embedding (CompNN column) is surprisingly small. Thus, our method can perfectly interpret discriminative deep networks on pixel-level classification. Second, we can notice some noise edges with a high gradient (see columns 5-8). This phenomenon can also be used to understand the difficulty of image segmentation task: borders with high gradients are usually hard to classify due to the ambiguous patches in training set.
177
+
178
+ ![](images/04b1d2bfaa03d00629870b27eade55e7537d0fba1b1daa89447ffe463c4800b4.jpg)
179
+ Figure 8: Image synthesis: The results suggest that Comp NN (our approach) can also explain the results from $\mathrm { P i x 2 P i x }$ . We conclude this because our approach reproduces color and the structure of the Pix2Pix output, including a few artifacts (e.g., the image cuts in the 6th and 7th columns).
180
+
181
+ Architectural labels-to-facades: We followed Isola et al. (2016) for this setting and used the annotations from (Tylecek & ˇ Sˇ ara, 2013). There are 400 training images in this dataset, and 100 images ´ in the validation set. We use the same dataset to generate architectural labels from images of facades. Pix2Pix (Isola et al., 2016) models are trained using 400 images from the training set for both labels-to-facades and vice versa. Figure 8 shows qualitative examples of synthesizing real-world images using pixel-wise nearest neighbor embedding in its first and second rows. We observe that the NN-embedding perfectly explains the generation of deformed edges (see CompNN column), and how the generative architecture is eventually memorizing patches from the training set.
182
+
183
+ Satellite-to-maps: This dataset contains 1096 training images and 1000 testing images scraped from Google Maps. We use the same settings used by Isola et al. (2016) for this task. Figure 8 qualitatively shows in its third row how Google maps are synthesized from satellite images. We can observe that our synthesis (CompNN column) is nearly identical to the image generated by the network (Pix2Pix columns).
184
+
185
+ ![](images/958bb1fb75d50205cb552e76a02cd06ad915669a35f5392c7ed5f97eb977e62f.jpg)
186
+ Figure 9: Bias modification: Given the same label input, we show different results obtained by matching to different databases (using an embedding learned by Pix2Pix). By modifying the database to include specific buildings from specific locations, one can introduce and remove implicit biases in the original network (e.g.,one can generate “European” facades versus “American” facades).
187
+
188
+ Bias modification: Figure 9 shows that the output of nonparametric matching (3rd - 6th columns from left to right) can be controlled through explicit modification of the matching database. In simple words, this experiment shows that we can control properties of the synthesized image by simply specifying the exemplars in the database. We can observe in Figure 9 that the synthesized images preserve the structure (e.g., windows, doors, and roof), since it is the conditional input, but the textural components (e.g., color) change given different databases.
189
+
190
+ Reconstruction: This experiment shows that the learned embeddings of a CNN also enables the reconstruction of the input images in a compositional fashion (as discussed in Sec. 3). The results of this experiment are shown in Fig. 10. The Figure has the following organization. In the middle columns (enclosed in a box), the Figure shows the input and output images. The first two columns (from left-to-right) show the reconstructions of the input images using a global nearest-neighbors and the proposed compositional nearest-neighbors approach. The last two columns show the reconstruction of the output images, also using a global nearest-neighbors and the proposed compositional nearest-neighbors approach. We can observe that the reconstructions of the input images using the global nearest-neighbors approach overall resembles the structure of the scene. However, the reconstructions of the input images using the proposed compositional nearest-neighbors reproduce the input scene with a remarkable accuracy. These results suggest that the learned embedding is rich in global and local information to either reconstruct both the input and output images. We can conclude then that CNNs understand an input image by finding the patches from the training images that enable the composition of an image reproducing the input. To the best of our knowledge, this is the first approach that reconstructs an input image using training instances using a learned pixel-embedding.
191
+
192
+ Correspondence map: Figure 11 shows a correspondence map that explicitly illustrates how an output image is synthesized by cutting-and-pasting patches from training images. We can observe that patches are selected from many different styles of facades, but in such a manner that ensures that the composed output is globally consistent while maintaining the appropriate local structures (such as windows, doors, awnings, etc.). This implies the learned patch embedding captures both global semantics and local structure.
193
+
194
+ Quantitative evaluation: We present the quantitative analysis of our pixel-wise nearest neighbor approach with an end-to-end pipeline in Table 1. We report classification accuracy of ground truth labels and mean intersection-over-union (IoU) compared to the predicted labels for the task of semantic segmentation. We can observe in Table 1 that compositional matching approaches the accuracy of the baseline CNN, and dramatically outperforms global matching (sometimes by a factor of 2X). Finally, self-supervised labels (SS) overall perform similarly to the original labels (O), but almost consistently help for compositional matching and consistently hurt for global matching. We posit that this is due to the fact that self-supervised labels tend to be overly-smoothed, and so act as a form of spatial regularization that helps compositional matching.
195
+
196
+ ![](images/b3e6b0fa986c001e0a672b33f13b53d50b97ad7caf1f7aa860efd8e51c8424ba.jpg)
197
+ Figure 10: Reconstruction: Given the correspondences of NN features from penultimate the layer, we reconstruct the test input images (third column from left-to-right) by using the compositional nearest-neighbor approach: copying and pasting corresponding image patches from the input images of the training set. The reconstructions using a compositional nearest-neighbor approach is shown in the second column, while the reconstructions using a global nearest-neighbor approach is shown in the first column. The learned embedding thus enables not only the reconstruction of the input image, but also of the output image (see the last two columns). These results suggest that the embedding possess not only the information relevant to a specific task, but also semantic information from the original image. We can conclude then that CNNs understand an input image by finding the patches from the training images that enable the composition of an image reproducing the input.
198
+
199
+ Implementation Details: We used U-net as the generator for Pix2Pix, and used publicly available Tensorflow code for $\operatorname { P i x } 2 \mathrm { P i x } ^ { 2 }$ and SegNet3. For a slightly faster computation, we used the Eigen Library to implement the cosine distance. For Cityscape dataset, we shortlist 100 global neighborhoods using global bottleneck features for compositional NN searching. This leads to a 30 times speedup. For CamVid dataset, we shortlist 10 global neighborhoods. We can observe in previous results that the quality of generated images is hardly affected. We used 40-threads for these experiments. The average compute time per image is 22 minutes and 13 minutes for Cityscape and CamVid dataset respectively.
200
+
201
+ # 5 DISCUSSION
202
+
203
+ In this paper, we have presented a simple approach based on pixel-wise nearest neighbors to understand and interpret the functioning of convolutional neural networks for spatial prediction tasks. Our analysis suggests that CNNs behave as compositional nearest neighbor operators over a training set of patch-label pairs that act as an associative memory. But beyond simply memorizing, CNNs can generalize to novel data by composing together local patches from different training instances. Also, we argued that networks for pixel-level tasks learn sufficient statistics that enable the gener
204
+
205
+ ![](images/997d1d9f4f2790a842b44294ac144c73b0abc51535b2e1402c12dfe5a7e304a2.jpg)
206
+ Figure 11: Correspondence map: Given the input label mask on the top left, we show the groundtruth image and the output of Pix2Pix below. Why does Pix2Pix synthesize the peculiar red awning from the input mask? To provide an explanation, we use CompNN to synthesize an image by explicitly cutting-and-pasting (composing) patches from training images. We color code pixels in the training images to denote correspondences. For example, CompNN copies doors from training image A (blue) and the red awning from training image C (yellow).
207
+
208
+ <table><tr><td>Approach</td><td colspan="3">Facades CityScape CamVid (Mean Pixel Accuracy)</td><td colspan="3">Facades CityScape (Mean IoU)</td></tr><tr><td>Baseline CNN</td><td>0.545</td><td>0.735</td><td>0.790</td><td>0.157</td><td>0.217</td><td>0.444</td></tr><tr><td>Comp NN (SS)</td><td>0.505</td><td>0.738</td><td>0.767</td><td>0.137</td><td>0.210</td><td>0.378</td></tr><tr><td>Comp NN (O)</td><td>0.493</td><td>0.722</td><td>0.754</td><td>0.134</td><td>0.217</td><td>0.372</td></tr><tr><td>Global Bottleneck NN (SS)</td><td>0.324</td><td>0.579</td><td>0.564</td><td>0.057</td><td>0.109</td><td>0.246</td></tr><tr><td>Global Bottleneck NN (O)</td><td>0.381</td><td>0.585</td><td>0.570</td><td>0.065</td><td>0.133</td><td>0.226</td></tr><tr><td>Global Decode2 NN (SS)</td><td>0.387</td><td>0.590</td><td>0.659</td><td>0.087</td><td>0.110</td><td>0.287</td></tr><tr><td>Global Decode2 NN (O)</td><td>0.393</td><td>0.600</td><td>0.664</td><td>0.090</td><td>0.136</td><td>0.308</td></tr></table>
209
+
210
+ Table 1: We compare compositional nearest neighbors (CompNN) to the baseline CNN and different global nearest neighbor approaches, obtained by matching feature maps from different layers (Global-Bottleneck and Global-Decode2). We report mean pixel accuracy and intersection-overunion, where predicted segmentation labels are compared to ground-truth labels. We specifically use the embedding learned by Isola et al. (2016) for Facades-to-Labels (Facades) and CityScape, and embedding learned by Badrinarayanan et al. (2017) for CamVid. On average, CompNN performs $5 \%$ worse than the baseline CNN, though in some cases (CityScapes) it performs equally. However, compositional matching dramatically outperforms global matching, sometimes by a factor of 2X (Facade and CityScape IoU). In terms of global matching, the last feature layer (Decode2) strictly outperforms the intermediate Bottleneck layer, but is significantly larger ( $1 2 \mathrm { { 8 ^ { 3 } } }$ versus 512 dimensions). Finally, self-supervised labels (SS) overall perform similarly to the original labels (O), but almost consistently help for compositional matching and consistently hurt for global matching. We posit that this is due to the fact that self-supervised labels tend to be overly-smoothed, and so act as a form of spatial regularization for compositional matching.
211
+
212
+ ation of pixel predictions. Our analysis and experiments not only support this argument, but also enables example-based explanations of network behavior and explicit modulation of the implicit biases learned by the network. We hope that our framework enables further analysis of convolutional networks from a non-parametric perspective.
213
+
214
+ # REFERENCES
215
+
216
+ Agnar Aamodt and Enric Plaza. Case-based reasoning: Foundational issues, methodological variations, and system approaches. AI communications, 7(1):39–59, 1994.
217
+
218
+ Alessandro Achille and Stefano Soatto. On the emergence of invariance and disentangling in deep representations. CoRR, abs/1706.01350, 2017. URL http://arxiv.org/abs/1706.01350.
219
+
220
+ Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for scene segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2017.
221
+
222
+ Aayush Bansal, Bryan Russell, and Abhinav Gupta. Marr Revisited: 2D-3D model alignment via surface normal prediction. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
223
+
224
+ Aayush Bansal, Xinlei Chen, Bryan Russell, Abhinav Gupta, and Deva Ramanan. PixelNet: Representation of the pixels, by the pixels, and for the pixels. arXiv:1702.06506, 2017a.
225
+
226
+ Aayush Bansal, Yaser Sheikh, and Deva Ramanan. PixelNN: Example-based image synthesis. CoRR, abs/1708.05349, 2017b.
227
+
228
+ David Bau, Bolei Zhou, Aditya Khosla, Aude Oliva, and Antonio Torralba. Network dissection: Quantifying interpretability of deep visual representations. CoRR, abs/1704.05796, 2017.
229
+
230
+ I. Biederman. Recognition by components: a theory of human image interpretation. Pyschological review, 94: 115–147, 1987.
231
+
232
+ Gabriel J. Brostow, Jamie Shotton, Julien Fauqueur, and Roberto Cipolla. Segmentation and recognition using structure from motion point clouds. In Proc. of the European Conference on Computer Vision (ECCV), pp. 44–57, 2008.
233
+
234
+ Gabriel J Brostow, Julien Fauqueur, and Roberto Cipolla. Semantic object classes in video: A high-definition ground truth database. Pattern Recognition Letters, 30(2):88–97, 2009.
235
+
236
+ Gail A Carpenter. Neural network models for pattern recognition and associative memory. Neural networks, 2 (4):243–257, 1989.
237
+
238
+ Rich Caruana, Hooshang Kangarloo, JD Dionisio, Usha Sinha, and David Johnson. Case-based explanation of non-case-based learning methods. In Proceedings of the AMIA Symposium, pp. 212. American Medical Informatics Association, 1999.
239
+
240
+ 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. CoRR, abs/1606.00915, 2016.
241
+
242
+ Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
243
+
244
+ David Crandall, Pedro Felzenszwalb, and Daniel Huttenlocher. Spatial priors for part-based recognition using statistical models. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2005.
245
+
246
+ Emily L. Denton, Soumith Chintala, Arthur Szlam, and Robert Fergus. Deep generative image models using a laplacian pyramid of adversarial networks. CoRR, abs/1506.05751, 2015.
247
+
248
+ Jacob Devlin, Saurabh Gupta, Ross B. Girshick, Margaret Mitchell, and C. Lawrence Zitnick. Exploring nearest neighbor approaches for image captioning. CoRR, abs/1505.04467, 2015.
249
+
250
+ David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multiscale convolutional architecture. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015.
251
+
252
+ Pedro Felzenszwalb, David McAllester, and Deva Ramanan. A discriminatively trained, multiscale, deformable part model. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2008.
253
+ Pedro F. Felzenszwalb and Daniel P. Huttenlocher. Pictorial structures for object recognition. International Journal of Computer Vision, 2005.
254
+ R. Fergus, P. Perona, and A. Zisserman. Object class recognition by unsupervised scale-invariant learning. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2003.
255
+ M. A. Fischler and R. A. Elschlager. The representation and matching of pictorial structures. IEEE Trans. Comput., 22(1), January 1973.
256
+ Ross Girshick, Forrest Iandola, Trevor Darrell, and Jitendra Malik. Deformable part models are convolutional neural networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 437–446, 2015.
257
+ Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial networks. CoRR, abs/1406.2661, 2014.
258
+ Bharath Hariharan, Pablo Arbelaez, Ross Girshick, and Jitendra Malik. Hypercolumns for object segmentation ´ and fine-grained localization. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015.
259
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015.
260
+ Geoffrey E. Hinton. Learning distributed representations of concepts. In Proceedings of the Eighth Annual Conference of the Cognitive Science Society, pp. 1–12. Hillsdale, NJ: Erlbaum, 1986.
261
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. arxiv, 2016.
262
+ Vivek Krishnan and Deva Ramanan. Tinkering under the hood: Interactive zero-shot learning with net surgery. CoRR, abs/1612.04901, 2016.
263
+ Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
264
+ Zachary C Lipton. The mythos of model interpretability. arXiv preprint arXiv:1606.03490, 2016.
265
+ Ce Liu, Jenny Yuen, and Antonio Torralba. Nonparametric scene parsing via label transfer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(12):2368–2382, 2011.
266
+ Jonathan Long, Ning Zhang, and Trevor Darrell. Do convnets learn correspondence? In Advances in Neural Information Processing Systems (NIPS), 2014.
267
+ Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional models for semantic segmentation. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015.
268
+ Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015.
269
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. CoRR, abs/1511.06434, 2015.
270
+ Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. CoRR, abs/1505.04597, 2015.
271
+ Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. Cnn features off-the-shelf: an astounding baseline for recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pp. 806–813, 2014.
272
+ Ravid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810, 2017.
273
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. CoRR, abs/1312.6199, 2013.
274
+ Naftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. CoRR, abs/1503.02406, 2015. URL http://arxiv.org/abs/1503.02406.
275
+ Radim Tylecek and Radim ˇ Sˇ ara. Spatial pattern templates for recognition of objects with regular structure. In ´ Proc. German Conference on Pattern Recognition (GCPR), Saarbrucken, Germany, 2013.
276
+ C. Vondrick, A. Khosla, T. Malisiewicz, and A. Torralba. HOGgles: Visualizing Object Detection Features. Proc. of the IEEE International Conference on Computer Vision (ICCV), 2013.
277
+ Markus Weber, Max Welling, and Pietro Perona. Towards automatic discovery of object categories. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2000.
278
+ Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015.
279
+ Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. CoRR, abs/1311.2901, 2013.
280
+ Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In Proc. of the European Conference on Computer Vision (ECCV), pp. 818–833, 2014.
281
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
282
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in \` deep scene cnns. In Proc. of the International Conference on Learning Representations (ICLR), 2014.
283
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. CoRR, abs/1703.10593, 2017.
284
+
285
+ # A APPENDIX: ADDITIONAL EXPERIMENTAL RESULTS
286
+
287
+ # A.1 GLOBAL NEAREST NEIGHBORS
288
+
289
+ We also present synthesized images using a global nearest neighbors (NN) approach. In this case, we use the global information from the bottleneck features and FC7 features. These bottleneck features can reveal which patches are learned and which training instances have more influence than others.
290
+
291
+ ![](images/4e210df7e3260fa44a989104201db13c850bf65c128e0d308edf855f4a812960.jpg)
292
+ Figure 12: Global NN v.s. Comp NN. We show synthesized images using our CompNN methods and four global NN approaches (global nearest neighbor on bottleneck feature embedding and Decode2 feature embedding using self-supervised labels and original labels respectively). We can observe that (1) compositional nearest neighbor outperforms other global nearest neighbor approaches, (2) using Decode2 features (the penultimate layer) sometimes can generate more similar structures (See row 1,4).
293
+
294
+ Fig. 12 shows the synthesized images using several global NN approaches and a CompNN approach. We can observe that the results of global NN approaches overall resembles global properties of the output of the Convolutional Neural Network (CNN) and of the CompNN approach. For instance, in the top two rows, the output of the global NN resembles the color of the facade and structural properties of the buildings. Also, in the bottom two rows, we can observe that the global NN overall captures the organization of the scene because many labels in the global NN overlap considerably with the output of the CNN and the ground truth.
295
+
296
+ # A.2 COMPOSITIONAL NEAREST NEIGHBORS
297
+
298
+ In this section, we show more results of our proposed Compositional Nearest Neighbors. Both self-supervised labels and original labels are evaluated in this section. We can observe in Fig.13 that the results of the Compositional Nearest Neighbors (CompNN) approach are quite similar to those of the Convolutional Neural Network. We can also observe that the CompNN produces smoother results when it uses self-supervised labels than when it uses the original ones. Moreover, the self-supervised CompNN method produces results that are more alike to those of the Convolutional Neural Network.
299
+
300
+ ![](images/f08ed120cf4fe69833a6a3dff6248b0c348be41d38064611ee033789439acd4a.jpg)
301
+ Figure 13: Compositional Nearest Neighbors (CompNN) segmentation results using self-supervised and original labels. Overall, CompNN produces similar results compared with those of the Convolutional Neural Network. In particular, CompNN produces smoother results when it uses selfsupervised labels than when it uses the original labels.
302
+
303
+ # A.3 ADDITIONAL IMAGE SYNTHESIS RESULTS
304
+
305
+ Fig. 14 shows additional image syntheses using a CNN and CompNN with original and self-supervised labels. As discussed earlier, the CompNN with self-supervised labels produces a smoother image than when it uses the original labels.
306
+
307
+ # B APPENDIX: EXPERIMENTAL DETAILS
308
+
309
+ # B.1 COMPUTATIONAL COMPLEXITY
310
+
311
+ Although Compositional Nearest Neighbors provide insights into the internal operations of a CNN, its computational complexity is very high. In this section, we show some experimental details to speed up the CompNN process. Assume a dataset with $N$ images, each with $H \times W$ pixels, and $M$ filters from the last layer of a CNN. Then, the computational complexity for synthesizing one image using CompNN is
312
+
313
+ $$
314
+ O ( N H ^ { 2 } W ^ { 2 } M ^ { 2 } ) .
315
+ $$
316
+
317
+ ![](images/dbc31d4ab73668499da889f3a9dc86a24c58d1198ecc8d04d39ae2478552ba4a.jpg)
318
+ Figure 14: Synthesized images for pixel-wise prediction tasks with a Convolutional Neural Network, and Compositional Nearest Neighbors using self-supervised and original labels.
319
+
320
+ We now introduce several approaches to speed up searching process. (1) Although Numpy from Python calculates the distance between two features quickly, the iterations for synthesizing a pixel are slow. To alleviate this, we implemented the CompNN using $\mathrm { C } { + } { + }$ . (2) When a dataset has a large number of training instances, we used bottleneck features to narrow the training set. Especially in the segmentation problem, we can generate OK results with only 5-10 training reference. (3) Our implementation uses several threads in order to speedup the process. Specifically, each thread is in charge of synthesizing a disjoint set of pixels.
321
+
322
+ The synthesis of facades using the Facades dataset (400 training samples) takes about 2 hours with 20-30 threads on the CPU. This can be used as a reference for experiments on other datasets.
parse/train/H1TWfmnNf/H1TWfmnNf_content_list.json ADDED
@@ -0,0 +1,1534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DO CONVOLUTIONAL NEURAL NETWORKS ACT AS COMPOSITIONAL NEAREST NEIGHBORS? ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 746,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 199
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We present a simple approach based on pixel-wise nearest neighbors to understand and interpret the internal operations of state-of-the-art neural networks for pixel-level tasks. Specifically, we aim to understand the synthesis and prediction mechanisms of state-of-the-art convolutional neural networks for pixel-level tasks. To this end, we primarily analyze the synthesis process of generative models and the prediction mechanism of discriminative models. The main hypothesis of this work is that convolutional neural networks for pixel-level tasks learn a fast compositional nearest neighbor synthesis or prediction function. Our experiments on semantic segmentation and image-to-image translation show qualitative and quantitative evidence supporting this hypothesis. ",
40
+ "bbox": [
41
+ 233,
42
+ 270,
43
+ 764,
44
+ 409
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 441,
55
+ 336,
56
+ 458
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Convolutional neural networks (CNNs) have revolutionized computer vision, producing impressive results for discriminative tasks such as image classification and semantic segmentation. More recently, they have also produced startlingly impressive results for image generation through generative models. However, in both cases, such feed-forward networks largely operate as “black boxes.” As a community, we are still not able to succinctly state why and how such feed-forward functions generate a particular output from a given input. If a network fails on a particular input, why? How will a network behave on never-before-seen data? To answer such questions, there is a renewed interest in so-called explainable $A I ^ { 1 }$ . The central goal in this (re)invigorated space is the development of machine learning systems that are designed to be more interpretable and explanatory. ",
63
+ "bbox": [
64
+ 173,
65
+ 476,
66
+ 825,
67
+ 601
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Explanation-by-correspondence: One attractive approach to interpretability stems from casebased reasoning or “explanation-by-example” (Lipton, 2016). Such an approach dates back to classic AI systems that predict medical diagnoses or legal judgments that were justified through case studies or historical precedent (Aamodt $\\&$ Plaza, 1994). For example, radiologists can justify diagnoses of an imaged tumor as ‘malignant’ by reference to a previously-seen example (Caruana et al., 1999). However, this approach can generate only $N$ explanations given $N$ training exemplars. Our work demonstrates that deep networks can generate exponentially more explanations through composition: e.g., this part of the image looks like this part of exemplar A, while another part looks like that part of exemplar B. We term this “explanation-by-correspondence”, since our explanations provide detailed correspondence of parts (or even pixels) of a query image to a set of exemplars. ",
74
+ "bbox": [
75
+ 173,
76
+ 608,
77
+ 825,
78
+ 747
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Spatial prediction: In this work, we focus on the class of CNNs designed to make predictions at each image pixel. Many problems in computer vision can be cast in this framework, e.g., semantic segmentation, depth estimation, image synthesis, and image translation. We explore a simple hypothesis for explaining the behavior of such networks: they operate by cutting-and-pasting image patches found in training data. Consider the top row of Fig. 1, where we visualize the output of Isola et al. (2016)’s translation network trained to synthesize images of building facades from label masks. Why does the network generate the strange diagonal gray edge at the top? To answer this question, we visualize image pixels extracted from the closest-matching nearest-neighbor (NN) patches found in the training data. Remarkably, NN-synthesis looks quite similar to the CNN output, providing a clear explanation for the synthesized corner artifact. ",
85
+ "bbox": [
86
+ 173,
87
+ 753,
88
+ 825,
89
+ 892
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/3068de974981f909e4dbd8e7e2ab4168f3e7f7946c8802c8d041f6e90ffc8e33.jpg",
96
+ "image_caption": [
97
+ "Figure 1: We propose a non-parametric method to explain and modify the behavior of convolutional Figure 1: We propose a non-parametric method to explain and modifyrametric method to explain and modify the behavior of convolutionalnetworks, including those that classify pixels and those that generate images. For example, given the label mask on the top, why does a network generate strange gray border artifacts? Given the cluding those that classify pixels and those that generate images. Forluding those that classify pixels and those that generate images. For enetworks, including those that classify pixels and those that generate classify pixels and those that generate images. For example, givenimage on the bottom, how is a network able to segment out the left-most telephone pole in shadow? ask on the top, why does a network generate strange gray border artifk on the top, why does a network generate strange gray border artifacthe label mask on the top, why does a network generate strange grayy does a network generate strange gray border artifacts? Given theWe advocate an “explanation-by-example” approach to interpretation (Caruana et al., 1999). Next to the CNN output, we show the closest-matching training exemplar image. It appears to provide e bottom, how is a network able to segment out the barely-visible la bottom, how is a network able to segment out the barely-visible lam coarse explanations of such behaviors, though the quality of the output is still lacking (e.g., addixplanation-by-example” approach to interpretation (Caruana et al., 19planation-by-example” approach to interpretation (Caruana et al., 199vocate an “explanation-by-example” approach to interpretation (Carumple” approach to interpretation (Caruana et al., 1999). Next to thetional cars are hallucinated in the bottom row). One the right, we show the output obtained through CNN output, we show the closest-matching training exemplar image.est-matching training exemplar image. It appears to provide coarsea compositional nearest-neighbor operation that simply (1) matches input patches to those in the training set and (2) returns the corresponding output label. This means that the output is created by s of such behaviors, though the quality of the output is still lacking (e.g.of such behaviors, though the quality of the output is still lacking (e.g., cutting-and-pasting (composing) patches of training images. To ensure that inconsistent patches are ated in the bottom row). One the right, we show the output obtainedted in the bottom row). One the right, we show the output obtained tare hallucinated in the bottom row). One the right, we show the outrow). One the right, we show the output obtained through a com-not composed together, one needs to match patches using an embedding that captures both global semantics (e.g., architectural styles) and local structure (e.g., windows versus doors). We demonearest-neighbor operation that simply (1) matches input patches to thoarest-neighbor operation that simply (1) matches input patches to those strate that local convolutional neighborhoods of feature activations produce such rich embedding. eturns the corresponding output label. This means that the output is crturns the corresponding output label. This means that the output is creaset and (2) returns the corresponding output label. This means that thending output label. This means that the output is created by cutting-Such a perspective allows one to explain errors and modify the biases of a network by changing the and-pasting (composing) patches of thes of training images. To ensure thatset of image patches used for non-parametric matching. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 214,
102
+ 102,
103
+ 785,
104
+ 422
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "., architectural styles) and local structure (e.g., windows versus doors). architectural styles) and local structure (e.g., windows versus doors). Wmantics (e.g., architectural styles) and local structure (e.g., windows ves) and local structure (e.g., windows versus doors). We demonstrateCompositional nearest-neighbors: Our central thesis is consistent with recent work on network that local convolutional neighborhoods of feature activations produceorhoods of feature activations produce such rich embedding. Such amemorization (Zhang et al., 2016), but notably, naive memorization fails to explain how and why perspective allows one to explain errors and modify the biases of a neain errors and modify the biases of a network by changing the set ofnetworks generalize to never-before-seen data. We explain the latter through composition: the synallows one to explain errors and modify the biases of a network by challows one to explain errors and modify the biases of a network by chan thesized output in Fig. 1 consists of image patches copied from different training images. Given a es useds used foimagerametricdatabase of $N$ r non-parametrnon-parametricatches used foratching. [Devtraining images with $K$ matching. [Deva: Can you switcmatching. [Deva: Can you switchon-parametric matching. [Deva: Ca Can you switch the order of compixels each, global nearest-neighbors can produce $N$ the ore orde you s nnpossible and global nn, like teaser-deva.pdf?]a.pdf?]output images. On the other hand, compositional nearest-neighbors can produce $( N K ) ^ { K }$ outputs, nn, like teaser-deva.pdf?]n, like teaser-deva.pdf?]an exponentially larger set of outputs. Each output image can be obtained by independently matching each of the $K$ patches in the input query to one of $N K$ patches in the training set. However, many of these outputs may be unrealistic. For example, one should not synthesize a facade by composing a door above a window. To ensure global consistency, one needs to match patches using a carefully-tuned metric that captures such global knowledge. But where do we obtain such a metric? ",
111
+ "bbox": [
112
+ 173,
113
+ 694,
114
+ 825,
115
+ 847
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Patch embeddings: Much past work has demonstrated that intermediate feature activations of a nal nearest-neighbors: Our central thesis is consistent with recent wal nearest-neighbors: Our central thesis is consistent with recent woCompositional nearest-neighbors: Our central thesis is consistent bors: Our central thesis is consistent with recent work on networkneural network can be interpreted as global embeddings for comparing entire images. For exammemorization (Zhang et al., 2016), but notably, naive memorization f016), but notably, naive memorization fails to explain how and whyple, Sharif Razavian et al. (2014); Devlin et al. (2015) show that the penultimate (“FC7”) layer of n (Zhang et al., 2016), but notably, naive memorization fails to expla (Zhang et al., 2016), but notably, naive memorization fails to explainimage classification networks learn embeddings of images that produce remarkably accurate nearestneralize to never-before-seen data. We explain the latter through comperalize to never-before-seen data. We explain the latter through compos neighbors. We apply this observation to spatial prediction networks in order to learn local embeddings of image patches or even pixels. These embeddings are quite rich in that they encode semantic knowledge that is both local (geometric structures centered at the pixel) and global (e.g., color and architectural style of the entire facade). ",
122
+ "bbox": [
123
+ 174,
124
+ 854,
125
+ 823,
126
+ 924
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 176,
135
+ 103,
136
+ 823,
137
+ 145
138
+ ],
139
+ "page_idx": 2
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Correspondence and bias: Beyond being a mechanism for interpretation, we demonstrate that compositional NN matching is a viable algorithm that may approach the accuracy of highly-tuned CNNs. Although slower than a feed-forward net, compositional matching is attractive in two respects: (1) It provides spatial correspondences between pixels in the predicted output and pixels in the training set. Spatial correspondences may be useful in practical applications such as label transfer (Liu et al., 2011). (2) Implicit biases of the network can be explicitly manipulated by changing the set of images used for matching – it need not be the same set used for training the network. As an illustrative example, we can force a pre-trained image generation network to predict European or American building facades by restricting the set of images used for matching. Such a manipulation may, for example, be used to modify a biased face recognition network to process genders and races in a more egalitarian fashion. ",
144
+ "bbox": [
145
+ 174,
146
+ 152,
147
+ 825,
148
+ 305
149
+ ],
150
+ "page_idx": 2
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Contribution: We introduce a Compositional Nearest Neighbors pipeline for interpreting and modifying the behavior of Convolutional Neural Networks. Specifically, we demonstrate that CNNs appear to work by memorizing image patches from training data, and then composing them into new configurations. To make compositional matching viable, CNNs learn a local embedding of image patches that captures both global and local semantics. An accurate local embedding is crucial in order to efficiently process an exponentially-large set of potential outputs. We validate our hypothesis on state-of-the-art networks for image translation and semantic image segmentation. Finally, we also show evidence that compositional matching can be used to predict activations of internal layers, generate spatial correspondences, and manipulate the implicitly-learned biases of a network. ",
155
+ "bbox": [
156
+ 174,
157
+ 311,
158
+ 825,
159
+ 438
160
+ ],
161
+ "page_idx": 2
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 RELATED WORK ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 176,
169
+ 468,
170
+ 344,
171
+ 484
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "We broadly classify networks for spatial prediction into two categories: (1) discriminative prediction, where one is seeking to infer high-level semantic information from RGB values; and (2) image generation, where the intent is to synthesize a new image from a given input “prior”. There is a broad literature for each of these tasks, and here we discuss the ones most relevant to ours. ",
178
+ "bbox": [
179
+ 174,
180
+ 506,
181
+ 823,
182
+ 561
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Discriminative models: An influential formulation for state-of-the-art spatial prediction tasks is that of fully convolutional networks (Long et al., 2015). These have been used for pixel prediction problems such as semantic segmentation (Long et al., 2015; Hariharan et al., 2015; Ronneberger et al., 2015; Bansal et al., 2017a; Chen et al., 2016), depth/surface-normal estimation (Bansal et al., 2016; Eigen & Fergus, 2015), or low-level edge detection (Xie & Tu, 2015; Bansal et al., 2017a). Substantial progress has been made to improve the performance by employing deeper architectures (He et al., 2015), or increasing the capacity of the models (Bansal et al., 2017a), or utilizing skip connections, or intermediate supervision (Xie & Tu, 2015). However, we do not precisely know what these models are actually capturing to do pixel-level prediction. In the race for better performance, the interpretability of these models has been typically ignored. In this work, we focus on interpreting encoder-decoder architectures for spatial classification (Ronneberger et al., 2015; Badrinarayanan et al., 2017). ",
189
+ "bbox": [
190
+ 173,
191
+ 569,
192
+ 825,
193
+ 736
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Image generation: Goodfellow et al. (2014) proposed a two-player min-max formulation where a generator $G$ synthesized an image from random noise $z$ , and a discriminator $( D )$ is used to distinguish the generated images from the real images. While this Generative Adversarial Network (GAN) formulation was originally proposed to synthesize an image from random noise vectors $z$ , this formulation could also be used to synthesize new images from other priors, such as, a low resolution image or label mask by treating $z$ as an explicit input to be conditioned upon. This conditional image synthesis via generative adversarial formulation has been well utilized by multiple follow-up works to synthesize a new image conditioned on a low-resolution image (Denton et al., 2015), class labels (Radford et al., 2015), and other inputs (Isola et al., 2016; Zhu et al., 2017). While the quality of synthesis from different inputs has rapidly improved in recent history, interpretation of GANs has been relatively unexplored. In this work, we examine the influential Pix2Pix network Isola et al. (2016) and demonstrate an intuitive non-parametric representation for explaining its impressive results. ",
200
+ "bbox": [
201
+ 173,
202
+ 743,
203
+ 825,
204
+ 922
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Interpretability: There is a substantial body of work (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Zhou et al., 2014; Bau et al., 2017) on interpreting general convolutional neural networks (CNNs). The earlier work of Zeiler & Fergus (2014) presented an approach to understand and visualize the functioning of intermediate layers of CNN. Mahendran & Vedaldi (2015) proposed to invert deep features to visualize what is learned by CNNs, similar to inverting HOG features to understand object detection (Vondrick et al., 2013). Zhou et al. (2014) demonstrated that object detectors automatically pop up while learning the representation for scene categories. Krishnan & Ramanan (2016) explored interactive modification of a pre-trained network to learn novel concepts, and recently Bau et al. (2017) proposed to quantify interpretability by measuring scene semantics such as objects, parts, texture, material etc. Despite this, understanding the space of pixel-level CNNs is not well studied. The recent work of PixelNN (Bansal et al., 2017b) focuses on highquality image synthesis by making use of a two-stage matching process that begins by feed-forward CNN processing and ends with a nonparametric matching of high-frequency detail. We differ in our focus on interpretability rather than image synthesis, our examination of networks for both discriminative classification and image synthesis, and our simpler single-stage matching process that does not require feed-forward processing. ",
211
+ "bbox": [
212
+ 174,
213
+ 104,
214
+ 825,
215
+ 325
216
+ ],
217
+ "page_idx": 3
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Compositionality: The design of part-based models (Crandall et al., 2005; Felzenszwalb et al., 2008), pictorial structures or spring-like connections (Fischler & Elschlager, 1973; Felzenszwalb & Huttenlocher, 2005), star-constellation models (Weber et al., 2000; Fergus et al., 2003), and the recent works using CNNs share a common theme of compositionality. While the earlier works explicitly enforce the idea of composing different parts for object recognition in the algorithmic formulation, there have been suggestions that CNNs also take a compositional approach (Zeiler & Fergus, 2014; Krishnan & Ramanan, 2016; Bau et al., 2017). We see compositional embeddings as rather different than compositional objects/parts. Using (Hinton, 1986)’s terminology, embeddings can be viewed as “distributed representations”, while objects/parts can be viewed as “sparse representations”. Much past work has argued that distributed representations are central to the success of deep networks (LeCun et al., 2015). We agree and posit that this is one reason why CNNs outperform classic hierarchical models of parts/objects. Specifically, Girshick et al. (2015) point out that classic part models can be implemented as CNNs with sparse activations, where individual neurons correspond to individual part responses. In practice, many neurons are not interpretable when examined individually, as pointed out by Zhou et al. (2014). An embedding perspective offers one solution that does not require individual dimensions to be meaningful - e.g., nearest neighbors in an embedding will not change if one applies a well-behaved linear transformation (e.g., rotation) to the embedding space. This is consistent with past work (Szegedy et al., 2013) that suggests that that linear combinations of activations are equally as informative as the original activations. Finally, if high-level activations represent objects, how can 4K activations (e.g., the typical dimension of FC7) represent $3 0 \\mathrm { K } +$ objects (Biederman, 1987)? Our central thesis is that activations do not correspond to individual objects/parts, but rather the dimensions of a local embedding space in which objects/parts are points (matchable with nearest-neighbors). ",
222
+ "bbox": [
223
+ 173,
224
+ 332,
225
+ 825,
226
+ 651
227
+ ],
228
+ "page_idx": 3
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "3 COMPOSITIONAL NEAREST NEIGHBORS ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 671,
237
+ 539,
238
+ 688
239
+ ],
240
+ "page_idx": 3
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "We now introduce our method to interpret various fully convolutional networks designed for pixellevel tasks. ",
245
+ "bbox": [
246
+ 173,
247
+ 703,
248
+ 823,
249
+ 732
250
+ ],
251
+ "page_idx": 3
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "Global nearest-neighbors: Our starting point is the observation that classification networks can be interpreted as linear classifiers defined on nonlinear features extracted from the penultimate layer (e.g., “FC7” features) of the network. We formalize this perspective with the following notation: ",
256
+ "bbox": [
257
+ 174,
258
+ 738,
259
+ 825,
260
+ 780
261
+ ],
262
+ "page_idx": 3
263
+ },
264
+ {
265
+ "type": "equation",
266
+ "img_path": "images/f1379188a8de3754e8cbe38e8d7bc29e6ba397d84aeebf5864036e060efd3be6.jpg",
267
+ "text": "$$\n\\operatorname { L a b e l } ( x ) = k ^ { * } \\quad { \\mathrm { w h e r e } } \\quad k ^ { * } = { \\underset { k \\in \\{ 1 \\ldots K \\} } { \\operatorname { a r g m a x } } } \\ w _ { k } \\cdot \\phi ( x ) , \\qquad [ \\operatorname { K - w a y } \\ { \\mathrm { c l a s s i f i c a t i o n } } ]\n$$",
268
+ "text_format": "latex",
269
+ "bbox": [
270
+ 235,
271
+ 786,
272
+ 759,
273
+ 815
274
+ ],
275
+ "page_idx": 3
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "where $\\boldsymbol { \\phi } ( \\boldsymbol { x } ) \\in \\mathbb { R } ^ { N }$ corresponds to the penultimate FC7 features computed from input image $x$ . Typically, the parameters of the linear classifier $\\{ w _ { y } \\}$ and those of the feature encoder $\\phi ( \\cdot )$ are trained on large-scale supervised datasets: ",
280
+ "bbox": [
281
+ 174,
282
+ 821,
283
+ 825,
284
+ 864
285
+ ],
286
+ "page_idx": 3
287
+ },
288
+ {
289
+ "type": "equation",
290
+ "img_path": "images/576c37b5ca610461707ad3a1be87afa8242c89741cac79c3588d46624903fac1.jpg",
291
+ "text": "$$\n\\mathcal { D } = \\{ ( x _ { n } , y _ { n } ) \\} . \\quad [ \\mathrm { T r a i n i n g ~ d a t a b a s e } ]\n$$",
292
+ "text_format": "latex",
293
+ "bbox": [
294
+ 370,
295
+ 871,
296
+ 629,
297
+ 890
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Devlin et al. (2015) make the observation that penultimate features $\\phi ( x )$ can be interpreted as an embedding in $\\mathbb { R } ^ { N }$ . By extracting such embeddings for training images $x _ { n }$ , Devlin et al. (2015) build ",
304
+ "bbox": [
305
+ 173,
306
+ 895,
307
+ 823,
308
+ 924
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "image",
314
+ "img_path": "images/086b38ab71ff270080fe87eb0eb7bf231b3635e2466888a05e7e6ce45710b947.jpg",
315
+ "image_caption": [
316
+ "Figure 2: Overview of pipeline: Given an input label or image (top-left of each box), our approach extracts an embedding for each pixel. We visualize two pixels with a yellow and white dot. The embedding captures both local and global context, which are crudely visualized with the surrounding rectangular box. We then find the closest matching patches in the training set (with a nearest neighbor search), and then report back the corresponding pixel labels to generate the final output (bottom-left of each box). We visualize an example for label-to-image synthesis on the left, and image-to-label prediction on the right. "
317
+ ],
318
+ "image_footnote": [],
319
+ "bbox": [
320
+ 194,
321
+ 103,
322
+ 807,
323
+ 258
324
+ ],
325
+ "page_idx": 4
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "a nonparametric nearest-neighbor (NN) predictor for complex tasks such as image captioning. We write this as follows: ",
330
+ "bbox": [
331
+ 173,
332
+ 393,
333
+ 823,
334
+ 422
335
+ ],
336
+ "page_idx": 4
337
+ },
338
+ {
339
+ "type": "equation",
340
+ "img_path": "images/163d19c35f4ba5d7aa0c29a0a4a1e79244a84ac928e09ba15085bcd62630039e.jpg",
341
+ "text": "$$\n\\operatorname { L a b e l } ( x ) = y _ { n ^ { * } } \\quad { \\mathrm { w h e r e } } \\quad n ^ { * } = \\operatorname { a r g m i n } _ { n } \\operatorname { D i s t } \\Bigl ( \\phi ( x ) , \\phi ( x _ { n } ) \\Bigr ) . \\qquad [ \\operatorname { G l o b a l } \\operatorname { N I }\n$$",
342
+ "text_format": "latex",
343
+ "bbox": [
344
+ 236,
345
+ 422,
346
+ 741,
347
+ 453
348
+ ],
349
+ "page_idx": 4
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Importantly, the above NN classifier performs quite well even when feature encoders $\\phi ( \\cdot )$ are trained for classification rather than as an explicit embedding. In some sense, deep nets seem to implicitly learn embeddings upon which simple linear classifiers (or regressors) operate. We argue that such a NN perspective is useful in interpreting the predicted classification since the corresponding training example can be seen as a visual “explanation” of the prediction - e.g., the predicted label for $x$ is “dog” because $x$ looks similar to training image $x _ { n * }$ . ",
354
+ "bbox": [
355
+ 174,
356
+ 457,
357
+ 825,
358
+ 541
359
+ ],
360
+ "page_idx": 4
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Pixel nearest-neighbors: We now extend the above observation to pixel-prediction networks that return back a prediction for each pixel $i$ in an image: ",
365
+ "bbox": [
366
+ 173,
367
+ 547,
368
+ 825,
369
+ 577
370
+ ],
371
+ "page_idx": 4
372
+ },
373
+ {
374
+ "type": "equation",
375
+ "img_path": "images/b4be8991639712792433c17c97ba6bfef7cc4f54822c74cd1a6b45554caa4bc0.jpg",
376
+ "text": "$$\n\\operatorname { L a b e l } _ { i } ( x ) = k ^ { * } \\quad { \\mathrm { w h e r e } } \\quad k ^ { * } = \\operatorname { a r g m a x } _ { k \\in \\{ 1 . . . K \\} } w _ { k } \\cdot \\phi _ { i } ( x ) . \\qquad [ \\operatorname { K - w a y } \\operatorname { p i x e l } \\operatorname { c l a s s i f i c a t i o n } ]\n$$",
377
+ "text_format": "latex",
378
+ "bbox": [
379
+ 214,
380
+ 579,
381
+ 781,
382
+ 608
383
+ ],
384
+ "page_idx": 4
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "We write $\\mathrm { L a b e l } _ { i } ( \\cdot )$ for the label of the $i ^ { t h }$ pixel and $\\phi _ { i } ( \\cdot )$ for its corresponding feature vector. Because we will also examine pixel-level prediction networks trained to output a continuous value, we write out the following formulation for pixel-level regression: ",
389
+ "bbox": [
390
+ 174,
391
+ 612,
392
+ 825,
393
+ 655
394
+ ],
395
+ "page_idx": 4
396
+ },
397
+ {
398
+ "type": "equation",
399
+ "img_path": "images/ff1635e039e21b20bf93b66273326e30e034a3b8acf857d0462d7888f3867055.jpg",
400
+ "text": "$$\n\\mathrm { P r e d i c t } _ { i } ( x ) = W \\phi _ { i } ( x ) \\quad \\mathrm { w h e r e } \\quad W \\in \\mathbb { R } ^ { M \\times N } . \\qquad [ \\mathrm { P i x e l ~ r e g r e s s i o n } ]\n$$",
401
+ "text_format": "latex",
402
+ "bbox": [
403
+ 266,
404
+ 659,
405
+ 732,
406
+ 678
407
+ ],
408
+ "page_idx": 4
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "For concreteness, consider a Pix2Pix (Isola et al., 2016) network trained to regress RGB values at each pixel location. These predictions are obtained by convolving features from the penultimate layer with filters of size $4 \\times 4 \\times 1 2 8$ . In this case, the three filters that generate R,G, and B values can be written as a matrix $W$ of size $M \\times N$ , where $M = 3$ and $N = 4 * 4 * 1 2 8 = 2 0 4 8$ . Analogously, $\\phi _ { i } ( x )$ corresponds to $N$ dimensional features extracted by reshaping local $4 \\times 4$ convolutional neighborhoods of features from the penultimate feature map (of size $H \\times W \\times 1 2 8$ ). We now can perform nearest-neighbor regression to output pixel values: ",
413
+ "bbox": [
414
+ 173,
415
+ 680,
416
+ 825,
417
+ 779
418
+ ],
419
+ "page_idx": 4
420
+ },
421
+ {
422
+ "type": "equation",
423
+ "img_path": "images/c13abb85ec8da90b15693ad6c696c776df5cd5dac6022aa66fd8666d23cf2976.jpg",
424
+ "text": "$$\n\\mathsf { r e d i c t } _ { i } ( x ) = y _ { n ^ { * } , m ^ { * } } \\quad \\mathrm { w h e r e } \\quad ( n ^ { * } , m ^ { * } ) = \\underset { n , m } { \\mathrm { a r g m i n } } \\mathrm { D i s t } \\Big ( \\phi _ { i } ( x ) , \\phi _ { m } ( x _ { n } ) \\Big ) , \\qquad [ \\mathrm { C o m p ~ N N ~ P i x e l s ~ o f ~ \\phi _ { i } ( x ) ~ , }\n$$",
425
+ "text_format": "latex",
426
+ "bbox": [
427
+ 183,
428
+ 781,
429
+ 826,
430
+ 813
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "where $y _ { n ^ { * } , m ^ { * } }$ refers to the $m ^ { t h }$ pixel from the $n ^ { t h }$ training image. Importantly, pixel-level nearest neighbors reveals spatial correspondences for each output pixel. We demonstrate that these can be used to provide an intuitive explanation of pixel outputs, including an explanation of errors that otherwise seem quite mysterious (see Fig.1 and Fig. 2). ",
437
+ "bbox": [
438
+ 174,
439
+ 818,
440
+ 825,
441
+ 876
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Distance function: We explored different distance functions such as Euclidean and cosine distance. Similar to past work (Devlin et al., 2015), we found that cosine distance consistently performed slightly better, so we use that in all of our experiments. ",
448
+ "bbox": [
449
+ 174,
450
+ 881,
451
+ 823,
452
+ 924
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "image",
458
+ "img_path": "images/10f6fef70cbf81fb141b8eeff16ec182f7dc49ff393ea7106efecb1bb82dc1ca.jpg",
459
+ "image_caption": [
460
+ "Figure 3: We visualize a non-parametric approach to computing activations from internal layers. By matching to a training database of $\\mathop { d e c o d e r _ { 4 } }$ features from Pix2Pix, we can compute activations for the next layer (decoder3) with nearest-neighbors. Each image represents a feature map of 3 continuous channels visualized in the R,G, and B planes. The collective set of 4 images displays 12 out of the 256 channels in decoder3. Global nearest-neighbors (i.e., matching to the training image with the most similar $\\mathop { d e c o d e r _ { 4 } }$ layer and returning its associated decoder3 layer) produces poor matches, but compositional-pasting matches together from different exemplars produce activations that are nearly identical to those computed by the underlying CNN. "
461
+ ],
462
+ "image_footnote": [],
463
+ "bbox": [
464
+ 228,
465
+ 102,
466
+ 771,
467
+ 289
468
+ ],
469
+ "page_idx": 5
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "Convolutional embeddings: We now extend our compositional nearest-neighbor formulation to internal convolutional layers. Recall that activations $a$ at a spatial position $i$ and layer $j$ can be computed using thresholded linear functions of features (activations) from the previous layer: ",
474
+ "bbox": [
475
+ 174,
476
+ 443,
477
+ 825,
478
+ 486
479
+ ],
480
+ "page_idx": 5
481
+ },
482
+ {
483
+ "type": "equation",
484
+ "img_path": "images/fb6cdaf554a3fc15477c82b1d2ac70e485e15763163708dc7ce2221ed419b97d.jpg",
485
+ "text": "$$\na _ { i j } ( x ) = \\operatorname* { m a x } { \\Bigl ( } 0 , W \\phi _ { i j } ( x ) { \\Bigr ) } , \\qquad \\mathrm { w h e r e } \\quad a _ { i j } \\in \\mathbb { R } ^ { M } , \\phi _ { i j } \\in \\mathbb { R } ^ { N } , W \\in \\mathbb { R } ^ { M \\times N }\n$$",
486
+ "text_format": "latex",
487
+ "bbox": [
488
+ 233,
489
+ 492,
490
+ 764,
491
+ 518
492
+ ],
493
+ "page_idx": 5
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "where we write $a _ { i j }$ for the vector of activations corresponding to the $i ^ { t h }$ pixel position from layer $j$ , possibly computed with bilinear interpolation (Long et al., 2015). We write $\\phi _ { i j }$ for the local convolutional neighborhood of features (activations) from the previous layer that are linearly combined with bank of linear filters $W$ to produce $a _ { i j }$ . For concreteness, let the previous layer be decoder4 from Pix2Pix, and the current layer be decoder3. We can then write, $a _ { i j } \\in R ^ { M }$ where $M = 2 5 6$ and $\\phi _ { i j } \\in R ^ { N }$ where $N = 4 * 4 * 5 1 2 = 8 1 9 2$ . We similarly posit that one can produce approximate activations by nearest neighbors. Specifically, let us run Pix2Pix on the set of training images, and construct a dataset of training patches with features $\\phi _ { i j } ( x _ { n } )$ as data and corresponding activation vectors $a _ { i j } ( x _ { n } )$ as labels. We can then predict activation maps for a query image $x$ with NN: ",
498
+ "bbox": [
499
+ 173,
500
+ 526,
501
+ 825,
502
+ 657
503
+ ],
504
+ "page_idx": 5
505
+ },
506
+ {
507
+ "type": "equation",
508
+ "img_path": "images/6e14ec8c99a8c352b3b986f097346e55b295aaa06d8fe998fc05c10424ad4edd.jpg",
509
+ "text": "$$\na _ { i j } ( x ) = a _ { m ^ { * } , j } ( x _ { n ^ { * } } ) \\quad { \\mathrm { w h e r e } } \\quad ( m ^ { * } , n ^ { * } ) = \\underset { m , n } { \\mathrm { a r g m i n } } \\ : \\mathrm { D i s t } \\Bigl ( \\phi _ { i j } ( x ) , \\phi _ { m j } ( x _ { n } ) \\Bigr ) .\n$$",
510
+ "text_format": "latex",
511
+ "bbox": [
512
+ 173,
513
+ 664,
514
+ 678,
515
+ 695
516
+ ],
517
+ "page_idx": 5
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "Notably, this is done without requiring explicit access to the filters $W$ . Rather such responses are implicitly encoded in the training dataset of patches and activation labels. We show that such an approach actually produces reasonable activations (Fig. 3). ",
522
+ "bbox": [
523
+ 176,
524
+ 702,
525
+ 826,
526
+ 744
527
+ ],
528
+ "page_idx": 5
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "Patch nearest-neighbors: The previous paragraph demonstrated that composing image patches using embeddings from interior layers could “explain” the behavior of the subsequent layer. We now ask a more ambitious question - could such a procedure “explain” the behavior of all subsequent layers? That is, could it produce output predictions that mimic the behavior of the entire network? To do so, we regress the final-layer pixel value from each stored patch: ",
533
+ "bbox": [
534
+ 173,
535
+ 751,
536
+ 826,
537
+ 821
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "equation",
543
+ "img_path": "images/d9b2cf94746e6bec2c1139e6abb07caf68cd3257f0d43603fc06df3e530d2514.jpg",
544
+ "text": "$$\n{ \\mathrm { P r e d i c t } } _ { i j } ( x ) = y _ { n ^ { * } , m ^ { * } } \\quad { \\mathrm { w h e r e } } \\quad ( n ^ { * } , m ^ { * } ) = { \\underset { n , m } { \\mathrm { a r g m i n } } } { \\mathrm { D i s t } } \\Bigl ( \\phi _ { i j } ( x ) , \\phi _ { m j } ( x _ { n } ) \\Bigr ) .\n$$",
545
+ "text_format": "latex",
546
+ "bbox": [
547
+ 169,
548
+ 828,
549
+ 691,
550
+ 859
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "[Comp NN Patches] ",
557
+ "bbox": [
558
+ 720,
559
+ 834,
560
+ 852,
561
+ 849
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "As written, the above procedure is inefficient because features are interpolated (to pixel resolution) before they are matched to the patch database. Instead, it is natural to match features at their native resolution, and then interpolate the matches. This results in significant speed ups. For example, the bottleneck layer has an activation map of size $1 \\times 1 \\times 5 1 2$ . Matching to bottleneck features in the re y refers to pixels of set S (m⇤) from the nth training image.training set is quite fast because it acts as a compact global descriptor for matching entire images. j The downside is that the matches are not compositional. By matching to convolutional embeddings rse-to-fine nearest-neighbor search: An important special case is the bottleneck feature, whichextracted from later layers, one can compute progressively more compositional matches, that are omputed from an activation map of size 1 ⇥ 1 ⇥ 512. In this case, we posit that the corresponding512initially global, then patch-based, and finally pixel-based (see Fig. 4). In our experiments, we found ure \u0000ij (x) 2 R is a good global descriptor of image x. In our experiments, we found thatthat such patch embeddings could be used to prune the NN pixel search, significantly speeding up run-time performance (e.g., we first prune the training database to a shortlist of images with similar bottleneck features, and then search through these images for similar patches, and then search through those patches for similar pixels). ",
568
+ "bbox": [
569
+ 174,
570
+ 881,
571
+ 825,
572
+ 924
573
+ ],
574
+ "page_idx": 5
575
+ },
576
+ {
577
+ "type": "image",
578
+ "img_path": "images/0c1372504d35f1c2317feb5577039d1e3798a26a4860ffdf287db12a4dec58b1.jpg",
579
+ "image_caption": [
580
+ "Comp-NN in different embedding space: [Deva: Add the input label image on theFigure 4: Adding composition by matching to later layers: We apply compositional nearestneighbor matching to features extracted from different layers, starting with the bottleneck layer 6 2 and progressing to the penultimate deconv2 layer. We match local neighborhoods of convolutional embeddings, which naturally allows for more composition as we use later laters. "
581
+ ],
582
+ "image_footnote": [],
583
+ "bbox": [
584
+ 179,
585
+ 104,
586
+ 820,
587
+ 193
588
+ ],
589
+ "page_idx": 6
590
+ },
591
+ {
592
+ "type": "image",
593
+ "img_path": "images/2f69f8c3f1a1c1a94d612af578ad3b9b81228e2ebe646b107d6af265738d00e4.jpg",
594
+ "image_caption": [
595
+ "ixels to apply a linear projection. For correctness, considering feature positions i in decoder4Figure 5: Original labels v.s. self-supervised labels: Given the label input on the left, we show reh a shape of 32 ⇤ 32 ⇤ 256, we can rewrite i as (x, y) where x = i/32, y = i%32. Thus, eachsults of Pix2Pix in the Convolutional Neural Networks column, and non-parametric matching to the ure is corresponding to a 8 ⇤ 8 image patch on final output with a shape of 256 ⇤ 256 ⇤ 3. Hence,training set using the original labels and the predicted “self-supervised” labels of the Pix2Pix netj ⇤ ⇤ ⇤ ⇤work. Generating images with the predicted labels looks smoother, though the qualitative behavior ...3]. Thus, one can generate output results by constructing a dataset of training patches withof the network is still explained by the original training labels. We quantify this in our experimental ij n n,Sj (i) results, and include additional qualitative visualizations of the original and self-supervised labels in Figs. 13 and 14. "
596
+ ],
597
+ "image_footnote": [],
598
+ "bbox": [
599
+ 210,
600
+ 289,
601
+ 782,
602
+ 493
603
+ ],
604
+ "page_idx": 6
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "",
609
+ "bbox": [
610
+ 173,
611
+ 633,
612
+ 825,
613
+ 761
614
+ ],
615
+ "page_idx": 6
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Bias modification: Finally, our results suggest that the matching database from Eq.(2) serves as mory by changing the dataset of training images x , labels y , or both. We experimentan explicit “associative memory” of a network (Carpenter, 1989). We can explicitly modify the various modifications in our experimental results. Onememory by changing the dataset of training images $\\ { \\bar { \\{ \\{ x } } _ { n } \\}$ cation th, labels $\\left\\{ y _ { n } \\right\\}$ sistently produced, or both. We experiment other visual results was to refine the training labels to those predicted by a network:with various modifications in our experimental results. One modification that consistently produced \u0000\u0000 \u0000 \u0000 \u0000 smoother visual results was to refine the training labels to those predicted by a network: ",
620
+ "bbox": [
621
+ 173,
622
+ 766,
623
+ 825,
624
+ 837
625
+ ],
626
+ "page_idx": 6
627
+ },
628
+ {
629
+ "type": "equation",
630
+ "img_path": "images/772a8f528085efca673a89876b1e1ccc2fbcf69755453b882ddbcdb4088fb2bd.jpg",
631
+ "text": "$$\n\\{ \\left( x _ { n } , y _ { n } \\right) \\} \\Rightarrow \\{ \\left( x _ { n } , C N N ( x _ { n } ) \\right) \\} .\n$$",
632
+ "text_format": "latex",
633
+ "bbox": [
634
+ 289,
635
+ 843,
636
+ 526,
637
+ 862
638
+ ],
639
+ "page_idx": 6
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "Such as procedure for “self-supervised” learning is sometimes used when training labels are known to be noisy. From an associative network perspective, we posit that such labels capture a more 7faithful representation of a network’s internal memory. Unless otherwise specified, all results make use of the above matching database. We visualize the impact of self-supervised labels in Fig. 5. ",
644
+ "bbox": [
645
+ 174,
646
+ 867,
647
+ 823,
648
+ 924
649
+ ],
650
+ "page_idx": 6
651
+ },
652
+ {
653
+ "type": "image",
654
+ "img_path": "images/68dc94203828b1287562ac58c3ff7116df6b24f7b97e1ec0388f4d5d1ec6db6d.jpg",
655
+ "image_caption": [
656
+ "Figure 6: Reconstruction: We can use our nonparametric matching framework to generate reconstructions by replacing the exemplar target label $y _ { n }$ with the exemplar input image $x _ { n }$ . This can be done for both image generation and discrete label prediction. We find that, perhaps surprisingly, pixel embeddings contain enough local information to reconstruct the input pixel. We show additional results in Fig. 10. "
657
+ ],
658
+ "image_footnote": [],
659
+ "bbox": [
660
+ 197,
661
+ 101,
662
+ 815,
663
+ 260
664
+ ],
665
+ "page_idx": 7
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Reconstruction: We found that replacing the label $y _ { n }$ with the input image $x _ { n }$ is a helpful diagnostic for visualization. This illustrates the ability of the learned embedding and compositional matching framework to reconstruct the input query. The reconstructed input for a global NN match is simply the best-matching exemplar input image (see Fig. 6). We find that, perhaps surprisingly, pixel embeddings contain enough local information to reconstruct the input pixel. We show additional results in our experimental results. ",
670
+ "bbox": [
671
+ 173,
672
+ 368,
673
+ 825,
674
+ 453
675
+ ],
676
+ "page_idx": 7
677
+ },
678
+ {
679
+ "type": "equation",
680
+ "img_path": "images/69ed4d5b2bf6d1b9b5b388d110be54dd18dde467e928e4f215ada278b135f807.jpg",
681
+ "text": "$$\n\\left\\{ \\left( x _ { n } , y _ { n } \\right) \\right\\} \\Rightarrow \\left\\{ \\left( x _ { n } , x _ { n } \\right) \\right\\} \\quad { \\mathrm { [ R e c o n s t r u c t i o n ] } }\n$$",
682
+ "text_format": "latex",
683
+ "bbox": [
684
+ 344,
685
+ 479,
686
+ 653,
687
+ 500
688
+ ],
689
+ "page_idx": 7
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "3.1 SUFFICIENT STATISTICS FOR PIXEL-LEVEL TASKS ",
694
+ "text_level": 1,
695
+ "bbox": [
696
+ 173,
697
+ 520,
698
+ 562,
699
+ 536
700
+ ],
701
+ "page_idx": 7
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "We now discuss information-theoretic properties of the introduced nearest-neighbor embedding $\\phi _ { i } ( \\cdot )$ presented in Sec. 3. Specifically, we show that this embedding produces sufficient statistics (Tishby & Zaslavsky, 2015; Shwartz-Ziv & Tishby, 2017; Achille & Soatto, 2017) for various pixel level tasks. ",
706
+ "bbox": [
707
+ 173,
708
+ 546,
709
+ 825,
710
+ 603
711
+ ],
712
+ "page_idx": 7
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "Global embeddings: We begin with the simpler case of predicting a global class label $y$ from an image $x$ . If we assume that the input image $x$ , global feature embedding $\\phi ( x )$ , and output label $y$ form a Markov chain $x \\to \\phi ( x ) \\to y$ , we can write the following: ",
717
+ "bbox": [
718
+ 173,
719
+ 609,
720
+ 825,
721
+ 654
722
+ ],
723
+ "page_idx": 7
724
+ },
725
+ {
726
+ "type": "equation",
727
+ "img_path": "images/e7154050fdb9a40731d843435e150e1d6ffdc4f7ac7de88f871304e8dc28cf2f.jpg",
728
+ "text": "$$\np ( y ~ | ~ \\phi ( x ) , ~ x ) = p ( y ~ | ~ \\phi ( x ) ) . \\qquad [ \\mathrm { S u f f i c i e n c y } ]\n$$",
729
+ "text_format": "latex",
730
+ "bbox": [
731
+ 341,
732
+ 659,
733
+ 656,
734
+ 676
735
+ ],
736
+ "page_idx": 7
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "As Achille & Soatto (2017) show, standard loss functions in deep learning (such as cross-entropy) search for an embedding that minimizes the entropy of the label $y$ given the representation $\\phi ( x )$ . This observation explicitly shows that the embedding $\\phi ( x )$ is trained to serve as a sufficient representation of the data $x$ that is rich enough in information to predict the label $y$ . In particular, if the learned embedding satisfies the above Markov assumption, the prediction $y$ will not improve even when given access to the raw data $x$ . ",
741
+ "bbox": [
742
+ 174,
743
+ 681,
744
+ 823,
745
+ 766
746
+ ],
747
+ "page_idx": 7
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "Pixel-wise embeddings: Spatial networks predict a set of pixel-wise labels $\\{ y _ { i } \\}$ given an input image. If we assume that the pixel-wise labels are conditionally independent given $\\{ \\phi _ { i } ( x ) \\}$ and $x$ , then we can write the joint posterior distribution over labels with the following product: ",
752
+ "bbox": [
753
+ 174,
754
+ 772,
755
+ 823,
756
+ 815
757
+ ],
758
+ "page_idx": 7
759
+ },
760
+ {
761
+ "type": "equation",
762
+ "img_path": "images/5b956c96126743d6f46c5b022d82acdcd51631578e5b92aaf891753bec1ea1fd.jpg",
763
+ "text": "$$\n\\begin{array} { l l } { { p ( \\{ y _ { i } \\} \\mid \\phi ( x ) , x ) = \\displaystyle { \\prod _ { i } p ( y _ { i } \\mid \\phi ( x ) , x ) } } } & { { \\quad \\scriptstyle { [ \\mathrm { C o n d i t i o n a l ~ S p a t i a l ~ I n d e p e n d e n c e } ] } } } \\\\ { { \\displaystyle { \\phantom { \\sum _ { i } p ( y _ { i } \\mid \\phi ( x ) , x ) } } } } & { { \\quad \\scriptstyle { [ \\mathrm { S u f f i c i e n c y } ] } } } \\end{array}\n$$",
764
+ "text_format": "latex",
765
+ "bbox": [
766
+ 233,
767
+ 820,
768
+ 763,
769
+ 890
770
+ ],
771
+ "page_idx": 7
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "where $\\phi _ { i } ( x )$ are the sufficient statistics needed to predict label $y _ { i }$ , and $\\phi ( x ) ~ = ~ \\{ \\phi _ { i } ( x ) \\}$ is the aggregate set of these sufficient statistics. One can similarly show that pixel-wise cross-entropy losses jointly minimize the entropy of the labels $y _ { i }$ given $\\phi _ { i } ( x )$ . This suggests that pixel-wise features $\\phi _ { i } ( x )$ do serve as a remarkably rich characterization of the image. This characterization includes both global properties (e.g., the color of a building facade being synthesized) as well as local properties (e.g., the presence of a particular window ledge being synthesized). Importantly, this requires the conditional independence assumption from Eq. (11) to be conditioned on the entire image $x$ rather than just the local pixel value $x _ { i }$ (from which it would be hard to extract global properties). ",
776
+ "bbox": [
777
+ 171,
778
+ 895,
779
+ 821,
780
+ 924
781
+ ],
782
+ "page_idx": 7
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "",
787
+ "bbox": [
788
+ 174,
789
+ 103,
790
+ 825,
791
+ 200
792
+ ],
793
+ "page_idx": 8
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "An interesting observation from the factorization shown in Eq. (12) is that we can synthesize an image by predicting pixel values independently. Thus, this theoretical observation suggests that a simple nearest-neighbor regression for every output pixel can synthesize plausible images. ",
798
+ "bbox": [
799
+ 176,
800
+ 208,
801
+ 825,
802
+ 251
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "Multi-layered representations: The above pixel-wise formulation also suggests that internal feature layers serve as sufficient representations to predict activations for subsequent layers. Interestingly, skip connections that directly connect lower layers to higher layers break the Markov independence assumption. In other words, skip connections suggest that higher layer features often do not serve as sufficient representations, in that subsequent predictions improve when given access to earlier layers. However, Eq.(12) technically still holds so long as we write $\\phi _ { i } ( x )$ for the concatenated representation including lower-level features. For example, in Pix2Pix, we write $\\phi _ { i } ( x ) \\in \\mathbb { R } ^ { N }$ where $N = 4 * 4 * ( 6 4 + 6 4 ) = 2 0 4 8$ , where the second set of 64 channel features are copied from the first encoder layer. In the next Section, we show qualitative and quantitative experiments supporting this analysis. ",
809
+ "bbox": [
810
+ 173,
811
+ 257,
812
+ 825,
813
+ 396
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Prior work on embeddings: Now that our framework has been described both algorithmically and theoretically, we compare it to a large body of related work. The idea that intermediate CNN layers learn embeddings is not new. This dates back at least to Caruana et al. (1999), and was popularized in recent history with (Sharif Razavian et al., 2014; Devlin et al., 2015). Indeed, much contemporary work makes use of “off-the-shelf” CNN layers as features, where earlier layers tend to encode more generic feature representations (Zeiler & Fergus, 2013). However, such representations are typically global and refer to the entire image. Alternatively, one can extract local pixel-based feature representations, but these are typically defined by $1 x 1$ slices of a convolutional feature map (Hariharan et al., 2015; Long et al., 2014). Our theoretical analysis, while quite straightforward, shows that the optimal local representation (in terms of sufficiency) is given by a convolutional neighborhood of overlapping activations. Finally, we show that compositional matching with such local embeddings significantly outperforms global matching (see Fig. 3), and rivals the accuracy of feedforward CNN predictions (Table 1). ",
820
+ "bbox": [
821
+ 173,
822
+ 404,
823
+ 825,
824
+ 583
825
+ ],
826
+ "page_idx": 8
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "4 EXPERIMENTS ",
831
+ "text_level": 1,
832
+ "bbox": [
833
+ 176,
834
+ 619,
835
+ 326,
836
+ 635
837
+ ],
838
+ "page_idx": 8
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "We now present experimental results for discriminative networks trained for semantic segmentation, as well as generative networks trained for image synthesis. The goal of the experiments is to show that images generated with a simple NN regression are a good way to interpret the internal operations of a convolutional neural network. ",
843
+ "bbox": [
844
+ 174,
845
+ 659,
846
+ 823,
847
+ 714
848
+ ],
849
+ "page_idx": 8
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Networks: We use SegNet (Badrinarayanan et al., 2017), a recent state-of-the-art network for image segmentation, and Pix2Pix (Isola et al., 2016), a state-of-the-art network for conditional image synthesis and translation. We evaluate our findings for multiple datasets and tasks on which the original networks were trained. These include tasks such as synthesizing facades from architectural labels and vice versa, predicting segmentation class labels from urban RGB images, and synthesizing Google maps from aerial or satellite views. ",
854
+ "bbox": [
855
+ 174,
856
+ 722,
857
+ 825,
858
+ 805
859
+ ],
860
+ "page_idx": 8
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Semantic segmentation: We use the CityScape (Cordts et al., 2016) and CamVid (Brostow et al., 2008; 2009) datasets for the task of semantic segmentation. Both datasets are annotated with semantic class labels for outdoor images collected from a car driving on the road. We use SegNet (Badrinarayanan et al., 2017) for CamVid sequences, and Pix2Pix (Isola et al., 2016) for the CityScape dataset. Figure 7 shows qualitatively results for these datasets. We can observe in Figure 7 that the compositional NN produces a nearly-identical result (CompNN column) to the one produced by the network (Pix2Pix and SegNet columns). This suggests that our method enables a good interpretation of discriminative deep networks on pixel-level classification. ",
865
+ "bbox": [
866
+ 174,
867
+ 811,
868
+ 825,
869
+ 924
870
+ ],
871
+ "page_idx": 8
872
+ },
873
+ {
874
+ "type": "image",
875
+ "img_path": "images/e460edc990296b1f2b28a4c77e96e98f0530f4aca69e53025c155769f3c66238.jpg",
876
+ "image_caption": [
877
+ "Figure 7: Semantic segmentation: The results of semantic segmentation on cityscape and CamVid dataset. This result suggests the following observations. First, the difference between images generated by generative networks (Pix2Pix and SegNet columns) and NN embedding (CompNN column) is surprisingly small. Thus, our method can perfectly interpret discriminative deep networks on pixel-level classification. Second, we can notice some noise edges with a high gradient (see columns 5-8). This phenomenon can also be used to understand the difficulty of image segmentation task: borders with high gradients are usually hard to classify due to the ambiguous patches in training set. "
878
+ ],
879
+ "image_footnote": [],
880
+ "bbox": [
881
+ 184,
882
+ 104,
883
+ 813,
884
+ 299
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "image",
890
+ "img_path": "images/04b1d2bfaa03d00629870b27eade55e7537d0fba1b1daa89447ffe463c4800b4.jpg",
891
+ "image_caption": [
892
+ "Figure 8: Image synthesis: The results suggest that Comp NN (our approach) can also explain the results from $\\mathrm { P i x 2 P i x }$ . We conclude this because our approach reproduces color and the structure of the Pix2Pix output, including a few artifacts (e.g., the image cuts in the 6th and 7th columns). "
893
+ ],
894
+ "image_footnote": [],
895
+ "bbox": [
896
+ 196,
897
+ 439,
898
+ 807,
899
+ 671
900
+ ],
901
+ "page_idx": 9
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Architectural labels-to-facades: We followed Isola et al. (2016) for this setting and used the annotations from (Tylecek & ˇ Sˇ ara, 2013). There are 400 training images in this dataset, and 100 images ´ in the validation set. We use the same dataset to generate architectural labels from images of facades. Pix2Pix (Isola et al., 2016) models are trained using 400 images from the training set for both labels-to-facades and vice versa. Figure 8 shows qualitative examples of synthesizing real-world images using pixel-wise nearest neighbor embedding in its first and second rows. We observe that the NN-embedding perfectly explains the generation of deformed edges (see CompNN column), and how the generative architecture is eventually memorizing patches from the training set. ",
906
+ "bbox": [
907
+ 173,
908
+ 761,
909
+ 825,
910
+ 875
911
+ ],
912
+ "page_idx": 9
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Satellite-to-maps: This dataset contains 1096 training images and 1000 testing images scraped from Google Maps. We use the same settings used by Isola et al. (2016) for this task. Figure 8 qualitatively shows in its third row how Google maps are synthesized from satellite images. We can observe that our synthesis (CompNN column) is nearly identical to the image generated by the network (Pix2Pix columns). ",
917
+ "bbox": [
918
+ 176,
919
+ 882,
920
+ 825,
921
+ 924
922
+ ],
923
+ "page_idx": 9
924
+ },
925
+ {
926
+ "type": "image",
927
+ "img_path": "images/958bb1fb75d50205cb552e76a02cd06ad915669a35f5392c7ed5f97eb977e62f.jpg",
928
+ "image_caption": [
929
+ "Figure 9: Bias modification: Given the same label input, we show different results obtained by matching to different databases (using an embedding learned by Pix2Pix). By modifying the database to include specific buildings from specific locations, one can introduce and remove implicit biases in the original network (e.g.,one can generate “European” facades versus “American” facades). "
930
+ ],
931
+ "image_footnote": [],
932
+ "bbox": [
933
+ 183,
934
+ 107,
935
+ 816,
936
+ 199
937
+ ],
938
+ "page_idx": 10
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "",
943
+ "bbox": [
944
+ 174,
945
+ 353,
946
+ 823,
947
+ 382
948
+ ],
949
+ "page_idx": 10
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Bias modification: Figure 9 shows that the output of nonparametric matching (3rd - 6th columns from left to right) can be controlled through explicit modification of the matching database. In simple words, this experiment shows that we can control properties of the synthesized image by simply specifying the exemplars in the database. We can observe in Figure 9 that the synthesized images preserve the structure (e.g., windows, doors, and roof), since it is the conditional input, but the textural components (e.g., color) change given different databases. ",
954
+ "bbox": [
955
+ 174,
956
+ 388,
957
+ 825,
958
+ 472
959
+ ],
960
+ "page_idx": 10
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Reconstruction: This experiment shows that the learned embeddings of a CNN also enables the reconstruction of the input images in a compositional fashion (as discussed in Sec. 3). The results of this experiment are shown in Fig. 10. The Figure has the following organization. In the middle columns (enclosed in a box), the Figure shows the input and output images. The first two columns (from left-to-right) show the reconstructions of the input images using a global nearest-neighbors and the proposed compositional nearest-neighbors approach. The last two columns show the reconstruction of the output images, also using a global nearest-neighbors and the proposed compositional nearest-neighbors approach. We can observe that the reconstructions of the input images using the global nearest-neighbors approach overall resembles the structure of the scene. However, the reconstructions of the input images using the proposed compositional nearest-neighbors reproduce the input scene with a remarkable accuracy. These results suggest that the learned embedding is rich in global and local information to either reconstruct both the input and output images. We can conclude then that CNNs understand an input image by finding the patches from the training images that enable the composition of an image reproducing the input. To the best of our knowledge, this is the first approach that reconstructs an input image using training instances using a learned pixel-embedding. ",
965
+ "bbox": [
966
+ 174,
967
+ 479,
968
+ 825,
969
+ 700
970
+ ],
971
+ "page_idx": 10
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Correspondence map: Figure 11 shows a correspondence map that explicitly illustrates how an output image is synthesized by cutting-and-pasting patches from training images. We can observe that patches are selected from many different styles of facades, but in such a manner that ensures that the composed output is globally consistent while maintaining the appropriate local structures (such as windows, doors, awnings, etc.). This implies the learned patch embedding captures both global semantics and local structure. ",
976
+ "bbox": [
977
+ 174,
978
+ 708,
979
+ 825,
980
+ 791
981
+ ],
982
+ "page_idx": 10
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Quantitative evaluation: We present the quantitative analysis of our pixel-wise nearest neighbor approach with an end-to-end pipeline in Table 1. We report classification accuracy of ground truth labels and mean intersection-over-union (IoU) compared to the predicted labels for the task of semantic segmentation. We can observe in Table 1 that compositional matching approaches the accuracy of the baseline CNN, and dramatically outperforms global matching (sometimes by a factor of 2X). Finally, self-supervised labels (SS) overall perform similarly to the original labels (O), but almost consistently help for compositional matching and consistently hurt for global matching. We posit that this is due to the fact that self-supervised labels tend to be overly-smoothed, and so act as a form of spatial regularization that helps compositional matching. ",
987
+ "bbox": [
988
+ 174,
989
+ 799,
990
+ 825,
991
+ 924
992
+ ],
993
+ "page_idx": 10
994
+ },
995
+ {
996
+ "type": "image",
997
+ "img_path": "images/b3e6b0fa986c001e0a672b33f13b53d50b97ad7caf1f7aa860efd8e51c8424ba.jpg",
998
+ "image_caption": [
999
+ "Figure 10: Reconstruction: Given the correspondences of NN features from penultimate the layer, we reconstruct the test input images (third column from left-to-right) by using the compositional nearest-neighbor approach: copying and pasting corresponding image patches from the input images of the training set. The reconstructions using a compositional nearest-neighbor approach is shown in the second column, while the reconstructions using a global nearest-neighbor approach is shown in the first column. The learned embedding thus enables not only the reconstruction of the input image, but also of the output image (see the last two columns). These results suggest that the embedding possess not only the information relevant to a specific task, but also semantic information from the original image. We can conclude then that CNNs understand an input image by finding the patches from the training images that enable the composition of an image reproducing the input. "
1000
+ ],
1001
+ "image_footnote": [],
1002
+ "bbox": [
1003
+ 238,
1004
+ 104,
1005
+ 769,
1006
+ 449
1007
+ ],
1008
+ "page_idx": 11
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Implementation Details: We used U-net as the generator for Pix2Pix, and used publicly available Tensorflow code for $\\operatorname { P i x } 2 \\mathrm { P i x } ^ { 2 }$ and SegNet3. For a slightly faster computation, we used the Eigen Library to implement the cosine distance. For Cityscape dataset, we shortlist 100 global neighborhoods using global bottleneck features for compositional NN searching. This leads to a 30 times speedup. For CamVid dataset, we shortlist 10 global neighborhoods. We can observe in previous results that the quality of generated images is hardly affected. We used 40-threads for these experiments. The average compute time per image is 22 minutes and 13 minutes for Cityscape and CamVid dataset respectively. ",
1013
+ "bbox": [
1014
+ 174,
1015
+ 632,
1016
+ 825,
1017
+ 743
1018
+ ],
1019
+ "page_idx": 11
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "5 DISCUSSION ",
1024
+ "text_level": 1,
1025
+ "bbox": [
1026
+ 174,
1027
+ 765,
1028
+ 310,
1029
+ 781
1030
+ ],
1031
+ "page_idx": 11
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "In this paper, we have presented a simple approach based on pixel-wise nearest neighbors to understand and interpret the functioning of convolutional neural networks for spatial prediction tasks. Our analysis suggests that CNNs behave as compositional nearest neighbor operators over a training set of patch-label pairs that act as an associative memory. But beyond simply memorizing, CNNs can generalize to novel data by composing together local patches from different training instances. Also, we argued that networks for pixel-level tasks learn sufficient statistics that enable the gener",
1036
+ "bbox": [
1037
+ 174,
1038
+ 799,
1039
+ 825,
1040
+ 882
1041
+ ],
1042
+ "page_idx": 11
1043
+ },
1044
+ {
1045
+ "type": "image",
1046
+ "img_path": "images/997d1d9f4f2790a842b44294ac144c73b0abc51535b2e1402c12dfe5a7e304a2.jpg",
1047
+ "image_caption": [
1048
+ "Figure 11: Correspondence map: Given the input label mask on the top left, we show the groundtruth image and the output of Pix2Pix below. Why does Pix2Pix synthesize the peculiar red awning from the input mask? To provide an explanation, we use CompNN to synthesize an image by explicitly cutting-and-pasting (composing) patches from training images. We color code pixels in the training images to denote correspondences. For example, CompNN copies doors from training image A (blue) and the red awning from training image C (yellow). "
1049
+ ],
1050
+ "image_footnote": [],
1051
+ "bbox": [
1052
+ 210,
1053
+ 104,
1054
+ 789,
1055
+ 356
1056
+ ],
1057
+ "page_idx": 12
1058
+ },
1059
+ {
1060
+ "type": "table",
1061
+ "img_path": "images/d55be43bbdfa42984883f9b068370a8e18b8341306ead0379592eb9060ce94e5.jpg",
1062
+ "table_caption": [],
1063
+ "table_footnote": [],
1064
+ "table_body": "<table><tr><td>Approach</td><td colspan=\"3\">Facades CityScape CamVid (Mean Pixel Accuracy)</td><td colspan=\"3\">Facades CityScape (Mean IoU)</td></tr><tr><td>Baseline CNN</td><td>0.545</td><td>0.735</td><td>0.790</td><td>0.157</td><td>0.217</td><td>0.444</td></tr><tr><td>Comp NN (SS)</td><td>0.505</td><td>0.738</td><td>0.767</td><td>0.137</td><td>0.210</td><td>0.378</td></tr><tr><td>Comp NN (O)</td><td>0.493</td><td>0.722</td><td>0.754</td><td>0.134</td><td>0.217</td><td>0.372</td></tr><tr><td>Global Bottleneck NN (SS)</td><td>0.324</td><td>0.579</td><td>0.564</td><td>0.057</td><td>0.109</td><td>0.246</td></tr><tr><td>Global Bottleneck NN (O)</td><td>0.381</td><td>0.585</td><td>0.570</td><td>0.065</td><td>0.133</td><td>0.226</td></tr><tr><td>Global Decode2 NN (SS)</td><td>0.387</td><td>0.590</td><td>0.659</td><td>0.087</td><td>0.110</td><td>0.287</td></tr><tr><td>Global Decode2 NN (O)</td><td>0.393</td><td>0.600</td><td>0.664</td><td>0.090</td><td>0.136</td><td>0.308</td></tr></table>",
1065
+ "bbox": [
1066
+ 173,
1067
+ 467,
1068
+ 813,
1069
+ 690
1070
+ ],
1071
+ "page_idx": 12
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Table 1: We compare compositional nearest neighbors (CompNN) to the baseline CNN and different global nearest neighbor approaches, obtained by matching feature maps from different layers (Global-Bottleneck and Global-Decode2). We report mean pixel accuracy and intersection-overunion, where predicted segmentation labels are compared to ground-truth labels. We specifically use the embedding learned by Isola et al. (2016) for Facades-to-Labels (Facades) and CityScape, and embedding learned by Badrinarayanan et al. (2017) for CamVid. On average, CompNN performs $5 \\%$ worse than the baseline CNN, though in some cases (CityScapes) it performs equally. However, compositional matching dramatically outperforms global matching, sometimes by a factor of 2X (Facade and CityScape IoU). In terms of global matching, the last feature layer (Decode2) strictly outperforms the intermediate Bottleneck layer, but is significantly larger ( $1 2 \\mathrm { { 8 ^ { 3 } } }$ versus 512 dimensions). Finally, self-supervised labels (SS) overall perform similarly to the original labels (O), but almost consistently help for compositional matching and consistently hurt for global matching. We posit that this is due to the fact that self-supervised labels tend to be overly-smoothed, and so act as a form of spatial regularization for compositional matching. ",
1076
+ "bbox": [
1077
+ 173,
1078
+ 704,
1079
+ 825,
1080
+ 900
1081
+ ],
1082
+ "page_idx": 12
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "ation of pixel predictions. Our analysis and experiments not only support this argument, but also enables example-based explanations of network behavior and explicit modulation of the implicit biases learned by the network. We hope that our framework enables further analysis of convolutional networks from a non-parametric perspective. ",
1087
+ "bbox": [
1088
+ 174,
1089
+ 103,
1090
+ 825,
1091
+ 160
1092
+ ],
1093
+ "page_idx": 13
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "REFERENCES ",
1098
+ "text_level": 1,
1099
+ "bbox": [
1100
+ 174,
1101
+ 180,
1102
+ 285,
1103
+ 194
1104
+ ],
1105
+ "page_idx": 13
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Agnar Aamodt and Enric Plaza. Case-based reasoning: Foundational issues, methodological variations, and system approaches. AI communications, 7(1):39–59, 1994. ",
1110
+ "bbox": [
1111
+ 176,
1112
+ 202,
1113
+ 823,
1114
+ 228
1115
+ ],
1116
+ "page_idx": 13
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Alessandro Achille and Stefano Soatto. On the emergence of invariance and disentangling in deep representations. CoRR, abs/1706.01350, 2017. URL http://arxiv.org/abs/1706.01350. ",
1121
+ "bbox": [
1122
+ 176,
1123
+ 236,
1124
+ 821,
1125
+ 263
1126
+ ],
1127
+ "page_idx": 13
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for scene segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2017. ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 270,
1135
+ 823,
1136
+ 310
1137
+ ],
1138
+ "page_idx": 13
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Aayush Bansal, Bryan Russell, and Abhinav Gupta. Marr Revisited: 2D-3D model alignment via surface normal prediction. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
1143
+ "bbox": [
1144
+ 174,
1145
+ 318,
1146
+ 823,
1147
+ 358
1148
+ ],
1149
+ "page_idx": 13
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Aayush Bansal, Xinlei Chen, Bryan Russell, Abhinav Gupta, and Deva Ramanan. PixelNet: Representation of the pixels, by the pixels, and for the pixels. arXiv:1702.06506, 2017a. ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 366,
1157
+ 825,
1158
+ 393
1159
+ ],
1160
+ "page_idx": 13
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Aayush Bansal, Yaser Sheikh, and Deva Ramanan. PixelNN: Example-based image synthesis. CoRR, abs/1708.05349, 2017b. ",
1165
+ "bbox": [
1166
+ 174,
1167
+ 401,
1168
+ 823,
1169
+ 428
1170
+ ],
1171
+ "page_idx": 13
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "David Bau, Bolei Zhou, Aditya Khosla, Aude Oliva, and Antonio Torralba. Network dissection: Quantifying interpretability of deep visual representations. CoRR, abs/1704.05796, 2017. ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 436,
1179
+ 825,
1180
+ 463
1181
+ ],
1182
+ "page_idx": 13
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "I. Biederman. Recognition by components: a theory of human image interpretation. Pyschological review, 94: 115–147, 1987. ",
1187
+ "bbox": [
1188
+ 174,
1189
+ 472,
1190
+ 823,
1191
+ 498
1192
+ ],
1193
+ "page_idx": 13
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Gabriel J. Brostow, Jamie Shotton, Julien Fauqueur, and Roberto Cipolla. Segmentation and recognition using structure from motion point clouds. In Proc. of the European Conference on Computer Vision (ECCV), pp. 44–57, 2008. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 506,
1201
+ 823,
1202
+ 545
1203
+ ],
1204
+ "page_idx": 13
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Gabriel J Brostow, Julien Fauqueur, and Roberto Cipolla. Semantic object classes in video: A high-definition ground truth database. Pattern Recognition Letters, 30(2):88–97, 2009. ",
1209
+ "bbox": [
1210
+ 171,
1211
+ 554,
1212
+ 823,
1213
+ 582
1214
+ ],
1215
+ "page_idx": 13
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Gail A Carpenter. Neural network models for pattern recognition and associative memory. Neural networks, 2 (4):243–257, 1989. ",
1220
+ "bbox": [
1221
+ 173,
1222
+ 589,
1223
+ 823,
1224
+ 616
1225
+ ],
1226
+ "page_idx": 13
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Rich Caruana, Hooshang Kangarloo, JD Dionisio, Usha Sinha, and David Johnson. Case-based explanation of non-case-based learning methods. In Proceedings of the AMIA Symposium, pp. 212. American Medical Informatics Association, 1999. ",
1231
+ "bbox": [
1232
+ 174,
1233
+ 623,
1234
+ 823,
1235
+ 662
1236
+ ],
1237
+ "page_idx": 13
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "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. CoRR, abs/1606.00915, 2016. ",
1242
+ "bbox": [
1243
+ 171,
1244
+ 671,
1245
+ 823,
1246
+ 710
1247
+ ],
1248
+ "page_idx": 13
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
1253
+ "bbox": [
1254
+ 173,
1255
+ 718,
1256
+ 823,
1257
+ 758
1258
+ ],
1259
+ "page_idx": 13
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "David Crandall, Pedro Felzenszwalb, and Daniel Huttenlocher. Spatial priors for part-based recognition using statistical models. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2005. ",
1264
+ "bbox": [
1265
+ 173,
1266
+ 767,
1267
+ 823,
1268
+ 806
1269
+ ],
1270
+ "page_idx": 13
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Emily L. Denton, Soumith Chintala, Arthur Szlam, and Robert Fergus. Deep generative image models using a laplacian pyramid of adversarial networks. CoRR, abs/1506.05751, 2015. ",
1275
+ "bbox": [
1276
+ 171,
1277
+ 814,
1278
+ 823,
1279
+ 842
1280
+ ],
1281
+ "page_idx": 13
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Jacob Devlin, Saurabh Gupta, Ross B. Girshick, Margaret Mitchell, and C. Lawrence Zitnick. Exploring nearest neighbor approaches for image captioning. CoRR, abs/1505.04467, 2015. ",
1286
+ "bbox": [
1287
+ 173,
1288
+ 849,
1289
+ 823,
1290
+ 877
1291
+ ],
1292
+ "page_idx": 13
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multiscale convolutional architecture. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015. ",
1297
+ "bbox": [
1298
+ 176,
1299
+ 885,
1300
+ 823,
1301
+ 922
1302
+ ],
1303
+ "page_idx": 13
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Pedro Felzenszwalb, David McAllester, and Deva Ramanan. A discriminatively trained, multiscale, deformable part model. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2008. \nPedro F. Felzenszwalb and Daniel P. Huttenlocher. Pictorial structures for object recognition. International Journal of Computer Vision, 2005. \nR. Fergus, P. Perona, and A. Zisserman. Object class recognition by unsupervised scale-invariant learning. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2003. \nM. A. Fischler and R. A. Elschlager. The representation and matching of pictorial structures. IEEE Trans. Comput., 22(1), January 1973. \nRoss Girshick, Forrest Iandola, Trevor Darrell, and Jitendra Malik. Deformable part models are convolutional neural networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 437–446, 2015. \nIan J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial networks. CoRR, abs/1406.2661, 2014. \nBharath Hariharan, Pablo Arbelaez, Ross Girshick, and Jitendra Malik. Hypercolumns for object segmentation ´ and fine-grained localization. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. \nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015. \nGeoffrey E. Hinton. Learning distributed representations of concepts. In Proceedings of the Eighth Annual Conference of the Cognitive Science Society, pp. 1–12. Hillsdale, NJ: Erlbaum, 1986. \nPhillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. arxiv, 2016. \nVivek Krishnan and Deva Ramanan. Tinkering under the hood: Interactive zero-shot learning with net surgery. CoRR, abs/1612.04901, 2016. \nYann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. \nZachary C Lipton. The mythos of model interpretability. arXiv preprint arXiv:1606.03490, 2016. \nCe Liu, Jenny Yuen, and Antonio Torralba. Nonparametric scene parsing via label transfer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(12):2368–2382, 2011. \nJonathan Long, Ning Zhang, and Trevor Darrell. Do convnets learn correspondence? In Advances in Neural Information Processing Systems (NIPS), 2014. \nJonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional models for semantic segmentation. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. \nAravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. \nAlec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. CoRR, abs/1511.06434, 2015. \nOlaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. CoRR, abs/1505.04597, 2015. \nAli Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. Cnn features off-the-shelf: an astounding baseline for recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pp. 806–813, 2014. \nRavid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. arXiv preprint arXiv:1703.00810, 2017. \nChristian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. CoRR, abs/1312.6199, 2013. \nNaftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. CoRR, abs/1503.02406, 2015. URL http://arxiv.org/abs/1503.02406. \nRadim Tylecek and Radim ˇ Sˇ ara. Spatial pattern templates for recognition of objects with regular structure. In ´ Proc. German Conference on Pattern Recognition (GCPR), Saarbrucken, Germany, 2013. \nC. Vondrick, A. Khosla, T. Malisiewicz, and A. Torralba. HOGgles: Visualizing Object Detection Features. Proc. of the IEEE International Conference on Computer Vision (ICCV), 2013. \nMarkus Weber, Max Welling, and Pietro Perona. Towards automatic discovery of object categories. In Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2000. \nSaining Xie and Zhuowen Tu. Holistically-nested edge detection. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015. \nMatthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. CoRR, abs/1311.2901, 2013. \nMatthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In Proc. of the European Conference on Computer Vision (ECCV), pp. 818–833, 2014. \nChiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016. \nBolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in \\` deep scene cnns. In Proc. of the International Conference on Learning Representations (ICLR), 2014. \nJun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. CoRR, abs/1703.10593, 2017. ",
1308
+ "bbox": [
1309
+ 171,
1310
+ 71,
1311
+ 826,
1312
+ 924
1313
+ ],
1314
+ "page_idx": 14
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "",
1319
+ "bbox": [
1320
+ 171,
1321
+ 103,
1322
+ 828,
1323
+ 416
1324
+ ],
1325
+ "page_idx": 15
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "A APPENDIX: ADDITIONAL EXPERIMENTAL RESULTS ",
1330
+ "text_level": 1,
1331
+ "bbox": [
1332
+ 176,
1333
+ 102,
1334
+ 637,
1335
+ 118
1336
+ ],
1337
+ "page_idx": 16
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "A.1 GLOBAL NEAREST NEIGHBORS ",
1342
+ "text_level": 1,
1343
+ "bbox": [
1344
+ 176,
1345
+ 135,
1346
+ 436,
1347
+ 148
1348
+ ],
1349
+ "page_idx": 16
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "We also present synthesized images using a global nearest neighbors (NN) approach. In this case, we use the global information from the bottleneck features and FC7 features. These bottleneck features can reveal which patches are learned and which training instances have more influence than others. ",
1354
+ "bbox": [
1355
+ 176,
1356
+ 161,
1357
+ 825,
1358
+ 200
1359
+ ],
1360
+ "page_idx": 16
1361
+ },
1362
+ {
1363
+ "type": "image",
1364
+ "img_path": "images/4e210df7e3260fa44a989104201db13c850bf65c128e0d308edf855f4a812960.jpg",
1365
+ "image_caption": [
1366
+ "Figure 12: Global NN v.s. Comp NN. We show synthesized images using our CompNN methods and four global NN approaches (global nearest neighbor on bottleneck feature embedding and Decode2 feature embedding using self-supervised labels and original labels respectively). We can observe that (1) compositional nearest neighbor outperforms other global nearest neighbor approaches, (2) using Decode2 features (the penultimate layer) sometimes can generate more similar structures (See row 1,4). "
1367
+ ],
1368
+ "image_footnote": [],
1369
+ "bbox": [
1370
+ 191,
1371
+ 229,
1372
+ 812,
1373
+ 593
1374
+ ],
1375
+ "page_idx": 16
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Fig. 12 shows the synthesized images using several global NN approaches and a CompNN approach. We can observe that the results of global NN approaches overall resembles global properties of the output of the Convolutional Neural Network (CNN) and of the CompNN approach. For instance, in the top two rows, the output of the global NN resembles the color of the facade and structural properties of the buildings. Also, in the bottom two rows, we can observe that the global NN overall captures the organization of the scene because many labels in the global NN overlap considerably with the output of the CNN and the ground truth. ",
1380
+ "bbox": [
1381
+ 173,
1382
+ 723,
1383
+ 825,
1384
+ 800
1385
+ ],
1386
+ "page_idx": 16
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "A.2 COMPOSITIONAL NEAREST NEIGHBORS ",
1391
+ "text_level": 1,
1392
+ "bbox": [
1393
+ 176,
1394
+ 820,
1395
+ 495,
1396
+ 834
1397
+ ],
1398
+ "page_idx": 16
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "In this section, we show more results of our proposed Compositional Nearest Neighbors. Both self-supervised labels and original labels are evaluated in this section. We can observe in Fig.13 that the results of the Compositional Nearest Neighbors (CompNN) approach are quite similar to those of the Convolutional Neural Network. We can also observe that the CompNN produces smoother results when it uses self-supervised labels than when it uses the original ones. Moreover, the self-supervised CompNN method produces results that are more alike to those of the Convolutional Neural Network. ",
1403
+ "bbox": [
1404
+ 174,
1405
+ 847,
1406
+ 825,
1407
+ 922
1408
+ ],
1409
+ "page_idx": 16
1410
+ },
1411
+ {
1412
+ "type": "image",
1413
+ "img_path": "images/f08ed120cf4fe69833a6a3dff6248b0c348be41d38064611ee033789439acd4a.jpg",
1414
+ "image_caption": [
1415
+ "Figure 13: Compositional Nearest Neighbors (CompNN) segmentation results using self-supervised and original labels. Overall, CompNN produces similar results compared with those of the Convolutional Neural Network. In particular, CompNN produces smoother results when it uses selfsupervised labels than when it uses the original labels. "
1416
+ ],
1417
+ "image_footnote": [],
1418
+ "bbox": [
1419
+ 205,
1420
+ 102,
1421
+ 802,
1422
+ 607
1423
+ ],
1424
+ "page_idx": 17
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "A.3 ADDITIONAL IMAGE SYNTHESIS RESULTS ",
1429
+ "text_level": 1,
1430
+ "bbox": [
1431
+ 174,
1432
+ 700,
1433
+ 511,
1434
+ 715
1435
+ ],
1436
+ "page_idx": 17
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Fig. 14 shows additional image syntheses using a CNN and CompNN with original and self-supervised labels. As discussed earlier, the CompNN with self-supervised labels produces a smoother image than when it uses the original labels. ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 727,
1444
+ 826,
1445
+ 765
1446
+ ],
1447
+ "page_idx": 17
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "B APPENDIX: EXPERIMENTAL DETAILS ",
1452
+ "text_level": 1,
1453
+ "bbox": [
1454
+ 176,
1455
+ 786,
1456
+ 521,
1457
+ 803
1458
+ ],
1459
+ "page_idx": 17
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "B.1 COMPUTATIONAL COMPLEXITY ",
1464
+ "text_level": 1,
1465
+ "bbox": [
1466
+ 176,
1467
+ 818,
1468
+ 436,
1469
+ 833
1470
+ ],
1471
+ "page_idx": 17
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "Although Compositional Nearest Neighbors provide insights into the internal operations of a CNN, its computational complexity is very high. In this section, we show some experimental details to speed up the CompNN process. Assume a dataset with $N$ images, each with $H \\times W$ pixels, and $M$ filters from the last layer of a CNN. Then, the computational complexity for synthesizing one image using CompNN is ",
1476
+ "bbox": [
1477
+ 174,
1478
+ 843,
1479
+ 825,
1480
+ 895
1481
+ ],
1482
+ "page_idx": 17
1483
+ },
1484
+ {
1485
+ "type": "equation",
1486
+ "img_path": "images/0f2b0063355dcfb128bc4ec97e4e6d56f135f34d57d2762c8ae04a9f9924704c.jpg",
1487
+ "text": "$$\nO ( N H ^ { 2 } W ^ { 2 } M ^ { 2 } ) .\n$$",
1488
+ "text_format": "latex",
1489
+ "bbox": [
1490
+ 444,
1491
+ 904,
1492
+ 555,
1493
+ 921
1494
+ ],
1495
+ "page_idx": 17
1496
+ },
1497
+ {
1498
+ "type": "image",
1499
+ "img_path": "images/dbc31d4ab73668499da889f3a9dc86a24c58d1198ecc8d04d39ae2478552ba4a.jpg",
1500
+ "image_caption": [
1501
+ "Figure 14: Synthesized images for pixel-wise prediction tasks with a Convolutional Neural Network, and Compositional Nearest Neighbors using self-supervised and original labels. "
1502
+ ],
1503
+ "image_footnote": [],
1504
+ "bbox": [
1505
+ 207,
1506
+ 104,
1507
+ 802,
1508
+ 602
1509
+ ],
1510
+ "page_idx": 18
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "We now introduce several approaches to speed up searching process. (1) Although Numpy from Python calculates the distance between two features quickly, the iterations for synthesizing a pixel are slow. To alleviate this, we implemented the CompNN using $\\mathrm { C } { + } { + }$ . (2) When a dataset has a large number of training instances, we used bottleneck features to narrow the training set. Especially in the segmentation problem, we can generate OK results with only 5-10 training reference. (3) Our implementation uses several threads in order to speedup the process. Specifically, each thread is in charge of synthesizing a disjoint set of pixels. ",
1515
+ "bbox": [
1516
+ 174,
1517
+ 672,
1518
+ 825,
1519
+ 750
1520
+ ],
1521
+ "page_idx": 18
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "The synthesis of facades using the Facades dataset (400 training samples) takes about 2 hours with 20-30 threads on the CPU. This can be used as a reference for experiments on other datasets. ",
1526
+ "bbox": [
1527
+ 174,
1528
+ 756,
1529
+ 823,
1530
+ 781
1531
+ ],
1532
+ "page_idx": 18
1533
+ }
1534
+ ]
parse/train/H1TWfmnNf/H1TWfmnNf_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1TWfmnNf/H1TWfmnNf_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HKtsGW-lNbw/HKtsGW-lNbw.md ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Online and Offline Reinforcement Learning by Planning with a Learned Model
2
+
3
+ Julian Schrittwieser∗ DeepMind swj@google.com
4
+
5
+ Thomas Hubert∗ DeepMind tkhubert@google.com
6
+
7
+ Amol Mandhane DeepMind mandhane@google.com
8
+
9
+ Mohammadamin Barekatain DeepMind barekatain@google.com
10
+
11
+ Ioannis Antonoglou
12
+ DeepMind
13
+ University College London
14
+ ioannisa@google.com David Silver DeepMind
15
+ University College London
16
+ davidsilver@google.com
17
+
18
+ # Abstract
19
+
20
+ Learning efficiently from small amounts of data has long been the focus of modelbased reinforcement learning, both for the online case when interacting with the environment and the offline case when learning from a fixed dataset. However, to date no single unified algorithm has demonstrated state-of-the-art results in both settings. In this work, we describe the Reanalyse algorithm which uses modelbased policy and value improvement operators to compute new improved training targets on existing data points, allowing efficient learning for data budgets varying by several orders of magnitude. We further show that Reanalyse can also be used to learn entirely from demonstrations without any environment interactions, as in the case of offline Reinforcement Learning (offline RL). Combining Reanalyse with the MuZero algorithm, we introduce MuZero Unplugged, a single unified algorithm for any data budget, including offline RL. In contrast to previous work, our algorithm does not require any special adaptations for the off-policy or offline RL settings. MuZero Unplugged sets new state-of-the-art results in the RL Unplugged offline RL benchmark as well as in the online RL benchmark of Atari in the standard 200 million frame setting.
21
+
22
+ # 1 Introduction
23
+
24
+ Offline reinforcement learning holds the promise of learning useful policies from many existing real-world datasets in a wide range of important problems such as robotics, healthcare or education (Levine et al., 2020). Learning effectively from offline data is crucial for such tasks where interaction with the environment is costly or comes with safety concerns, but a large amount of logged and other offline data is often available.
25
+
26
+ A wide variety of effective reinforcement learning (RL) algorithms for the online case have been described, achieving impressive results in video games (Mnih et al., 2015), robotic control (Akkaya et al., 2019) and many other problems. However, applying these online RL algorithms to offline data often remains challenging due to off-policy issues, with the best results in offline RL so far obtained by specialised offline algorithms (Kumar et al., 2020; Wang et al., 2020; Agarwal et al., 2020). At the same time, model-based reinforcement learning (RL) has long focused on learning efficiently from little data, even going as far as learning completely within a model of the environment (Hafner et al., 2018) - an approach ideally suited for offline RL.
27
+
28
+ So far, these developments have been relatively independent, with no unified algorithm that could achieve state-of-the art results in both the online and offline settings.
29
+
30
+ In this paper, we describe the Reanalyse algorithm, a simple yet effective technique for policy and value improvement at any data budget, including the fully offline case. A preliminary version of Reanalyse was briefly introduced in the context of MuZero (Schrittwieser et al., 2020), but limited to data efficiency improvements in the discrete action case. Here, we delve deeper into the algorithm and push its capabilities much further – ultimately to the point where most or all of the data is reanalysed.
31
+
32
+ Starting with the possible uses of Reanalyse, we show how it can be used for data efficient learning and offline RL, leading to MuZero Unplugged. We demonstrate its effectiveness for the online case through results on Atari and for the offline case through results on the RL Unplugged benchmark for Atari and DM Control.
33
+
34
+ # 2 Related Work
35
+
36
+ Recent work by Levine et al. (2020) provides a thorough review of offline RL literature and presents an excellent introduction to the subject. Much research has focused on regularising the value or policy learning to counteract off-policy issues and learn only from high quality data. Critic-Regularized Regression (CRR) uses a critic to filter out bad actions and uses only good actions to train the policy (Wang et al., 2020). Random Ensemble Mixture (REM) regularises q-value estimation by using random convex combinations of ensemble members during training, and the ensemble mean during evaluation (Agarwal et al., 2020). Conservative Q-Learning (CQL) learns a conservative Q-function, used to lower bound the value of the current policy (Kumar et al., 2020). Pessimistic Offline Policy Optimization (POPO) also uses a pessimistic value function for policy learning (He & Hou, 2021).
37
+
38
+ Existing work has also demonstrated the promise of model-based RL for offline learning (Matsushima et al., 2020; Argenson & Dulac-Arnold, 2020), but has often been restricted to tasks with lowdimensional action or state spaces, and has not been applied to visually more complex tasks such as Atari (Bellemare et al., 2013).
39
+
40
+ Model-Based Offline Reinforcement Learning (MOReL) implements a two-step procedure, first learning a pessimistic MDP from offline data using Gaussian dynamics models, then a policy within this learned MDP (Kidambi et al., 2020). Results are presented for state-based control tasks. Modelbased Offline Policy Optimization (MOPO) penalises rewards by the uncertainty of the model dynamics to avoid distributional shift issues (Yu et al., 2020). Offline Reinforcement Learning from Images with Latent Space Models (LOMPO) extends MOPO to image based tasks (Rafailov et al., 2021). Results are reported on newly introduced datasets with image observations, which the authors aim to open-source in the near future. Deep Averagers with Costs MDP (DAC-MDP) (Shrestha et al., 2021) builds non-parametric models from the offline data, solves these tabular MDPs using value iteration, then generalizes back to the original MDP.
41
+
42
+ Most previous approaches primarily use the learned model for uncertainty estimation and to train a policy; they do not directly use the learned model for planning over action sequences. In contrast, our method focuses on using the learned model directly for policy and value improvement through planning both offline (when learning from data) and online (when interacting with an environment). It requires no regularisation of the value or policy function either in the online or offline case, works well even in very high dimensional state spaces and is equally applicable to both discrete and continuous action spaces.
43
+
44
+ Reanalyse is also qualitatively different from Dyna (Sutton, 1991) in several important regards: it uses both value and policy rather than value function alone; and it also updates the state representation. In the specific case of MuZero Reanalyse it also performs a tree search rather than a single step lookahead used in Dyna.
45
+
46
+ A combination of MuZero Unplugged with regularisation approaches such as introduced in the previous work discussed above (Kidambi et al., 2020; Yu et al., 2020; Rafailov et al., 2021) is possible; we leave such investigations for future work.
47
+
48
+ # 3 Reanalyse
49
+
50
+ Reanalyse takes advantage of model-based value and policy improvement operators to generate new value and policy training targets for a given state (Algorithm 1). In this work, we will use MuZero’s Monte Carlo Tree Search (MCTS) planning algorithm combined with its learned model of the environment dynamics as the improvement operator.2
51
+
52
+ As the learned model and its predictions are updated and improved throughout training, Reanalyse can be repeatedly applied to the same state to generate better and better training targets. The improved training targets in turn are used to improve the model and predictions, leading to a virtuous cycle of improvement.
53
+
54
+ Algorithm 1 The Reanalyse algorithm. MuZero Unplugged instantiates representation, predict, dynamics with the MuZero network architecture; plan with MCTS; loss with the MuZero loss in eqn (1); and optimise with Adam.
55
+
56
+ for $\mathrm { s t e p } \gets 0 . . . N$ do t ∼ random(1 : T ) s0t = representation(h1:t, θ) for $\mathrm { i } 0 . . . k$ do π it , $\nu _ { t } ^ { i } =$ plan(representation(h1:t+i, θ), θ) pit, vit = predict(sit, θ) ri+1t , si+1t = dynamics(sit, at+i, θ) end for $l = \mathrm { l o s s } ( h _ { t : t + k } , \{ r , p , v , u , \pi , \nu \} _ { t } ^ { 0 : k } , \theta )$ $\Delta \theta = \mathrm { o p t i m i s e } ( l , \theta )$
57
+ end for
58
+
59
+ To run MCTS and compute new targets for a training point, the representation function of MuZero maps the history $h _ { 1 : t }$ of observations, actions and rewards up to timestep $t$ into an agent state or embedding $s _ { t }$ . The search over possible future action sequences then takes place entirely in this embedding space, by rolling the dynamics forward and applying prediction functions at every step. These predictions output the key quantities required by planning: the policy, value function and reward. The resulting MCTS statistics at the root of the search tree - visit counts for the actions and value estimate averaged over the tree - are then used as new training targets. During reanalysis, no actions $a$ are selected – instead the agent updates its model and prediction parameters based on the data it has already experienced.
60
+
61
+ Specifically, MuZero Reanalyse jointly adjusts its parameters $\theta$ to repeatedly optimise the following loss at every time-step $t$ , applied to a model that is unrolled $0 . . . K$ steps into the future,
62
+
63
+ $$
64
+ l _ { t } ( \theta ) = \sum _ { k = 0 } ^ { K } l ^ { p } ( \pi _ { t + k } , p _ { t } ^ { k } ) + \ \sum _ { k = 0 } ^ { K } l ^ { v } ( z _ { t + k } , v _ { t } ^ { k } ) + \sum _ { k = 1 } ^ { K } l ^ { r } ( u _ { t + k } , r _ { t } ^ { k } )
65
+ $$
66
+
67
+ where $p _ { t } ^ { k } , v _ { t } ^ { k }$ , and $r _ { k } ^ { t }$ are respectively the policy, value and reward prediction produced by the $k$ -step unrolled model. The respective targets for these predictions are drawn from the corresponding time-step $t + k$ of the real trajectory: $\pi _ { t + k } , \nu _ { t + k }$ are the improved policy and value generated by the search, $z _ { t + k } = u _ { t + k + 1 } + . . . + \gamma ^ { n - 1 } u _ { t + k + n } + \gamma ^ { n } \nu _ { t + k + n }$ is an $n$ -step return, and $u _ { t + k }$ is the true reward.
68
+
69
+ The policy and value predictions are then updated towards the new training targets, in the same way they would be for targets computed based on environment interactions - through minimising losses $l ^ { p } , l ^ { v }$ and $l ^ { r }$ . In other words, Reanalyse requires no changes on the part of the learner and can be implemented purely in terms of adapting the actors to generate improved targets based on stored data instead of environment interactions.
70
+
71
+ Since the actual MCTS procedure used to Reanalyse a state is the same as the one used to choose an action when interacting with an environment, it is straightforward to perform a mix of both. We refer to this ratio between targets computed from direct interactions with the environment, and targets
72
+
73
+ ![](images/55451c2b71572810e2f011f5b32046df76b1abd82c0dbb913534ab85b1c99e0b.jpg)
74
+ Figure 1: Reanalyse scaling in Atari. By varying the Reanalyse fraction alone, MuZero can learn efficiently at data budgets differing by orders of magnitude. All other parameters are held constant. Left: Final scores in Ms. Pac-Man for different Reanalyse fractions. Note the logarithmic $\mathbf { X }$ -axis: Linear improvements in score require exponentially more data, matching scaling laws such as described by (Kaplan et al., 2020) for language models.
75
+
76
+ <table><tr><td>Reanalyse</td><td>Median</td><td>Mean</td><td>#Frames</td></tr><tr><td>50.0%</td><td>1331.7%</td><td>4094.4%</td><td>2000M</td></tr><tr><td>95.0%</td><td>1006.4%</td><td>2856.2%</td><td>200M</td></tr><tr><td>99.5%</td><td>126.6%</td><td>450.6%</td><td>20M</td></tr></table>
77
+
78
+ Right: Mean & median human normalised scores over 57 Atari games, by Reanalyse fraction.
79
+
80
+ computed by reanalysing existing data points as the Reanalyse fraction. A Reanalyse fraction of $0 \%$ refers to training by only interacting with the environment, no Reanalyse of stored data, whereas a fraction of $100 \%$ refers to the fully offline case with no environment interaction at all.
81
+
82
+ Since Reanalyse only uses stored data points and the learned model to compute improved targets, it can be employed flexibly for many different purposes:
83
+
84
+ • Data Efficiency. The simplest use of Reanalyse is to improve data efficiency by repeatedly computing updated targets on previously collected data throughout training. By scaling the Reanalyse fraction as described in Section 4, learning can be optimised for any data budget. For this purpose, the data to be reanalysed is sampled from the $N$ most recent environment interactions; in the limit this includes all interactions throughout training. Offline RL. When increasing the Reanalyse fraction to $100 \%$ , learning takes place entirely from stored offline data as described in Section 5, without any interaction with the environment. Offline data may be obtained from a variety of sources, such as other agents, logged data from a heuristic control system or human examples. Demonstrations. Reanalyse can be used to quickly bootstrap learning from demonstrations containing desirable behaviour that might otherwise be hard to discover - collected for instance from humans - while still interacting with the environment, learning from both sources of data at the same time. This is useful to skip past what might otherwise be hard exploration problems while still improving beyond the quality of the initial demonstrations. Exploitation of good episodes. When using Reanalyse to improve data efficiency, Reanalyse is applied to the most recently collected data. If instead data is ordered by some other metric, such as episode reward, Reanalyse can be used to quickly learn from rare events, such as rewards observed in hard-exploration tasks. This variant is most useful in deterministic environments, as it could otherwise bias the value estimates in stochastic environments.
85
+
86
+ In this paper, we will focus on the data efficiency and offline RL cases. Remaining cases require no adjustments to the algorithm and only differ in the source of data to be reanalysed. Further combinations of the cases above are also possible, such as a mix of exploitation and data efficiency Reanalyse which we leave for future work.
87
+
88
+ The Reanalyse algorithm has some similarities to experience replay (Lin, 1992). Whereas replay performs multiple gradient descent updates for the same data point and target, Reanalyse uses modelbased improvement operators to generate multiple training targets for the same data point. Reanalyse and replay have independent effects and can be combined to further improve data efficiency of learning; in fact we do so for all experiments in this paper.
89
+
90
+ # 4 Reanalyse for Data Efficiency
91
+
92
+ By adjusting the ratio between targets computed from interactions with the environment and from stored trajectories (Reanalyse fraction), Reanalyse can be used to train MuZero at any desired data
93
+
94
+ <table><tr><td>Loss</td><td>Median</td><td>Mean</td></tr><tr><td>a BC</td><td>53.3 %</td><td>48.5 %</td></tr><tr><td>DQN</td><td>86.2 %</td><td>89.5 %</td></tr><tr><td>IQN</td><td>100.8 %</td><td>96.1 %</td></tr><tr><td>BCQ</td><td>107.5 %</td><td>120.0 %</td></tr><tr><td>REM</td><td>107.9 %</td><td>113.5 %</td></tr><tr><td>CRR (ours)</td><td>155.6 %</td><td>271.2 %</td></tr><tr><td>b MuZero BC</td><td>54.0 %</td><td>46.9 %</td></tr><tr><td>MuZero Unplugged</td><td>265.3 %</td><td>595.5 %</td></tr></table>
95
+
96
+ <table><tr><td>Game</td><td>QR-DQN</td><td>REM</td><td>CQL(H)</td><td>MZ</td></tr><tr><td>asterix (1%)</td><td>359.8</td><td>363.3</td><td>592.4</td><td>27220.5</td></tr><tr><td>breakout</td><td>6.8</td><td>4.5</td><td>61.1</td><td>251.9</td></tr><tr><td>pong</td><td>-14.5</td><td>-20.8</td><td>19.3</td><td>-16.2</td></tr><tr><td>qbert</td><td>156.0</td><td>160.1</td><td>14012.0</td><td>6953.2</td></tr><tr><td>seaquest</td><td>250.1</td><td>370.5</td><td>779.4</td><td>4964.0</td></tr><tr><td>asterix (10%)</td><td>1293.9</td><td>3912.3</td><td>156.3</td><td>40554.0</td></tr><tr><td>breakout</td><td>61.8</td><td>56.9</td><td>269.3</td><td>485.8</td></tr><tr><td>pong</td><td>12.7</td><td>9.5</td><td>18.5</td><td>15.6</td></tr><tr><td>qbert</td><td>9420.5</td><td>5800.0</td><td>13855.6</td><td>16817.9</td></tr><tr><td>seaquest</td><td>353.1</td><td>3643.5</td><td>3674.1</td><td>8556.3</td></tr></table>
97
+
98
+ # Table 1: RL Unplugged Atari benchmark.
99
+
100
+ Left: Overall results. Mean and median normalised scores over the 46 Atari games of the RL Unplugged benchmark. a) Baseline algorithms. CRR results are for our own reimplementation, other results are from (Gulcehre et al., 2020). b) Results using the MuZero network architecture.
101
+
102
+ Behaviour cloning (BC) with the MuZero network replicated the baseline BC results from a), confirming correct import of the dataset and evaluation settings. Critic Regularized Regression (CRR) (Wang et al., 2020) significantly improved performance of the policy. MuZero Unplugged training with Reanalyse loss and MCTS for action selection led to overall best performance.
103
+
104
+ Right: Low-data setting. QR-DQN (Dabney et al., 2018), REM (Agarwal et al., 2020), CQL(H) (Kumar et al., 2020) and MuZero Unplugged results when trained on only $1 \%$ (top, 2 million frames) or $10 \%$ (bottom, 20 million frames) of Atari data. QR-DQN and REM results from (Agarwal et al., 2020). MuZero Unplugged performance improves consistently when trained on more data.
105
+
106
+ budget, as shown in Figure 1. The total amount of computation for each training run (number of updates on the learner and number of searches on the actors) is held constant.
107
+
108
+ As training progresses, the policy produced by MCTS with the latest network weights will increasingly differ from the policy originally used to generate the trajectories that are being reanalysed. This can bias the state distribution used for training as well as some of the training targets:
109
+
110
+ • The policy prediction $p _ { t }$ for a state $s _ { t }$ is always updated towards the MCTS statistics $\pi _ { t }$ for that same state. In this way, the policy can be learned completely independently from the trajectory; no off-policy issues can arise.
111
+ • The reward prediction only depends on the state and the action that was taken from this state and is not affected by off-policy issues as such. However, if the state distribution is very biased - in the extreme an action may never be observed - the reward function will be unable to learn the correct reward prediction for these cases, limiting the maximum policy improvement step.
112
+ The situation for the value function depends on the choice of training target; when using an n-step TD return such as in Atari $( n = 5$ ), the target depends on the trajectory and off-policy issues can potentially arise. Whether this is an issue depends on how different the data distribution is from the policy that is being learned. Empirically, we observed that the gain from bootstrapping with the actually observed environment rewards seems to outweigh any harm from being off-policy. We speculate that the bias introduced by early bootstrapping may be larger than the bias introduced by off-policy targets, as also seen in prior work (Vinyals et al., 2019).
113
+
114
+ # 5 MuZero Unplugged: Offline RL with Reanalyse
115
+
116
+ We obtain MuZero Unplugged, an offline version of MuZero, by adjusting the Reanalyse fraction to $100 \%$ - learning without any environment interactions, purely from stored trajectories. In contrast to previous work, we perform no off-policy corrections or adjustments to the value and policy learning: the exact same algorithm applies to both the online and offline case.
117
+
118
+ We used the RL Unplugged (Gulcehre et al., 2020) benchmark dataset for all offline RL experiments in this paper. To demonstrate the generality of the approach, we report results for both discrete and continuous action spaces as well as state and pixel based data, specifically:
119
+
120
+ Table 2: Median score in RL Unplugged Atari: ablations of action selection and training loss. Median normalized scores over the 46 Atari games from RL Unplugged.
121
+
122
+ <table><tr><td>Loss Unroll</td><td colspan="3">supervised 0 1</td><td>CRR 5</td><td>Reanalyse 5</td></tr><tr><td>policy</td><td>60.6</td><td>61.4</td><td>5 54.0</td><td>155.6</td><td>203.2</td></tr><tr><td>value</td><td>92.2</td><td>105.0</td><td>159.2</td><td>153.0</td><td>239.9</td></tr><tr><td>MCTS</td><td>1</td><td>137.3</td><td>169.7</td><td>172.5</td><td>265.3</td></tr></table>
123
+
124
+ Rows of the table correspond to different action selection methods: sampling according to the policy probabilities, selecting the action with the highest value or selecting according to MCTS visit counts. Columns correspond to different number of unroll steps of the MuZero learned model and different losses. The leftmost three columns use the action from the training data as a supervised policy target, the rightmost two columns use the CRR and the Reanalyse loss respectively. For the case of 0 unroll steps, an action-value head is used to predict action values, instead of the state-value predicted by the normal model. All columns use a 5-step TD bootstrap towards a target network as the value target. For all action selection methods, Reanalyse loss led to the best performance; for all losses, MCTS action selection also led to the best performance. Overall, the combination of MCTS action selection and Reanalyse loss - the MuZero Unplugged algorithm - led to the best results.
125
+
126
+ • DM Control Suite, 9 different tasks, number of frames varies by task (Table 3). Continuous action space with 1 to 21 dimensions, state observations.
127
+
128
+ • Atari, 46 games with 200M frames each. Discrete action space, pixel observations, stochasticity through sticky actions (Machado et al., 2017).
129
+
130
+ MuZero Unplugged was highly effective in either setting, outperforming baseline algorithms in Atari (Table 1) as well as the DM Control Suite (Table 3). We performed no tuning of hyperparameters for these experiments, instead using the same hyperparameter values as for the online RL case (Schrittwieser et al., 2020; Hubert et al., 2021).
131
+
132
+ To add another strong baseline for the Atari benchmark, we also implemented Critic Regularized Regression (CRR), a recent offline RL algorithm (Wang et al., 2020). For the critic value required by CRR we used the value head of MuZero model, trained by 5-step TD with respect to a target network, as in previous work (Schrittwieser et al., 2020) and the same as used for MuZero Unplugged. Using CRR to train the policy head led to improved results in Atari (Table 1a, CRR), matching results reported for continuous action tasks, but did not reach the same performance as MuZero Unplugged.
133
+
134
+ Performance of MuZero Unplugged was robust across the whole range of 46 Atari games in the RL Unplugged benchmark, reaching the same or better performance as the DQN policy used to generate the data in 44 games, and slightly worse performance in only 2 games (Figure 2). Improvements in performance with respect to the training data were considerable, exceeding a 20 times increase in score in several games.
135
+
136
+ To examine the performance of MuZero Unplugged in detail and ascertain the contributions of action selection methods and training losses, we also performed a set of ablations (Tables 2 and 7) based on the Atari dataset. We chose Atari because the large number of diverse levels enables robust performance estimates and its discrete action space allows us to cleanly disentangle the contributions of value and policy predictions as well as planning with MCTS. In contrast, for continuous action spaces such as in the DM Control suite, the contributions of policy and value are entangled, as the value function can only evaluate actions already sampled from the policy.
137
+
138
+ For our ablations, we considered three possible action selection methods: Sampling actions according to the policy network probabilities, selecting the action with the maximum value, or selecting actions based on the MCTS visit count distribution (rows of Table 2). We also considered different losses and network architectures: the leftmost three columns use variants of the MuZero learned model with 0 (no model at all), 1 or 5 steps of model unroll, all trained using the supervised behaviour cloning policy target and a 5-step TD value target based on a target network. The next column used CRR to train the policy. The last column used the the MCTS visit count distribution from the Reanalyse loss. These ablations allow us to separately measure the contribution of MCTS at training time (rightmost column) and evaluation time (bottom row), with the combination of MCTS at evaluation time and Reanalyse loss (bottom right cell) corresponding to MuZero Unplugged.
139
+
140
+ As expected, the policy prediction was insensitive to the choice of model depth, but benefited from an improved training target: the CRR loss significantly improved results. Best results were obtained when using the rich MCTS visit count distribution from the Reanalyse loss as a training target (top row of Table 2).
141
+
142
+ When selecting actions according to the value estimate for each action (middle row of Table 2), the depth of the learned model was surprisingly important. The difference between estimating q-values (0-step model) and state-values (1-step model) was small, with both attaining results similar to the IQN baseline (Table 1a) — expected, since all of these results use a distributional value prediction. However, learning a full 5-step model led to a big improvement even though only 1-step value predictions were used for evaluation. We speculate that learning a full 5-step model is beneficial because it regularises the network representation and acts as a useful auxiliary loss.3
143
+
144
+ <table><tr><td rowspan="2">Task</td><td rowspan="2"># dims # episodes</td><td rowspan="2"></td><td colspan="4">Baselines</td><td rowspan="2">MuZero BC Unplugged</td></tr><tr><td>BC</td><td>D4PG</td><td>BRAC</td><td>RABM</td></tr><tr><td>cartpole.swingup</td><td>1</td><td>40</td><td>386.0</td><td>856.0</td><td>869.0</td><td>798.0</td><td>143.7 343.3</td></tr><tr><td>finger.turn_hard</td><td></td><td>500</td><td>238.0</td><td>714.0</td><td>227.0</td><td>433.0</td><td>308.8 405.0</td></tr><tr><td>fish.swim</td><td>255</td><td>200</td><td>444.0</td><td>180.0</td><td>222.0</td><td>504.0</td><td>542.8 585.4</td></tr><tr><td>manipulator.insert_ball</td><td></td><td>1500</td><td>385.0</td><td>154.0</td><td>55.6</td><td>409.0</td><td>412.7 557.0</td></tr><tr><td>manipulator.insert_peg</td><td>5</td><td>1500</td><td>279.0</td><td>50.4</td><td>49.5</td><td>290.0</td><td>309.9 432.7</td></tr><tr><td>walker.stand</td><td>6</td><td>200</td><td>386.0</td><td>930.0</td><td>829.0</td><td>689.0 444.4</td><td>759.8</td></tr><tr><td>walker.walk</td><td>6</td><td>200</td><td>380.0</td><td>549.0</td><td>786.0</td><td>651.0 496.3</td><td>901.5</td></tr><tr><td>cheetah.run</td><td>6</td><td>300</td><td>408.0</td><td>308.0</td><td>539.0</td><td>304.0 592.9</td><td>798.9</td></tr><tr><td>humanoid.run</td><td>21</td><td>3000</td><td>382.0</td><td>1.7</td><td>9.6</td><td>303.0 408.5</td><td>633.4</td></tr><tr><td>mean</td><td></td><td></td><td>365.3</td><td>415.9</td><td>398.5</td><td>486.8</td><td>406.7 601.9</td></tr></table>
145
+
146
+ Table 3: Results for DM Control benchmark from RL Unplugged. Mean final score on 9 DM Control tasks, as well as mean score across all tasks. First three columns indicate task, action dimensonality and dataset size, subsequent four columns reproduce baseline results from (Gulcehre et al., 2020). Final columns show performance of Behaviour Cloning (BC) with the MuZero network and results for MuZero Unplugged. As the data sets for the DM Control tasks are very small and vary a hundredfold between tasks, to keep the number of model parameters per datapoint constant and prevent memorisation, we scaled the neural network according to channel $\begin{array} { r } { s = { \sqrt { \frac { d a t a p o i n t s } { l a y e r s } } } } \end{array}$ . For an ablation of network size see Table 9.
147
+
148
+ Keeping the 5-step model but changing the loss for the policy head, we observed that CRR had no effect on the quality of the value prediction for action selection, while the richer MCTS visit count distribution from the Reanalyse loss led to another big improvement. Even though the policy head is not used when selecting actions according to the maximum 1-step value, we hypothesise that the auxiliary loss has a strong regularising effect and further improved the internal representation of the model. This matches the results of (Silver et al., 2017) that training a single combined network to estimate both policy and value led to improved value prediction accuracy.
149
+
150
+ Finally, using MCTS to select actions at evaluation time (bottom row of Table 2) improved results no matter which loss was used at training time, with best results obtained when using MCTS for both training and evaluation - the full MuZero Unplugged algorithm.
151
+
152
+ We also verified that our training setup correctly interpreted the offline data4 and reproduced the baseline performance when using the same loss: Using the actions played in the training data as a supervised policy target to train a policy head using cross-entropy loss and sampling from it for evaluation (Table 1, policy BC a and b) reproduced the behaviour cloning (BC) baseline results.
153
+
154
+ Table 4: Comparison of MuZero Unplugged and CRR. Results for CRR (Wang et al., 2020) were reported by selecting the checkpoint with the highest mean reward from each training run. Since this does not follow the offline policy selection guidelines from RL Unplugged and is therefore not directly comparable to the baseline results, we compared to it separately. The same highest mean reward evaluation scheme as used in CRR was used for MuZero Unplugged results in this table as well. All other tables report results at the end of training.
155
+
156
+ <table><tr><td>Task</td><td>CRR BC</td><td>MuZero Unplugged</td></tr><tr><td>cartpole.swingup</td><td>664.0</td><td>501.8 594.3</td></tr><tr><td>finger.turn_hard</td><td>714.0</td><td>333.8 759.0</td></tr><tr><td>fish.swim</td><td>517.0 556.8</td><td>681.6</td></tr><tr><td>manipulator.insert_ball</td><td>625.0 465.6</td><td>659.2</td></tr><tr><td>manipulator.insert_peg</td><td>387.0</td><td>325.9 556.0</td></tr><tr><td>walker.stand</td><td>797.0 473.3</td><td>887.2</td></tr><tr><td>walker.walk</td><td>901.0 637.9</td><td>949.5</td></tr><tr><td>cheetah.run</td><td>577.0</td><td>765.3 869.9</td></tr><tr><td>humanoid.run</td><td>586.0</td><td></td></tr><tr><td>mean</td><td>640.9 497.4</td><td>416.5 643.1 733.3</td></tr></table>
157
+
158
+ # 6 Offline RL and Continuous Action Spaces
159
+
160
+ An important motivation for offline RL is the application to real-world systems such as robotics, which often have continuous and high-dimensional action spaces. To investigate the applicability of MuZero Unplugged to this setting, we used the DM Control Suite dataset from the RL Unplugged dataset. DM Control is a collection of physics based benchmark tasks (Tassa et al., 2018) with a variety of robotic bodies of different action and state dimensionalities (Table 3).
161
+
162
+ In order to use planning and Reanalyse with continuous action spaces, we used the sample based search extension of MuZero introduced by (Hubert et al., 2021). This extension uses a policy head to produce a set of candidate actions to search over, where the MCTS considers only the sampled actions instead of fully enumerating the action space. Finally, the policy is updated towards the search distribution only at the sampled actions.
163
+
164
+ When applying Reanalyse for data efficiency improvements to data generated by the agent itself, no modifications are required to use sample based search and Reanalyse together. In offline RL or when reanalysing demonstrations from a source other than the agent itself, the policy that generated the actions making up the dataset is often quite different from the one learned by MuZero Unplugged, and unlikely to sample the same actions, at least at the beginning of training. Since in this case the MCTS (and by extension, Reanalyse) can only consider actions that have been sampled from the policy, it would be unlikely to learn about the actions contained in the dataset, and thus unable to sample them from the policy in the future. This effect is most pronounced in very high dimensional action spaces.
165
+
166
+ To prevent this issue, we explicitly included the action from the trajectory being reanalysed in the sample of actions searched over at the root of the MCTS tree. This serves the same purpose as the Dirichlet exploration noise used in standard MuZero - encouraging the MCTS to explore actions it would not otherwise consider. For the prior of the injected action we therefore use the same value as for the Dirichlet probability mass, $2 5 \%$ , though the algorithm is not sensitive to the exact value. This step is redundant for discrete action spaces (such as in Atari) where the policy already always produces a prior for all possible actions.
167
+
168
+ We compared the performance of MuZero Unplugged to offline RL algorithms from the literature such as D4PG (Barth-Maron et al., 2018), BRAC (Wu et al., 2019) and RABM (Siegel et al., 2020; Gulcehre et al., 2020) (Table 3), as well as the recent Critic Regularized Regression (CRR) (Wang et al., 2020) algorithm (Table 4, shown separately as CRR was evaluated by selecting the maximum performance throughout training and results are thus not comparable to the other baselines).
169
+
170
+ We first measured the performance of Behaviour Cloning (BC) when implemented using the MuZero network to ensure we used the offline dataset correctly and that it matches the evaluation environment. Overall performance indeed approximately matches the BC baseline (Table 3).
171
+
172
+ MuZero Unplugged outperformed baseline algorithms both in individual tasks and for the mean return5 averaged across all tasks. It did best in difficult high-dimensional tasks such as humanoid.run or the manipulator tasks, classified as ”hard” by (Wang et al., 2020), compared to ”easy” for the other tasks. Performance in the simplest tasks, especially cartpole, was somewhat lower — primarily due to the very small datasets6 leading to overfitting of the learned model and value function throughout training: in cartpole, performance of the best checkpoint (Figure 4) was much better than performance at the end of training (Figure 3). Additional regularisation techniques such as dropout (Hinton et al., 2012) could be employed to prevent this. We leave this for future work since we are primarily interested in performance on complex tasks that we consider most representative of real-world problems.
173
+
174
+ # 7 Limitations
175
+
176
+ MuZero Unplugged uses a deterministic model, potentially limiting its performance in stochastic or partially observed environments. The learned model is a single time-step model, which may limit the time horizon of planning. MuZero Unplugged also does not employ explicit forms of regularizations; combination with existing methods from the literature may improve its performance on very small datasets.
177
+
178
+ The MCTS improvement operator in MuZero Unplugged requires a suitable value function; in environments where value learning is very difficult this may limit the magnitude of the improvement obtained by Reanalyse.
179
+
180
+ # 8 Conclusions
181
+
182
+ In this paper we have investigated the Reanalyse algorithm and its applications to both data efficient online RL at any data budget and completely offline RL. We combined Reanalyse with MuZero to obtain MuZero Unplugged, a unified model-based RL algorithm that achieved a new state of the art in both online and offline reinforcement learning. Specifically, MuZero Unplugged outperformed prior baselines in the Atari Learning Environment both using a standard online budget of 200 million frames and other data budgets spanning multiple orders of magnitude. Furthermore, MuZero Unplugged also outperformed offline baselines in the RL Unplugged benchmark for Atari and continuous control. Unlike previous approaches, MuZero Unplugged uses the same algorithm for multiple regimes without any special treatment for off-policy or offline data.
183
+
184
+ This work represents a further step towards the vision of a single algorithm that can address a wide range of reinforcement learning applications, extending the capabilities of model-based planning algorithms to encompass new dimensions such as online and offline learning, using discrete and continuous action spaces, across pixel and state-based observation spaces, in addition to the wide array of challenging planning tasks addressed by prior work (Silver et al., 2018).
185
+
186
+ # Acknowledgements
187
+
188
+ We would like to thank Caglar Gulcehre for providing very detailed feedback and helpful suggestions to improve the paper.
189
+
190
+ All of the work in this paper was funded by DeepMind.
191
+
192
+ # References
193
+
194
+ Agarwal, R., Schuurmans, D., and Norouzi, M. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning, pp. 104–114. PMLR, 2020.
195
+ Akkaya, I., Andrychowicz, M., Chociej, M., Litwin, M., McGrew, B., Petron, A., Paino, A., Plappert, M., Powell, G., Ribas, R., et al. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019.
196
+ Argenson, A. and Dulac-Arnold, G. Model-based offline planning, 2020.
197
+ Ba, J. L., Kiros, J. R., and Hinton, G. E. Layer normalization, 2016.
198
+ Barth-Maron, G., Hoffman, M. W., Budden, D., Dabney, W., Horgan, D., TB, D., Muldal, A., Heess, N., and Lillicrap, T. Distributed Distributional Deterministic Policy Gradients, 2018.
199
+ Bellemare, M. G., Naddaf, Y., Veness, J., and Bowling, M. The Arcade Learning Environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013.
200
+ Bradbury, J., Frostig, R., Hawkins, P., Johnson, M. J., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., and Zhang, Q. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax.
201
+ Dabney, W., Rowland, M., Bellemare, M. G., and Munos, R. Distributional reinforcement learning with quantile regression. In AAAI, 2018.
202
+ Espeholt, L., Soyer, H., Munos, R., Simonyan, K., Mnih, V., Ward, T., Doron, Y., Firoiu, V., Harley, T., Dunning, I., et al. IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures. In Proceedings of the International Conference on Machine Learning (ICML), 2018.
203
+ Google, 2018. Cloud TPU. https://cloud.google.com/tpu/. Accessed: 2019.
204
+ Gulcehre, C., Wang, Z., Novikov, A., Paine, T. L., Colmenarejo, S. G., Zolna, K., Agarwal, R., Merel, J., Mankowitz, D., Paduraru, C., Dulac-Arnold, G., Li, J., Norouzi, M., Hoffman, M., Nachum, O., Tucker, G., Heess, N., and de Freitas, N. RL Unplugged: Benchmarks for Offline Reinforcement Learning. 2020. URL https://arxiv.org/pdf/2006.13888.
205
+ Hafner, D., Lillicrap, T., Fischer, I., Villegas, R., Ha, D., Lee, H., and Davidson, J. Learning latent dynamics for planning from pixels. arXiv preprint arXiv:1811.04551, 2018.
206
+ He, K., Zhang, X., Ren, S., and Sun, J. Identity mappings in deep residual networks. CoRR, abs/1603.05027, 2016. URL http://arxiv.org/abs/1603.05027.
207
+ He, Q. and Hou, X. POPO: Pessimistic Offline Policy Optimization, 2021.
208
+ Hennigan, T., Cai, T., Norman, T., and Babuschkin, I. Haiku: Sonnet for JAX, 2020. URL http://github.com/deepmind/dm-haiku.
209
+ Hessel, M., Modayil, J., Van Hasselt, H., Schaul, T., Ostrovski, G., Dabney, W., Horgan, D., Piot, B., Azar, M., and Silver, D. Rainbow: Combining improvements in deep reinforcement learning. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
210
+ Hinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. R. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012.
211
+ Hubert, T., Schrittwieser, J., Antonoglou, I., Barekatain, M., Schmitt, S., and Silver, D. Learning and Planning in Complex Action Spaces. arXiv e-prints, April 2021.
212
+ Jaderberg, M., Mnih, V., Czarnecki, W. M., Schaul, T., Leibo, J. Z., Silver, D., and Kavukcuoglu, K. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016.
213
+ Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. Scaling laws for neural language models, 2020.
214
+ Kidambi, R., Rajeswaran, A., Netrapalli, P., and Joachims, T. MOReL : Model-Based Offline Reinforcement Learning, 2020.
215
+ Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015.
216
+ Kumar, A., Zhou, A., Tucker, G., and Levine, S. Conservative Q-learning for Offline Reinforcement Learning, 2020.
217
+ Levine, S., Kumar, A., Tucker, G., and Fu, J. Offline reinforcement learning: Tutorial, review, and perspectives on open problems, 2020.
218
+ Lin, L.-J. Self-improving reactive agents based on reinforcement learning, planning and teaching. Machine learning, 8(3-4):293–321, 1992.
219
+ Loshchilov, I. and Hutter, F. Fixing weight decay regularization in adam. CoRR, abs/1711.05101, 2017. URL http://arxiv.org/abs/1711.05101.
220
+ Machado, M., Bellemare, M., Talvitie, E., Veness, J., Hausknecht, M., and Bowling, M. Revisiting the Arcade Learning Environment: Evaluation protocols and open problems for general agents. Journal of Artificial Intelligence Research, 61, 09 2017. doi: 10.1613/jair.5699.
221
+ Matsushima, T., Furuta, H., Matsuo, Y., Nachum, O., and Gu, S. Deployment-efficient reinforcement learning via model-based offline optimization, 2020.
222
+ Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A. A., Veness, J., Bellemare, M. G., Graves, A., Riedmiller, M., Fidjeland, A. K., Ostrovski, G., et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
223
+ Rafailov, R., Yu, T., Rajeswaran, A., and Finn, C. Offline reinforcement learning from images with latent space models. In Learning for Dynamics and Control, pp. 1154–1168. PMLR, 2021.
224
+ Schaul, T., Quan, J., Antonoglou, I., and Silver, D. Prioritized experience replay. In International Conference on Learning Representations, Puerto Rico, 2016.
225
+ Schmitt, S., Hessel, M., and Simonyan, K. Off-policy actor-critic with shared experience replay. arXiv preprint arXiv:1909.11583, 2019.
226
+ Schrittwieser, J., Antonoglou, I., Hubert, T., Simonyan, K., Sifre, L., Schmitt, S., Guez, A., Lockhart, E., Hassabis, D., Graepel, T., Lillicrap, T. P., and Silver, D. Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model. Nature, 588(7839):604–609, 2020.
227
+ Shrestha, A. K., Lee, S., Tadepalli, P., and Fern, A. Deepaveragers: Offline reinforcement learning by solving derived non-parametric $\{ { \mathrm { m d p } } \} { \mathrm { s } }$ . In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\equiv$ eMP1j9efXtX.
228
+ Siegel, N. Y., Springenberg, J. T., Berkenkamp, F., Abdolmaleki, A., Neunert, M., Lampe, T., Hafner, R., and Riedmiller, M. Keep doing what worked: Behavioral modelling priors for offline reinforcement learning. arXiv preprint arXiv:2002.08396, 2020.
229
+ Silver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., Chen, Y., Lillicrap, T., Hui, F., Sifre, L., van den Driessche, G., Graepel, T., and Hassabis, D. Mastering the game of Go without human knowledge. Nature, 550:354–359, October 2017.
230
+ Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., Lanctot, M., Sifre, L., Kumaran, D., Graepel, T., et al. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419):1140–1144, 2018.
231
+ Sutton, R. S. Dyna, an integrated architecture for learning, planning, and reacting. ACM Sigart Bulletin, 2(4):160–163, 1991.
232
+ Tassa, Y., Doron, Y., Muldal, A., Erez, T., Li, Y., de Las Casas, D., Budden, D., Abdolmaleki, A., Merel, J., Lefrancq, A., Lillicrap, T., and Riedmiller, M. Deepmind control suite, 2018.
233
+ Vinyals, O., Babuschkin, I., Czarnecki, W. M., Mathieu, M., Dudzik, A., Chung, J., Choi, D. H., Powell, R., Ewalds, T., Georgiev, P., et al. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature, pp. 1–5, 2019.
234
+ Wang, Z., Novikov, A., Zolna, K., Merel, J. S., Springenberg, J. T., Reed, S. E., Shahriari, B., Siegel, N., Gulcehre, C., Heess, N., et al. Critic Regularized Regression. Advances in Neural Information Processing Systems, 33, 2020.
235
+ Wu, Y., Tucker, G., and Nachum, O. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019.
236
+ Yu, T., Thomas, G., Yu, L., Ermon, S., Zou, J., Levine, S., Finn, C., and Ma, T. MOPO: Model-based Offline Policy Optimization, 2020.
parse/train/HKtsGW-lNbw/HKtsGW-lNbw_content_list.json ADDED
@@ -0,0 +1,1099 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Online and Offline Reinforcement Learning by Planning with a Learned Model ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 217,
8
+ 122,
9
+ 781,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Julian Schrittwieser∗ DeepMind swj@google.com ",
17
+ "bbox": [
18
+ 217,
19
+ 226,
20
+ 366,
21
+ 268
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Thomas Hubert∗ DeepMind tkhubert@google.com ",
28
+ "bbox": [
29
+ 406,
30
+ 226,
31
+ 573,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Amol Mandhane DeepMind mandhane@google.com ",
39
+ "bbox": [
40
+ 617,
41
+ 226,
42
+ 784,
43
+ 268
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Mohammadamin Barekatain DeepMind barekatain@google.com ",
50
+ "bbox": [
51
+ 187,
52
+ 290,
53
+ 393,
54
+ 332
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Ioannis Antonoglou \nDeepMind \nUniversity College London \nioannisa@google.com David Silver DeepMind \nUniversity College London \ndavidsilver@google.com ",
61
+ "bbox": [
62
+ 415,
63
+ 290,
64
+ 594,
65
+ 344
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "",
72
+ "bbox": [
73
+ 619,
74
+ 290,
75
+ 808,
76
+ 345
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Abstract ",
83
+ "text_level": 1,
84
+ "bbox": [
85
+ 462,
86
+ 381,
87
+ 535,
88
+ 396
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Learning efficiently from small amounts of data has long been the focus of modelbased reinforcement learning, both for the online case when interacting with the environment and the offline case when learning from a fixed dataset. However, to date no single unified algorithm has demonstrated state-of-the-art results in both settings. In this work, we describe the Reanalyse algorithm which uses modelbased policy and value improvement operators to compute new improved training targets on existing data points, allowing efficient learning for data budgets varying by several orders of magnitude. We further show that Reanalyse can also be used to learn entirely from demonstrations without any environment interactions, as in the case of offline Reinforcement Learning (offline RL). Combining Reanalyse with the MuZero algorithm, we introduce MuZero Unplugged, a single unified algorithm for any data budget, including offline RL. In contrast to previous work, our algorithm does not require any special adaptations for the off-policy or offline RL settings. MuZero Unplugged sets new state-of-the-art results in the RL Unplugged offline RL benchmark as well as in the online RL benchmark of Atari in the standard 200 million frame setting. ",
95
+ "bbox": [
96
+ 232,
97
+ 412,
98
+ 766,
99
+ 633
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "1 Introduction ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 176,
109
+ 659,
110
+ 310,
111
+ 676
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Offline reinforcement learning holds the promise of learning useful policies from many existing real-world datasets in a wide range of important problems such as robotics, healthcare or education (Levine et al., 2020). Learning effectively from offline data is crucial for such tasks where interaction with the environment is costly or comes with safety concerns, but a large amount of logged and other offline data is often available. ",
118
+ "bbox": [
119
+ 174,
120
+ 690,
121
+ 825,
122
+ 760
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "A wide variety of effective reinforcement learning (RL) algorithms for the online case have been described, achieving impressive results in video games (Mnih et al., 2015), robotic control (Akkaya et al., 2019) and many other problems. However, applying these online RL algorithms to offline data often remains challenging due to off-policy issues, with the best results in offline RL so far obtained by specialised offline algorithms (Kumar et al., 2020; Wang et al., 2020; Agarwal et al., 2020). At the same time, model-based reinforcement learning (RL) has long focused on learning efficiently from little data, even going as far as learning completely within a model of the environment (Hafner et al., 2018) - an approach ideally suited for offline RL. ",
129
+ "bbox": [
130
+ 174,
131
+ 766,
132
+ 825,
133
+ 877
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "So far, these developments have been relatively independent, with no unified algorithm that could achieve state-of-the art results in both the online and offline settings. ",
140
+ "bbox": [
141
+ 173,
142
+ 92,
143
+ 823,
144
+ 119
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "In this paper, we describe the Reanalyse algorithm, a simple yet effective technique for policy and value improvement at any data budget, including the fully offline case. A preliminary version of Reanalyse was briefly introduced in the context of MuZero (Schrittwieser et al., 2020), but limited to data efficiency improvements in the discrete action case. Here, we delve deeper into the algorithm and push its capabilities much further – ultimately to the point where most or all of the data is reanalysed. ",
151
+ "bbox": [
152
+ 174,
153
+ 126,
154
+ 825,
155
+ 195
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Starting with the possible uses of Reanalyse, we show how it can be used for data efficient learning and offline RL, leading to MuZero Unplugged. We demonstrate its effectiveness for the online case through results on Atari and for the offline case through results on the RL Unplugged benchmark for Atari and DM Control. ",
162
+ "bbox": [
163
+ 174,
164
+ 202,
165
+ 825,
166
+ 257
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "2 Related Work ",
173
+ "text_level": 1,
174
+ "bbox": [
175
+ 174,
176
+ 311,
177
+ 321,
178
+ 330
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Recent work by Levine et al. (2020) provides a thorough review of offline RL literature and presents an excellent introduction to the subject. Much research has focused on regularising the value or policy learning to counteract off-policy issues and learn only from high quality data. Critic-Regularized Regression (CRR) uses a critic to filter out bad actions and uses only good actions to train the policy (Wang et al., 2020). Random Ensemble Mixture (REM) regularises q-value estimation by using random convex combinations of ensemble members during training, and the ensemble mean during evaluation (Agarwal et al., 2020). Conservative Q-Learning (CQL) learns a conservative Q-function, used to lower bound the value of the current policy (Kumar et al., 2020). Pessimistic Offline Policy Optimization (POPO) also uses a pessimistic value function for policy learning (He & Hou, 2021). ",
185
+ "bbox": [
186
+ 174,
187
+ 366,
188
+ 825,
189
+ 491
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Existing work has also demonstrated the promise of model-based RL for offline learning (Matsushima et al., 2020; Argenson & Dulac-Arnold, 2020), but has often been restricted to tasks with lowdimensional action or state spaces, and has not been applied to visually more complex tasks such as Atari (Bellemare et al., 2013). ",
196
+ "bbox": [
197
+ 174,
198
+ 497,
199
+ 825,
200
+ 553
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Model-Based Offline Reinforcement Learning (MOReL) implements a two-step procedure, first learning a pessimistic MDP from offline data using Gaussian dynamics models, then a policy within this learned MDP (Kidambi et al., 2020). Results are presented for state-based control tasks. Modelbased Offline Policy Optimization (MOPO) penalises rewards by the uncertainty of the model dynamics to avoid distributional shift issues (Yu et al., 2020). Offline Reinforcement Learning from Images with Latent Space Models (LOMPO) extends MOPO to image based tasks (Rafailov et al., 2021). Results are reported on newly introduced datasets with image observations, which the authors aim to open-source in the near future. Deep Averagers with Costs MDP (DAC-MDP) (Shrestha et al., 2021) builds non-parametric models from the offline data, solves these tabular MDPs using value iteration, then generalizes back to the original MDP. ",
207
+ "bbox": [
208
+ 174,
209
+ 559,
210
+ 825,
211
+ 698
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Most previous approaches primarily use the learned model for uncertainty estimation and to train a policy; they do not directly use the learned model for planning over action sequences. In contrast, our method focuses on using the learned model directly for policy and value improvement through planning both offline (when learning from data) and online (when interacting with an environment). It requires no regularisation of the value or policy function either in the online or offline case, works well even in very high dimensional state spaces and is equally applicable to both discrete and continuous action spaces. ",
218
+ "bbox": [
219
+ 174,
220
+ 704,
221
+ 825,
222
+ 801
223
+ ],
224
+ "page_idx": 1
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "Reanalyse is also qualitatively different from Dyna (Sutton, 1991) in several important regards: it uses both value and policy rather than value function alone; and it also updates the state representation. In the specific case of MuZero Reanalyse it also performs a tree search rather than a single step lookahead used in Dyna. ",
229
+ "bbox": [
230
+ 174,
231
+ 806,
232
+ 825,
233
+ 863
234
+ ],
235
+ "page_idx": 1
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "A combination of MuZero Unplugged with regularisation approaches such as introduced in the previous work discussed above (Kidambi et al., 2020; Yu et al., 2020; Rafailov et al., 2021) is possible; we leave such investigations for future work. ",
240
+ "bbox": [
241
+ 176,
242
+ 869,
243
+ 825,
244
+ 911
245
+ ],
246
+ "page_idx": 1
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "3 Reanalyse ",
251
+ "text_level": 1,
252
+ "bbox": [
253
+ 174,
254
+ 89,
255
+ 289,
256
+ 106
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Reanalyse takes advantage of model-based value and policy improvement operators to generate new value and policy training targets for a given state (Algorithm 1). In this work, we will use MuZero’s Monte Carlo Tree Search (MCTS) planning algorithm combined with its learned model of the environment dynamics as the improvement operator.2 ",
263
+ "bbox": [
264
+ 174,
265
+ 121,
266
+ 825,
267
+ 176
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "As the learned model and its predictions are updated and improved throughout training, Reanalyse can be repeatedly applied to the same state to generate better and better training targets. The improved training targets in turn are used to improve the model and predictions, leading to a virtuous cycle of improvement. ",
274
+ "bbox": [
275
+ 174,
276
+ 183,
277
+ 825,
278
+ 238
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "Algorithm 1 The Reanalyse algorithm. MuZero Unplugged instantiates representation, predict, dynamics with the MuZero network architecture; plan with MCTS; loss with the MuZero loss in eqn (1); and optimise with Adam. ",
285
+ "bbox": [
286
+ 173,
287
+ 253,
288
+ 821,
289
+ 296
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "for $\\mathrm { s t e p } \\gets 0 . . . N$ do t ∼ random(1 : T ) s0t = representation(h1:t, θ) for $\\mathrm { i } 0 . . . k$ do π it , $\\nu _ { t } ^ { i } =$ plan(representation(h1:t+i, θ), θ) pit, vit = predict(sit, θ) ri+1t , si+1t = dynamics(sit, at+i, θ) end for $l = \\mathrm { l o s s } ( h _ { t : t + k } , \\{ r , p , v , u , \\pi , \\nu \\} _ { t } ^ { 0 : k } , \\theta )$ $\\Delta \\theta = \\mathrm { o p t i m i s e } ( l , \\theta )$ \nend for ",
296
+ "bbox": [
297
+ 178,
298
+ 297,
299
+ 500,
300
+ 454
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "To run MCTS and compute new targets for a training point, the representation function of MuZero maps the history $h _ { 1 : t }$ of observations, actions and rewards up to timestep $t$ into an agent state or embedding $s _ { t }$ . The search over possible future action sequences then takes place entirely in this embedding space, by rolling the dynamics forward and applying prediction functions at every step. These predictions output the key quantities required by planning: the policy, value function and reward. The resulting MCTS statistics at the root of the search tree - visit counts for the actions and value estimate averaged over the tree - are then used as new training targets. During reanalysis, no actions $a$ are selected – instead the agent updates its model and prediction parameters based on the data it has already experienced. ",
307
+ "bbox": [
308
+ 173,
309
+ 469,
310
+ 825,
311
+ 594
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Specifically, MuZero Reanalyse jointly adjusts its parameters $\\theta$ to repeatedly optimise the following loss at every time-step $t$ , applied to a model that is unrolled $0 . . . K$ steps into the future, ",
318
+ "bbox": [
319
+ 173,
320
+ 601,
321
+ 823,
322
+ 630
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/61850c8ffea8a9a0e50a3db7695a83e872d85be4e03cbf155ad160823db94484.jpg",
329
+ "text": "$$\nl _ { t } ( \\theta ) = \\sum _ { k = 0 } ^ { K } l ^ { p } ( \\pi _ { t + k } , p _ { t } ^ { k } ) + \\ \\sum _ { k = 0 } ^ { K } l ^ { v } ( z _ { t + k } , v _ { t } ^ { k } ) + \\sum _ { k = 1 } ^ { K } l ^ { r } ( u _ { t + k } , r _ { t } ^ { k } )\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 281,
333
+ 645,
334
+ 700,
335
+ 689
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "where $p _ { t } ^ { k } , v _ { t } ^ { k }$ , and $r _ { k } ^ { t }$ are respectively the policy, value and reward prediction produced by the $k$ -step unrolled model. The respective targets for these predictions are drawn from the corresponding time-step $t + k$ of the real trajectory: $\\pi _ { t + k } , \\nu _ { t + k }$ are the improved policy and value generated by the search, $z _ { t + k } = u _ { t + k + 1 } + . . . + \\gamma ^ { n - 1 } u _ { t + k + n } + \\gamma ^ { n } \\nu _ { t + k + n }$ is an $n$ -step return, and $u _ { t + k }$ is the true reward. ",
342
+ "bbox": [
343
+ 174,
344
+ 693,
345
+ 825,
346
+ 762
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "The policy and value predictions are then updated towards the new training targets, in the same way they would be for targets computed based on environment interactions - through minimising losses $l ^ { p } , l ^ { v }$ and $l ^ { r }$ . In other words, Reanalyse requires no changes on the part of the learner and can be implemented purely in terms of adapting the actors to generate improved targets based on stored data instead of environment interactions. ",
353
+ "bbox": [
354
+ 173,
355
+ 768,
356
+ 825,
357
+ 839
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Since the actual MCTS procedure used to Reanalyse a state is the same as the one used to choose an action when interacting with an environment, it is straightforward to perform a mix of both. We refer to this ratio between targets computed from direct interactions with the environment, and targets ",
364
+ "bbox": [
365
+ 174,
366
+ 844,
367
+ 825,
368
+ 887
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "image",
374
+ "img_path": "images/55451c2b71572810e2f011f5b32046df76b1abd82c0dbb913534ab85b1c99e0b.jpg",
375
+ "image_caption": [
376
+ "Figure 1: Reanalyse scaling in Atari. By varying the Reanalyse fraction alone, MuZero can learn efficiently at data budgets differing by orders of magnitude. All other parameters are held constant. Left: Final scores in Ms. Pac-Man for different Reanalyse fractions. Note the logarithmic $\\mathbf { X }$ -axis: Linear improvements in score require exponentially more data, matching scaling laws such as described by (Kaplan et al., 2020) for language models. "
377
+ ],
378
+ "image_footnote": [],
379
+ "bbox": [
380
+ 176,
381
+ 90,
382
+ 514,
383
+ 213
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "table",
389
+ "img_path": "images/95c6261156eb8e6dde29d795ac65a702c939e7c286428d66202fdfbdcde866c0.jpg",
390
+ "table_caption": [],
391
+ "table_footnote": [],
392
+ "table_body": "<table><tr><td>Reanalyse</td><td>Median</td><td>Mean</td><td>#Frames</td></tr><tr><td>50.0%</td><td>1331.7%</td><td>4094.4%</td><td>2000M</td></tr><tr><td>95.0%</td><td>1006.4%</td><td>2856.2%</td><td>200M</td></tr><tr><td>99.5%</td><td>126.6%</td><td>450.6%</td><td>20M</td></tr></table>",
393
+ "bbox": [
394
+ 537,
395
+ 119,
396
+ 818,
397
+ 185
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Right: Mean & median human normalised scores over 57 Atari games, by Reanalyse fraction. ",
404
+ "bbox": [
405
+ 169,
406
+ 294,
407
+ 787,
408
+ 308
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "computed by reanalysing existing data points as the Reanalyse fraction. A Reanalyse fraction of $0 \\%$ refers to training by only interacting with the environment, no Reanalyse of stored data, whereas a fraction of $100 \\%$ refers to the fully offline case with no environment interaction at all. ",
415
+ "bbox": [
416
+ 176,
417
+ 330,
418
+ 823,
419
+ 372
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "Since Reanalyse only uses stored data points and the learned model to compute improved targets, it can be employed flexibly for many different purposes: ",
426
+ "bbox": [
427
+ 171,
428
+ 378,
429
+ 823,
430
+ 407
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "• Data Efficiency. The simplest use of Reanalyse is to improve data efficiency by repeatedly computing updated targets on previously collected data throughout training. By scaling the Reanalyse fraction as described in Section 4, learning can be optimised for any data budget. For this purpose, the data to be reanalysed is sampled from the $N$ most recent environment interactions; in the limit this includes all interactions throughout training. Offline RL. When increasing the Reanalyse fraction to $100 \\%$ , learning takes place entirely from stored offline data as described in Section 5, without any interaction with the environment. Offline data may be obtained from a variety of sources, such as other agents, logged data from a heuristic control system or human examples. Demonstrations. Reanalyse can be used to quickly bootstrap learning from demonstrations containing desirable behaviour that might otherwise be hard to discover - collected for instance from humans - while still interacting with the environment, learning from both sources of data at the same time. This is useful to skip past what might otherwise be hard exploration problems while still improving beyond the quality of the initial demonstrations. Exploitation of good episodes. When using Reanalyse to improve data efficiency, Reanalyse is applied to the most recently collected data. If instead data is ordered by some other metric, such as episode reward, Reanalyse can be used to quickly learn from rare events, such as rewards observed in hard-exploration tasks. This variant is most useful in deterministic environments, as it could otherwise bias the value estimates in stochastic environments. ",
437
+ "bbox": [
438
+ 217,
439
+ 417,
440
+ 826,
441
+ 690
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "In this paper, we will focus on the data efficiency and offline RL cases. Remaining cases require no adjustments to the algorithm and only differ in the source of data to be reanalysed. Further combinations of the cases above are also possible, such as a mix of exploitation and data efficiency Reanalyse which we leave for future work. ",
448
+ "bbox": [
449
+ 174,
450
+ 702,
451
+ 825,
452
+ 757
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "The Reanalyse algorithm has some similarities to experience replay (Lin, 1992). Whereas replay performs multiple gradient descent updates for the same data point and target, Reanalyse uses modelbased improvement operators to generate multiple training targets for the same data point. Reanalyse and replay have independent effects and can be combined to further improve data efficiency of learning; in fact we do so for all experiments in this paper. ",
459
+ "bbox": [
460
+ 174,
461
+ 763,
462
+ 825,
463
+ 834
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "4 Reanalyse for Data Efficiency ",
470
+ "text_level": 1,
471
+ "bbox": [
472
+ 176,
473
+ 852,
474
+ 450,
475
+ 869
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "By adjusting the ratio between targets computed from interactions with the environment and from stored trajectories (Reanalyse fraction), Reanalyse can be used to train MuZero at any desired data ",
482
+ "bbox": [
483
+ 173,
484
+ 883,
485
+ 821,
486
+ 911
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "table",
492
+ "img_path": "images/a60b290b047789fb9aea57612566531d5fcde4a5ef6abd4596a69ea0426483b3.jpg",
493
+ "table_caption": [],
494
+ "table_footnote": [],
495
+ "table_body": "<table><tr><td>Loss</td><td>Median</td><td>Mean</td></tr><tr><td>a BC</td><td>53.3 %</td><td>48.5 %</td></tr><tr><td>DQN</td><td>86.2 %</td><td>89.5 %</td></tr><tr><td>IQN</td><td>100.8 %</td><td>96.1 %</td></tr><tr><td>BCQ</td><td>107.5 %</td><td>120.0 %</td></tr><tr><td>REM</td><td>107.9 %</td><td>113.5 %</td></tr><tr><td>CRR (ours)</td><td>155.6 %</td><td>271.2 %</td></tr><tr><td>b MuZero BC</td><td>54.0 %</td><td>46.9 %</td></tr><tr><td>MuZero Unplugged</td><td>265.3 %</td><td>595.5 %</td></tr></table>",
496
+ "bbox": [
497
+ 173,
498
+ 102,
499
+ 467,
500
+ 237
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "table",
506
+ "img_path": "images/20046900120cd7bfd2f302e0c1b3cd22aaa60524d3eae7dccb4fdcd9f694d88c.jpg",
507
+ "table_caption": [],
508
+ "table_footnote": [],
509
+ "table_body": "<table><tr><td>Game</td><td>QR-DQN</td><td>REM</td><td>CQL(H)</td><td>MZ</td></tr><tr><td>asterix (1%)</td><td>359.8</td><td>363.3</td><td>592.4</td><td>27220.5</td></tr><tr><td>breakout</td><td>6.8</td><td>4.5</td><td>61.1</td><td>251.9</td></tr><tr><td>pong</td><td>-14.5</td><td>-20.8</td><td>19.3</td><td>-16.2</td></tr><tr><td>qbert</td><td>156.0</td><td>160.1</td><td>14012.0</td><td>6953.2</td></tr><tr><td>seaquest</td><td>250.1</td><td>370.5</td><td>779.4</td><td>4964.0</td></tr><tr><td>asterix (10%)</td><td>1293.9</td><td>3912.3</td><td>156.3</td><td>40554.0</td></tr><tr><td>breakout</td><td>61.8</td><td>56.9</td><td>269.3</td><td>485.8</td></tr><tr><td>pong</td><td>12.7</td><td>9.5</td><td>18.5</td><td>15.6</td></tr><tr><td>qbert</td><td>9420.5</td><td>5800.0</td><td>13855.6</td><td>16817.9</td></tr><tr><td>seaquest</td><td>353.1</td><td>3643.5</td><td>3674.1</td><td>8556.3</td></tr></table>",
510
+ "bbox": [
511
+ 473,
512
+ 89,
513
+ 816,
514
+ 248
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Table 1: RL Unplugged Atari benchmark. ",
521
+ "text_level": 1,
522
+ "bbox": [
523
+ 174,
524
+ 247,
525
+ 470,
526
+ 262
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "Left: Overall results. Mean and median normalised scores over the 46 Atari games of the RL Unplugged benchmark. a) Baseline algorithms. CRR results are for our own reimplementation, other results are from (Gulcehre et al., 2020). b) Results using the MuZero network architecture. ",
533
+ "bbox": [
534
+ 173,
535
+ 262,
536
+ 821,
537
+ 303
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Behaviour cloning (BC) with the MuZero network replicated the baseline BC results from a), confirming correct import of the dataset and evaluation settings. Critic Regularized Regression (CRR) (Wang et al., 2020) significantly improved performance of the policy. MuZero Unplugged training with Reanalyse loss and MCTS for action selection led to overall best performance. ",
544
+ "bbox": [
545
+ 176,
546
+ 304,
547
+ 823,
548
+ 357
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "Right: Low-data setting. QR-DQN (Dabney et al., 2018), REM (Agarwal et al., 2020), CQL(H) (Kumar et al., 2020) and MuZero Unplugged results when trained on only $1 \\%$ (top, 2 million frames) or $10 \\%$ (bottom, 20 million frames) of Atari data. QR-DQN and REM results from (Agarwal et al., 2020). MuZero Unplugged performance improves consistently when trained on more data. ",
555
+ "bbox": [
556
+ 174,
557
+ 358,
558
+ 826,
559
+ 414
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "budget, as shown in Figure 1. The total amount of computation for each training run (number of updates on the learner and number of searches on the actors) is held constant. ",
566
+ "bbox": [
567
+ 174,
568
+ 445,
569
+ 823,
570
+ 473
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "As training progresses, the policy produced by MCTS with the latest network weights will increasingly differ from the policy originally used to generate the trajectories that are being reanalysed. This can bias the state distribution used for training as well as some of the training targets: ",
577
+ "bbox": [
578
+ 176,
579
+ 479,
580
+ 821,
581
+ 522
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "• The policy prediction $p _ { t }$ for a state $s _ { t }$ is always updated towards the MCTS statistics $\\pi _ { t }$ for that same state. In this way, the policy can be learned completely independently from the trajectory; no off-policy issues can arise. \n• The reward prediction only depends on the state and the action that was taken from this state and is not affected by off-policy issues as such. However, if the state distribution is very biased - in the extreme an action may never be observed - the reward function will be unable to learn the correct reward prediction for these cases, limiting the maximum policy improvement step. \nThe situation for the value function depends on the choice of training target; when using an n-step TD return such as in Atari $( n = 5$ ), the target depends on the trajectory and off-policy issues can potentially arise. Whether this is an issue depends on how different the data distribution is from the policy that is being learned. Empirically, we observed that the gain from bootstrapping with the actually observed environment rewards seems to outweigh any harm from being off-policy. We speculate that the bias introduced by early bootstrapping may be larger than the bias introduced by off-policy targets, as also seen in prior work (Vinyals et al., 2019). ",
588
+ "bbox": [
589
+ 215,
590
+ 532,
591
+ 825,
592
+ 757
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "5 MuZero Unplugged: Offline RL with Reanalyse ",
599
+ "text_level": 1,
600
+ "bbox": [
601
+ 173,
602
+ 776,
603
+ 599,
604
+ 795
605
+ ],
606
+ "page_idx": 4
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "We obtain MuZero Unplugged, an offline version of MuZero, by adjusting the Reanalyse fraction to $100 \\%$ - learning without any environment interactions, purely from stored trajectories. In contrast to previous work, we perform no off-policy corrections or adjustments to the value and policy learning: the exact same algorithm applies to both the online and offline case. ",
611
+ "bbox": [
612
+ 174,
613
+ 808,
614
+ 825,
615
+ 863
616
+ ],
617
+ "page_idx": 4
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "We used the RL Unplugged (Gulcehre et al., 2020) benchmark dataset for all offline RL experiments in this paper. To demonstrate the generality of the approach, we report results for both discrete and continuous action spaces as well as state and pixel based data, specifically: ",
622
+ "bbox": [
623
+ 174,
624
+ 869,
625
+ 825,
626
+ 911
627
+ ],
628
+ "page_idx": 4
629
+ },
630
+ {
631
+ "type": "table",
632
+ "img_path": "images/9e370cbefd6de7a0c53f7179fa34b3a63188a7dc9e3186d07f04747842113cef.jpg",
633
+ "table_caption": [
634
+ "Table 2: Median score in RL Unplugged Atari: ablations of action selection and training loss. Median normalized scores over the 46 Atari games from RL Unplugged. "
635
+ ],
636
+ "table_footnote": [],
637
+ "table_body": "<table><tr><td>Loss Unroll</td><td colspan=\"3\">supervised 0 1</td><td>CRR 5</td><td>Reanalyse 5</td></tr><tr><td>policy</td><td>60.6</td><td>61.4</td><td>5 54.0</td><td>155.6</td><td>203.2</td></tr><tr><td>value</td><td>92.2</td><td>105.0</td><td>159.2</td><td>153.0</td><td>239.9</td></tr><tr><td>MCTS</td><td>1</td><td>137.3</td><td>169.7</td><td>172.5</td><td>265.3</td></tr></table>",
638
+ "bbox": [
639
+ 302,
640
+ 89,
641
+ 694,
642
+ 172
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "Rows of the table correspond to different action selection methods: sampling according to the policy probabilities, selecting the action with the highest value or selecting according to MCTS visit counts. Columns correspond to different number of unroll steps of the MuZero learned model and different losses. The leftmost three columns use the action from the training data as a supervised policy target, the rightmost two columns use the CRR and the Reanalyse loss respectively. For the case of 0 unroll steps, an action-value head is used to predict action values, instead of the state-value predicted by the normal model. All columns use a 5-step TD bootstrap towards a target network as the value target. For all action selection methods, Reanalyse loss led to the best performance; for all losses, MCTS action selection also led to the best performance. Overall, the combination of MCTS action selection and Reanalyse loss - the MuZero Unplugged algorithm - led to the best results. ",
649
+ "bbox": [
650
+ 173,
651
+ 207,
652
+ 826,
653
+ 344
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "• DM Control Suite, 9 different tasks, number of frames varies by task (Table 3). Continuous action space with 1 to 21 dimensions, state observations. ",
660
+ "bbox": [
661
+ 215,
662
+ 390,
663
+ 823,
664
+ 417
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "• Atari, 46 games with 200M frames each. Discrete action space, pixel observations, stochasticity through sticky actions (Machado et al., 2017). ",
671
+ "bbox": [
672
+ 217,
673
+ 425,
674
+ 823,
675
+ 453
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "MuZero Unplugged was highly effective in either setting, outperforming baseline algorithms in Atari (Table 1) as well as the DM Control Suite (Table 3). We performed no tuning of hyperparameters for these experiments, instead using the same hyperparameter values as for the online RL case (Schrittwieser et al., 2020; Hubert et al., 2021). ",
682
+ "bbox": [
683
+ 174,
684
+ 469,
685
+ 825,
686
+ 525
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "To add another strong baseline for the Atari benchmark, we also implemented Critic Regularized Regression (CRR), a recent offline RL algorithm (Wang et al., 2020). For the critic value required by CRR we used the value head of MuZero model, trained by 5-step TD with respect to a target network, as in previous work (Schrittwieser et al., 2020) and the same as used for MuZero Unplugged. Using CRR to train the policy head led to improved results in Atari (Table 1a, CRR), matching results reported for continuous action tasks, but did not reach the same performance as MuZero Unplugged. ",
693
+ "bbox": [
694
+ 174,
695
+ 531,
696
+ 825,
697
+ 614
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Performance of MuZero Unplugged was robust across the whole range of 46 Atari games in the RL Unplugged benchmark, reaching the same or better performance as the DQN policy used to generate the data in 44 games, and slightly worse performance in only 2 games (Figure 2). Improvements in performance with respect to the training data were considerable, exceeding a 20 times increase in score in several games. ",
704
+ "bbox": [
705
+ 174,
706
+ 621,
707
+ 825,
708
+ 690
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "To examine the performance of MuZero Unplugged in detail and ascertain the contributions of action selection methods and training losses, we also performed a set of ablations (Tables 2 and 7) based on the Atari dataset. We chose Atari because the large number of diverse levels enables robust performance estimates and its discrete action space allows us to cleanly disentangle the contributions of value and policy predictions as well as planning with MCTS. In contrast, for continuous action spaces such as in the DM Control suite, the contributions of policy and value are entangled, as the value function can only evaluate actions already sampled from the policy. ",
715
+ "bbox": [
716
+ 174,
717
+ 696,
718
+ 825,
719
+ 795
720
+ ],
721
+ "page_idx": 5
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "For our ablations, we considered three possible action selection methods: Sampling actions according to the policy network probabilities, selecting the action with the maximum value, or selecting actions based on the MCTS visit count distribution (rows of Table 2). We also considered different losses and network architectures: the leftmost three columns use variants of the MuZero learned model with 0 (no model at all), 1 or 5 steps of model unroll, all trained using the supervised behaviour cloning policy target and a 5-step TD value target based on a target network. The next column used CRR to train the policy. The last column used the the MCTS visit count distribution from the Reanalyse loss. These ablations allow us to separately measure the contribution of MCTS at training time (rightmost column) and evaluation time (bottom row), with the combination of MCTS at evaluation time and Reanalyse loss (bottom right cell) corresponding to MuZero Unplugged. ",
726
+ "bbox": [
727
+ 174,
728
+ 800,
729
+ 825,
730
+ 911
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "",
737
+ "bbox": [
738
+ 171,
739
+ 90,
740
+ 823,
741
+ 119
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "As expected, the policy prediction was insensitive to the choice of model depth, but benefited from an improved training target: the CRR loss significantly improved results. Best results were obtained when using the rich MCTS visit count distribution from the Reanalyse loss as a training target (top row of Table 2). ",
748
+ "bbox": [
749
+ 174,
750
+ 126,
751
+ 825,
752
+ 181
753
+ ],
754
+ "page_idx": 6
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "When selecting actions according to the value estimate for each action (middle row of Table 2), the depth of the learned model was surprisingly important. The difference between estimating q-values (0-step model) and state-values (1-step model) was small, with both attaining results similar to the IQN baseline (Table 1a) — expected, since all of these results use a distributional value prediction. However, learning a full 5-step model led to a big improvement even though only 1-step value predictions were used for evaluation. We speculate that learning a full 5-step model is beneficial because it regularises the network representation and acts as a useful auxiliary loss.3 ",
759
+ "bbox": [
760
+ 173,
761
+ 188,
762
+ 825,
763
+ 285
764
+ ],
765
+ "page_idx": 6
766
+ },
767
+ {
768
+ "type": "table",
769
+ "img_path": "images/a153f2f406f8663a5800e7d76538656ae2fe8aa5f487796e2dae76660d6bc182.jpg",
770
+ "table_caption": [],
771
+ "table_footnote": [],
772
+ "table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\"># dims # episodes</td><td rowspan=\"2\"></td><td colspan=\"4\">Baselines</td><td rowspan=\"2\">MuZero BC Unplugged</td></tr><tr><td>BC</td><td>D4PG</td><td>BRAC</td><td>RABM</td></tr><tr><td>cartpole.swingup</td><td>1</td><td>40</td><td>386.0</td><td>856.0</td><td>869.0</td><td>798.0</td><td>143.7 343.3</td></tr><tr><td>finger.turn_hard</td><td></td><td>500</td><td>238.0</td><td>714.0</td><td>227.0</td><td>433.0</td><td>308.8 405.0</td></tr><tr><td>fish.swim</td><td>255</td><td>200</td><td>444.0</td><td>180.0</td><td>222.0</td><td>504.0</td><td>542.8 585.4</td></tr><tr><td>manipulator.insert_ball</td><td></td><td>1500</td><td>385.0</td><td>154.0</td><td>55.6</td><td>409.0</td><td>412.7 557.0</td></tr><tr><td>manipulator.insert_peg</td><td>5</td><td>1500</td><td>279.0</td><td>50.4</td><td>49.5</td><td>290.0</td><td>309.9 432.7</td></tr><tr><td>walker.stand</td><td>6</td><td>200</td><td>386.0</td><td>930.0</td><td>829.0</td><td>689.0 444.4</td><td>759.8</td></tr><tr><td>walker.walk</td><td>6</td><td>200</td><td>380.0</td><td>549.0</td><td>786.0</td><td>651.0 496.3</td><td>901.5</td></tr><tr><td>cheetah.run</td><td>6</td><td>300</td><td>408.0</td><td>308.0</td><td>539.0</td><td>304.0 592.9</td><td>798.9</td></tr><tr><td>humanoid.run</td><td>21</td><td>3000</td><td>382.0</td><td>1.7</td><td>9.6</td><td>303.0 408.5</td><td>633.4</td></tr><tr><td>mean</td><td></td><td></td><td>365.3</td><td>415.9</td><td>398.5</td><td>486.8</td><td>406.7 601.9</td></tr></table>",
773
+ "bbox": [
774
+ 173,
775
+ 301,
776
+ 828,
777
+ 489
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "Table 3: Results for DM Control benchmark from RL Unplugged. Mean final score on 9 DM Control tasks, as well as mean score across all tasks. First three columns indicate task, action dimensonality and dataset size, subsequent four columns reproduce baseline results from (Gulcehre et al., 2020). Final columns show performance of Behaviour Cloning (BC) with the MuZero network and results for MuZero Unplugged. As the data sets for the DM Control tasks are very small and vary a hundredfold between tasks, to keep the number of model parameters per datapoint constant and prevent memorisation, we scaled the neural network according to channel $\\begin{array} { r } { s = { \\sqrt { \\frac { d a t a p o i n t s } { l a y e r s } } } } \\end{array}$ . For an ablation of network size see Table 9. ",
784
+ "bbox": [
785
+ 173,
786
+ 501,
787
+ 825,
788
+ 622
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Keeping the 5-step model but changing the loss for the policy head, we observed that CRR had no effect on the quality of the value prediction for action selection, while the richer MCTS visit count distribution from the Reanalyse loss led to another big improvement. Even though the policy head is not used when selecting actions according to the maximum 1-step value, we hypothesise that the auxiliary loss has a strong regularising effect and further improved the internal representation of the model. This matches the results of (Silver et al., 2017) that training a single combined network to estimate both policy and value led to improved value prediction accuracy. ",
795
+ "bbox": [
796
+ 173,
797
+ 637,
798
+ 825,
799
+ 734
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "Finally, using MCTS to select actions at evaluation time (bottom row of Table 2) improved results no matter which loss was used at training time, with best results obtained when using MCTS for both training and evaluation - the full MuZero Unplugged algorithm. ",
806
+ "bbox": [
807
+ 176,
808
+ 741,
809
+ 821,
810
+ 784
811
+ ],
812
+ "page_idx": 6
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "We also verified that our training setup correctly interpreted the offline data4 and reproduced the baseline performance when using the same loss: Using the actions played in the training data as a supervised policy target to train a policy head using cross-entropy loss and sampling from it for evaluation (Table 1, policy BC a and b) reproduced the behaviour cloning (BC) baseline results. ",
817
+ "bbox": [
818
+ 176,
819
+ 787,
820
+ 823,
821
+ 818
822
+ ],
823
+ "page_idx": 6
824
+ },
825
+ {
826
+ "type": "table",
827
+ "img_path": "images/2d59c46ce8229b0d5600518da11c8298e046cfbb7c200d6203c6f11a390df9da.jpg",
828
+ "table_caption": [
829
+ "Table 4: Comparison of MuZero Unplugged and CRR. Results for CRR (Wang et al., 2020) were reported by selecting the checkpoint with the highest mean reward from each training run. Since this does not follow the offline policy selection guidelines from RL Unplugged and is therefore not directly comparable to the baseline results, we compared to it separately. The same highest mean reward evaluation scheme as used in CRR was used for MuZero Unplugged results in this table as well. All other tables report results at the end of training. "
830
+ ],
831
+ "table_footnote": [],
832
+ "table_body": "<table><tr><td>Task</td><td>CRR BC</td><td>MuZero Unplugged</td></tr><tr><td>cartpole.swingup</td><td>664.0</td><td>501.8 594.3</td></tr><tr><td>finger.turn_hard</td><td>714.0</td><td>333.8 759.0</td></tr><tr><td>fish.swim</td><td>517.0 556.8</td><td>681.6</td></tr><tr><td>manipulator.insert_ball</td><td>625.0 465.6</td><td>659.2</td></tr><tr><td>manipulator.insert_peg</td><td>387.0</td><td>325.9 556.0</td></tr><tr><td>walker.stand</td><td>797.0 473.3</td><td>887.2</td></tr><tr><td>walker.walk</td><td>901.0 637.9</td><td>949.5</td></tr><tr><td>cheetah.run</td><td>577.0</td><td>765.3 869.9</td></tr><tr><td>humanoid.run</td><td>586.0</td><td></td></tr><tr><td>mean</td><td>640.9 497.4</td><td>416.5 643.1 733.3</td></tr></table>",
833
+ "bbox": [
834
+ 302,
835
+ 89,
836
+ 696,
837
+ 275
838
+ ],
839
+ "page_idx": 7
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "",
844
+ "bbox": [
845
+ 173,
846
+ 401,
847
+ 825,
848
+ 429
849
+ ],
850
+ "page_idx": 7
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "6 Offline RL and Continuous Action Spaces ",
855
+ "text_level": 1,
856
+ "bbox": [
857
+ 174,
858
+ 450,
859
+ 555,
860
+ 468
861
+ ],
862
+ "page_idx": 7
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "An important motivation for offline RL is the application to real-world systems such as robotics, which often have continuous and high-dimensional action spaces. To investigate the applicability of MuZero Unplugged to this setting, we used the DM Control Suite dataset from the RL Unplugged dataset. DM Control is a collection of physics based benchmark tasks (Tassa et al., 2018) with a variety of robotic bodies of different action and state dimensionalities (Table 3). ",
867
+ "bbox": [
868
+ 174,
869
+ 483,
870
+ 825,
871
+ 553
872
+ ],
873
+ "page_idx": 7
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "In order to use planning and Reanalyse with continuous action spaces, we used the sample based search extension of MuZero introduced by (Hubert et al., 2021). This extension uses a policy head to produce a set of candidate actions to search over, where the MCTS considers only the sampled actions instead of fully enumerating the action space. Finally, the policy is updated towards the search distribution only at the sampled actions. ",
878
+ "bbox": [
879
+ 174,
880
+ 559,
881
+ 825,
882
+ 628
883
+ ],
884
+ "page_idx": 7
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "When applying Reanalyse for data efficiency improvements to data generated by the agent itself, no modifications are required to use sample based search and Reanalyse together. In offline RL or when reanalysing demonstrations from a source other than the agent itself, the policy that generated the actions making up the dataset is often quite different from the one learned by MuZero Unplugged, and unlikely to sample the same actions, at least at the beginning of training. Since in this case the MCTS (and by extension, Reanalyse) can only consider actions that have been sampled from the policy, it would be unlikely to learn about the actions contained in the dataset, and thus unable to sample them from the policy in the future. This effect is most pronounced in very high dimensional action spaces. ",
889
+ "bbox": [
890
+ 174,
891
+ 635,
892
+ 825,
893
+ 760
894
+ ],
895
+ "page_idx": 7
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "To prevent this issue, we explicitly included the action from the trajectory being reanalysed in the sample of actions searched over at the root of the MCTS tree. This serves the same purpose as the Dirichlet exploration noise used in standard MuZero - encouraging the MCTS to explore actions it would not otherwise consider. For the prior of the injected action we therefore use the same value as for the Dirichlet probability mass, $2 5 \\%$ , though the algorithm is not sensitive to the exact value. This step is redundant for discrete action spaces (such as in Atari) where the policy already always produces a prior for all possible actions. ",
900
+ "bbox": [
901
+ 174,
902
+ 765,
903
+ 825,
904
+ 863
905
+ ],
906
+ "page_idx": 7
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "We compared the performance of MuZero Unplugged to offline RL algorithms from the literature such as D4PG (Barth-Maron et al., 2018), BRAC (Wu et al., 2019) and RABM (Siegel et al., 2020; Gulcehre et al., 2020) (Table 3), as well as the recent Critic Regularized Regression (CRR) (Wang et al., 2020) algorithm (Table 4, shown separately as CRR was evaluated by selecting the maximum performance throughout training and results are thus not comparable to the other baselines). ",
911
+ "bbox": [
912
+ 176,
913
+ 869,
914
+ 825,
915
+ 911
916
+ ],
917
+ "page_idx": 7
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "",
922
+ "bbox": [
923
+ 171,
924
+ 92,
925
+ 823,
926
+ 119
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "We first measured the performance of Behaviour Cloning (BC) when implemented using the MuZero network to ensure we used the offline dataset correctly and that it matches the evaluation environment. Overall performance indeed approximately matches the BC baseline (Table 3). ",
933
+ "bbox": [
934
+ 176,
935
+ 126,
936
+ 821,
937
+ 167
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "MuZero Unplugged outperformed baseline algorithms both in individual tasks and for the mean return5 averaged across all tasks. It did best in difficult high-dimensional tasks such as humanoid.run or the manipulator tasks, classified as ”hard” by (Wang et al., 2020), compared to ”easy” for the other tasks. Performance in the simplest tasks, especially cartpole, was somewhat lower — primarily due to the very small datasets6 leading to overfitting of the learned model and value function throughout training: in cartpole, performance of the best checkpoint (Figure 4) was much better than performance at the end of training (Figure 3). Additional regularisation techniques such as dropout (Hinton et al., 2012) could be employed to prevent this. We leave this for future work since we are primarily interested in performance on complex tasks that we consider most representative of real-world problems. ",
944
+ "bbox": [
945
+ 173,
946
+ 174,
947
+ 825,
948
+ 313
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "7 Limitations ",
955
+ "text_level": 1,
956
+ "bbox": [
957
+ 174,
958
+ 332,
959
+ 302,
960
+ 349
961
+ ],
962
+ "page_idx": 8
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "MuZero Unplugged uses a deterministic model, potentially limiting its performance in stochastic or partially observed environments. The learned model is a single time-step model, which may limit the time horizon of planning. MuZero Unplugged also does not employ explicit forms of regularizations; combination with existing methods from the literature may improve its performance on very small datasets. ",
967
+ "bbox": [
968
+ 174,
969
+ 364,
970
+ 825,
971
+ 433
972
+ ],
973
+ "page_idx": 8
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "The MCTS improvement operator in MuZero Unplugged requires a suitable value function; in environments where value learning is very difficult this may limit the magnitude of the improvement obtained by Reanalyse. ",
978
+ "bbox": [
979
+ 176,
980
+ 440,
981
+ 823,
982
+ 482
983
+ ],
984
+ "page_idx": 8
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "8 Conclusions ",
989
+ "text_level": 1,
990
+ "bbox": [
991
+ 174,
992
+ 501,
993
+ 307,
994
+ 518
995
+ ],
996
+ "page_idx": 8
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "In this paper we have investigated the Reanalyse algorithm and its applications to both data efficient online RL at any data budget and completely offline RL. We combined Reanalyse with MuZero to obtain MuZero Unplugged, a unified model-based RL algorithm that achieved a new state of the art in both online and offline reinforcement learning. Specifically, MuZero Unplugged outperformed prior baselines in the Atari Learning Environment both using a standard online budget of 200 million frames and other data budgets spanning multiple orders of magnitude. Furthermore, MuZero Unplugged also outperformed offline baselines in the RL Unplugged benchmark for Atari and continuous control. Unlike previous approaches, MuZero Unplugged uses the same algorithm for multiple regimes without any special treatment for off-policy or offline data. ",
1001
+ "bbox": [
1002
+ 174,
1003
+ 534,
1004
+ 825,
1005
+ 659
1006
+ ],
1007
+ "page_idx": 8
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "This work represents a further step towards the vision of a single algorithm that can address a wide range of reinforcement learning applications, extending the capabilities of model-based planning algorithms to encompass new dimensions such as online and offline learning, using discrete and continuous action spaces, across pixel and state-based observation spaces, in addition to the wide array of challenging planning tasks addressed by prior work (Silver et al., 2018). ",
1012
+ "bbox": [
1013
+ 174,
1014
+ 665,
1015
+ 825,
1016
+ 734
1017
+ ],
1018
+ "page_idx": 8
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Acknowledgements ",
1023
+ "text_level": 1,
1024
+ "bbox": [
1025
+ 176,
1026
+ 753,
1027
+ 338,
1028
+ 770
1029
+ ],
1030
+ "page_idx": 8
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "We would like to thank Caglar Gulcehre for providing very detailed feedback and helpful suggestions to improve the paper. ",
1035
+ "bbox": [
1036
+ 176,
1037
+ 785,
1038
+ 825,
1039
+ 814
1040
+ ],
1041
+ "page_idx": 8
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "All of the work in this paper was funded by DeepMind. ",
1046
+ "bbox": [
1047
+ 173,
1048
+ 820,
1049
+ 537,
1050
+ 834
1051
+ ],
1052
+ "page_idx": 8
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "References ",
1057
+ "text_level": 1,
1058
+ "bbox": [
1059
+ 174,
1060
+ 89,
1061
+ 267,
1062
+ 106
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Agarwal, R., Schuurmans, D., and Norouzi, M. An optimistic perspective on offline reinforcement learning. In International Conference on Machine Learning, pp. 104–114. PMLR, 2020. \nAkkaya, I., Andrychowicz, M., Chociej, M., Litwin, M., McGrew, B., Petron, A., Paino, A., Plappert, M., Powell, G., Ribas, R., et al. Solving rubik’s cube with a robot hand. arXiv preprint arXiv:1910.07113, 2019. \nArgenson, A. and Dulac-Arnold, G. Model-based offline planning, 2020. \nBa, J. L., Kiros, J. R., and Hinton, G. E. Layer normalization, 2016. \nBarth-Maron, G., Hoffman, M. W., Budden, D., Dabney, W., Horgan, D., TB, D., Muldal, A., Heess, N., and Lillicrap, T. Distributed Distributional Deterministic Policy Gradients, 2018. \nBellemare, M. G., Naddaf, Y., Veness, J., and Bowling, M. The Arcade Learning Environment: An evaluation platform for general agents. Journal of Artificial Intelligence Research, 47:253–279, 2013. \nBradbury, J., Frostig, R., Hawkins, P., Johnson, M. J., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., and Zhang, Q. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax. \nDabney, W., Rowland, M., Bellemare, M. G., and Munos, R. Distributional reinforcement learning with quantile regression. In AAAI, 2018. \nEspeholt, L., Soyer, H., Munos, R., Simonyan, K., Mnih, V., Ward, T., Doron, Y., Firoiu, V., Harley, T., Dunning, I., et al. IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures. In Proceedings of the International Conference on Machine Learning (ICML), 2018. \nGoogle, 2018. Cloud TPU. https://cloud.google.com/tpu/. Accessed: 2019. \nGulcehre, C., Wang, Z., Novikov, A., Paine, T. L., Colmenarejo, S. G., Zolna, K., Agarwal, R., Merel, J., Mankowitz, D., Paduraru, C., Dulac-Arnold, G., Li, J., Norouzi, M., Hoffman, M., Nachum, O., Tucker, G., Heess, N., and de Freitas, N. RL Unplugged: Benchmarks for Offline Reinforcement Learning. 2020. URL https://arxiv.org/pdf/2006.13888. \nHafner, D., Lillicrap, T., Fischer, I., Villegas, R., Ha, D., Lee, H., and Davidson, J. Learning latent dynamics for planning from pixels. arXiv preprint arXiv:1811.04551, 2018. \nHe, K., Zhang, X., Ren, S., and Sun, J. Identity mappings in deep residual networks. CoRR, abs/1603.05027, 2016. URL http://arxiv.org/abs/1603.05027. \nHe, Q. and Hou, X. POPO: Pessimistic Offline Policy Optimization, 2021. \nHennigan, T., Cai, T., Norman, T., and Babuschkin, I. Haiku: Sonnet for JAX, 2020. URL http://github.com/deepmind/dm-haiku. \nHessel, M., Modayil, J., Van Hasselt, H., Schaul, T., Ostrovski, G., Dabney, W., Horgan, D., Piot, B., Azar, M., and Silver, D. Rainbow: Combining improvements in deep reinforcement learning. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. \nHinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. R. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012. \nHubert, T., Schrittwieser, J., Antonoglou, I., Barekatain, M., Schmitt, S., and Silver, D. Learning and Planning in Complex Action Spaces. arXiv e-prints, April 2021. \nJaderberg, M., Mnih, V., Czarnecki, W. M., Schaul, T., Leibo, J. Z., Silver, D., and Kavukcuoglu, K. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016. \nKaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. Scaling laws for neural language models, 2020. \nKidambi, R., Rajeswaran, A., Netrapalli, P., and Joachims, T. MOReL : Model-Based Offline Reinforcement Learning, 2020. \nKingma, D. P. and Ba, J. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015. \nKumar, A., Zhou, A., Tucker, G., and Levine, S. Conservative Q-learning for Offline Reinforcement Learning, 2020. \nLevine, S., Kumar, A., Tucker, G., and Fu, J. Offline reinforcement learning: Tutorial, review, and perspectives on open problems, 2020. \nLin, L.-J. Self-improving reactive agents based on reinforcement learning, planning and teaching. Machine learning, 8(3-4):293–321, 1992. \nLoshchilov, I. and Hutter, F. Fixing weight decay regularization in adam. CoRR, abs/1711.05101, 2017. URL http://arxiv.org/abs/1711.05101. \nMachado, M., Bellemare, M., Talvitie, E., Veness, J., Hausknecht, M., and Bowling, M. Revisiting the Arcade Learning Environment: Evaluation protocols and open problems for general agents. Journal of Artificial Intelligence Research, 61, 09 2017. doi: 10.1613/jair.5699. \nMatsushima, T., Furuta, H., Matsuo, Y., Nachum, O., and Gu, S. Deployment-efficient reinforcement learning via model-based offline optimization, 2020. \nMnih, V., Kavukcuoglu, K., Silver, D., Rusu, A. A., Veness, J., Bellemare, M. G., Graves, A., Riedmiller, M., Fidjeland, A. K., Ostrovski, G., et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015. \nRafailov, R., Yu, T., Rajeswaran, A., and Finn, C. Offline reinforcement learning from images with latent space models. In Learning for Dynamics and Control, pp. 1154–1168. PMLR, 2021. \nSchaul, T., Quan, J., Antonoglou, I., and Silver, D. Prioritized experience replay. In International Conference on Learning Representations, Puerto Rico, 2016. \nSchmitt, S., Hessel, M., and Simonyan, K. Off-policy actor-critic with shared experience replay. arXiv preprint arXiv:1909.11583, 2019. \nSchrittwieser, J., Antonoglou, I., Hubert, T., Simonyan, K., Sifre, L., Schmitt, S., Guez, A., Lockhart, E., Hassabis, D., Graepel, T., Lillicrap, T. P., and Silver, D. Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model. Nature, 588(7839):604–609, 2020. \nShrestha, A. K., Lee, S., Tadepalli, P., and Fern, A. Deepaveragers: Offline reinforcement learning by solving derived non-parametric $\\{ { \\mathrm { m d p } } \\} { \\mathrm { s } }$ . In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\\equiv$ eMP1j9efXtX. \nSiegel, N. Y., Springenberg, J. T., Berkenkamp, F., Abdolmaleki, A., Neunert, M., Lampe, T., Hafner, R., and Riedmiller, M. Keep doing what worked: Behavioral modelling priors for offline reinforcement learning. arXiv preprint arXiv:2002.08396, 2020. \nSilver, D., Schrittwieser, J., Simonyan, K., Antonoglou, I., Huang, A., Guez, A., Hubert, T., Baker, L., Lai, M., Bolton, A., Chen, Y., Lillicrap, T., Hui, F., Sifre, L., van den Driessche, G., Graepel, T., and Hassabis, D. Mastering the game of Go without human knowledge. Nature, 550:354–359, October 2017. \nSilver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., Lanctot, M., Sifre, L., Kumaran, D., Graepel, T., et al. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419):1140–1144, 2018. \nSutton, R. S. Dyna, an integrated architecture for learning, planning, and reacting. ACM Sigart Bulletin, 2(4):160–163, 1991. \nTassa, Y., Doron, Y., Muldal, A., Erez, T., Li, Y., de Las Casas, D., Budden, D., Abdolmaleki, A., Merel, J., Lefrancq, A., Lillicrap, T., and Riedmiller, M. Deepmind control suite, 2018. \nVinyals, O., Babuschkin, I., Czarnecki, W. M., Mathieu, M., Dudzik, A., Chung, J., Choi, D. H., Powell, R., Ewalds, T., Georgiev, P., et al. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature, pp. 1–5, 2019. \nWang, Z., Novikov, A., Zolna, K., Merel, J. S., Springenberg, J. T., Reed, S. E., Shahriari, B., Siegel, N., Gulcehre, C., Heess, N., et al. Critic Regularized Regression. Advances in Neural Information Processing Systems, 33, 2020. \nWu, Y., Tucker, G., and Nachum, O. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019. \nYu, T., Thomas, G., Yu, L., Ermon, S., Zou, J., Levine, S., Finn, C., and Ma, T. MOPO: Model-based Offline Policy Optimization, 2020. ",
1069
+ "bbox": [
1070
+ 169,
1071
+ 103,
1072
+ 830,
1073
+ 922
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "",
1080
+ "bbox": [
1081
+ 169,
1082
+ 56,
1083
+ 828,
1084
+ 917
1085
+ ],
1086
+ "page_idx": 10
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "",
1091
+ "bbox": [
1092
+ 169,
1093
+ 90,
1094
+ 828,
1095
+ 261
1096
+ ],
1097
+ "page_idx": 11
1098
+ }
1099
+ ]
parse/train/HKtsGW-lNbw/HKtsGW-lNbw_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HKtsGW-lNbw/HKtsGW-lNbw_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyydRMZC-/HyydRMZC-.md ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPATIALLY TRANSFORMED ADVERSARIAL EXAMPLES
2
+
3
+ Chaowei Xiao1 ∗, Jun-Yan $\mathbf { Z } \mathbf { h } \mathbf { u } ^ { 2 }$ ∗, $\mathbf { B o L i ^ { 3 } }$ , Warren $\mathbf { H e ^ { 3 } }$ , Mingyan Liu1, Dawn Song3
4
+ 1University of Michigan, Ann Arbor, USA
5
+ 2Massachusetts Institute of Technology, MA, USA
6
+ 3University of California, Berkeley, USA
7
+
8
+ # ABSTRACT
9
+
10
+ Recent studies show that widely used deep neural networks (DNNs) are vulnerable to carefully crafted adversarial examples. Many advanced algorithms have been proposed to generate adversarial examples by leveraging the ${ \mathcal { L } } _ { p }$ distance for penalizing perturbations. Researchers have explored different defense methods to defend against such adversarial attacks. While the effectiveness of ${ \mathcal { L } } _ { p }$ distance as a metric of perceptual quality remains an active research area, in this paper we will instead focus on a different type of perturbation, namely spatial transformation, as opposed to manipulating the pixel values directly as in prior works. Perturbations generated through spatial transformation could result in large ${ \mathcal { L } } _ { p }$ distance measures, but our extensive experiments show that such spatially transformed adversarial examples are perceptually realistic and more difficult to defend against with existing defense systems. This potentially provides a new direction in adversarial example generation and the design of corresponding defenses. We visualize the spatial transformation based perturbation for different examples and show that our technique can produce realistic adversarial examples with smooth image deformation. Finally, we visualize the attention of deep networks with different types of adversarial examples to better understand how these examples are interpreted.
11
+
12
+ # 1 INTRODUCTION
13
+
14
+ Deep neural networks (DNNs) have demonstrated their outstanding performance in different domains, ranging from image processing (Krizhevsky et al., 2012; He et al., 2016), text analysis (Collobert & Weston, 2008) to speech recognition (Hinton et al., 2012). Though deep networks have exhibited high performance for these tasks, recently they have been shown to be particularly vulnerable to adversarial perturbations added to the input images (Szegedy et al., 2013; Goodfellow et al., 2015). These perturbed instances are called adversarial examples, which can lead to undesirable consequences in many practical applications based on DNNs. For example, adversarial examples can be used to subvert malware detection, fraud detection, or even potentially mislead autonomous navigation systems (Papernot et al., 2016b; Evtimov et al., 2017; Grosse et al., 2016) and therefore pose security risks when applied to security-related applications. A comprehensive study about adversarial examples is required to motivate effective defenses. Different methods have been proposed to generate adversarial examples such as fast gradient sign methods (FGSM) (Goodfellow et al., 2015), which can produce adversarial instances rapidly, and optimization-based methods (C&W) (Carlini & Wagner, 2017a), which search for adversarial examples with smaller magnitude of perturbation.
15
+
16
+ One important criterion for adversarial examples is that the perturbed images should “look like” the original instances. The traditional attack strategies adopt $L _ { 2 }$ (or other ${ \mathcal { L } } _ { p }$ ) norm distance as a perceptual similarity metric to evaluate the distortion (Gu & Rigazio, 2014). However, this is not an ideal metric (Johnson et al., 2016; Isola et al., 2017), as $L _ { 2 }$ similarity is sensitive to lighting and viewpoint change of a pictured object. For instance, an image can be shifted by one pixel, which will lead to large $L _ { 2 }$ distance, while the translated image actually appear “the same” to human perception. Motivated by this example, in this paper we aim to look for other types of adversarial examples and propose to create perceptually realistic examples by changing the positions of pixels instead of directly manipulating existing pixel values. This has been shown to better preserve the identity and structure of the original image (Zhou et al., 2016b). Thus, the proposed spatially transformed adversarial example optimization method (stAdv) can keep adversarial examples less distinguishable from real instances (such examples can be found in Figure 3).
17
+
18
+ Various defense methods have also been proposed to defend against adversarial examples. Adversarial training based methods have so far achieved the most promising results (Goodfellow et al., 2015; Tramèr et al., 2017; M ˛adry et al., 2017). They have demonstrated the robustness of improved deep networks under certain constraints. However, the spatially transformed adversarial examples are generated through a rather different principle, whereby what is being minimized is the local geometric distortion rather than the ${ \mathcal { L } } _ { p }$ pixel error between the adversarial and original instances. Thus, the previous adversarial training based defense method may appear less effective against this new attack given the fact that these examples generated by stAdv have never been seen before. This opens a new challenge about how to defend against such attacks, as well as other attacks that are not based on direct pixel value manipulation.
19
+
20
+ We visualize the spatial deformation generated by stAdv; it is seen to be locally smooth and virtually imperceptible to the human eye. In addition, to better understand the properties of deep neural networks on different adversarial examples, we provide visualizations of the attention of the DNN given adversarial examples generated by different attack algorithms. We find that the spatial transformation based attack is more resilient across different defense models, including adversarially trained robust models.
21
+
22
+ Our contributions are summarized as follows:
23
+
24
+ • We propose to generate adversarial examples based on spatial transformation instead of direct manipulation of the pixel values, and we show realistic and effective adversarial examples on the MNIST, CIFAR-10, and ImageNet datasets.
25
+ We provide visualizations of optimized transformations and show that such geometric changes are small and locally smooth, leading to high perceptual quality.
26
+ • We empirically show that, compared to other attacks, adversarial examples generated by stAdv are more difficult to detect with current defense systems.
27
+ • Finally, we visualize the attention maps of deep networks on different adversarial examples and demonstrate that adversarial examples based on stAdv can more consistently mislead the adversarial trained robust deep networks compared to other existing attack methods.
28
+
29
+ # 2 RELATED WORK
30
+
31
+ Here we first briefly summarize the existing adversarial attack algorithms as well as the current defense methods. We then discuss the spatial transformation model used in our adversarial attack.
32
+
33
+ Adversarial Examples Given a benign sample $\mathbf { x }$ , an attack instance $\mathbf { x } _ { \mathrm { a d v } }$ is referred to as an adversarial example, if a small magnitude of perturbation $\epsilon$ is added to $\mathbf { x }$ (i.e. ${ \bf x } _ { \mathrm { a d v } } = { \bf x } + { \bf \epsilon } \mathrm { ) }$ so that $\mathbf { x } _ { \mathrm { a d v } }$ is misclassified by the targeted classifier $g$ . Based on the adversarial goal, attacks can be classified into two categories: targeted and untargeted attacks. In a targeted attack, the adversary’s objective is to modify an input $\mathbf { x }$ such that the target model $g$ classifies the perturbed input $\mathbf { x } _ { \mathrm { a d v } }$ in a targeted class chosen, which differs from its ground truth. In a untargeted attack, the adversary’s objective is to cause the perturbed input $\mathbf { x } _ { \mathrm { a d v } }$ to be misclassified in any class other than its ground truth. Based on the adversarial capabilities, these attacks can be categorized as white-box and black-box attacks, where an adversary has full knowledge of the classifier and training data in the white-box setting (Szegedy et al., 2014; Goodfellow et al., 2015; Carlini & Wagner, 2017a; Moosavi-Dezfooli et al., 2015; Papernot et al., 2016b; Biggio et al., 2013; Fawzi & Frossard, 2015; Kanbak, 2017; Kurakin et al., 2016); while having zero knowledge about them in the black-box setting (Papernot et al., 2016a; Liu et al., 2017; Moosavi-Dezfooli et al., 2016; Mopuri et al., 2017). In this work, we will focus on the white-box setting to explore what a powerful adversary can do based on the Kerckhoffs’s principle (Shannon, 1949) to better motivate defense methods.
34
+
35
+ Spatial Transformation In computer vision and graphics literature, Two main aspects determine the appearance of a pictured object (Szeliski, 2010): (1) the lighting and material, which determine the brightness of a point as a function of illumination and object material properties, and (2) the geometry, which determines where the projection of a point will be located in the scene. Most previous adversarial attacks (Goodfellow et al., 2015) focus on changing the lighting and material aspect, while assuming the underlying geometry stays the same during the adversarial perturbation generation process.
36
+
37
+ Modeling geometric transformation with neural networks was first explored by “capsules,” computational units that locally transform their input for modeling 2D and 3D geometric changes (Hinton et al., 2011). Later, Jaderberg et al. (2015) demonstrated that similar computational units, named spatial transformers, can benefit many visual recognition tasks. Zhou et al. (2016a) adopted the spatial transformers for synthesizing novel views of the same object and has shown that a geometric method can produce more realistic results compared to pure pixel-based methods. Inspired by these successes, we also use the spatial transformers to deform the input images, but with a different goal: to generate realistic adversarial examples.
38
+
39
+ Defensive Methods Following the emergence of adversarial examples, various defense methods have been studied, including adversarial training (Goodfellow et al., 2015), distillation (Papernot et al., 2016c), gradient masking (Gu & Rigazio, 2014) and feature squeezing (Xu et al., 2017). However, these defenses can either be evaded by C&W attacks or only provide marginal improvements (Carlini & Wagner, 2017b; He et al., 2017). Among these defenses, adversarial training has achieved the state-of-the-art performance. Goodfellow et al. (2015) proposed to use the fast gradient sign attack as an adversary to perform adversarial training, which is much faster, followed by ensemble adversarial training (Tramèr et al., 2017) and projected gradient descent (PGD) adversarial training (M ˛adry et al., 2017). In this work, we explicitly analyze how effective the spatial transformation based adversarial examples are under these adversarial training based defense methods.
40
+
41
+ # 3 GENERATING ADVERSARIAL EXAMPLES
42
+
43
+ Here we first introduce several existing attack methods and then present our formulation for producing spatially transformed adversarial examples.
44
+
45
+ # 3.1 PROBLEM DEFINITION
46
+
47
+ Given a learned classifier $g : \mathcal { X } \mathcal { Y }$ from a feature space $\mathcal { X }$ to a set of classification outputs $\mathcal { V }$ (e.g., $\mathcal { V } = \{ 0 , 1 \}$ for binary classification), an adversary aims to generate adversarial example $\mathbf { x } _ { \mathrm { a d v } }$ for an original instance $\mathbf { x } \in \mathcal { X }$ with its ground truth label $y \in \mathcal { V }$ , so that the classifier predicts $g ( \mathbf { x } _ { \mathrm { a d v } } ) \neq y$ (untargeted attack) or $g ( \mathbf { x } _ { \mathrm { a d v } } ) = t$ (targeted attack) where $t$ is the target class.
48
+
49
+ # 3.2 BACKGROUND: CURRENT PIXEL-VALUE BASED ATTACK METHODS
50
+
51
+ All of the current methods for generating adversarial examples are built on directly modifying the pixel values of the original image.
52
+
53
+ The fast gradient sign method (FGSM) (Goodfellow et al., 2015) uses a first-order approximation of the loss function to construct adversarial samples for the adversary’s target classifier $g$ . The algorithm achieves untargeted attack by performing a single gradient ascent step: ${ \bf x } _ { \mathrm { a d v } } = { \bf x } + { \bf \delta }$ $\epsilon \cdot \mathrm { s i g n } ( \nabla _ { \mathbf { x } } \ell _ { g } ( \mathbf { x } , y ) )$ , where $\ell _ { g } ( \mathbf x , y )$ is the loss function (e.g. cross-entropy loss) used to train the original model $g , y$ denotes the ground truth label, and the hyper-parameter $\epsilon$ controls the magnitude of the perturbation. A targeted version of it can be done similarly.
54
+
55
+ Optimization-based attack (C&W) produces an adversarial perturbation for a targeted attack based on certain constraints (Carlini & Wagner, 2017a; Liu et al., 2017) as formulated below:
56
+
57
+ $$
58
+ \operatorname* { m i n } | | \delta | | _ { p } ^ { 2 } \quad \mathrm { s . t . } \qquad g ( \mathbf { x } + \delta ) = t \quad \mathrm { a n d } \quad \mathbf { x } + \delta \in X ,
59
+ $$
60
+
61
+ where the ${ \mathcal { L } } _ { p }$ norm penalty ensures that the added perturbation $\epsilon$ is small. The same optimization procedure can achieve untargeted attacks with a modified constraint $g ( \mathbf { x } + \delta ) \neq y$ .
62
+
63
+ ![](images/59a5504203b0edb3ef5204a4cf3e7c01be00b469b05918357318c0bea0ca3e40.jpg)
64
+ Figure 1: Generating adversarial examples with spatial transformation: the blue point denotes the coordinate of a pixel in an output adversarial image and the green point is its corresponding pixel in an input image. The flow field in red represents the displacement from the pixels in the adversarial image to the pixels in the input image.
65
+
66
+ # 3.3 OUR APPROACH: SPATIALLY TRANSFORMED ADVERSARIAL EXAMPLES
67
+
68
+ All the existing approaches directly modify pixel values, which may sometimes produce noticeable artifacts. Instead, we aim to smoothly change the geometry of the scene while keeping the original appearance, producing more perceptually realistic adversarial examples. In this section, we first introduce our spatial transformation model and then describe our objective function for generating spatially transformed adversarial examples.
69
+
70
+ Spatial transformation We use $\mathbf { x } _ { \mathrm { a d v } } ^ { ( i ) }$ to denote the pixel value of the $i$ -th pixel and 2D coordinate (u adv, v adv) to denote its location in the adversarial image $\mathbf { x } _ { \mathrm { a d v } }$ . We assume that $\mathbf { x } _ { \mathrm { a d v } } ^ { ( i ) }$ is transformed from the pixel $\mathbf { x } ^ { ( i ) }$ from the original image. We use the per-pixel flow (displacement) field $f$ to synthesize the adversarial image $\mathbf { x } _ { \mathrm { a d v } }$ using pixels from the input $\mathbf { x }$ . For the $i$ -th pixel within $\mathbf { x } _ { \mathrm { a d v } }$ at the pixel location $( u _ { \mathrm { a d v } } ^ { ( i ) } , v _ { \mathrm { a d v } } ^ { ( i ) } )$ , we optimize the amount of displacement in each image dimension, with the pair denoted by the flow vector $f _ { i } : = ( \Delta u ^ { ( i ) } , \Delta v ^ { ( i ) } )$ . Note that the flow vector $f _ { i }$ goes from a pixel $\mathbf { x } _ { \mathrm { a d v } } ^ { ( i ) }$ in the adversarial image to its corresponding pixel $\mathbf { x } ^ { ( i ) }$ in the input image. Thus, the location of its corresponding pixel $\mathbf { x } ^ { ( i ) }$ can be derived as $( \boldsymbol { u } ^ { ( i ) } , \boldsymbol { v } ^ { ( i ) } ) = ( u _ { \mathrm { a d v } } ^ { ( i ) } + \Delta u ^ { ( i ) } , v _ { \mathrm { a d v } } ^ { ( i ) } + \Delta v ^ { ( i ) } )$ . As the $( u ^ { ( i ) } , v ^ { ( i ) } )$ can be fractional numbers and does not necessarily lie on the integer image grid, we use the differentiable bilinear interpolation (Jaderberg et al., 2015) to transform the input image with the flow field. We calculate x(i)adv as:
71
+
72
+ $$
73
+ \mathbf { x } _ { \mathrm { a d v } } ^ { ( i ) } = \sum _ { q \in \mathcal { N } ( u ^ { ( i ) } , v ^ { ( i ) } ) } \mathbf { x } ^ { ( q ) } ( 1 - | u ^ { ( i ) } - u ^ { ( q ) } | ) ( 1 - | v ^ { ( i ) } - v ^ { ( q ) } | ) ,
74
+ $$
75
+
76
+ where $\mathcal { N } ( u ^ { ( i ) } , v ^ { ( i ) } )$ are the indices of the 4-pixel neighbors at the location $( u ^ { ( i ) } , v ^ { ( i ) } )$ (top-left, topright, bottom-left, bottom-right). We can obtain the adversarial image $\mathbf { x } _ { \mathrm { a d v } }$ by calculating Equation 1 for every pixel $\mathbf { x } _ { \mathrm { a d v } } ^ { ( i ) }$ . Note that $\mathbf { x } _ { \mathrm { a d v } }$ is differentiable with respect to the flow field $f$ (Jaderberg et al., 2015; Zhou et al., 2016b). The estimated flow field essentially captures the amount of spatial transformation required to fool the classifier.
77
+
78
+ Objective function Most of the previous methods constrain the added perturbation to be small regarding a ${ \mathcal { L } } _ { p }$ metric. Here instead of imposing the ${ \mathcal { L } } _ { p }$ norm on pixel space, we introduce a new regularization loss $\mathcal { L } _ { f l o w }$ on the local distortion $f$ , producing higher perceptual quality for adversarial examples. Therefore, the goal of the attack is to generate adversarial examples which can mislead the classifier as well as minimizing the local distortion introduced by the flow field $f$ .
79
+
80
+ Formally, given a benign instance $\mathbf { x }$ , we obtain the flow field $f$ by minimize the following objective:
81
+
82
+ $$
83
+ f ^ { * } = \underset { f } { \mathrm { a r g m i n } } \quad \mathcal { L } _ { a d v } ( x , f ) + \tau \mathcal { L } _ { f o w } ( f ) ,
84
+ $$
85
+
86
+ where $\mathcal { L } _ { a d v }$ encourages the generated adversarial examples to be misclassified by the target classifier. $L _ { f l o w }$ ensures that the spatial transformation distance is minimized to preserve high perceptual quality, and $\tau$ balances these two losses.
87
+
88
+ The goal of $\mathcal { L } _ { a d v }$ is to guarantee the targeted attack $g ( \mathbf { x } _ { \mathrm { a d v } } ) ~ = ~ t$ where $t$ is the targeted class, different from the ground truth label $y$ . Recall that we transform the input image $\mathbf { x }$ to $\mathbf { x } _ { \mathrm { a d v } }$ with the flow field $f$ (Equation 1). In practice, directly enforcing $g ( \mathbf { x } _ { \mathrm { a d v } } ) = t$ during optimization is highly non-linear, we adopt the objective function suggested in Carlini & Wagner (2017a).
89
+
90
+ $$
91
+ \mathcal { L } _ { a d v } ( x , f ) = \operatorname* { m a x } ( \operatorname* { m a x } _ { i \neq t } g ( \mathbf { x } _ { \mathrm { a d v } } ) _ { i } - g ( \mathbf { x } _ { \mathrm { a d v } } ) _ { t } , \kappa ) ,
92
+ $$
93
+
94
+ where $g ( x )$ represents the logit output of model $g , g ( x ) _ { i }$ denotes the $i$ -th element of the logit vector, and $\kappa$ is used to control the attack confidence level.
95
+
96
+ To compute ${ \mathcal { L } } _ { f l o w }$ , we calculate the sum of spatial movement distance for any two adjacent pixels. Given an arbitrary pixel $p$ and its neighbors $q \in \mathcal { N } ( p )$ , we enforce the locally smooth spatial transformation perturbation $\mathcal { L } _ { f l o w }$ based on the total variation (Rudin et al., 1992):
97
+
98
+ $$
99
+ \mathcal { L } _ { f l o w } ( f ) = \sum _ { p } ^ { a l l p i x e l s } \sum _ { q \in N ( p ) } \sqrt { | | \Delta u ^ { ( p ) } - \Delta u ^ { ( q ) } | | _ { 2 } ^ { 2 } + | | \Delta v ^ { ( p ) } - \Delta v ^ { ( q ) } | | _ { 2 } ^ { 2 } } .
100
+ $$
101
+
102
+ Intuitively, minimizing the spatial transformation can help ensure the high perceptual quality for stAdv, since adjacent pixels tend to move towards close direction and distance. We solve the above optimization with L-BFGS solver (Liu & Nocedal, 1989).
103
+
104
+ # 4 EXPERIMENTAL RESULTS
105
+
106
+ In this section, we first show adversarial examples generated by the proposed spatial transformation method and analyze the properties of these examples from different perspectives. We then visualize the estimated flows for adversarial examples and show that with small and smooth transformation, the generated adversarial examples can already achieve a high attack success rate against deep networks. We also show that stAdv can preserve a high attack success rate against current defense methods, which motivates more sophisticated defense methods in the future. Finally, we analyze the attention regions of DNNs, to better understand the attack properties of stAdv.
107
+
108
+ Experiment Setup We set $\tau$ as 0.05 for all our experiments. We use confidence $\kappa = 0$ for both C&W and stAdv for a fair comparison. We leverage L-BFGS (Liu & Nocedal, 1989) as our solver with backtracking linear search.
109
+
110
+ # 4.1 ADVERSARIAL EXAMPLES BASED ON SPATIAL TRANSFORMATIONS
111
+
112
+ We show adversarial examples with high perceptual quality for both MNIST (LeCun & Cortes, 1998) and CIFAR-10 (Krizhevsky et al., 2014) datasets.
113
+
114
+ stAdv on MNIST In our experiments, we generate adversarial examples againsts three target models in the white-box setting on the MNIST dataset. Model A, B, and C are derived from the prior work (Tramèr et al., 2017), which represent different architectures. See Appendix A and Table 4 for more details about their network architectures. Table 1 presents the accuracy of pristine MNIST test data on each model as well as the attack success rate of adversarial examples generated by stAdv on these models. Figure 2 shows the adversarial examples against different models where the original instances appear in the diagonal. Each adversarial example achieves a targeted attack, with the target class shown on the top of the column. It is clear that the generated adversarial examples still appear to be in the same class as the original instance for humans. Another advantage for stAdv compared with traditional attacks is that examples based on stAdv seldom show noise pattern within the adversarial examples. Instead, stAdv smoothly deforms the digits and since such natural deformation also exists in the dataset digits, humans can barely notice such manipulation.
115
+
116
+ Table 1: Top: accuracy of different models on pristine data (p); bottom: attack success rates of adversarial examples generated by stAdv on MNIST dataset.
117
+
118
+ <table><tr><td>Model</td><td>A</td><td>B</td><td>C</td></tr><tr><td>Accuracy (p)</td><td>98.58%</td><td>98.94%</td><td>99.11%</td></tr><tr><td>Attack Success Rate</td><td>99.95%</td><td>99.98%</td><td>100.00%</td></tr></table>
119
+
120
+ ![](images/cd9611ac0f4cbc32e6f9793e0769e4433e5651461d4c405c74337333c8eb72b0.jpg)
121
+ Figure 2: Adversarial examples generated by stAdv against different models on MNIST. The ground truth images are shown in the diagonal and the rest are adversarial examples that are misclassified to the target classes shown on the top.
122
+
123
+ stAdv on CIFAR-10 For CIFAR-10, we use ResNet- $3 2 ^ { 1 }$ and wide ResNet- $3 4 ^ { 2 }$ as the target classifers (Zagoruyko & Komodakis, 2016; He et al., 2016; M ˛adry et al., 2017). We show the classification accuracy of pristine CIFAR-10 test data (p) and attack success rates of adversarial examples generated by stAdv on different models in Table 2. Figure 3 shows the generated examples on CIFAR-10 against different models. The original images are shown in the diagonal. The other images are targeted adversarial examples, with the index of the target classes shown at the top of the column. Here we use $^ { 6 6 } 0 { - } 9 ^ { 7 }$ to denote the ground truth labels of images lying in the diagonal for each corresponding column. These adversarial examples based on stAdv are randomly selected from the instances that can successfully attack the corresponding classifier. Humans can hardly distinguish these adversarial examples from the original instances.
124
+
125
+ Table 2: Top: accuracy of different models on pristine data (p); bottom: attack success rates of adversarial examples generated by stAdv on the CIFAR-10 dataset. The numbers in parentheses denote the number of parameters in each target model.
126
+
127
+ <table><tr><td>Model</td><td>ResNet32 (0.47M)</td><td>Wide ResNet34 (46.16M)</td></tr><tr><td>Accuracy (p)</td><td>93.16%</td><td>95.82%</td></tr><tr><td>Attack Success Rate</td><td>99.56%</td><td>98.84%</td></tr></table>
128
+
129
+ Comparison of different adversarial examples In Figure 4, we show adversarial examples that are targeted attacked to the same class (“0” for MNIST and “airplane” for CIFAR-10), which is different from their ground truth. We compare adversarial examples generated from different methods and show that those based on stAdv look more visually realistic compared with FGSM (Goodfellow et al., 2015) and C&W (Carlini & Wagner, 2017b) methods.
130
+
131
+ ![](images/8a6c1e281094aeefce5c496c79947e05b175ad33612122c99f8fa4f776efe68d.jpg)
132
+ Figure 3: Adversarial examples generated by stAdv against different models on CIFAR-10. The ground truth images are shown in the diagonal while the adversarial examples on each column are classified into the same class as the ground truth image within that column.
133
+
134
+ ![](images/ae8ba83f3adfa96e7c73c3735e96b7539289a1b6234b56c7f507285e36be7d74.jpg)
135
+ Figure 4: Comparison of adversarial examples generated by FGSM, C&W and stAdv. (Left: MNIST, right: CIFAR-10) The target class for MNIST is $ { { } ^ { 6 } } { 0 ^ { 9 } }$ and “air plane” for CIFAR-10. We generate adversarial examples by FGSM and C&W with perturbation bounded in terms of $L _ { \infty }$ as 0.3 on MNIST and 8 on CIFAR-10.
136
+
137
+ ![](images/531d41d705ede2d69e965af067a2d14b6ebe5b5f6eef30ce5577cca2ea1c9a74.jpg)
138
+ Figure 5: Flow visualization on MNIST. A digit “0” is misclassified as “2”.
139
+
140
+ # 4.2 VISUALIZING SPATIAL TRANSFORMATION
141
+
142
+ To better understand the spatial transformation applied to the original images, we visualize the optimized transformation flow for different datasets, respectively. Figure 5 visualizes a transformation on an MNIST instance, where the digit $\mathbf { \bar { \theta } } ^ { 6 } 0 ^ { 9 }$ is misclassified as “2.” We can see that the adjacent flows move in a similar direction in order to generate smooth results. The flows are more focused on the edge of the digit and sometimes these flows move in different directions along the edge, which implies that the object boundary plays an important role in our stAdv optimization. Figure 6 illustrates a similar visualization on CIFAR-10. It shows that the optimized flows often focus on the area of the main object, such as the airplane. We also observe that the magnitude of flows near the edge are usually larger, which similarly indicates the importance of edges for misleading the classifiers. This observation confirms the observation that when DNNs extract edge information in the earlier layers for visual recognition tasks (Viterbi, 1998). In addition, we visualize the similar flow for the ImageNet dataset (Deng et al., 2009) in Figure 7. The top-1 label of the original image in Figure 7 (a) is “mountain bike”. Figure 7 (b)-(d) show targeted adversarial examples generated by stAdv, which have target classes “goldfish,” “Maltese dog,” and “tabby cat,” respectively, and which are predicted as such as the top-1 class. An interesting observation is that, although there are other objects within the image, nearly $90 \%$ of the spatial transformation flows tend to focus on the target object bike. Different target class corresponds to different directions for these flows, which still fall into the similar area.
143
+
144
+ ![](images/b90a1e172f1c1bef85679ea8478ed5db04441e9b0738d2552413e8b97f726fe0.jpg)
145
+ Figure 6: Flow visualization on CIFAR-10. An “airplane” image is misclassified as “bird”.
146
+
147
+ ![](images/6654a30cb8a43af7c43ed9d61fa164088b56d956e4eefbe00d2a6b2e48f4248e.jpg)
148
+ Figure 7: Flow visualization on ImageNet. (a): the original image, (b)-(c): images are misclassified into goldfish, dog and cat, respectively. Note that to display the flows more clearly, we fade out the color of the original image.
149
+
150
+ # 4.3 HUMAN PERCEPTUAL STUDY
151
+
152
+ To quantify the perceptual realism of stAdv’s adversarial examples, we perform a user study with human participants on Amazon Mechanical Turk (AMT). We follow the same perceptual study protocol used in prior image synthesis work (Zhang et al., 2016; Isola et al., 2017). We generate 600 images from an ImageNet-compatible dataset, described in Appendix C. In our study, the participants are asked to choose the more visually realistic image between an adversarial example generated by stAdv and its original image. During each trial, these two images appear side-by-side for 2 seconds. After the images disappear, our participants are given unlimited time to make their decision. To avoid labeling bias, we allow each user to conduct at most 50 trails. For each pair of an original image and its adversarial example, we collect about 5 annotations from different users.
153
+
154
+ In total, we collected 2, 740 annotations from 93 AMT users. Examples generated by our method were chosen as the more realistic in $4 7 . 0 1 \% \pm 1 . 9 6 \%$ of the trails (perfectly realistic results would achieve $5 0 \%$ ). This indicates that our adversarial examples are almost indistinguishable from natural images.
155
+
156
+ Table 3: Attack success rates of adversarial examples generated by stAdv against models A, B, and C on MNIST, and against ResNet and wide ResNet on CIFAR-10, under standard defenses.
157
+
158
+ <table><tr><td>Model</td><td>Def.</td><td>FGSM</td><td>C&amp;W.</td><td>stAdv</td></tr><tr><td rowspan="3">A</td><td>Adv.</td><td>4.3%</td><td>4.6%</td><td>32.62%</td></tr><tr><td>Ens.</td><td>1.6%</td><td>4.2%</td><td>48.07%</td></tr><tr><td>PGD</td><td>4.4%</td><td>2.96%</td><td>48.38%</td></tr><tr><td rowspan="3">B</td><td>Adv.</td><td>6.0%</td><td>4.5%</td><td>50.17%</td></tr><tr><td>Ens.</td><td>2.7%</td><td>3.18%</td><td>46.14%</td></tr><tr><td>PGD</td><td>9.0%</td><td>3.0%</td><td>49.82%</td></tr><tr><td rowspan="3">C</td><td>Adv.</td><td>3.22%</td><td>0.86%</td><td>30.44%</td></tr><tr><td>Ens.</td><td>1.45%</td><td>0.98%</td><td>28.82%</td></tr><tr><td>PGD</td><td>2.1%</td><td>0.98%</td><td>28.13%</td></tr></table>
159
+
160
+ <table><tr><td>Model</td><td>Def.</td><td>FGSM</td><td>C&amp;W.</td><td>stAdv</td></tr><tr><td rowspan="2">ResNet32</td><td>Adv.</td><td>13.10%</td><td>11.9%</td><td>43.36%</td></tr><tr><td>Ens. PGD</td><td>10.00% 22.8%</td><td>10.3% 21.4%</td><td>36.89% 49.19%</td></tr><tr><td rowspan="4">wide ResNet34</td><td>Adv.</td><td>5.04%</td><td>7.61%</td><td>31.66%</td></tr><tr><td>Ens.</td><td>4.65%</td><td>8.43%</td><td>29.56%</td></tr><tr><td>PGD</td><td>14.9%</td><td>13.90%</td><td></td></tr><tr><td></td><td></td><td></td><td>31.6%</td></tr></table>
161
+
162
+ # 4.4 ATTACK EFFICIENCY UNDER DEFENSE METHODS
163
+
164
+ Here we generate adversarial examples in the white-box setting and test different defense methods against these samples to evaluate the strength of these attacks under defenses.
165
+
166
+ We mainly focus on the adversarial training defenses due to their state-of-the-art performance. We apply three defense strategies in our evaluation: the FGSM adversarial training (Adv.) (Goodfellow et al., 2015), ensemble adversarial training (Ens.) (Tramèr et al., 2017), and projectile gradient descent (PGD) adversarial training (M ˛adry et al., 2017) methods. For adversarial training purposes, we generate adversarial examples based on $L _ { \infty }$ bound (Carlini & Wagner, 2017a) as 0.3 on MNIST and 8 on CIFAR-10. We test adversarial examples generated against model A, B, and C on MNIST as shown in Table 4, and similarly adversarial examples generated against ResNet32 and wide ResNet34 on CIFAR-10.
167
+
168
+ The results on the MNIST and CIFAR-10 datasets are shown in Table 3. We observe that the three defense strategies can achieve high performance (less than $10 \%$ attack success rate) against FGSM and C&W attacks.
169
+
170
+ These defense methods only achieve low defense performance on stAdv, which improve the attack success rate to more than $3 0 \%$ among all defense strategies. These results indicate that new type of adversarial strategy, such as our spatial transformation-based attack, may open new directions for developing better defense systems. However, for stAdv, we cannot use ${ \mathcal { L } } _ { p }$ norm to bound the distance as translating an image by one pixel may introduce large ${ \mathcal { L } } _ { p }$ penalty. We instead constrain the spatial transformation flow and show that our adversarial examples have high perceptual quality in Figures 2, 3, and 4 as well as Section 4.3.
171
+
172
+ Mean blur defense We also test our adversarial examples against the $3 { \times } 3$ average pooling restoration mechanism (Li & Li, 2016). Table 5 in Appendix B shows the classification accuracy of recovered images after performing $3 \times 3$ average filter on different models. We find that the simple $3 \times 3$ average pooing restoration mechanism can recover the original class from fast gradient sign examples and improve the classification accuracy up to around $70 \%$ . Carlini & Wagner have also shown that such mean blur defense strategy can defend against adversarial examples generated by their attack and improve the model accuracy to around $80 \%$ (2017b). From Table 5, we can see that the mean blur defense method can only improve the model accuracy to around $50 \%$ on stAdv examples, which means adversarial examples generated by stAdv are more robust compared to other attacks. We also perform a perfect knowledge adaptive attack against the mean blur defense following the same attack strategy suggested in (Carlini & Wagner, 2017b), where we add the $3 \times 3$ average pooling layer into the original network and apply stAdv to attack the new network again. We observe that the success rate of an adaptive attack is nearly $100 \%$ , which is consistent with Carlini & Wagner’s findings (2017b).
173
+
174
+ # 4.5 VISUALIZING ATTENTION OF NETWORKS ON ADVERSARIAL EXAMPLES
175
+
176
+ In addition to the analyzing adversarial examples themselves, in this section, we further characterize these spatially transformed adversarial examples from the perspective of deep neural networks.
177
+
178
+ ![](images/2f1e2ccd33a46684daae6ba2e40ddac36cbef1277c5ec583dee5f8b733b29e33.jpg)
179
+ Figure 8: CAM attention visualizations for ImageNet inception_v3 model. (a) the original image and (b)-(d) stAdv adversarial examples targeting different classes. The second row shows the attention visualizations for the corresponding images displayed above.
180
+
181
+ Here we apply Class Activation Mapping (CAM) (Zhou et al., 2016a), an implicit attention visualization technique for localizing the discriminative regions implicitly detected by a DNN. We use it to show the attention of the target ImageNet inception_v3 model (Szegedy et al., 2016)) for both original images and generated adversarial examples. Figure 8(a) shows an input bike image and Figure 8(b)–(d) show the targeted adversarial examples based on stAdv targeting three different classes (goldfish, dog, and cat). Figure 8(e) illustrates that the target model draws attention to the bicycle region. Interestingly, attention regions on examples generated by stAdv varies for different target classes as shown in Figure 8(f)–(h). Though humans can barely distinguish between the original image and the ones generated by stAdv, CAM map focus on completely different regions, implying that our attack can mislead the network’s attention.
182
+
183
+ In addition, we also compare and visualize the attention regions of both naturally trained and the adversarial trained inception_v3 model3 on adversarial images generated by different attack algorithms (Figure 9). The ground truth top-1 label is “cinema,” so the attention region for the original image (Figure 9 (a)) includes both tower and building regions. However, when the adversarial examples are targeted attacked into the adversarial label “missile,” the attention region focuses on only the tower for all the attack algorithms as shown in Figure 9 (b)-(d) with slight different attention region sizes. More interestingly, we also test these adversarial examples on the public adversarial trained robust inception_v3 model. The result appears in Figure 9 (f)–(h). This time, the attention regions are drawn to the building again for both FGSM and C&W methods, which are close to the attention regions of the original image. The top-1 label for Figure 9 (f) and (g) are again the ground truth “cinema”, which means both FGSM and C&W fail to attack the robust model. However, Figure 9 (h) is still misclassified as “missile” under the robust model and the CAM visualization shows that the attention region still focuses on the tower. This example again implies that adversarial examples generated by stAdv are challenging to defend for the current “robust” ImageNet models.
184
+
185
+ # 5 CONCLUSIONS
186
+
187
+ Different from the previous works that generate adversarial examples by directly manipulating pixel values, in this work we propose a new type of perturbation based on spatial transformation, which aims to preserve high perceptual quality for adversarial examples. We have shown that adversarial examples generated by stAdv are more difficult for humans to distinguish from original instances.
188
+
189
+ ![](images/4a8de4df7d55ef26804bf583852dc942667e3b0ab0f81a1b59b990b11e2dfd45.jpg)
190
+ Figure 9: CAM attention visualizations for ImageNet inception_v3 model. The first column shows the CAM maps corresponding to the original images. Column 2-4 show the adversarial examples generated by different methods. The visualizations are drawn for Row 1 (inception_v3 model) and Row 2 (adversarial trained inception_v3 model). (a) and (e)-(g) are labeled as the ground truth “cinema”, while (b)-(d) and (h) are labeled as the adversarial target “missile.”
191
+
192
+ We also analyze the attack success rate of these examples under existing defense methods and demonstrate they are harder to defend against, which opens new directions for developing more robust defense algorithms. Finally, we visualize the attention regions of DNNs on our adversarial examples to better understand this new attack.
193
+
194
+ # ACKNOWLEDGMENTS
195
+
196
+ We thank Zhuang Liu, Richard Shin, Kun Jin, Armin Sarabi and George Philipp for their valuable discussions on this work. This work was supported in part by Berkeley Deep Drive, the Center for Long-Term Cybersecurity, and FORCES (Foundations Of Resilient CybEr-Physical Systems), which receives support from the National Science Foundation (NSF award numbers CNS-1238959, CNS-1238962, CNS-1239054, CNS-1239166), and NSF under grants CNS-1422211 and CNS1616575.
197
+
198
+ # REFERENCES
199
+
200
+ Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Šrndic, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 387– 402. Springer, 2013.
201
+
202
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, 2017, 2017a.
203
+
204
+ Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. arXiv preprint arXiv:1705.07263, 2017b.
205
+
206
+ Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pp. 160–167. ACM, 2008.
207
+
208
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255. IEEE, 2009.
209
+
210
+ Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on machine learning models. arXiv preprint arXiv:1707.08945, 2017.
211
+
212
+ Alhussein Fawzi and Pascal Frossard. Manitest: Are classifiers really invariant? arXiv preprint arXiv:1507.06535, 2015.
213
+
214
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015.
215
+
216
+ Kathrin Grosse, Nicolas Papernot, Praveen Manoharan, Michael Backes, and Patrick McDaniel. Adversarial perturbations against deep neural networks for malware classification. arXiv preprint arXiv:1606.04435, 2016.
217
+
218
+ Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014.
219
+
220
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
221
+
222
+ Warren He, James Wei, Xinyun Chen, Nicholas Carlini, and Dawn Song. Adversarial example defenses: Ensembles of weak defenses are not strong. arXiv preprint arXiv:1706.04701, 2017.
223
+
224
+ Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012.
225
+
226
+ Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pp. 44–51. Springer, 2011.
227
+
228
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. CVPR, 2017.
229
+
230
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NIPS, pp. 2017–2025, 2015.
231
+
232
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European Conference on Computer Vision, 2016.
233
+
234
+ Can Kanbak. Measuring robustness of classifiers to geometric transformations. Technical report, 2017.
235
+
236
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
237
+
238
+ Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The cifar-10 dataset. online: http://www. cs. toronto. edu/kriz/cifar. html, 2014.
239
+
240
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
241
+
242
+ Yann LeCun and Corrina Cortes. The MNIST database of handwritten digits. 1998.
243
+
244
+ Xin Li and Fuxin Li. Adversarial examples detection in deep networks with convolutional filter statistics. arXiv preprint arXiv:1612.07767, 2016.
245
+
246
+ Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 45(1):503–528, 1989.
247
+
248
+ Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017.
249
+
250
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. arXiv preprint arXiv:1511.04599, 2015.
251
+
252
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. arXiv preprint arXiv:1610.08401, 2016.
253
+
254
+ Konda Reddy Mopuri, Utsav Garg, and R Venkatesh Babu. Fast feature fool: A data independent approach to universal adversarial perturbations. arXiv preprint arXiv:1707.05572, 2017.
255
+
256
+ Aleksander M ˛adry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv:1706.06083 [cs, stat], June 2017.
257
+
258
+ Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016a.
259
+
260
+ Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In 2016 IEEE European Symposium on Security and Privacy (EuroS&P), pp. 372–387. IEEE, 2016b.
261
+
262
+ Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016c.
263
+
264
+ Leonid I Rudin, Stanley Osher, and Emad Fatemi. Nonlinear total variation based noise removal algorithms. Physica D: Nonlinear Phenomena, 60(1-4):259–268, 1992.
265
+
266
+ Claude E Shannon. Communication theory of secrecy systems. Bell Labs Technical Journal, 28(4): 656–715, 1949.
267
+
268
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
269
+
270
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014.
271
+
272
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2818–2826, 2016.
273
+
274
+ Richard Szeliski. Computer vision: algorithms and applications. Springer Science & Business Media, 2010.
275
+
276
+ Florian Tramèr, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
277
+ Andrew J. Viterbi. An intuitive justification and a simplified implementation of the map decoder for convolutional codes. IEEE Journal on Selected Areas in Communications, 16(2):260–264, 1998.
278
+ Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017.
279
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
280
+ Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision, pp. 649–666. Springer, 2016.
281
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2921–2929, 2016a.
282
+ Tinghui Zhou, Shubham Tulsiani, Weilun Sun, Jitendra Malik, and Alexei A Efros. View synthesis by appearance flow. In ECCV, pp. 286–301. Springer, 2016b.
283
+
284
+ # A MODEL ARCHITECTURES
285
+
286
+ Table 4: Architecture of models applied on MNIST
287
+
288
+ <table><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>Conv(64,5,5) + Relu</td><td>Conv(64,8,8) + Relu</td><td>Conv(128,3,3) + Relu</td></tr><tr><td>Conv(64,5,5) + Relu</td><td>Dropout(0.2)</td><td>Conv(64,3,3) +Relu</td></tr><tr><td>Dropout(0.25)</td><td>Conv(128,6,6)+Relu</td><td>Dropout(0.25)</td></tr><tr><td>FC(128) + Relu</td><td>Conv(128,5,5) +Relu</td><td>FC(128) +Relu</td></tr><tr><td>Dropout(0.5)</td><td>Dropout(0.5)</td><td>Dropout(0.5)</td></tr><tr><td>FC(10) + Softmax</td><td>FC(10) +Softmax</td><td>FC(10)+Softmax</td></tr></table>
289
+
290
+ # B ANALYSIS FOR MEAN BLUR DEFENSE
291
+
292
+ Here we evaluated adversarial examples generated by stAdv against the $3 \times 3$ average pooling restoration mechanism suggested in Li & Li (2016). Table 5 shows the classification accuracy of recovered images after performing $3 \times 3$ average pooling on different models.
293
+
294
+ Table 5: Performance of adversarial examples against the mean blur defense strategy with $3 \times 3$ mean filter.
295
+
296
+ <table><tr><td>Accuracy on recovered images</td><td>A</td><td>MNIST B</td><td>C</td><td>CIFAR-10 Resnet32 wide ResNet34</td></tr><tr><td>3 × 3 Average Filter</td><td>59.00%</td><td>64.22%</td><td>79.71%</td><td>45.12%</td><td>50.12%</td></tr></table>
297
+
298
+ # C ADVERSARIAL EXAMPLES FOR AN IMAGENET-COMPATIBLE SET, MNIST, AND CIFAR-10
299
+
300
+ Experiment settings. In the following experiments, we perform a grid search of hyper-parameter $\tau$ so that the adversarial examples can attack the target model with minimal deformation. Values of $\tau$ are searched from 0.0005 to 0.05.
301
+
302
+ ImageNet-compatible. We use benign images from the DEV set from the NIPS 2017 targeted adversarial attack competition.4 This competition provided a dataset compatible with ImageNet and containing target labels for a targeted attack. We generate targeted adversarial examples for the target inception_v3 model. In Figure 10 below, we show the original images on the left with the correct label, and we show adversarial examples generated by stAdv on the right with the target label.
303
+
304
+ MNIST. We generate adversarial examples for the target Model B. In Figure 11, we show original images with ground truth classes 0–9 in the diagonal, and we show adversarial examples generated by stAdv targeting the class of the original image within that column.
305
+
306
+ CIFAR-10. We generate adversarial examples for the target ResNet-32 model. In Figure 12, we show the original images in the diagonal, and we show adversarial examples generated by stAdv targeting the class of the original image within that column.
307
+
308
+ Table 6 shows the magnitude of the generated flow regarding total variation (TV) and $\mathcal { L } _ { 2 }$ distance on the ImageNet-compatible set, MNIST, CIFAR-10, respectively. These metrics are calculated by the following equations, where $n$ is the number of pixels:
309
+
310
+ $$
311
+ \mathrm { T V } = \sqrt { \frac { 1 } { n } \sum _ { p } ^ { a l l p i c e l s } \sum _ { q \in \mathcal { N } ( p ) } | | \Delta u ^ { ( p ) } - \Delta u ^ { ( q ) } | | _ { 2 } ^ { 2 } + | | \Delta v ^ { ( p ) } - \Delta v ^ { ( q ) } | | _ { 2 } ^ { 2 } } .
312
+ $$
313
+
314
+ $$
315
+ \mathcal { L } _ { 2 } = \sqrt { \frac { 1 } { n } \sum _ { p } ^ { a l l p i x e l s } | | \Delta u ^ { ( p ) } | | _ { 2 } ^ { 2 } + | | \Delta v ^ { ( p ) } | | _ { 2 } ^ { 2 } }
316
+ $$
317
+
318
+ Table 6: Evaluation Metric (the number in bracket is image size)
319
+
320
+ <table><tr><td>Metric</td><td>ImageNet-compatible (299x299)</td><td>MNIST (28x28)</td><td>CIFAR-10 (32x32)</td></tr><tr><td>flow TV</td><td>2.85×10-4±7.28×10-5</td><td>8.26×10-3±4.95×10-3</td><td>2.21× 10-3±1.26×10-3</td></tr><tr><td>flow L2</td><td>2.11 × 10-4 ±5.19 × 10-5</td><td>5.18 × 10-² ± 5.66 × 10-2</td><td>2.76 × 10-3± 2.31 × 10-3</td></tr></table>
321
+
322
+ ![](images/cb7773b077f6251bdffc26eb1b7c7788d71764f227d1dbf6af08b450d26cc97d.jpg)
323
+
324
+ ![](images/f275840c6d6359ef2851ee4ed213e3705f5cffbc3f50f4a13b45fd85def6e5aa.jpg)
325
+ (a) Benign image (labeled as dung beetle)
326
+
327
+ ![](images/ca7c6794a608fb848fd47eefcd1e3e36b68cdb80cdf3ab16f3407492dcc3ca80.jpg)
328
+ (c) Benign image (labeled as jeep)
329
+ (e) Benign image (labeled as bull mastiff)
330
+
331
+ ![](images/5b9c9b4627a6d5bac274078ac08fd6ead0ab690224338dccc235fe3e4514f62f.jpg)
332
+
333
+ ![](images/4351336944abda120b4811614d320a9f28a3ad351eb57560fbfa94786aafac3c.jpg)
334
+ (b) Adversarial image (labeled as scale)
335
+
336
+ ![](images/c6d1012d2994707d1ca3723b315469b71b06acd640d24560373bf85b5e70074b.jpg)
337
+ (d) Adversarial image (labeled as coil)
338
+ (f) Adversarial image (labeled as American lobster)
339
+
340
+ ![](images/0342b6961f2204467f41e914ae655457e97444ef98cef11debbb8d2adccceb4a.jpg)
341
+
342
+ ![](images/b73c05484fc00554b1d5e1dda7e54375e33f9ed60a8e77fa7bfd524b5c966c3c.jpg)
343
+ (g) Benign image (labeled as buckeye)
344
+
345
+ ![](images/139ed79a115288f72f48389af30068e9f24987beeaa8cdd16b1c486a30ed6f58.jpg)
346
+ (i) Benign image (labeled as thatch)
347
+ (k) Benign image (labeled as beaker)
348
+
349
+ ![](images/01fde2ffcea9fa03d96959aac264264293d6a67472b17bca2a312c60c82108f5.jpg)
350
+
351
+ ![](images/77252fb96c14f05fc77bfcaf7d41a4d3a3960dfb0c99a3e62b7c62b35f8ee833.jpg)
352
+ (h) Adversarial image (labeled as goose)
353
+
354
+ ![](images/9c99c74d7de659e9cb3ee50ced140e947ed5d641f3f412462a9140c11e27d659.jpg)
355
+ (j) Adversarial image (labeled as miniature poodle)
356
+ (l) Adversarial image (labeled as padlock)
357
+
358
+ ![](images/80699b1ca534803e1529fb4032712314e46f17de2a54a340c640f0414cd91d89.jpg)
359
+
360
+ ![](images/e2674dd70021f7507fb7b553a1e49a37e492311cb1243626b57b84b2c52dc892.jpg)
361
+ (m) Benign image (labeled as strawberry)
362
+
363
+ ![](images/74a638d91ffd4557f7b628480bc68480179a2fbf4eaed6d0c81bab555c8edf88.jpg)
364
+ (o) Benign image (labeled as folding chair)
365
+ (q) Benign image (labeled as jeep)
366
+
367
+ ![](images/38505fcc1c040246c1e6a3734fb1b352082f771bd65103a5d16d7595bacf3203.jpg)
368
+
369
+ ![](images/006d856039c24c32266946e349e06ba9d7c7c23d4b7bce29b27ea414e7502fe6.jpg)
370
+ (n) Adversarial image (labeled as tench)
371
+
372
+ ![](images/30dd611be6ad13e419430928bf4fa5675357e1b4f01e5af28934757c7086cf0d.jpg)
373
+ (p) Adversarial image (labeled as power drill)
374
+ (r) Adversarial image (labeled as house finch)
375
+
376
+ ![](images/6ff2561eaa132c0fa0d50aea19244038dde3f99bc9a51bb34da99ae984a135da.jpg)
377
+ Figure 10: Examples from an ImageNet-compatible set. Left: original image; right: adversarial image generated by stAdv against inception_v3.
378
+
379
+ ![](images/d79500d4c680e60878b13b44ccfb6494a82e8db0d3392187bc82c400741e8bf0.jpg)
380
+
381
+ ![](images/9baa44fca70aefdb3f79c3f22c6e8cfb4b17537c08af2c0c2cc5132c91ee921c.jpg)
382
+
383
+ ![](images/d6a9685d39a92222e4a7ea345953b147876af945ec0366d6a2618a97f54331d4.jpg)
384
+
385
+ ![](images/f31bf4f717a89e424649fbe6523c48cdf46c62d8caa6c4b67e769cf36bda9106.jpg)
386
+
387
+ ![](images/f03eff8d90e14770f746db37a3ca77a916bbe8228ad3ef521ec7b4ed16181d53.jpg)
388
+
389
+ ![](images/65bbb4c11da020e34a27d503e899bf944f31e8eb550bc14ca84fa6d19bf3ea4d.jpg)
390
+
391
+ ![](images/3b8f7cf926a4ec4e30a1da96608e4953b39f53820190ee8a1e12c1db812f817b.jpg)
392
+
393
+ ![](images/e9414445704c9f9e84f9049a953885bf88722c3c8634eae2f31b383442cc6481.jpg)
394
+
395
+ ![](images/3b938b20060c153e0c7b1a3627a8a43c4c4823350fdf981a412618f389b6d956.jpg)
396
+
397
+ ![](images/defd04566980b7294107673492d30544e61ae696f88c577de7ce7a75f3272540.jpg)
398
+ Figure 11: Adversarial examples generated by stAdv against Model B on MNIST. The original images are shown in the diagonal; the rest are adversarial examples that are classified into the same class as the original image within that column.
399
+
400
+ ![](images/61368515d054c4a63ac08784eecec24a64a95eddb2909e15e742869cf4f0a206.jpg)
401
+
402
+ ![](images/ce8df07e4ec8942f30b69a81de4d338f1c6151977b43a446cae4303c3f443250.jpg)
403
+
404
+ ![](images/168af0f37dd021dc35bf797bffb6207f4e617ff9f99baf080a750fb624366d71.jpg)
405
+
406
+ ![](images/f26608bd59b8fed5bb2eb7570c4832594cd5d115f69a496ebbacf6c2ed889a97.jpg)
407
+
408
+ ![](images/8c370c963942b0e753c2662882f212f6c0362fc5d19bcb3766960a152f4a70ee.jpg)
409
+
410
+ ![](images/15c5c49654f91c3e1693973a3fb796edc82ec83eb1897b1a60332c82bf2e495b.jpg)
411
+
412
+ ![](images/33a55820d187e96ae9a341ad3f194c85a6d86535b96a56eeaa322d25873a39b5.jpg)
413
+
414
+ ![](images/f50fb5de579879f4db17784cf31fcedaa5b7d288d32a679ff996d76618495b52.jpg)
415
+
416
+ ![](images/05d87e58c094eb551266bafd01e966178b7f969b8fac21fde424c9a0fc4324b3.jpg)
417
+
418
+ ![](images/04d2a4afc45097361558bc414bb8797fa3c41e72c08462065fc5f40972b30eaa.jpg)
419
+ Figure 12: Adversarial examples generated by stAdv against a ResNet-32 on CIFAR-10. The original images are shown in the diagonal; the rest are adversarial examples that are classified into the same class as the original image within that column.
parse/train/HyydRMZC-/HyydRMZC-_content_list.json ADDED
@@ -0,0 +1,2210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SPATIALLY TRANSFORMED ADVERSARIAL EXAMPLES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 171,
8
+ 99,
9
+ 821,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Chaowei Xiao1 ∗, Jun-Yan $\\mathbf { Z } \\mathbf { h } \\mathbf { u } ^ { 2 }$ ∗, $\\mathbf { B o L i ^ { 3 } }$ , Warren $\\mathbf { H e ^ { 3 } }$ , Mingyan Liu1, Dawn Song3 \n1University of Michigan, Ann Arbor, USA \n2Massachusetts Institute of Technology, MA, USA \n3University of California, Berkeley, USA ",
17
+ "bbox": [
18
+ 184,
19
+ 143,
20
+ 758,
21
+ 203
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 239,
32
+ 544,
33
+ 253
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Recent studies show that widely used deep neural networks (DNNs) are vulnerable to carefully crafted adversarial examples. Many advanced algorithms have been proposed to generate adversarial examples by leveraging the ${ \\mathcal { L } } _ { p }$ distance for penalizing perturbations. Researchers have explored different defense methods to defend against such adversarial attacks. While the effectiveness of ${ \\mathcal { L } } _ { p }$ distance as a metric of perceptual quality remains an active research area, in this paper we will instead focus on a different type of perturbation, namely spatial transformation, as opposed to manipulating the pixel values directly as in prior works. Perturbations generated through spatial transformation could result in large ${ \\mathcal { L } } _ { p }$ distance measures, but our extensive experiments show that such spatially transformed adversarial examples are perceptually realistic and more difficult to defend against with existing defense systems. This potentially provides a new direction in adversarial example generation and the design of corresponding defenses. We visualize the spatial transformation based perturbation for different examples and show that our technique can produce realistic adversarial examples with smooth image deformation. Finally, we visualize the attention of deep networks with different types of adversarial examples to better understand how these examples are interpreted. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 764,
44
+ 518
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 545,
55
+ 336,
56
+ 560
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Deep neural networks (DNNs) have demonstrated their outstanding performance in different domains, ranging from image processing (Krizhevsky et al., 2012; He et al., 2016), text analysis (Collobert & Weston, 2008) to speech recognition (Hinton et al., 2012). Though deep networks have exhibited high performance for these tasks, recently they have been shown to be particularly vulnerable to adversarial perturbations added to the input images (Szegedy et al., 2013; Goodfellow et al., 2015). These perturbed instances are called adversarial examples, which can lead to undesirable consequences in many practical applications based on DNNs. For example, adversarial examples can be used to subvert malware detection, fraud detection, or even potentially mislead autonomous navigation systems (Papernot et al., 2016b; Evtimov et al., 2017; Grosse et al., 2016) and therefore pose security risks when applied to security-related applications. A comprehensive study about adversarial examples is required to motivate effective defenses. Different methods have been proposed to generate adversarial examples such as fast gradient sign methods (FGSM) (Goodfellow et al., 2015), which can produce adversarial instances rapidly, and optimization-based methods (C&W) (Carlini & Wagner, 2017a), which search for adversarial examples with smaller magnitude of perturbation. ",
63
+ "bbox": [
64
+ 174,
65
+ 575,
66
+ 825,
67
+ 784
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "One important criterion for adversarial examples is that the perturbed images should “look like” the original instances. The traditional attack strategies adopt $L _ { 2 }$ (or other ${ \\mathcal { L } } _ { p }$ ) norm distance as a perceptual similarity metric to evaluate the distortion (Gu & Rigazio, 2014). However, this is not an ideal metric (Johnson et al., 2016; Isola et al., 2017), as $L _ { 2 }$ similarity is sensitive to lighting and viewpoint change of a pictured object. For instance, an image can be shifted by one pixel, which will lead to large $L _ { 2 }$ distance, while the translated image actually appear “the same��� to human perception. Motivated by this example, in this paper we aim to look for other types of adversarial examples and propose to create perceptually realistic examples by changing the positions of pixels instead of directly manipulating existing pixel values. This has been shown to better preserve the identity and structure of the original image (Zhou et al., 2016b). Thus, the proposed spatially transformed adversarial example optimization method (stAdv) can keep adversarial examples less distinguishable from real instances (such examples can be found in Figure 3). ",
74
+ "bbox": [
75
+ 174,
76
+ 791,
77
+ 825,
78
+ 902
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 823,
89
+ 159
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Various defense methods have also been proposed to defend against adversarial examples. Adversarial training based methods have so far achieved the most promising results (Goodfellow et al., 2015; Tramèr et al., 2017; M ˛adry et al., 2017). They have demonstrated the robustness of improved deep networks under certain constraints. However, the spatially transformed adversarial examples are generated through a rather different principle, whereby what is being minimized is the local geometric distortion rather than the ${ \\mathcal { L } } _ { p }$ pixel error between the adversarial and original instances. Thus, the previous adversarial training based defense method may appear less effective against this new attack given the fact that these examples generated by stAdv have never been seen before. This opens a new challenge about how to defend against such attacks, as well as other attacks that are not based on direct pixel value manipulation. ",
96
+ "bbox": [
97
+ 174,
98
+ 166,
99
+ 825,
100
+ 305
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We visualize the spatial deformation generated by stAdv; it is seen to be locally smooth and virtually imperceptible to the human eye. In addition, to better understand the properties of deep neural networks on different adversarial examples, we provide visualizations of the attention of the DNN given adversarial examples generated by different attack algorithms. We find that the spatial transformation based attack is more resilient across different defense models, including adversarially trained robust models. ",
107
+ "bbox": [
108
+ 174,
109
+ 313,
110
+ 823,
111
+ 396
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our contributions are summarized as follows: ",
118
+ "bbox": [
119
+ 176,
120
+ 404,
121
+ 472,
122
+ 417
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We propose to generate adversarial examples based on spatial transformation instead of direct manipulation of the pixel values, and we show realistic and effective adversarial examples on the MNIST, CIFAR-10, and ImageNet datasets. \nWe provide visualizations of optimized transformations and show that such geometric changes are small and locally smooth, leading to high perceptual quality. \n• We empirically show that, compared to other attacks, adversarial examples generated by stAdv are more difficult to detect with current defense systems. \n• Finally, we visualize the attention maps of deep networks on different adversarial examples and demonstrate that adversarial examples based on stAdv can more consistently mislead the adversarial trained robust deep networks compared to other existing attack methods. ",
129
+ "bbox": [
130
+ 215,
131
+ 428,
132
+ 825,
133
+ 579
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 598,
144
+ 341,
145
+ 614
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Here we first briefly summarize the existing adversarial attack algorithms as well as the current defense methods. We then discuss the spatial transformation model used in our adversarial attack. ",
152
+ "bbox": [
153
+ 173,
154
+ 630,
155
+ 823,
156
+ 657
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Adversarial Examples Given a benign sample $\\mathbf { x }$ , an attack instance $\\mathbf { x } _ { \\mathrm { a d v } }$ is referred to as an adversarial example, if a small magnitude of perturbation $\\epsilon$ is added to $\\mathbf { x }$ (i.e. ${ \\bf x } _ { \\mathrm { a d v } } = { \\bf x } + { \\bf \\epsilon } \\mathrm { ) }$ so that $\\mathbf { x } _ { \\mathrm { a d v } }$ is misclassified by the targeted classifier $g$ . Based on the adversarial goal, attacks can be classified into two categories: targeted and untargeted attacks. In a targeted attack, the adversary’s objective is to modify an input $\\mathbf { x }$ such that the target model $g$ classifies the perturbed input $\\mathbf { x } _ { \\mathrm { a d v } }$ in a targeted class chosen, which differs from its ground truth. In a untargeted attack, the adversary’s objective is to cause the perturbed input $\\mathbf { x } _ { \\mathrm { a d v } }$ to be misclassified in any class other than its ground truth. Based on the adversarial capabilities, these attacks can be categorized as white-box and black-box attacks, where an adversary has full knowledge of the classifier and training data in the white-box setting (Szegedy et al., 2014; Goodfellow et al., 2015; Carlini & Wagner, 2017a; Moosavi-Dezfooli et al., 2015; Papernot et al., 2016b; Biggio et al., 2013; Fawzi & Frossard, 2015; Kanbak, 2017; Kurakin et al., 2016); while having zero knowledge about them in the black-box setting (Papernot et al., 2016a; Liu et al., 2017; Moosavi-Dezfooli et al., 2016; Mopuri et al., 2017). In this work, we will focus on the white-box setting to explore what a powerful adversary can do based on the Kerckhoffs’s principle (Shannon, 1949) to better motivate defense methods. ",
163
+ "bbox": [
164
+ 174,
165
+ 672,
166
+ 825,
167
+ 880
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Spatial Transformation In computer vision and graphics literature, Two main aspects determine the appearance of a pictured object (Szeliski, 2010): (1) the lighting and material, which determine the brightness of a point as a function of illumination and object material properties, and (2) the geometry, which determines where the projection of a point will be located in the scene. Most previous adversarial attacks (Goodfellow et al., 2015) focus on changing the lighting and material aspect, while assuming the underlying geometry stays the same during the adversarial perturbation generation process. ",
174
+ "bbox": [
175
+ 173,
176
+ 895,
177
+ 823,
178
+ 924
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "",
185
+ "bbox": [
186
+ 174,
187
+ 103,
188
+ 825,
189
+ 172
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Modeling geometric transformation with neural networks was first explored by “capsules,” computational units that locally transform their input for modeling 2D and 3D geometric changes (Hinton et al., 2011). Later, Jaderberg et al. (2015) demonstrated that similar computational units, named spatial transformers, can benefit many visual recognition tasks. Zhou et al. (2016a) adopted the spatial transformers for synthesizing novel views of the same object and has shown that a geometric method can produce more realistic results compared to pure pixel-based methods. Inspired by these successes, we also use the spatial transformers to deform the input images, but with a different goal: to generate realistic adversarial examples. ",
196
+ "bbox": [
197
+ 174,
198
+ 180,
199
+ 825,
200
+ 291
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Defensive Methods Following the emergence of adversarial examples, various defense methods have been studied, including adversarial training (Goodfellow et al., 2015), distillation (Papernot et al., 2016c), gradient masking (Gu & Rigazio, 2014) and feature squeezing (Xu et al., 2017). However, these defenses can either be evaded by C&W attacks or only provide marginal improvements (Carlini & Wagner, 2017b; He et al., 2017). Among these defenses, adversarial training has achieved the state-of-the-art performance. Goodfellow et al. (2015) proposed to use the fast gradient sign attack as an adversary to perform adversarial training, which is much faster, followed by ensemble adversarial training (Tramèr et al., 2017) and projected gradient descent (PGD) adversarial training (M ˛adry et al., 2017). In this work, we explicitly analyze how effective the spatial transformation based adversarial examples are under these adversarial training based defense methods. ",
207
+ "bbox": [
208
+ 174,
209
+ 313,
210
+ 825,
211
+ 452
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "3 GENERATING ADVERSARIAL EXAMPLES ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 174,
221
+ 478,
222
+ 544,
223
+ 494
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Here we first introduce several existing attack methods and then present our formulation for producing spatially transformed adversarial examples. ",
230
+ "bbox": [
231
+ 174,
232
+ 513,
233
+ 821,
234
+ 541
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "3.1 PROBLEM DEFINITION ",
241
+ "text_level": 1,
242
+ "bbox": [
243
+ 176,
244
+ 564,
245
+ 370,
246
+ 579
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "Given a learned classifier $g : \\mathcal { X } \\mathcal { Y }$ from a feature space $\\mathcal { X }$ to a set of classification outputs $\\mathcal { V }$ (e.g., $\\mathcal { V } = \\{ 0 , 1 \\}$ for binary classification), an adversary aims to generate adversarial example $\\mathbf { x } _ { \\mathrm { a d v } }$ for an original instance $\\mathbf { x } \\in \\mathcal { X }$ with its ground truth label $y \\in \\mathcal { V }$ , so that the classifier predicts $g ( \\mathbf { x } _ { \\mathrm { a d v } } ) \\neq y$ (untargeted attack) or $g ( \\mathbf { x } _ { \\mathrm { a d v } } ) = t$ (targeted attack) where $t$ is the target class. ",
253
+ "bbox": [
254
+ 174,
255
+ 592,
256
+ 825,
257
+ 648
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "3.2 BACKGROUND: CURRENT PIXEL-VALUE BASED ATTACK METHODS",
264
+ "text_level": 1,
265
+ "bbox": [
266
+ 176,
267
+ 672,
268
+ 673,
269
+ 685
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "All of the current methods for generating adversarial examples are built on directly modifying the pixel values of the original image. ",
276
+ "bbox": [
277
+ 176,
278
+ 699,
279
+ 823,
280
+ 728
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "The fast gradient sign method (FGSM) (Goodfellow et al., 2015) uses a first-order approximation of the loss function to construct adversarial samples for the adversary’s target classifier $g$ . The algorithm achieves untargeted attack by performing a single gradient ascent step: ${ \\bf x } _ { \\mathrm { a d v } } = { \\bf x } + { \\bf \\delta }$ $\\epsilon \\cdot \\mathrm { s i g n } ( \\nabla _ { \\mathbf { x } } \\ell _ { g } ( \\mathbf { x } , y ) )$ , where $\\ell _ { g } ( \\mathbf x , y )$ is the loss function (e.g. cross-entropy loss) used to train the original model $g , y$ denotes the ground truth label, and the hyper-parameter $\\epsilon$ controls the magnitude of the perturbation. A targeted version of it can be done similarly. ",
287
+ "bbox": [
288
+ 174,
289
+ 734,
290
+ 825,
291
+ 819
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Optimization-based attack (C&W) produces an adversarial perturbation for a targeted attack based on certain constraints (Carlini & Wagner, 2017a; Liu et al., 2017) as formulated below: ",
298
+ "bbox": [
299
+ 171,
300
+ 825,
301
+ 823,
302
+ 854
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "equation",
308
+ "img_path": "images/21e85921caf1d901883db8ee9cd477f252c31f9da69156511ac345de883cfbd1.jpg",
309
+ "text": "$$\n\\operatorname* { m i n } | | \\delta | | _ { p } ^ { 2 } \\quad \\mathrm { s . t . } \\qquad g ( \\mathbf { x } + \\delta ) = t \\quad \\mathrm { a n d } \\quad \\mathbf { x } + \\delta \\in X ,\n$$",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 320,
313
+ 864,
314
+ 676,
315
+ 885
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "where the ${ \\mathcal { L } } _ { p }$ norm penalty ensures that the added perturbation $\\epsilon$ is small. The same optimization procedure can achieve untargeted attacks with a modified constraint $g ( \\mathbf { x } + \\delta ) \\neq y$ . ",
322
+ "bbox": [
323
+ 173,
324
+ 895,
325
+ 823,
326
+ 924
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "image",
332
+ "img_path": "images/59a5504203b0edb3ef5204a4cf3e7c01be00b469b05918357318c0bea0ca3e40.jpg",
333
+ "image_caption": [
334
+ "Figure 1: Generating adversarial examples with spatial transformation: the blue point denotes the coordinate of a pixel in an output adversarial image and the green point is its corresponding pixel in an input image. The flow field in red represents the displacement from the pixels in the adversarial image to the pixels in the input image. "
335
+ ],
336
+ "image_footnote": [],
337
+ "bbox": [
338
+ 192,
339
+ 104,
340
+ 805,
341
+ 297
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "3.3 OUR APPROACH: SPATIALLY TRANSFORMED ADVERSARIAL EXAMPLES",
348
+ "text_level": 1,
349
+ "bbox": [
350
+ 174,
351
+ 396,
352
+ 714,
353
+ 411
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "All the existing approaches directly modify pixel values, which may sometimes produce noticeable artifacts. Instead, we aim to smoothly change the geometry of the scene while keeping the original appearance, producing more perceptually realistic adversarial examples. In this section, we first introduce our spatial transformation model and then describe our objective function for generating spatially transformed adversarial examples. ",
360
+ "bbox": [
361
+ 174,
362
+ 424,
363
+ 825,
364
+ 496
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "Spatial transformation We use $\\mathbf { x } _ { \\mathrm { a d v } } ^ { ( i ) }$ to denote the pixel value of the $i$ -th pixel and 2D coordinate (u adv, v adv) to denote its location in the adversarial image $\\mathbf { x } _ { \\mathrm { a d v } }$ . We assume that $\\mathbf { x } _ { \\mathrm { a d v } } ^ { ( i ) }$ is transformed from the pixel $\\mathbf { x } ^ { ( i ) }$ from the original image. We use the per-pixel flow (displacement) field $f$ to synthesize the adversarial image $\\mathbf { x } _ { \\mathrm { a d v } }$ using pixels from the input $\\mathbf { x }$ . For the $i$ -th pixel within $\\mathbf { x } _ { \\mathrm { a d v } }$ at the pixel location $( u _ { \\mathrm { a d v } } ^ { ( i ) } , v _ { \\mathrm { a d v } } ^ { ( i ) } )$ , we optimize the amount of displacement in each image dimension, with the pair denoted by the flow vector $f _ { i } : = ( \\Delta u ^ { ( i ) } , \\Delta v ^ { ( i ) } )$ . Note that the flow vector $f _ { i }$ goes from a pixel $\\mathbf { x } _ { \\mathrm { a d v } } ^ { ( i ) }$ in the adversarial image to its corresponding pixel $\\mathbf { x } ^ { ( i ) }$ in the input image. Thus, the location of its corresponding pixel $\\mathbf { x } ^ { ( i ) }$ can be derived as $( \\boldsymbol { u } ^ { ( i ) } , \\boldsymbol { v } ^ { ( i ) } ) = ( u _ { \\mathrm { a d v } } ^ { ( i ) } + \\Delta u ^ { ( i ) } , v _ { \\mathrm { a d v } } ^ { ( i ) } + \\Delta v ^ { ( i ) } )$ . As the $( u ^ { ( i ) } , v ^ { ( i ) } )$ can be fractional numbers and does not necessarily lie on the integer image grid, we use the differentiable bilinear interpolation (Jaderberg et al., 2015) to transform the input image with the flow field. We calculate x(i)adv as: ",
371
+ "bbox": [
372
+ 173,
373
+ 515,
374
+ 826,
375
+ 699
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "equation",
381
+ "img_path": "images/5616ce92804c1059dd7a6410b5d7caba7b79380f40e6cc1b830e3fdb2074820f.jpg",
382
+ "text": "$$\n\\mathbf { x } _ { \\mathrm { a d v } } ^ { ( i ) } = \\sum _ { q \\in \\mathcal { N } ( u ^ { ( i ) } , v ^ { ( i ) } ) } \\mathbf { x } ^ { ( q ) } ( 1 - | u ^ { ( i ) } - u ^ { ( q ) } | ) ( 1 - | v ^ { ( i ) } - v ^ { ( q ) } | ) ,\n$$",
383
+ "text_format": "latex",
384
+ "bbox": [
385
+ 290,
386
+ 708,
387
+ 704,
388
+ 747
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "where $\\mathcal { N } ( u ^ { ( i ) } , v ^ { ( i ) } )$ are the indices of the 4-pixel neighbors at the location $( u ^ { ( i ) } , v ^ { ( i ) } )$ (top-left, topright, bottom-left, bottom-right). We can obtain the adversarial image $\\mathbf { x } _ { \\mathrm { a d v } }$ by calculating Equation 1 for every pixel $\\mathbf { x } _ { \\mathrm { a d v } } ^ { ( i ) }$ . Note that $\\mathbf { x } _ { \\mathrm { a d v } }$ is differentiable with respect to the flow field $f$ (Jaderberg et al., 2015; Zhou et al., 2016b). The estimated flow field essentially captures the amount of spatial transformation required to fool the classifier. ",
395
+ "bbox": [
396
+ 173,
397
+ 758,
398
+ 825,
399
+ 833
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "Objective function Most of the previous methods constrain the added perturbation to be small regarding a ${ \\mathcal { L } } _ { p }$ metric. Here instead of imposing the ${ \\mathcal { L } } _ { p }$ norm on pixel space, we introduce a new regularization loss $\\mathcal { L } _ { f l o w }$ on the local distortion $f$ , producing higher perceptual quality for adversarial examples. Therefore, the goal of the attack is to generate adversarial examples which can mislead the classifier as well as minimizing the local distortion introduced by the flow field $f$ . ",
406
+ "bbox": [
407
+ 174,
408
+ 853,
409
+ 823,
410
+ 924
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "Formally, given a benign instance $\\mathbf { x }$ , we obtain the flow field $f$ by minimize the following objective: ",
417
+ "bbox": [
418
+ 171,
419
+ 103,
420
+ 823,
421
+ 118
422
+ ],
423
+ "page_idx": 4
424
+ },
425
+ {
426
+ "type": "equation",
427
+ "img_path": "images/59956bc6bfdb1df7bbba4e83a1b6fef761b1205e9b2c32e957faceee85831060.jpg",
428
+ "text": "$$\nf ^ { * } = \\underset { f } { \\mathrm { a r g m i n } } \\quad \\mathcal { L } _ { a d v } ( x , f ) + \\tau \\mathcal { L } _ { f o w } ( f ) ,\n$$",
429
+ "text_format": "latex",
430
+ "bbox": [
431
+ 359,
432
+ 131,
433
+ 637,
434
+ 157
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "where $\\mathcal { L } _ { a d v }$ encourages the generated adversarial examples to be misclassified by the target classifier. $L _ { f l o w }$ ensures that the spatial transformation distance is minimized to preserve high perceptual quality, and $\\tau$ balances these two losses. ",
441
+ "bbox": [
442
+ 173,
443
+ 161,
444
+ 825,
445
+ 204
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "The goal of $\\mathcal { L } _ { a d v }$ is to guarantee the targeted attack $g ( \\mathbf { x } _ { \\mathrm { a d v } } ) ~ = ~ t$ where $t$ is the targeted class, different from the ground truth label $y$ . Recall that we transform the input image $\\mathbf { x }$ to $\\mathbf { x } _ { \\mathrm { a d v } }$ with the flow field $f$ (Equation 1). In practice, directly enforcing $g ( \\mathbf { x } _ { \\mathrm { a d v } } ) = t$ during optimization is highly non-linear, we adopt the objective function suggested in Carlini & Wagner (2017a). ",
452
+ "bbox": [
453
+ 174,
454
+ 210,
455
+ 823,
456
+ 267
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "equation",
462
+ "img_path": "images/a5ba8eadf97cc4846d58449fb99f02ad94aeb46bde4975e30036b240cffc1875.jpg",
463
+ "text": "$$\n\\mathcal { L } _ { a d v } ( x , f ) = \\operatorname* { m a x } ( \\operatorname* { m a x } _ { i \\neq t } g ( \\mathbf { x } _ { \\mathrm { a d v } } ) _ { i } - g ( \\mathbf { x } _ { \\mathrm { a d v } } ) _ { t } , \\kappa ) ,\n$$",
464
+ "text_format": "latex",
465
+ "bbox": [
466
+ 336,
467
+ 273,
468
+ 658,
469
+ 297
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "where $g ( x )$ represents the logit output of model $g , g ( x ) _ { i }$ denotes the $i$ -th element of the logit vector, and $\\kappa$ is used to control the attack confidence level. ",
476
+ "bbox": [
477
+ 173,
478
+ 306,
479
+ 821,
480
+ 335
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "To compute ${ \\mathcal { L } } _ { f l o w }$ , we calculate the sum of spatial movement distance for any two adjacent pixels. Given an arbitrary pixel $p$ and its neighbors $q \\in \\mathcal { N } ( p )$ , we enforce the locally smooth spatial transformation perturbation $\\mathcal { L } _ { f l o w }$ based on the total variation (Rudin et al., 1992): ",
487
+ "bbox": [
488
+ 174,
489
+ 342,
490
+ 825,
491
+ 385
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "equation",
497
+ "img_path": "images/a463ed87dd335ed6f1c7ec16fb99058a9f16ecad12884a2d2b9a0bd1bf304a05.jpg",
498
+ "text": "$$\n\\mathcal { L } _ { f l o w } ( f ) = \\sum _ { p } ^ { a l l p i x e l s } \\sum _ { q \\in N ( p ) } \\sqrt { | | \\Delta u ^ { ( p ) } - \\Delta u ^ { ( q ) } | | _ { 2 } ^ { 2 } + | | \\Delta v ^ { ( p ) } - \\Delta v ^ { ( q ) } | | _ { 2 } ^ { 2 } } .\n$$",
499
+ "text_format": "latex",
500
+ "bbox": [
501
+ 264,
502
+ 402,
503
+ 735,
504
+ 449
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "Intuitively, minimizing the spatial transformation can help ensure the high perceptual quality for stAdv, since adjacent pixels tend to move towards close direction and distance. We solve the above optimization with L-BFGS solver (Liu & Nocedal, 1989). ",
511
+ "bbox": [
512
+ 176,
513
+ 458,
514
+ 823,
515
+ 501
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "4 EXPERIMENTAL RESULTS ",
522
+ "text_level": 1,
523
+ "bbox": [
524
+ 176,
525
+ 522,
526
+ 419,
527
+ 539
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "In this section, we first show adversarial examples generated by the proposed spatial transformation method and analyze the properties of these examples from different perspectives. We then visualize the estimated flows for adversarial examples and show that with small and smooth transformation, the generated adversarial examples can already achieve a high attack success rate against deep networks. We also show that stAdv can preserve a high attack success rate against current defense methods, which motivates more sophisticated defense methods in the future. Finally, we analyze the attention regions of DNNs, to better understand the attack properties of stAdv. ",
534
+ "bbox": [
535
+ 173,
536
+ 554,
537
+ 825,
538
+ 651
539
+ ],
540
+ "page_idx": 4
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "Experiment Setup We set $\\tau$ as 0.05 for all our experiments. We use confidence $\\kappa = 0$ for both C&W and stAdv for a fair comparison. We leverage L-BFGS (Liu & Nocedal, 1989) as our solver with backtracking linear search. ",
545
+ "bbox": [
546
+ 174,
547
+ 667,
548
+ 825,
549
+ 710
550
+ ],
551
+ "page_idx": 4
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "4.1 ADVERSARIAL EXAMPLES BASED ON SPATIAL TRANSFORMATIONS ",
556
+ "text_level": 1,
557
+ "bbox": [
558
+ 174,
559
+ 728,
560
+ 681,
561
+ 742
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "We show adversarial examples with high perceptual quality for both MNIST (LeCun & Cortes, 1998) and CIFAR-10 (Krizhevsky et al., 2014) datasets. ",
568
+ "bbox": [
569
+ 173,
570
+ 753,
571
+ 823,
572
+ 782
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "stAdv on MNIST In our experiments, we generate adversarial examples againsts three target models in the white-box setting on the MNIST dataset. Model A, B, and C are derived from the prior work (Tramèr et al., 2017), which represent different architectures. See Appendix A and Table 4 for more details about their network architectures. Table 1 presents the accuracy of pristine MNIST test data on each model as well as the attack success rate of adversarial examples generated by stAdv on these models. Figure 2 shows the adversarial examples against different models where the original instances appear in the diagonal. Each adversarial example achieves a targeted attack, with the target class shown on the top of the column. It is clear that the generated adversarial examples still appear to be in the same class as the original instance for humans. Another advantage for stAdv compared with traditional attacks is that examples based on stAdv seldom show noise pattern within the adversarial examples. Instead, stAdv smoothly deforms the digits and since such natural deformation also exists in the dataset digits, humans can barely notice such manipulation. ",
579
+ "bbox": [
580
+ 173,
581
+ 797,
582
+ 825,
583
+ 924
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "",
590
+ "bbox": [
591
+ 176,
592
+ 103,
593
+ 823,
594
+ 146
595
+ ],
596
+ "page_idx": 5
597
+ },
598
+ {
599
+ "type": "table",
600
+ "img_path": "images/59628578f785dbeb78b8d72999a1068bb989cd5420f445c76e4fed323d588cbf.jpg",
601
+ "table_caption": [
602
+ "Table 1: Top: accuracy of different models on pristine data (p); bottom: attack success rates of adversarial examples generated by stAdv on MNIST dataset. "
603
+ ],
604
+ "table_footnote": [],
605
+ "table_body": "<table><tr><td>Model</td><td>A</td><td>B</td><td>C</td></tr><tr><td>Accuracy (p)</td><td>98.58%</td><td>98.94%</td><td>99.11%</td></tr><tr><td>Attack Success Rate</td><td>99.95%</td><td>99.98%</td><td>100.00%</td></tr></table>",
606
+ "bbox": [
607
+ 323,
608
+ 199,
609
+ 669,
610
+ 251
611
+ ],
612
+ "page_idx": 5
613
+ },
614
+ {
615
+ "type": "image",
616
+ "img_path": "images/cd9611ac0f4cbc32e6f9793e0769e4433e5651461d4c405c74337333c8eb72b0.jpg",
617
+ "image_caption": [
618
+ "Figure 2: Adversarial examples generated by stAdv against different models on MNIST. The ground truth images are shown in the diagonal and the rest are adversarial examples that are misclassified to the target classes shown on the top. "
619
+ ],
620
+ "image_footnote": [],
621
+ "bbox": [
622
+ 181,
623
+ 272,
624
+ 815,
625
+ 481
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "stAdv on CIFAR-10 For CIFAR-10, we use ResNet- $3 2 ^ { 1 }$ and wide ResNet- $3 4 ^ { 2 }$ as the target classifers (Zagoruyko & Komodakis, 2016; He et al., 2016; M ˛adry et al., 2017). We show the classification accuracy of pristine CIFAR-10 test data (p) and attack success rates of adversarial examples generated by stAdv on different models in Table 2. Figure 3 shows the generated examples on CIFAR-10 against different models. The original images are shown in the diagonal. The other images are targeted adversarial examples, with the index of the target classes shown at the top of the column. Here we use $^ { 6 6 } 0 { - } 9 ^ { 7 }$ to denote the ground truth labels of images lying in the diagonal for each corresponding column. These adversarial examples based on stAdv are randomly selected from the instances that can successfully attack the corresponding classifier. Humans can hardly distinguish these adversarial examples from the original instances. ",
632
+ "bbox": [
633
+ 173,
634
+ 559,
635
+ 825,
636
+ 699
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "table",
642
+ "img_path": "images/7a1557cebb39ac7bbb998a3f9b2cfe5eb1301416531c442bb195a5e0f1df0db3.jpg",
643
+ "table_caption": [
644
+ "Table 2: Top: accuracy of different models on pristine data (p); bottom: attack success rates of adversarial examples generated by stAdv on the CIFAR-10 dataset. The numbers in parentheses denote the number of parameters in each target model. "
645
+ ],
646
+ "table_footnote": [],
647
+ "table_body": "<table><tr><td>Model</td><td>ResNet32 (0.47M)</td><td>Wide ResNet34 (46.16M)</td></tr><tr><td>Accuracy (p)</td><td>93.16%</td><td>95.82%</td></tr><tr><td>Attack Success Rate</td><td>99.56%</td><td>98.84%</td></tr></table>",
648
+ "bbox": [
649
+ 274,
650
+ 766,
651
+ 717,
652
+ 819
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Comparison of different adversarial examples In Figure 4, we show adversarial examples that are targeted attacked to the same class (“0” for MNIST and “airplane” for CIFAR-10), which is different from their ground truth. We compare adversarial examples generated from different methods and show that those based on stAdv look more visually realistic compared with FGSM (Goodfellow et al., 2015) and C&W (Carlini & Wagner, 2017b) methods. ",
659
+ "bbox": [
660
+ 176,
661
+ 843,
662
+ 823,
663
+ 886
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "image",
669
+ "img_path": "images/8a6c1e281094aeefce5c496c79947e05b175ad33612122c99f8fa4f776efe68d.jpg",
670
+ "image_caption": [
671
+ "Figure 3: Adversarial examples generated by stAdv against different models on CIFAR-10. The ground truth images are shown in the diagonal while the adversarial examples on each column are classified into the same class as the ground truth image within that column. "
672
+ ],
673
+ "image_footnote": [],
674
+ "bbox": [
675
+ 204,
676
+ 99,
677
+ 794,
678
+ 373
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "",
685
+ "bbox": [
686
+ 173,
687
+ 455,
688
+ 823,
689
+ 484
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "image",
695
+ "img_path": "images/ae8ba83f3adfa96e7c73c3735e96b7539289a1b6234b56c7f507285e36be7d74.jpg",
696
+ "image_caption": [
697
+ "Figure 4: Comparison of adversarial examples generated by FGSM, C&W and stAdv. (Left: MNIST, right: CIFAR-10) The target class for MNIST is $ { { } ^ { 6 } } { 0 ^ { 9 } }$ and “air plane” for CIFAR-10. We generate adversarial examples by FGSM and C&W with perturbation bounded in terms of $L _ { \\infty }$ as 0.3 on MNIST and 8 on CIFAR-10. "
698
+ ],
699
+ "image_footnote": [],
700
+ "bbox": [
701
+ 176,
702
+ 497,
703
+ 828,
704
+ 575
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "image",
710
+ "img_path": "images/531d41d705ede2d69e965af067a2d14b6ebe5b5f6eef30ce5577cca2ea1c9a74.jpg",
711
+ "image_caption": [
712
+ "Figure 5: Flow visualization on MNIST. A digit “0” is misclassified as “2”. "
713
+ ],
714
+ "image_footnote": [],
715
+ "bbox": [
716
+ 217,
717
+ 672,
718
+ 782,
719
+ 816
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "4.2 VISUALIZING SPATIAL TRANSFORMATION ",
726
+ "text_level": 1,
727
+ "bbox": [
728
+ 173,
729
+ 869,
730
+ 508,
731
+ 883
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "To better understand the spatial transformation applied to the original images, we visualize the optimized transformation flow for different datasets, respectively. Figure 5 visualizes a transformation on an MNIST instance, where the digit $\\mathbf { \\bar { \\theta } } ^ { 6 } 0 ^ { 9 }$ is misclassified as “2.” We can see that the adjacent flows move in a similar direction in order to generate smooth results. The flows are more focused on the edge of the digit and sometimes these flows move in different directions along the edge, which implies that the object boundary plays an important role in our stAdv optimization. Figure 6 illustrates a similar visualization on CIFAR-10. It shows that the optimized flows often focus on the area of the main object, such as the airplane. We also observe that the magnitude of flows near the edge are usually larger, which similarly indicates the importance of edges for misleading the classifiers. This observation confirms the observation that when DNNs extract edge information in the earlier layers for visual recognition tasks (Viterbi, 1998). In addition, we visualize the similar flow for the ImageNet dataset (Deng et al., 2009) in Figure 7. The top-1 label of the original image in Figure 7 (a) is “mountain bike”. Figure 7 (b)-(d) show targeted adversarial examples generated by stAdv, which have target classes “goldfish,” “Maltese dog,” and “tabby cat,” respectively, and which are predicted as such as the top-1 class. An interesting observation is that, although there are other objects within the image, nearly $90 \\%$ of the spatial transformation flows tend to focus on the target object bike. Different target class corresponds to different directions for these flows, which still fall into the similar area. ",
738
+ "bbox": [
739
+ 176,
740
+ 895,
741
+ 825,
742
+ 924
743
+ ],
744
+ "page_idx": 6
745
+ },
746
+ {
747
+ "type": "image",
748
+ "img_path": "images/b90a1e172f1c1bef85679ea8478ed5db04441e9b0738d2552413e8b97f726fe0.jpg",
749
+ "image_caption": [
750
+ "Figure 6: Flow visualization on CIFAR-10. An “airplane” image is misclassified as “bird”. "
751
+ ],
752
+ "image_footnote": [],
753
+ "bbox": [
754
+ 204,
755
+ 99,
756
+ 784,
757
+ 224
758
+ ],
759
+ "page_idx": 7
760
+ },
761
+ {
762
+ "type": "image",
763
+ "img_path": "images/6654a30cb8a43af7c43ed9d61fa164088b56d956e4eefbe00d2a6b2e48f4248e.jpg",
764
+ "image_caption": [
765
+ "Figure 7: Flow visualization on ImageNet. (a): the original image, (b)-(c): images are misclassified into goldfish, dog and cat, respectively. Note that to display the flows more clearly, we fade out the color of the original image. "
766
+ ],
767
+ "image_footnote": [],
768
+ "bbox": [
769
+ 186,
770
+ 253,
771
+ 810,
772
+ 392
773
+ ],
774
+ "page_idx": 7
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "",
779
+ "bbox": [
780
+ 174,
781
+ 462,
782
+ 825,
783
+ 683
784
+ ],
785
+ "page_idx": 7
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "4.3 HUMAN PERCEPTUAL STUDY ",
790
+ "text_level": 1,
791
+ "bbox": [
792
+ 176,
793
+ 708,
794
+ 413,
795
+ 720
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "To quantify the perceptual realism of stAdv’s adversarial examples, we perform a user study with human participants on Amazon Mechanical Turk (AMT). We follow the same perceptual study protocol used in prior image synthesis work (Zhang et al., 2016; Isola et al., 2017). We generate 600 images from an ImageNet-compatible dataset, described in Appendix C. In our study, the participants are asked to choose the more visually realistic image between an adversarial example generated by stAdv and its original image. During each trial, these two images appear side-by-side for 2 seconds. After the images disappear, our participants are given unlimited time to make their decision. To avoid labeling bias, we allow each user to conduct at most 50 trails. For each pair of an original image and its adversarial example, we collect about 5 annotations from different users. ",
802
+ "bbox": [
803
+ 174,
804
+ 734,
805
+ 823,
806
+ 861
807
+ ],
808
+ "page_idx": 7
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "In total, we collected 2, 740 annotations from 93 AMT users. Examples generated by our method were chosen as the more realistic in $4 7 . 0 1 \\% \\pm 1 . 9 6 \\%$ of the trails (perfectly realistic results would achieve $5 0 \\%$ ). This indicates that our adversarial examples are almost indistinguishable from natural images. ",
813
+ "bbox": [
814
+ 176,
815
+ 867,
816
+ 823,
817
+ 924
818
+ ],
819
+ "page_idx": 7
820
+ },
821
+ {
822
+ "type": "table",
823
+ "img_path": "images/869dad4ec2bc598d7dd28aeab08aa14568f3c767b61db60051820b4dbe2aa6d7.jpg",
824
+ "table_caption": [
825
+ "Table 3: Attack success rates of adversarial examples generated by stAdv against models A, B, and C on MNIST, and against ResNet and wide ResNet on CIFAR-10, under standard defenses. "
826
+ ],
827
+ "table_footnote": [],
828
+ "table_body": "<table><tr><td>Model</td><td>Def.</td><td>FGSM</td><td>C&amp;W.</td><td>stAdv</td></tr><tr><td rowspan=\"3\">A</td><td>Adv.</td><td>4.3%</td><td>4.6%</td><td>32.62%</td></tr><tr><td>Ens.</td><td>1.6%</td><td>4.2%</td><td>48.07%</td></tr><tr><td>PGD</td><td>4.4%</td><td>2.96%</td><td>48.38%</td></tr><tr><td rowspan=\"3\">B</td><td>Adv.</td><td>6.0%</td><td>4.5%</td><td>50.17%</td></tr><tr><td>Ens.</td><td>2.7%</td><td>3.18%</td><td>46.14%</td></tr><tr><td>PGD</td><td>9.0%</td><td>3.0%</td><td>49.82%</td></tr><tr><td rowspan=\"3\">C</td><td>Adv.</td><td>3.22%</td><td>0.86%</td><td>30.44%</td></tr><tr><td>Ens.</td><td>1.45%</td><td>0.98%</td><td>28.82%</td></tr><tr><td>PGD</td><td>2.1%</td><td>0.98%</td><td>28.13%</td></tr></table>",
829
+ "bbox": [
830
+ 178,
831
+ 122,
832
+ 493,
833
+ 275
834
+ ],
835
+ "page_idx": 8
836
+ },
837
+ {
838
+ "type": "table",
839
+ "img_path": "images/3563cfa4f6b84829697baadbb0084f3f19ebacd67b237db798a5cd1a3bf17032.jpg",
840
+ "table_caption": [],
841
+ "table_footnote": [],
842
+ "table_body": "<table><tr><td>Model</td><td>Def.</td><td>FGSM</td><td>C&amp;W.</td><td>stAdv</td></tr><tr><td rowspan=\"2\">ResNet32</td><td>Adv.</td><td>13.10%</td><td>11.9%</td><td>43.36%</td></tr><tr><td>Ens. PGD</td><td>10.00% 22.8%</td><td>10.3% 21.4%</td><td>36.89% 49.19%</td></tr><tr><td rowspan=\"4\">wide ResNet34</td><td>Adv.</td><td>5.04%</td><td>7.61%</td><td>31.66%</td></tr><tr><td>Ens.</td><td>4.65%</td><td>8.43%</td><td>29.56%</td></tr><tr><td>PGD</td><td>14.9%</td><td>13.90%</td><td></td></tr><tr><td></td><td></td><td></td><td>31.6%</td></tr></table>",
843
+ "bbox": [
844
+ 501,
845
+ 145,
846
+ 833,
847
+ 255
848
+ ],
849
+ "page_idx": 8
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "4.4 ATTACK EFFICIENCY UNDER DEFENSE METHODS ",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 174,
857
+ 305,
858
+ 560,
859
+ 320
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Here we generate adversarial examples in the white-box setting and test different defense methods against these samples to evaluate the strength of these attacks under defenses. ",
866
+ "bbox": [
867
+ 174,
868
+ 333,
869
+ 823,
870
+ 361
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "We mainly focus on the adversarial training defenses due to their state-of-the-art performance. We apply three defense strategies in our evaluation: the FGSM adversarial training (Adv.) (Goodfellow et al., 2015), ensemble adversarial training (Ens.) (Tramèr et al., 2017), and projectile gradient descent (PGD) adversarial training (M ˛adry et al., 2017) methods. For adversarial training purposes, we generate adversarial examples based on $L _ { \\infty }$ bound (Carlini & Wagner, 2017a) as 0.3 on MNIST and 8 on CIFAR-10. We test adversarial examples generated against model A, B, and C on MNIST as shown in Table 4, and similarly adversarial examples generated against ResNet32 and wide ResNet34 on CIFAR-10. ",
877
+ "bbox": [
878
+ 174,
879
+ 368,
880
+ 825,
881
+ 479
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "The results on the MNIST and CIFAR-10 datasets are shown in Table 3. We observe that the three defense strategies can achieve high performance (less than $10 \\%$ attack success rate) against FGSM and C&W attacks. ",
888
+ "bbox": [
889
+ 176,
890
+ 486,
891
+ 825,
892
+ 529
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "These defense methods only achieve low defense performance on stAdv, which improve the attack success rate to more than $3 0 \\%$ among all defense strategies. These results indicate that new type of adversarial strategy, such as our spatial transformation-based attack, may open new directions for developing better defense systems. However, for stAdv, we cannot use ${ \\mathcal { L } } _ { p }$ norm to bound the distance as translating an image by one pixel may introduce large ${ \\mathcal { L } } _ { p }$ penalty. We instead constrain the spatial transformation flow and show that our adversarial examples have high perceptual quality in Figures 2, 3, and 4 as well as Section 4.3. ",
899
+ "bbox": [
900
+ 174,
901
+ 535,
902
+ 825,
903
+ 632
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Mean blur defense We also test our adversarial examples against the $3 { \\times } 3$ average pooling restoration mechanism (Li & Li, 2016). Table 5 in Appendix B shows the classification accuracy of recovered images after performing $3 \\times 3$ average filter on different models. We find that the simple $3 \\times 3$ average pooing restoration mechanism can recover the original class from fast gradient sign examples and improve the classification accuracy up to around $70 \\%$ . Carlini & Wagner have also shown that such mean blur defense strategy can defend against adversarial examples generated by their attack and improve the model accuracy to around $80 \\%$ (2017b). From Table 5, we can see that the mean blur defense method can only improve the model accuracy to around $50 \\%$ on stAdv examples, which means adversarial examples generated by stAdv are more robust compared to other attacks. We also perform a perfect knowledge adaptive attack against the mean blur defense following the same attack strategy suggested in (Carlini & Wagner, 2017b), where we add the $3 \\times 3$ average pooling layer into the original network and apply stAdv to attack the new network again. We observe that the success rate of an adaptive attack is nearly $100 \\%$ , which is consistent with Carlini & Wagner’s findings (2017b). ",
910
+ "bbox": [
911
+ 174,
912
+ 652,
913
+ 825,
914
+ 847
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "4.5 VISUALIZING ATTENTION OF NETWORKS ON ADVERSARIAL EXAMPLES ",
921
+ "text_level": 1,
922
+ "bbox": [
923
+ 176,
924
+ 868,
925
+ 709,
926
+ 882
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "In addition to the analyzing adversarial examples themselves, in this section, we further characterize these spatially transformed adversarial examples from the perspective of deep neural networks. ",
933
+ "bbox": [
934
+ 174,
935
+ 895,
936
+ 820,
937
+ 924
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "image",
943
+ "img_path": "images/2f1e2ccd33a46684daae6ba2e40ddac36cbef1277c5ec583dee5f8b733b29e33.jpg",
944
+ "image_caption": [
945
+ "Figure 8: CAM attention visualizations for ImageNet inception_v3 model. (a) the original image and (b)-(d) stAdv adversarial examples targeting different classes. The second row shows the attention visualizations for the corresponding images displayed above. "
946
+ ],
947
+ "image_footnote": [],
948
+ "bbox": [
949
+ 179,
950
+ 102,
951
+ 816,
952
+ 382
953
+ ],
954
+ "page_idx": 9
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Here we apply Class Activation Mapping (CAM) (Zhou et al., 2016a), an implicit attention visualization technique for localizing the discriminative regions implicitly detected by a DNN. We use it to show the attention of the target ImageNet inception_v3 model (Szegedy et al., 2016)) for both original images and generated adversarial examples. Figure 8(a) shows an input bike image and Figure 8(b)–(d) show the targeted adversarial examples based on stAdv targeting three different classes (goldfish, dog, and cat). Figure 8(e) illustrates that the target model draws attention to the bicycle region. Interestingly, attention regions on examples generated by stAdv varies for different target classes as shown in Figure 8(f)–(h). Though humans can barely distinguish between the original image and the ones generated by stAdv, CAM map focus on completely different regions, implying that our attack can mislead the network’s attention. ",
959
+ "bbox": [
960
+ 174,
961
+ 446,
962
+ 825,
963
+ 585
964
+ ],
965
+ "page_idx": 9
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "In addition, we also compare and visualize the attention regions of both naturally trained and the adversarial trained inception_v3 model3 on adversarial images generated by different attack algorithms (Figure 9). The ground truth top-1 label is “cinema,” so the attention region for the original image (Figure 9 (a)) includes both tower and building regions. However, when the adversarial examples are targeted attacked into the adversarial label “missile,” the attention region focuses on only the tower for all the attack algorithms as shown in Figure 9 (b)-(d) with slight different attention region sizes. More interestingly, we also test these adversarial examples on the public adversarial trained robust inception_v3 model. The result appears in Figure 9 (f)–(h). This time, the attention regions are drawn to the building again for both FGSM and C&W methods, which are close to the attention regions of the original image. The top-1 label for Figure 9 (f) and (g) are again the ground truth “cinema”, which means both FGSM and C&W fail to attack the robust model. However, Figure 9 (h) is still misclassified as “missile” under the robust model and the CAM visualization shows that the attention region still focuses on the tower. This example again implies that adversarial examples generated by stAdv are challenging to defend for the current “robust” ImageNet models. ",
970
+ "bbox": [
971
+ 174,
972
+ 593,
973
+ 825,
974
+ 787
975
+ ],
976
+ "page_idx": 9
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "5 CONCLUSIONS ",
981
+ "text_level": 1,
982
+ "bbox": [
983
+ 176,
984
+ 809,
985
+ 328,
986
+ 825
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Different from the previous works that generate adversarial examples by directly manipulating pixel values, in this work we propose a new type of perturbation based on spatial transformation, which aims to preserve high perceptual quality for adversarial examples. We have shown that adversarial examples generated by stAdv are more difficult for humans to distinguish from original instances. ",
993
+ "bbox": [
994
+ 176,
995
+ 842,
996
+ 823,
997
+ 897
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "image",
1003
+ "img_path": "images/4a8de4df7d55ef26804bf583852dc942667e3b0ab0f81a1b59b990b11e2dfd45.jpg",
1004
+ "image_caption": [
1005
+ "Figure 9: CAM attention visualizations for ImageNet inception_v3 model. The first column shows the CAM maps corresponding to the original images. Column 2-4 show the adversarial examples generated by different methods. The visualizations are drawn for Row 1 (inception_v3 model) and Row 2 (adversarial trained inception_v3 model). (a) and (e)-(g) are labeled as the ground truth “cinema”, while (b)-(d) and (h) are labeled as the adversarial target “missile.” "
1006
+ ],
1007
+ "image_footnote": [],
1008
+ "bbox": [
1009
+ 181,
1010
+ 102,
1011
+ 816,
1012
+ 383
1013
+ ],
1014
+ "page_idx": 10
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "We also analyze the attack success rate of these examples under existing defense methods and demonstrate they are harder to defend against, which opens new directions for developing more robust defense algorithms. Finally, we visualize the attention regions of DNNs on our adversarial examples to better understand this new attack. ",
1019
+ "bbox": [
1020
+ 174,
1021
+ 492,
1022
+ 825,
1023
+ 547
1024
+ ],
1025
+ "page_idx": 10
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "ACKNOWLEDGMENTS ",
1030
+ "text_level": 1,
1031
+ "bbox": [
1032
+ 176,
1033
+ 565,
1034
+ 326,
1035
+ 577
1036
+ ],
1037
+ "page_idx": 10
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "We thank Zhuang Liu, Richard Shin, Kun Jin, Armin Sarabi and George Philipp for their valuable discussions on this work. This work was supported in part by Berkeley Deep Drive, the Center for Long-Term Cybersecurity, and FORCES (Foundations Of Resilient CybEr-Physical Systems), which receives support from the National Science Foundation (NSF award numbers CNS-1238959, CNS-1238962, CNS-1239054, CNS-1239166), and NSF under grants CNS-1422211 and CNS1616575. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 588,
1045
+ 825,
1046
+ 671
1047
+ ],
1048
+ "page_idx": 10
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "REFERENCES ",
1053
+ "text_level": 1,
1054
+ "bbox": [
1055
+ 174,
1056
+ 103,
1057
+ 285,
1058
+ 117
1059
+ ],
1060
+ "page_idx": 11
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Šrndic, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 387– 402. Springer, 2013. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 126,
1068
+ 826,
1069
+ 183
1070
+ ],
1071
+ "page_idx": 11
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, 2017, 2017a. ",
1076
+ "bbox": [
1077
+ 171,
1078
+ 193,
1079
+ 823,
1080
+ 222
1081
+ ],
1082
+ "page_idx": 11
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. arXiv preprint arXiv:1705.07263, 2017b. ",
1087
+ "bbox": [
1088
+ 169,
1089
+ 231,
1090
+ 823,
1091
+ 261
1092
+ ],
1093
+ "page_idx": 11
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pp. 160–167. ACM, 2008. ",
1098
+ "bbox": [
1099
+ 173,
1100
+ 270,
1101
+ 823,
1102
+ 313
1103
+ ],
1104
+ "page_idx": 11
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255. IEEE, 2009. ",
1109
+ "bbox": [
1110
+ 171,
1111
+ 321,
1112
+ 821,
1113
+ 352
1114
+ ],
1115
+ "page_idx": 11
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on machine learning models. arXiv preprint arXiv:1707.08945, 2017. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 361,
1123
+ 823,
1124
+ 404
1125
+ ],
1126
+ "page_idx": 11
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Alhussein Fawzi and Pascal Frossard. Manitest: Are classifiers really invariant? arXiv preprint arXiv:1507.06535, 2015. ",
1131
+ "bbox": [
1132
+ 169,
1133
+ 412,
1134
+ 825,
1135
+ 443
1136
+ ],
1137
+ "page_idx": 11
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015. ",
1142
+ "bbox": [
1143
+ 169,
1144
+ 452,
1145
+ 823,
1146
+ 482
1147
+ ],
1148
+ "page_idx": 11
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Kathrin Grosse, Nicolas Papernot, Praveen Manoharan, Michael Backes, and Patrick McDaniel. Adversarial perturbations against deep neural networks for malware classification. arXiv preprint arXiv:1606.04435, 2016. ",
1153
+ "bbox": [
1154
+ 173,
1155
+ 491,
1156
+ 823,
1157
+ 534
1158
+ ],
1159
+ "page_idx": 11
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014. ",
1164
+ "bbox": [
1165
+ 171,
1166
+ 544,
1167
+ 823,
1168
+ 573
1169
+ ],
1170
+ "page_idx": 11
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 582,
1178
+ 825,
1179
+ 626
1180
+ ],
1181
+ "page_idx": 11
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Warren He, James Wei, Xinyun Chen, Nicholas Carlini, and Dawn Song. Adversarial example defenses: Ensembles of weak defenses are not strong. arXiv preprint arXiv:1706.04701, 2017. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 635,
1189
+ 821,
1190
+ 664
1191
+ ],
1192
+ "page_idx": 11
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 672,
1200
+ 825,
1201
+ 731
1202
+ ],
1203
+ "page_idx": 11
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pp. 44–51. Springer, 2011. ",
1208
+ "bbox": [
1209
+ 171,
1210
+ 739,
1211
+ 821,
1212
+ 770
1213
+ ],
1214
+ "page_idx": 11
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. CVPR, 2017. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 779,
1222
+ 823,
1223
+ 808
1224
+ ],
1225
+ "page_idx": 11
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NIPS, pp. 2017–2025, 2015. ",
1230
+ "bbox": [
1231
+ 173,
1232
+ 818,
1233
+ 823,
1234
+ 847
1235
+ ],
1236
+ "page_idx": 11
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European Conference on Computer Vision, 2016. ",
1241
+ "bbox": [
1242
+ 171,
1243
+ 856,
1244
+ 823,
1245
+ 886
1246
+ ],
1247
+ "page_idx": 11
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Can Kanbak. Measuring robustness of classifiers to geometric transformations. Technical report, 2017. ",
1252
+ "bbox": [
1253
+ 174,
1254
+ 895,
1255
+ 823,
1256
+ 922
1257
+ ],
1258
+ "page_idx": 11
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
1263
+ "bbox": [
1264
+ 176,
1265
+ 103,
1266
+ 823,
1267
+ 146
1268
+ ],
1269
+ "page_idx": 12
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The cifar-10 dataset. online: http://www. cs. toronto. edu/kriz/cifar. html, 2014. ",
1274
+ "bbox": [
1275
+ 173,
1276
+ 154,
1277
+ 820,
1278
+ 183
1279
+ ],
1280
+ "page_idx": 12
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016. ",
1285
+ "bbox": [
1286
+ 174,
1287
+ 191,
1288
+ 823,
1289
+ 220
1290
+ ],
1291
+ "page_idx": 12
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Yann LeCun and Corrina Cortes. The MNIST database of handwritten digits. 1998. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 228,
1299
+ 725,
1300
+ 244
1301
+ ],
1302
+ "page_idx": 12
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "Xin Li and Fuxin Li. Adversarial examples detection in deep networks with convolutional filter statistics. arXiv preprint arXiv:1612.07767, 2016. ",
1307
+ "bbox": [
1308
+ 173,
1309
+ 252,
1310
+ 823,
1311
+ 281
1312
+ ],
1313
+ "page_idx": 12
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 45(1):503–528, 1989. ",
1318
+ "bbox": [
1319
+ 174,
1320
+ 290,
1321
+ 823,
1322
+ 319
1323
+ ],
1324
+ "page_idx": 12
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017. ",
1329
+ "bbox": [
1330
+ 174,
1331
+ 327,
1332
+ 823,
1333
+ 356
1334
+ ],
1335
+ "page_idx": 12
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. arXiv preprint arXiv:1511.04599, 2015. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 364,
1343
+ 823,
1344
+ 393
1345
+ ],
1346
+ "page_idx": 12
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. arXiv preprint arXiv:1610.08401, 2016. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 401,
1354
+ 823,
1355
+ 431
1356
+ ],
1357
+ "page_idx": 12
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Konda Reddy Mopuri, Utsav Garg, and R Venkatesh Babu. Fast feature fool: A data independent approach to universal adversarial perturbations. arXiv preprint arXiv:1707.05572, 2017. ",
1362
+ "bbox": [
1363
+ 173,
1364
+ 439,
1365
+ 823,
1366
+ 468
1367
+ ],
1368
+ "page_idx": 12
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Aleksander M ˛adry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv:1706.06083 [cs, stat], June 2017. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 476,
1376
+ 823,
1377
+ 518
1378
+ ],
1379
+ "page_idx": 12
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016a. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 526,
1387
+ 823,
1388
+ 570
1389
+ ],
1390
+ "page_idx": 12
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In 2016 IEEE European Symposium on Security and Privacy (EuroS&P), pp. 372–387. IEEE, 2016b. ",
1395
+ "bbox": [
1396
+ 176,
1397
+ 578,
1398
+ 823,
1399
+ 622
1400
+ ],
1401
+ "page_idx": 12
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 582–597. IEEE, 2016c. ",
1406
+ "bbox": [
1407
+ 176,
1408
+ 628,
1409
+ 821,
1410
+ 672
1411
+ ],
1412
+ "page_idx": 12
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Leonid I Rudin, Stanley Osher, and Emad Fatemi. Nonlinear total variation based noise removal algorithms. Physica D: Nonlinear Phenomena, 60(1-4):259–268, 1992. ",
1417
+ "bbox": [
1418
+ 171,
1419
+ 681,
1420
+ 823,
1421
+ 710
1422
+ ],
1423
+ "page_idx": 12
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Claude E Shannon. Communication theory of secrecy systems. Bell Labs Technical Journal, 28(4): 656–715, 1949. ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 718,
1431
+ 823,
1432
+ 747
1433
+ ],
1434
+ "page_idx": 12
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
1439
+ "bbox": [
1440
+ 171,
1441
+ 755,
1442
+ 823,
1443
+ 785
1444
+ ],
1445
+ "page_idx": 12
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014. ",
1450
+ "bbox": [
1451
+ 174,
1452
+ 792,
1453
+ 825,
1454
+ 835
1455
+ ],
1456
+ "page_idx": 12
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2818–2826, 2016. ",
1461
+ "bbox": [
1462
+ 174,
1463
+ 843,
1464
+ 820,
1465
+ 887
1466
+ ],
1467
+ "page_idx": 12
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Richard Szeliski. Computer vision: algorithms and applications. Springer Science & Business Media, 2010. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 895,
1475
+ 821,
1476
+ 924
1477
+ ],
1478
+ "page_idx": 12
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Florian Tramèr, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017. \nAndrew J. Viterbi. An intuitive justification and a simplified implementation of the map decoder for convolutional codes. IEEE Journal on Selected Areas in Communications, 16(2):260–264, 1998. \nWeilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017. \nSergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. \nRichard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision, pp. 649–666. Springer, 2016. \nBolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2921–2929, 2016a. \nTinghui Zhou, Shubham Tulsiani, Weilun Sun, Jitendra Malik, and Alexei A Efros. View synthesis by appearance flow. In ECCV, pp. 286–301. Springer, 2016b. ",
1483
+ "bbox": [
1484
+ 171,
1485
+ 101,
1486
+ 826,
1487
+ 375
1488
+ ],
1489
+ "page_idx": 13
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "A MODEL ARCHITECTURES ",
1494
+ "text_level": 1,
1495
+ "bbox": [
1496
+ 176,
1497
+ 102,
1498
+ 423,
1499
+ 118
1500
+ ],
1501
+ "page_idx": 14
1502
+ },
1503
+ {
1504
+ "type": "table",
1505
+ "img_path": "images/940f511e2a42bd1573d52c25acb84fc17b625a05fdfbad1112938f7883cbfadf.jpg",
1506
+ "table_caption": [
1507
+ "Table 4: Architecture of models applied on MNIST "
1508
+ ],
1509
+ "table_footnote": [],
1510
+ "table_body": "<table><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>Conv(64,5,5) + Relu</td><td>Conv(64,8,8) + Relu</td><td>Conv(128,3,3) + Relu</td></tr><tr><td>Conv(64,5,5) + Relu</td><td>Dropout(0.2)</td><td>Conv(64,3,3) +Relu</td></tr><tr><td>Dropout(0.25)</td><td>Conv(128,6,6)+Relu</td><td>Dropout(0.25)</td></tr><tr><td>FC(128) + Relu</td><td>Conv(128,5,5) +Relu</td><td>FC(128) +Relu</td></tr><tr><td>Dropout(0.5)</td><td>Dropout(0.5)</td><td>Dropout(0.5)</td></tr><tr><td>FC(10) + Softmax</td><td>FC(10) +Softmax</td><td>FC(10)+Softmax</td></tr></table>",
1511
+ "bbox": [
1512
+ 272,
1513
+ 162,
1514
+ 720,
1515
+ 266
1516
+ ],
1517
+ "page_idx": 14
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "B ANALYSIS FOR MEAN BLUR DEFENSE ",
1522
+ "text_level": 1,
1523
+ "bbox": [
1524
+ 174,
1525
+ 295,
1526
+ 529,
1527
+ 311
1528
+ ],
1529
+ "page_idx": 14
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "Here we evaluated adversarial examples generated by stAdv against the $3 \\times 3$ average pooling restoration mechanism suggested in Li & Li (2016). Table 5 shows the classification accuracy of recovered images after performing $3 \\times 3$ average pooling on different models. ",
1534
+ "bbox": [
1535
+ 178,
1536
+ 327,
1537
+ 823,
1538
+ 369
1539
+ ],
1540
+ "page_idx": 14
1541
+ },
1542
+ {
1543
+ "type": "table",
1544
+ "img_path": "images/02d7c71ee84b91e2ff6de957ed74b339e7c3e8a04293a32f1c1d73e2175eacd3.jpg",
1545
+ "table_caption": [
1546
+ "Table 5: Performance of adversarial examples against the mean blur defense strategy with $3 \\times 3$ mean filter. "
1547
+ ],
1548
+ "table_footnote": [],
1549
+ "table_body": "<table><tr><td>Accuracy on recovered images</td><td>A</td><td>MNIST B</td><td>C</td><td>CIFAR-10 Resnet32 wide ResNet34</td></tr><tr><td>3 × 3 Average Filter</td><td>59.00%</td><td>64.22%</td><td>79.71%</td><td>45.12%</td><td>50.12%</td></tr></table>",
1550
+ "bbox": [
1551
+ 214,
1552
+ 422,
1553
+ 781,
1554
+ 473
1555
+ ],
1556
+ "page_idx": 14
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "C ADVERSARIAL EXAMPLES FOR AN IMAGENET-COMPATIBLE SET, MNIST, AND CIFAR-10 ",
1561
+ "text_level": 1,
1562
+ "bbox": [
1563
+ 176,
1564
+ 502,
1565
+ 750,
1566
+ 536
1567
+ ],
1568
+ "page_idx": 14
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "Experiment settings. In the following experiments, we perform a grid search of hyper-parameter $\\tau$ so that the adversarial examples can attack the target model with minimal deformation. Values of $\\tau$ are searched from 0.0005 to 0.05. ",
1573
+ "bbox": [
1574
+ 173,
1575
+ 551,
1576
+ 823,
1577
+ 593
1578
+ ],
1579
+ "page_idx": 14
1580
+ },
1581
+ {
1582
+ "type": "text",
1583
+ "text": "ImageNet-compatible. We use benign images from the DEV set from the NIPS 2017 targeted adversarial attack competition.4 This competition provided a dataset compatible with ImageNet and containing target labels for a targeted attack. We generate targeted adversarial examples for the target inception_v3 model. In Figure 10 below, we show the original images on the left with the correct label, and we show adversarial examples generated by stAdv on the right with the target label. ",
1584
+ "bbox": [
1585
+ 173,
1586
+ 599,
1587
+ 825,
1588
+ 684
1589
+ ],
1590
+ "page_idx": 14
1591
+ },
1592
+ {
1593
+ "type": "text",
1594
+ "text": "MNIST. We generate adversarial examples for the target Model B. In Figure 11, we show original images with ground truth classes 0–9 in the diagonal, and we show adversarial examples generated by stAdv targeting the class of the original image within that column. ",
1595
+ "bbox": [
1596
+ 174,
1597
+ 690,
1598
+ 821,
1599
+ 733
1600
+ ],
1601
+ "page_idx": 14
1602
+ },
1603
+ {
1604
+ "type": "text",
1605
+ "text": "CIFAR-10. We generate adversarial examples for the target ResNet-32 model. In Figure 12, we show the original images in the diagonal, and we show adversarial examples generated by stAdv targeting the class of the original image within that column. ",
1606
+ "bbox": [
1607
+ 174,
1608
+ 739,
1609
+ 821,
1610
+ 782
1611
+ ],
1612
+ "page_idx": 14
1613
+ },
1614
+ {
1615
+ "type": "text",
1616
+ "text": "Table 6 shows the magnitude of the generated flow regarding total variation (TV) and $\\mathcal { L } _ { 2 }$ distance on the ImageNet-compatible set, MNIST, CIFAR-10, respectively. These metrics are calculated by the following equations, where $n$ is the number of pixels: ",
1617
+ "bbox": [
1618
+ 174,
1619
+ 789,
1620
+ 823,
1621
+ 832
1622
+ ],
1623
+ "page_idx": 14
1624
+ },
1625
+ {
1626
+ "type": "equation",
1627
+ "img_path": "images/9d556e72b4374fcc31fb7fe0464ab2fbadd5ef687fa8655061d86322e201b2d5.jpg",
1628
+ "text": "$$\n\\mathrm { T V } = \\sqrt { \\frac { 1 } { n } \\sum _ { p } ^ { a l l p i c e l s } \\sum _ { q \\in \\mathcal { N } ( p ) } | | \\Delta u ^ { ( p ) } - \\Delta u ^ { ( q ) } | | _ { 2 } ^ { 2 } + | | \\Delta v ^ { ( p ) } - \\Delta v ^ { ( q ) } | | _ { 2 } ^ { 2 } } .\n$$",
1629
+ "text_format": "latex",
1630
+ "bbox": [
1631
+ 272,
1632
+ 838,
1633
+ 723,
1634
+ 888
1635
+ ],
1636
+ "page_idx": 14
1637
+ },
1638
+ {
1639
+ "type": "equation",
1640
+ "img_path": "images/8ada63dcdb26938c7ffe9d2d7afe32d30fc75470184fcdd9085eca729ae06be3.jpg",
1641
+ "text": "$$\n\\mathcal { L } _ { 2 } = \\sqrt { \\frac { 1 } { n } \\sum _ { p } ^ { a l l p i x e l s } | | \\Delta u ^ { ( p ) } | | _ { 2 } ^ { 2 } + | | \\Delta v ^ { ( p ) } | | _ { 2 } ^ { 2 } }\n$$",
1642
+ "text_format": "latex",
1643
+ "bbox": [
1644
+ 361,
1645
+ 113,
1646
+ 637,
1647
+ 165
1648
+ ],
1649
+ "page_idx": 15
1650
+ },
1651
+ {
1652
+ "type": "table",
1653
+ "img_path": "images/ff53c5ace7612e5a2d297af8bc2e7daceada6cdd221295358c1c0876d45ce52d.jpg",
1654
+ "table_caption": [
1655
+ "Table 6: Evaluation Metric (the number in bracket is image size) "
1656
+ ],
1657
+ "table_footnote": [],
1658
+ "table_body": "<table><tr><td>Metric</td><td>ImageNet-compatible (299x299)</td><td>MNIST (28x28)</td><td>CIFAR-10 (32x32)</td></tr><tr><td>flow TV</td><td>2.85×10-4±7.28×10-5</td><td>8.26×10-3±4.95×10-3</td><td>2.21× 10-3±1.26×10-3</td></tr><tr><td>flow L2</td><td>2.11 × 10-4 ±5.19 × 10-5</td><td>5.18 × 10-² ± 5.66 × 10-2</td><td>2.76 × 10-3± 2.31 × 10-3</td></tr></table>",
1659
+ "bbox": [
1660
+ 173,
1661
+ 207,
1662
+ 893,
1663
+ 263
1664
+ ],
1665
+ "page_idx": 15
1666
+ },
1667
+ {
1668
+ "type": "image",
1669
+ "img_path": "images/cb7773b077f6251bdffc26eb1b7c7788d71764f227d1dbf6af08b450d26cc97d.jpg",
1670
+ "image_caption": [],
1671
+ "image_footnote": [],
1672
+ "bbox": [
1673
+ 179,
1674
+ 111,
1675
+ 496,
1676
+ 357
1677
+ ],
1678
+ "page_idx": 16
1679
+ },
1680
+ {
1681
+ "type": "image",
1682
+ "img_path": "images/f275840c6d6359ef2851ee4ed213e3705f5cffbc3f50f4a13b45fd85def6e5aa.jpg",
1683
+ "image_caption": [
1684
+ "(a) Benign image (labeled as dung beetle) "
1685
+ ],
1686
+ "image_footnote": [],
1687
+ "bbox": [
1688
+ 179,
1689
+ 380,
1690
+ 496,
1691
+ 623
1692
+ ],
1693
+ "page_idx": 16
1694
+ },
1695
+ {
1696
+ "type": "image",
1697
+ "img_path": "images/ca7c6794a608fb848fd47eefcd1e3e36b68cdb80cdf3ab16f3407492dcc3ca80.jpg",
1698
+ "image_caption": [
1699
+ "(c) Benign image (labeled as jeep) ",
1700
+ "(e) Benign image (labeled as bull mastiff) "
1701
+ ],
1702
+ "image_footnote": [],
1703
+ "bbox": [
1704
+ 179,
1705
+ 645,
1706
+ 496,
1707
+ 890
1708
+ ],
1709
+ "page_idx": 16
1710
+ },
1711
+ {
1712
+ "type": "image",
1713
+ "img_path": "images/5b9c9b4627a6d5bac274078ac08fd6ead0ab690224338dccc235fe3e4514f62f.jpg",
1714
+ "image_caption": [],
1715
+ "image_footnote": [],
1716
+ "bbox": [
1717
+ 500,
1718
+ 111,
1719
+ 816,
1720
+ 357
1721
+ ],
1722
+ "page_idx": 16
1723
+ },
1724
+ {
1725
+ "type": "image",
1726
+ "img_path": "images/4351336944abda120b4811614d320a9f28a3ad351eb57560fbfa94786aafac3c.jpg",
1727
+ "image_caption": [
1728
+ "(b) Adversarial image (labeled as scale) "
1729
+ ],
1730
+ "image_footnote": [],
1731
+ "bbox": [
1732
+ 500,
1733
+ 380,
1734
+ 816,
1735
+ 623
1736
+ ],
1737
+ "page_idx": 16
1738
+ },
1739
+ {
1740
+ "type": "image",
1741
+ "img_path": "images/c6d1012d2994707d1ca3723b315469b71b06acd640d24560373bf85b5e70074b.jpg",
1742
+ "image_caption": [
1743
+ "(d) Adversarial image (labeled as coil) ",
1744
+ "(f) Adversarial image (labeled as American lobster) "
1745
+ ],
1746
+ "image_footnote": [],
1747
+ "bbox": [
1748
+ 500,
1749
+ 645,
1750
+ 818,
1751
+ 888
1752
+ ],
1753
+ "page_idx": 16
1754
+ },
1755
+ {
1756
+ "type": "image",
1757
+ "img_path": "images/0342b6961f2204467f41e914ae655457e97444ef98cef11debbb8d2adccceb4a.jpg",
1758
+ "image_caption": [],
1759
+ "image_footnote": [],
1760
+ "bbox": [
1761
+ 179,
1762
+ 111,
1763
+ 496,
1764
+ 357
1765
+ ],
1766
+ "page_idx": 17
1767
+ },
1768
+ {
1769
+ "type": "image",
1770
+ "img_path": "images/b73c05484fc00554b1d5e1dda7e54375e33f9ed60a8e77fa7bfd524b5c966c3c.jpg",
1771
+ "image_caption": [
1772
+ "(g) Benign image (labeled as buckeye) "
1773
+ ],
1774
+ "image_footnote": [],
1775
+ "bbox": [
1776
+ 179,
1777
+ 378,
1778
+ 498,
1779
+ 623
1780
+ ],
1781
+ "page_idx": 17
1782
+ },
1783
+ {
1784
+ "type": "image",
1785
+ "img_path": "images/139ed79a115288f72f48389af30068e9f24987beeaa8cdd16b1c486a30ed6f58.jpg",
1786
+ "image_caption": [
1787
+ "(i) Benign image (labeled as thatch) ",
1788
+ "(k) Benign image (labeled as beaker) "
1789
+ ],
1790
+ "image_footnote": [],
1791
+ "bbox": [
1792
+ 179,
1793
+ 645,
1794
+ 496,
1795
+ 890
1796
+ ],
1797
+ "page_idx": 17
1798
+ },
1799
+ {
1800
+ "type": "image",
1801
+ "img_path": "images/01fde2ffcea9fa03d96959aac264264293d6a67472b17bca2a312c60c82108f5.jpg",
1802
+ "image_caption": [],
1803
+ "image_footnote": [],
1804
+ "bbox": [
1805
+ 500,
1806
+ 111,
1807
+ 818,
1808
+ 356
1809
+ ],
1810
+ "page_idx": 17
1811
+ },
1812
+ {
1813
+ "type": "image",
1814
+ "img_path": "images/77252fb96c14f05fc77bfcaf7d41a4d3a3960dfb0c99a3e62b7c62b35f8ee833.jpg",
1815
+ "image_caption": [
1816
+ "(h) Adversarial image (labeled as goose) "
1817
+ ],
1818
+ "image_footnote": [],
1819
+ "bbox": [
1820
+ 500,
1821
+ 378,
1822
+ 818,
1823
+ 623
1824
+ ],
1825
+ "page_idx": 17
1826
+ },
1827
+ {
1828
+ "type": "image",
1829
+ "img_path": "images/9c99c74d7de659e9cb3ee50ced140e947ed5d641f3f412462a9140c11e27d659.jpg",
1830
+ "image_caption": [
1831
+ "(j) Adversarial image (labeled as miniature poodle) ",
1832
+ "(l) Adversarial image (labeled as padlock) "
1833
+ ],
1834
+ "image_footnote": [],
1835
+ "bbox": [
1836
+ 500,
1837
+ 645,
1838
+ 818,
1839
+ 890
1840
+ ],
1841
+ "page_idx": 17
1842
+ },
1843
+ {
1844
+ "type": "image",
1845
+ "img_path": "images/80699b1ca534803e1529fb4032712314e46f17de2a54a340c640f0414cd91d89.jpg",
1846
+ "image_caption": [],
1847
+ "image_footnote": [],
1848
+ "bbox": [
1849
+ 179,
1850
+ 111,
1851
+ 496,
1852
+ 357
1853
+ ],
1854
+ "page_idx": 18
1855
+ },
1856
+ {
1857
+ "type": "image",
1858
+ "img_path": "images/e2674dd70021f7507fb7b553a1e49a37e492311cb1243626b57b84b2c52dc892.jpg",
1859
+ "image_caption": [
1860
+ "(m) Benign image (labeled as strawberry) "
1861
+ ],
1862
+ "image_footnote": [],
1863
+ "bbox": [
1864
+ 179,
1865
+ 378,
1866
+ 498,
1867
+ 625
1868
+ ],
1869
+ "page_idx": 18
1870
+ },
1871
+ {
1872
+ "type": "image",
1873
+ "img_path": "images/74a638d91ffd4557f7b628480bc68480179a2fbf4eaed6d0c81bab555c8edf88.jpg",
1874
+ "image_caption": [
1875
+ "(o) Benign image (labeled as folding chair) ",
1876
+ "(q) Benign image (labeled as jeep) "
1877
+ ],
1878
+ "image_footnote": [],
1879
+ "bbox": [
1880
+ 179,
1881
+ 645,
1882
+ 496,
1883
+ 890
1884
+ ],
1885
+ "page_idx": 18
1886
+ },
1887
+ {
1888
+ "type": "image",
1889
+ "img_path": "images/38505fcc1c040246c1e6a3734fb1b352082f771bd65103a5d16d7595bacf3203.jpg",
1890
+ "image_caption": [],
1891
+ "image_footnote": [],
1892
+ "bbox": [
1893
+ 500,
1894
+ 111,
1895
+ 818,
1896
+ 357
1897
+ ],
1898
+ "page_idx": 18
1899
+ },
1900
+ {
1901
+ "type": "image",
1902
+ "img_path": "images/006d856039c24c32266946e349e06ba9d7c7c23d4b7bce29b27ea414e7502fe6.jpg",
1903
+ "image_caption": [
1904
+ "(n) Adversarial image (labeled as tench) "
1905
+ ],
1906
+ "image_footnote": [],
1907
+ "bbox": [
1908
+ 500,
1909
+ 378,
1910
+ 818,
1911
+ 623
1912
+ ],
1913
+ "page_idx": 18
1914
+ },
1915
+ {
1916
+ "type": "image",
1917
+ "img_path": "images/30dd611be6ad13e419430928bf4fa5675357e1b4f01e5af28934757c7086cf0d.jpg",
1918
+ "image_caption": [
1919
+ "(p) Adversarial image (labeled as power drill) ",
1920
+ "(r) Adversarial image (labeled as house finch) "
1921
+ ],
1922
+ "image_footnote": [],
1923
+ "bbox": [
1924
+ 500,
1925
+ 645,
1926
+ 818,
1927
+ 890
1928
+ ],
1929
+ "page_idx": 18
1930
+ },
1931
+ {
1932
+ "type": "image",
1933
+ "img_path": "images/6ff2561eaa132c0fa0d50aea19244038dde3f99bc9a51bb34da99ae984a135da.jpg",
1934
+ "image_caption": [
1935
+ "Figure 10: Examples from an ImageNet-compatible set. Left: original image; right: adversarial image generated by stAdv against inception_v3. "
1936
+ ],
1937
+ "image_footnote": [],
1938
+ "bbox": [
1939
+ 178,
1940
+ 142,
1941
+ 820,
1942
+ 409
1943
+ ],
1944
+ "page_idx": 19
1945
+ },
1946
+ {
1947
+ "type": "image",
1948
+ "img_path": "images/d79500d4c680e60878b13b44ccfb6494a82e8db0d3392187bc82c400741e8bf0.jpg",
1949
+ "image_caption": [],
1950
+ "image_footnote": [],
1951
+ "bbox": [
1952
+ 287,
1953
+ 539,
1954
+ 710,
1955
+ 866
1956
+ ],
1957
+ "page_idx": 19
1958
+ },
1959
+ {
1960
+ "type": "image",
1961
+ "img_path": "images/9baa44fca70aefdb3f79c3f22c6e8cfb4b17537c08af2c0c2cc5132c91ee921c.jpg",
1962
+ "image_caption": [],
1963
+ "image_footnote": [],
1964
+ "bbox": [
1965
+ 287,
1966
+ 133,
1967
+ 710,
1968
+ 460
1969
+ ],
1970
+ "page_idx": 20
1971
+ },
1972
+ {
1973
+ "type": "image",
1974
+ "img_path": "images/d6a9685d39a92222e4a7ea345953b147876af945ec0366d6a2618a97f54331d4.jpg",
1975
+ "image_caption": [],
1976
+ "image_footnote": [],
1977
+ "bbox": [
1978
+ 287,
1979
+ 549,
1980
+ 710,
1981
+ 876
1982
+ ],
1983
+ "page_idx": 20
1984
+ },
1985
+ {
1986
+ "type": "image",
1987
+ "img_path": "images/f31bf4f717a89e424649fbe6523c48cdf46c62d8caa6c4b67e769cf36bda9106.jpg",
1988
+ "image_caption": [],
1989
+ "image_footnote": [],
1990
+ "bbox": [
1991
+ 287,
1992
+ 133,
1993
+ 710,
1994
+ 460
1995
+ ],
1996
+ "page_idx": 21
1997
+ },
1998
+ {
1999
+ "type": "image",
2000
+ "img_path": "images/f03eff8d90e14770f746db37a3ca77a916bbe8228ad3ef521ec7b4ed16181d53.jpg",
2001
+ "image_caption": [],
2002
+ "image_footnote": [],
2003
+ "bbox": [
2004
+ 287,
2005
+ 549,
2006
+ 710,
2007
+ 876
2008
+ ],
2009
+ "page_idx": 21
2010
+ },
2011
+ {
2012
+ "type": "image",
2013
+ "img_path": "images/65bbb4c11da020e34a27d503e899bf944f31e8eb550bc14ca84fa6d19bf3ea4d.jpg",
2014
+ "image_caption": [],
2015
+ "image_footnote": [],
2016
+ "bbox": [
2017
+ 287,
2018
+ 133,
2019
+ 710,
2020
+ 460
2021
+ ],
2022
+ "page_idx": 22
2023
+ },
2024
+ {
2025
+ "type": "image",
2026
+ "img_path": "images/3b8f7cf926a4ec4e30a1da96608e4953b39f53820190ee8a1e12c1db812f817b.jpg",
2027
+ "image_caption": [],
2028
+ "image_footnote": [],
2029
+ "bbox": [
2030
+ 287,
2031
+ 549,
2032
+ 710,
2033
+ 875
2034
+ ],
2035
+ "page_idx": 22
2036
+ },
2037
+ {
2038
+ "type": "image",
2039
+ "img_path": "images/e9414445704c9f9e84f9049a953885bf88722c3c8634eae2f31b383442cc6481.jpg",
2040
+ "image_caption": [],
2041
+ "image_footnote": [],
2042
+ "bbox": [
2043
+ 287,
2044
+ 133,
2045
+ 710,
2046
+ 460
2047
+ ],
2048
+ "page_idx": 23
2049
+ },
2050
+ {
2051
+ "type": "image",
2052
+ "img_path": "images/3b938b20060c153e0c7b1a3627a8a43c4c4823350fdf981a412618f389b6d956.jpg",
2053
+ "image_caption": [],
2054
+ "image_footnote": [],
2055
+ "bbox": [
2056
+ 287,
2057
+ 549,
2058
+ 710,
2059
+ 875
2060
+ ],
2061
+ "page_idx": 23
2062
+ },
2063
+ {
2064
+ "type": "image",
2065
+ "img_path": "images/defd04566980b7294107673492d30544e61ae696f88c577de7ce7a75f3272540.jpg",
2066
+ "image_caption": [
2067
+ "Figure 11: Adversarial examples generated by stAdv against Model B on MNIST. The original images are shown in the diagonal; the rest are adversarial examples that are classified into the same class as the original image within that column. "
2068
+ ],
2069
+ "image_footnote": [],
2070
+ "bbox": [
2071
+ 287,
2072
+ 121,
2073
+ 710,
2074
+ 446
2075
+ ],
2076
+ "page_idx": 24
2077
+ },
2078
+ {
2079
+ "type": "image",
2080
+ "img_path": "images/61368515d054c4a63ac08784eecec24a64a95eddb2909e15e742869cf4f0a206.jpg",
2081
+ "image_caption": [],
2082
+ "image_footnote": [],
2083
+ "bbox": [
2084
+ 287,
2085
+ 560,
2086
+ 710,
2087
+ 887
2088
+ ],
2089
+ "page_idx": 24
2090
+ },
2091
+ {
2092
+ "type": "image",
2093
+ "img_path": "images/ce8df07e4ec8942f30b69a81de4d338f1c6151977b43a446cae4303c3f443250.jpg",
2094
+ "image_caption": [],
2095
+ "image_footnote": [],
2096
+ "bbox": [
2097
+ 287,
2098
+ 133,
2099
+ 710,
2100
+ 459
2101
+ ],
2102
+ "page_idx": 25
2103
+ },
2104
+ {
2105
+ "type": "image",
2106
+ "img_path": "images/168af0f37dd021dc35bf797bffb6207f4e617ff9f99baf080a750fb624366d71.jpg",
2107
+ "image_caption": [],
2108
+ "image_footnote": [],
2109
+ "bbox": [
2110
+ 287,
2111
+ 549,
2112
+ 710,
2113
+ 875
2114
+ ],
2115
+ "page_idx": 25
2116
+ },
2117
+ {
2118
+ "type": "image",
2119
+ "img_path": "images/f26608bd59b8fed5bb2eb7570c4832594cd5d115f69a496ebbacf6c2ed889a97.jpg",
2120
+ "image_caption": [],
2121
+ "image_footnote": [],
2122
+ "bbox": [
2123
+ 287,
2124
+ 133,
2125
+ 710,
2126
+ 460
2127
+ ],
2128
+ "page_idx": 26
2129
+ },
2130
+ {
2131
+ "type": "image",
2132
+ "img_path": "images/8c370c963942b0e753c2662882f212f6c0362fc5d19bcb3766960a152f4a70ee.jpg",
2133
+ "image_caption": [],
2134
+ "image_footnote": [],
2135
+ "bbox": [
2136
+ 287,
2137
+ 549,
2138
+ 710,
2139
+ 875
2140
+ ],
2141
+ "page_idx": 26
2142
+ },
2143
+ {
2144
+ "type": "image",
2145
+ "img_path": "images/15c5c49654f91c3e1693973a3fb796edc82ec83eb1897b1a60332c82bf2e495b.jpg",
2146
+ "image_caption": [],
2147
+ "image_footnote": [],
2148
+ "bbox": [
2149
+ 287,
2150
+ 133,
2151
+ 710,
2152
+ 460
2153
+ ],
2154
+ "page_idx": 27
2155
+ },
2156
+ {
2157
+ "type": "image",
2158
+ "img_path": "images/33a55820d187e96ae9a341ad3f194c85a6d86535b96a56eeaa322d25873a39b5.jpg",
2159
+ "image_caption": [],
2160
+ "image_footnote": [],
2161
+ "bbox": [
2162
+ 287,
2163
+ 549,
2164
+ 710,
2165
+ 875
2166
+ ],
2167
+ "page_idx": 27
2168
+ },
2169
+ {
2170
+ "type": "image",
2171
+ "img_path": "images/f50fb5de579879f4db17784cf31fcedaa5b7d288d32a679ff996d76618495b52.jpg",
2172
+ "image_caption": [],
2173
+ "image_footnote": [],
2174
+ "bbox": [
2175
+ 287,
2176
+ 133,
2177
+ 710,
2178
+ 460
2179
+ ],
2180
+ "page_idx": 28
2181
+ },
2182
+ {
2183
+ "type": "image",
2184
+ "img_path": "images/05d87e58c094eb551266bafd01e966178b7f969b8fac21fde424c9a0fc4324b3.jpg",
2185
+ "image_caption": [],
2186
+ "image_footnote": [],
2187
+ "bbox": [
2188
+ 287,
2189
+ 549,
2190
+ 710,
2191
+ 875
2192
+ ],
2193
+ "page_idx": 28
2194
+ },
2195
+ {
2196
+ "type": "image",
2197
+ "img_path": "images/04d2a4afc45097361558bc414bb8797fa3c41e72c08462065fc5f40972b30eaa.jpg",
2198
+ "image_caption": [
2199
+ "Figure 12: Adversarial examples generated by stAdv against a ResNet-32 on CIFAR-10. The original images are shown in the diagonal; the rest are adversarial examples that are classified into the same class as the original image within that column. "
2200
+ ],
2201
+ "image_footnote": [],
2202
+ "bbox": [
2203
+ 287,
2204
+ 314,
2205
+ 710,
2206
+ 640
2207
+ ],
2208
+ "page_idx": 29
2209
+ }
2210
+ ]
parse/train/HyydRMZC-/HyydRMZC-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyydRMZC-/HyydRMZC-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/hJmtwocEqzc/hJmtwocEqzc.md ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LOWKEY: LEVERAGING ADVERSARIAL ATTACKS TO PROTECT SOCIAL MEDIA USERS FROM FACIAL RECOGNITION
2
+
3
+ Valeriia Cherepanova Department of Mathematics University of Maryland vcherepa@umd.edu
4
+
5
+ Micah Goldblum Department of Computer Science University of Maryland goldblum@umd.edu
6
+
7
+ Harrison Foley∗
8
+ Department of Computer Science
9
+ US Naval Academy
10
+ m211926@usna.edu
11
+ Shiyuan Duan∗
12
+ Department of Computer Science
13
+ University of Maryland
14
+ sduan1@umd.edu
15
+
16
+ John Dickerson Department of Computer Science University of Maryland john@cs.umd.edu
17
+
18
+ Gavin Taylor
19
+ Department of Computer Science
20
+ US Naval Academy
21
+ taylor@usna.edu
22
+
23
+ Tom Goldstein Department of Computer Science University of Maryland tomg@cs.umd.edu
24
+
25
+ # ABSTRACT
26
+
27
+ Facial recognition systems are increasingly deployed by private corporations, government agencies, and contractors for consumer services and mass surveillance programs alike. These systems are typically built by scraping social media profiles for user images. Adversarial perturbations have been proposed for bypassing facial recognition systems. However, existing methods fail on full-scale systems and commercial APIs. We develop our own adversarial filter that accounts for the entire image processing pipeline and is demonstrably effective against industrial-grade pipelines that include face detection and large scale databases. Additionally, we release an easy-to-use webtool that significantly degrades the accuracy of Amazon Rekognition and the Microsoft Azure Face Recognition API, reducing the accuracy of each to below $1 \%$ .
28
+
29
+ # 1 INTRODUCTION
30
+
31
+ Facial recognition systems (FR) are widely deployed for mass surveillance by government agencies, government contractors, and private companies alike on massive databases of images belonging to private individuals (Hartzog, 2020; Derringer, 2019; Weise & Singer, 2020). Recently, these systems have been thrust into the limelight in the midst of outrage over invasion into personal life and concerns regarding fairness (Singer, 2018; Lohr, 2018; Cherepanova et al., 2021). Practitioners populate their databases by hoarding publicly available images from social media outlets, and so users are forced to choose between keeping their images outside of public view or taking their chances with mass surveillance.
32
+
33
+ We develop a tool, LowKey, for protecting users from unauthorized surveillance by leveraging methods from the adversarial attack literature, and make it available to the public as a webtool.
34
+
35
+ ![](images/a346e274e56b271a637b350791be3a6a07a832f3ce2439284095e282da8421d8.jpg)
36
+ Figure 1: Top: original images, Bottom: protected by LowKey.
37
+
38
+ LowKey is the first such evasion tool that is effective against commercial facial recognition APIs. Our system pre-processes user images before they are made publicly available on social media outlets so they cannot be used by a third party for facial recognition purposes. We establish the effectiveness of LowKey throughout this work.
39
+
40
+ Our contributions can be summarized as follows:
41
+
42
+ • We design a black-box adversarial attack on facial recognition models. Our algorithm moves the feature space representations of gallery faces so that they do not match corresponding probe images while preserving image quality.
43
+ • We interrogate the performance of our method on commercial black-box APIs, including Amazon Rekognition and Microsoft Azure Face, whose inner workings are not publicly known. We provide comprehensive comparisons with the existing data poisoning alternative, Fawkes (Shan et al., 2020), and we find that while Fawkes is ineffective in every experiment, our method consistently prevents facial recognition.
44
+ • We release an easy-to-use webtool, LowKey, so that social media users are no longer confronted with a choice between withdrawing their social media presence from public view and risking the repercussions of being surveilled.
45
+
46
+ # 2 RELATED WORK
47
+
48
+ Neural networks are known to be vulnerable to adversarial attacks, small perturbations to inputs that do not change semantic content, and yet cause the network to misbehave (Goodfellow et al., 2014). The adversarial attack literature has largely focused on developing new algorithms that, in simulations, are able to fool neural networks (Carlini & Wagner, 2017; Chiang et al., 2020). Most works to date focus on the idea of physical world attacks, in which the attacker places adversarial patterns on an object in hopes that the adversarial properties transfer to an image of the object. Such attacks do not succeed reliably because the adversarial perturbation must survive imaging under various lighting conditions, object orientations, and occlusions (Kurakin et al., 2016). While researchers have succeeded in crafting such attacks against realistic systems, these attacks do not work consistently across environments (Wu et al., 2019; Xu et al., 2019; Goldblum et al., 2020). In facial recognition, attacks have largely focused on physical backdoor threat models, evasion attacks on verification (Wenger et al., 2020; Zhong & Deng, 2020) and attacks on face detection (Pedraza et al., 2018). Unlike these physical threat models, the setting in which we operate is purely digital, meaning that we can manipulate the contents of digital media at the bit level, and then hand manipulated data directly to a machine learning system. The ability to digitally manipulate media greatly simplifies the task of attacking a system, and has been shown to enhance transferability to black box industrial systems for applications like copyright detection (Saadatpanah et al., 2020) and financial time series analysis (Goldblum et al., 2020).
49
+
50
+ Recently, the Fawkes algorithm was developed for preventing social media images from being used by unauthorized facial recognition systems (Shan et al., 2020). However, Fawkes, along with the experimental setup on which it is evaluated in the original work, suffers from critical problems. First, Fawkes assumes that facial recognition practitioners train their models on each individual’s data.
51
+
52
+ However, high-performance FR systems instead harness large pre-trained Siamese networks (Liu et al., 2017; Deng et al., 2019). Second, the authors primarily use image classifiers. In contrast, commercial systems are trained with FR-specific heads and loss functions, as opposed to the standard cross-entropy loss used by classifiers. Third, the authors perform evaluations on very small datasets. Specifically, they test Fawkes against commercial APIs with a gallery containing only 50 images. Fourth, the system was only evaluated using top-1 accuracy, but FR users such as police departments often compile a list of suspects rather than a single individual. As a result, other metrics like top-50 accuracy are often used in facial recognition, and are a more realistic metric for when a system has been successfully suppressed. Fifth, while the original work portrays Fawkes’ perturbations are undetectable by the human eye, experience with the codebase suggests the opposite (indeed, a New York Times journalist likewise noted that the Fawkes images she was shown during a demonstration were visibly heavily distorted). Finally, Fawkes has not yet released an app or a webtool, and regular social media users are unlikely to make use of git repositories. Our attack avoids the aforementioned limitations, and we perform thorough evaluations on a large collection of images and identities. When comparing with Fawkes, we use the authors’ own implementation in order to make sure that all evaluations are fair. Furthermore, we use Fawkes’ highest protection setting to make sure that LowKey performs better than Fawkes’ best attack. Another work uses targeted adversarial attack on probe images for facial recognition systems so that they cannot be matched with images in a database (Yang et al., 2020).
53
+
54
+ # 3 THE LOWKEY ATTACK ON MASS SURVEILLANCE
55
+
56
+ ![](images/8bda533542dd9c8688ace3b8e37721f1adf73d359cdb70ba0f55672c72ff6fed.jpg)
57
+ Figure 2: The LowKey pipeline. When users protect their publicly available images with LowKey, facial recognition systems cannot match these harvested images with new images of the user, for example from surveillance cameras.
58
+
59
+ # 3.1 PROBLEM SETUP
60
+
61
+ To help make our work more widely accessible, we begin by introducing common facial recognition terms.
62
+
63
+ Gallery images are database images with known identities. These often originate from such sources as passport photos and social media profiles. The gallery is used as a reference for comparing new images.
64
+
65
+ Probe images are new photos whose subject the FR system user wants to identify. For example, probe images may be extracted from video surveillance footage. The extracted images are then fed into the FR system, and matches to gallery images with known identities.
66
+
67
+ Identification is the task of answering the question, “who is this person?” Identification entails comparing a probe image to gallery images in order to find potential matches. In contrast, verification answers the question, “is this person who they say they are?”, or equivalently “are these two photos of the same person?” Verification is used, for example, to unlock phones.
68
+
69
+ In our work, we focus on identification, which can be used for mass surveillance. State-of-the-art facial recognition systems first detect and align faces before extracting facial features from the probe image using a neural network. These systems then find gallery images with the closest feature vectors using a $k$ -nearest neighbors search. The matched gallery images are then considered as likely identities corresponding to the person in the probe photo. LowKey applies a filter to user images which may end up in an organization’s database of gallery images. The result is to corrupt the gallery feature vectors so that they will not match feature vectors corresponding to the user’s probe images. A visual depiction of the LowKey pipeline can be found in Figure 2.
70
+
71
+ # 3.2 THE LOWKEY ATTACK
72
+
73
+ LowKey manipulates potential gallery images so that they do not match probe images of the same person. LowKey does this by generating a perturbed image whose feature vector lies far away from the original image, while simultaneously minimizing a perceptual similarity loss between the original and perturbed image. Maximizing the distance in feature space prevents the image from matching other images of the individual, while the perceptual similarity loss prevents the image quality from degrading. In this section, we formulate the optimization problem, and describe a number of important details.
74
+
75
+ LowKey is designed to evade proprietary FR systems that contain pre-processing steps and neural network backbones that are not publicly known. In order to improve the transferability of our attack to unknown facial recognition systems, LowKey simultaneously attacks an ensemble of models with various backbone architectures that are produced using different training algorithms. Additionally, for each model in the ensemble, the objective function considers the locations of feature vectors of the attacked image both with and without a Gaussian blur. We find that this technique improves both the appearance and transferability of attacked images. Experiments and ablations concerning ensembling and Gaussian smoothing can be found in Section 6. For perceptual similarity loss, we use LPIPS, a metric based on $\ell _ { 2 }$ distance in the feature space of an ImageNet-trained feature extractor (Zhang et al., 2018). LPIPS has been used effectively in the image classification setting to improve the image quality of adversarial examples (Laidlaw et al., 2020).
76
+
77
+ Formally, the optimization problem we solve is
78
+
79
+ $$
80
+ \operatorname* { m a x } _ { x ^ { \prime } } \frac { 1 } { 2 n } \sum _ { i = 1 } ^ { n } \widetilde { \frac { \| f _ { i } ( A ( x ) ) - f _ { i } ( A ( x ^ { \prime } ) ) \| _ { 2 } ^ { 2 } } { \| f _ { i } ( A ( x ) ) \| _ { 2 } } } + \widetilde { \| f _ { i } ( A ( x ) ) - f _ { i } ( A ( G ( x ^ { \prime } ) ) ) \| _ { 2 } ^ { 2 } } - \alpha \underbrace { \mathrm { L P I P S } ( x , x ^ { \prime } ) } _ { \mathrm { n e c e a n n a l 1 o s } } ,
81
+ $$
82
+
83
+ where $x$ is the original image, $x ^ { \prime }$ is the perturbed image, $f _ { i }$ denotes the $i ^ { t h }$ model in our ensemble, $G$ is the Gaussian smoothing function with fixed parameters, and $A$ denotes face detection and extraction followed by $1 1 2 \times 1 1 2$ resizing and alignment. The face detection step is an important part of the LowKey objective function, as commercial systems rely on face detection and extraction because probe images often contain a scene much larger than a face, or else contain a face who’s alignment is not compatible with the face recognition system.
84
+
85
+ We solve this maximization problem iteratively with signed gradient ascent, which is known to be highly effective for breaking common image classification systems (Madry et al., 2017). Namely, we iteratively update $x ^ { \prime }$ by adding the sign of the gradient of the maximization objective (1) with respect to $x ^ { \prime }$ . By doing this, we move $x ^ { \prime }$ and $G ( x ^ { \prime } )$ far away from the original image $x$ in the feature spaces of models $f _ { i }$ used in the LowKey ensemble. The ensemble contains four feature extractors, IR-152 and ResNet-152 backbones trained with ArcFace and CosFace heads. More details can be found in the next section.
86
+
87
+ Additional details concerning attack hyperparameters can be found in Appendix 8.1.
88
+
89
+ # 4 EXPERIMENTAL DESIGN
90
+
91
+ Our ensemble of models contains ArcFace and CosFace facial recognition systems (Deng et al., 2019; Wang et al., 2018). For each of these systems, we train ResNet-50, ResNet-152, IR-50, and IR-152 backbones on the MS-Celeb-1M dataset, which contains over five million images from over 85,000 identities (He et al., 2016; Deng et al., 2019; Guo et al., 2016). We use these models both in our ensemble to generate attacks and to perform controlled experiments in Section 6. Additional details on our models and their training routines can be found in Appendix 8.1.
92
+
93
+ We primarily test our attacks on the FaceScrub dataset, a standard identification benchmark from the MegaFace challenge, which contains over 100,000 images from 530 known identities as well as one million distractor images (Kemelmacher-Shlizerman et al., 2016). We discard near-duplicate images from the dataset as is common practice in the facial recognition literature (Zhang et al., 2020). We also perform experiments on the UMDFaces dataset, which can be found in Appendix 8.3 (Bansal et al., 2017). We treat one tenth of each identity’s images as probe images, and we insert the remaining images into the gallery. We randomly select 100 identities and apply LowKey to each of their gallery images. This setting simulates a small pool of LowKey users among a larger population of non-users. Then, in order to perform a single evaluation trial of identification, we randomly sample one probe image from a known identity and find its closest matches within the remainder of the FaceScrub dataset, according to the facial recognition model. Distance is measured in feature space of the model. If the FR model selects a match from the same identity, then the trial is a success.
94
+
95
+ Note 1 (Rank- $k$ Accuracy). For each probe image, we consider the model successful in the rank- $k$ setting if the correct identity appears among the k closest gallery images in the model’s feature space. To test the transferability of our attack we compute rank-1 and rank-50 accuracy for attack, and test feature extractors from our set of trained FR models.
96
+
97
+ # 5 BREAKING COMMERCIAL BLACK-BOX APIS
98
+
99
+ The ultimate test for our protection tool is against commercial systems. These systems are proprietary, and their exact specifications are not publicly available. We test LowKey in the black-box setting using two commercial facial recognition APIs: Amazon Rekognition and Microsoft Azure Face. We also compare against Fawkes. We generate Fawkes images using the authors’ own code and hyperparameters to ensure a fair comparison, and we use the highest protection setting their code offers.
100
+
101
+ Amazon Rekognition Amazon Rekognition is a commercial tool for detecting and recognizing faces in photos. Rekognition works by matching probe images with uploaded gallery images that have known labels. Amazon does not describe how their algorithm works, but their approach seemingly does not involve training a model on uploaded images (at least not in a supervised manner). We test the Rekognition API using the FaceScrub dataset (including distractors) where 100 randomly selected identities have their images attacked as described in Section 4. We observe that LowKey is highly effective, and even in the setting of rank-50 accuracy, Rekognition can only recognize $2 . 4 \%$ of probe images belonging to users protected with LowKey. In contrast, Fawkes fails, with $7 7 . 5 \%$ of probe images belonging to its users recognized correctly in the rank-1 setting and $9 4 . 9 \%$ of these images recognized correctly when the 50 closest matches are considered. This is close to the performance of Amazon Rekognition on clean images.
102
+
103
+ <table><tr><td colspan="2">Amazon rank-1</td><td>Amazon rank-50</td><td>Microsoft rank-1</td></tr><tr><td>Clean -</td><td>93.7%</td><td>95.4%</td><td>90.5%</td></tr><tr><td>Fawkes -</td><td>77.5%</td><td>94.9%</td><td>74.2%</td></tr><tr><td>LowKey-</td><td>0.6%</td><td>2.4%</td><td>0.1%</td></tr></table>
104
+
105
+ Table 1: An evaluation of Amazon Rekognition and Microsoft Azure Face on FaceScrub data with LowKey and Fawkes protection (a small number, and lighter color, indicates a successful attack). LowKey consistently achieves virtually flawless protection, while Fawkes provides little protection.
106
+
107
+ Microsoft Azure Face We repeat a similar experiment on the Microsoft Azure Facial Recognition API. In contrast to Amazon’s API, Microsoft updates their model on the uploaded gallery of images. Therefore, only known identities can be used, so we only include images corresponding to the 530 known identities from FaceScrub and no distractors. The Azure system recognizes only $0 . 1 \%$ of probe images whose gallery images are under the protection of LowKey. Even though Fawkes is designed to perform data poisoning, and authors claim it is especially well suited to Microsoft Azure Face, in our experiments, Azure is still able to recognize more than $74 \%$ of probe images uploaded by users who employ Fawkes.
108
+
109
+ We conclude from these experiments that LowKey is both highly effective and transferable to even state-of-the-art industrial facial recognition systems. In the next section, we explore several components of our attack in order to uncover the tools of its success.
110
+
111
+ # 6 ADDITIONAL EXPERIMENTS
112
+
113
+ The effectiveness of our protection tool hinges on several properties:
114
+
115
+ 1. The attack must transfer effectively to unseen models.
116
+ 2. Images must look acceptable to users.
117
+ 3. LowKey must run sufficiently fast so that run-time does not outweigh its protective benefits.
118
+ 4. Attacked images must remain effective after being saved in PNG and JPG formats.
119
+ 5. The algorithm must scale to images of any size.
120
+
121
+ We conduct extensive experiments in this section with a variety of facial recognition systems to interrogate these properties of LowKey.
122
+
123
+ # 6.1 ENSEMBLES AND TRANSFERABILITY
124
+
125
+ In developing the ensemble of models used to compute our attack, we examine the extent to which attacks generated by one model are effective against another. By including an eclectic mix of models in our ensemble, we are able to ensure that LowKey produces images that fool a wide variety of facial recognition systems. To this end, we evaluate attacks on all pairs of source and victim models with ResNet-50, ResNet-152, IR-50, and IR-152 backbones, and both ArcFace and CosFace heads. For each victim model, we additionally measure performance on clean images, our ensembled attack, and Fawkes. See Table 2 for a comparison of the rank-50 performance of these combinations. Additional evaluations in the rank-1 setting and on the UMDFaces dataset can be found in Appendix 8.2 and 8.3 respectively. Note that entries for which the attacker and defender models are identical depict white-box performance, while entries for which these model differ depict black-box transferability.
126
+
127
+ We observe in these experiments that adversarial attacks generated by IR architectures transfer better to IR-based facial recognition systems, while attacks generated by ResNet architectures transfer better to other ResNet systems. In general, attacks computed on 152-layer backbones are more effective than attacks computed on 50-layer backbones, and deeper networks are also more difficult to fool. Moreover, attacks transfer better between models trained with the same head. An ensemble of models of all combinations of ResNet-152 and IR-152 backbones as well as ArcFace and CosFace heads generates attacks that transfer effectively to all models and fool models at only a slightly lower rate than white-box attacks.
128
+
129
+ # 6.2 GAUSSIAN SMOOTHING
130
+
131
+ We incorporate Gaussian smoothing as a pre-processing step in our objective function (1) to make our perturbations smoother and more robust. Intuitively, this promotes the effectiveness of the attacked image even when a denoising filter is applied. The presence of blur forces the adversarial perturbation to rely on smoother/low-frequency image modifications rather than adversarial “noise.” Empirically, we find that attacks computed with this procedure produce slightly smoother and more aesthetically pleasing perturbations without sharp lines and high-frequency oscillations. See Figure 3 for a visual comparison of images produced with and without Gaussian smoothing in the LowKey pipeline.
132
+
133
+ <table><tr><td></td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=4>96.8% 96.8% 96.8% 96.7%</td><td rowspan=1 colspan=1>96.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>96.6%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.5%</td><td rowspan=1 colspan=1>96.6%</td><td rowspan=1 colspan=1>96.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.4%</td><td rowspan=1 colspan=1>22.2%</td><td rowspan=1 colspan=1>11.9%</td><td rowspan=1 colspan=1>35.2%</td><td rowspan=1 colspan=1>33.6%</td><td rowspan=1 colspan=1>46.4%</td><td rowspan=1 colspan=1>45.7%</td><td rowspan=1 colspan=1>53.0%</td></tr><tr><td></td><td rowspan=1 colspan=1>4.9%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>4.1%</td><td rowspan=1 colspan=1>8.0%</td><td rowspan=1 colspan=1>23.1%</td><td rowspan=1 colspan=1>25.9%</td><td rowspan=1 colspan=1>31.4%</td><td rowspan=1 colspan=1>28.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>9.9%</td><td rowspan=1 colspan=1>18.3%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>26.1%</td><td rowspan=1 colspan=1>41.6%</td><td rowspan=1 colspan=1>46.2%</td><td rowspan=1 colspan=1>49.6%</td><td rowspan=1 colspan=1>48.9%</td></tr><tr><td></td><td rowspan=1 colspan=1>2.8%</td><td rowspan=1 colspan=1>1.6%</td><td rowspan=1 colspan=1>1.5%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>11.9%</td><td rowspan=1 colspan=1>13.9%</td><td rowspan=1 colspan=1>18.8%</td><td rowspan=1 colspan=1>16.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>35.7%</td><td rowspan=1 colspan=1>36.3%</td><td rowspan=1 colspan=1>43.0%</td><td rowspan=1 colspan=1>0.9%</td><td rowspan=1 colspan=1>13.3%</td><td rowspan=1 colspan=1>17.4%</td><td rowspan=1 colspan=1>24.2%</td></tr><tr><td></td><td rowspan=1 colspan=1>33.8%</td><td rowspan=1 colspan=1>36.5%</td><td rowspan=1 colspan=1>41.1%</td><td rowspan=1 colspan=1>42.9%</td><td rowspan=1 colspan=1>9.9%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=1>17.9%</td><td rowspan=1 colspan=1>21.1%</td></tr><tr><td></td><td rowspan=1 colspan=1>16.8%</td><td rowspan=1 colspan=1>22.0%</td><td rowspan=1 colspan=1>21.1%</td><td rowspan=1 colspan=1>28.2%</td><td rowspan=1 colspan=1>5.2%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>7.6%</td></tr><tr><td rowspan=2 colspan=1>RN-152C-Ensemble</td><td rowspan=1 colspan=1>14.8%</td><td rowspan=1 colspan=1>19.2%</td><td rowspan=1 colspan=1>19.9%</td><td rowspan=1 colspan=1>24.3%</td><td rowspan=1 colspan=1>6.7%</td><td rowspan=1 colspan=1>6.9%</td><td rowspan=1 colspan=1>7.1%</td><td rowspan=1 colspan=1>0.5%</td></tr><tr><td rowspan=1 colspan=1> 3.0%</td><td rowspan=1 colspan=1>2.4%</td><td rowspan=1 colspan=1>2.1%</td><td rowspan=1 colspan=1>0.6%</td><td rowspan=1 colspan=1> 3.1%</td><td rowspan=1 colspan=1> 4.2%</td><td rowspan=1 colspan=1> 5.5%</td><td rowspan=1 colspan=1>0.9%</td></tr></table>
134
+
135
+ Table 2: Rank-50 accuracy of the LowKey and Fawkes attacks. After the first two rows, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
136
+
137
+ We additionally produce images both with and without smoothing in the attack pipeline. Before feeding them into facial recognition systems, we defend the system against our attacks by applying a Gaussian smoothing pre-processing step just before inference.
138
+
139
+ We find that facial recognition systems which use this pre-processing step perform equally well on rank-50 (but not rank-1) accuracy compared to performance without smoothing, and they are also able to defeat attacks which are not computed with Gaussian smoothing. On the other hand, attacks computed using Gaussian smoothing are able to counteract this defense and fool the facial recognition system (see Table 3). This suggests that attacks that use Gaussian smoothing in their pipeline are more robust and harder to defend against. See Appendix 8.6 for details regarding Gaussian smoothing hyperparameters.
140
+
141
+ # 6.3 RUN-TIME
142
+
143
+ In order for users to be willing to use our tool, LowKey must run fast enough that it is not an inconvenience to use. Computing adversarial attacks is a computationally expensive task. We compare run-time to Fawkes as a baseline and test both attacks on a single NVIDIA GeForce RTX 2080 TI GPU. We attack one image at a time with no batching for fair comparison, and we average over runs on every full-size gallery image from each of five randomly selected identities from FaceScrub. While Fawkes averages 54 seconds per image, LowKey only averages 32 seconds per image. In addition to providing far superior protection, LowKey runs significantly faster than the existing method, providing users a smoother and more convenient experience.
144
+
145
+ <table><tr><td colspan="10">Defender IR-50A IR-50C</td></tr><tr><td></td><td>Clean</td><td>96.7% 96.8%</td><td>IR-152A 96.6%</td><td></td><td>IR-152C 96.9%</td><td>RN-50A 96.7%</td><td>96.7%</td><td>RN-50C RN-152A RN-152C 96.7%</td><td>96.7%</td></tr><tr><td>AAreeet Without GS </td><td>78.6%</td><td>74.0%</td><td>74.4%</td><td>64.6%</td><td>75.5%</td><td>76.0%</td><td>77.8%</td><td>74.2%</td></tr><tr><td>With GS</td><td>4.2%</td><td>4.8%</td><td>4.4%</td><td>2.8%</td><td>7.9%</td><td>7.1%</td><td>9.6%</td><td>3.2%</td></tr></table>
146
+
147
+ Table 3: Rank-50 accuracy of FR models tested on blurred LowKey images computed with/without Gaussian smoothing.
148
+
149
+ ![](images/9269723de086f2ad1a2c16403f94f956472db7a3f092652514c49a9e95d8d810.jpg)
150
+ Figure 3: LowKey attacked images computed without (above) and with (below) Gaussian smoothing.
151
+
152
+ # 6.4 ROBUSTNESS TO IMAGE COMPRESSION
153
+
154
+ Since users may save their images in various formats after passing them through LowKey, the images we produce must provide protection even after being saved in common formats. Our baseline tests are conducted with images saved in uncompressed PNG format. To test performance under compression, we convert protected images to JPEG format and repeat our experiments on commercial APIs. While compression very slightly decreases performance, the attack is still very effective: Microsoft Azure Face is now able to recognize $0 . 2 \%$ of images compared to $0 . 1 \%$ when saved in the PNG format. Likewise, Amazon Rekognition now recognizes $3 . 8 \%$ of probe images compared to $2 . 4 \%$ previously.
155
+
156
+ # 6.5 SCALABILITY TO ALL IMAGE SIZES (DISCLAIMER)
157
+
158
+ Many tools in deep learning require that inputs be of particular dimensions, but user images on social media sites come in all shapes and sizes. Therefore, LowKey must be flexible. Since the detection and alignment pipeline in our attack resizes images in a differentiable fashion, we can attack images of any size and aspect ratio. Additionally, we apply the LPIPS penalty to the entire original image, which prevents box-shaped artifacts from developing on the boundaries of the rectangle containing the face. Since LowKey does not have a fixed attack budget, perturbations may have different magnitudes on different images. Figure 4 shows the variability of LowKey perturbations on very large images; the image of Tom Hanks (first column) is one of the best looking examples of LowKey on large images, while the image of Tina Fey (last column) is one of the worst looking examples. Protecting very large images is a more challenging task than protecting small images because of the black-box detection, alignment, and re-scaling used in APIs which affect large images more significantly. These experiments indicate that users will receive stronger protection if they use LowKey on smaller images.
159
+
160
+ We test the effectiveness of LowKey on large images by protecting gallery images of 10 identities from Facescrub (with 17 images in the gallery on average) and using 20 probe images per person. We also vary the magnitude of the perturbation to find the smallest perturbation that is sufficient to protect images (Table 4). In this way, we find that users may trade off some protection in exchange for better looking images at their own discretion. Additionally, we find that LowKey works much better with smaller gallery sizes; when only 5 gallery images are used, the performance of Amazon Rekognition drops from $3 2 . 5 \%$ to $11 \%$ in the rank-50 setting. This observation suggests that users can upload new profile pictures less frequently in order to decrease the number of gallery images corresponding to their identity and thus enhance their protection. Finally, the quality of probe images is also important; when small probe images are used, like those which would occur in low resolution security camera footage, the accuracy of Amazon Rekognition drops from $3 2 . 5 \%$ to $19 \%$ .
161
+
162
+ # 7 DISCUSSION
163
+
164
+ In this work, we develop a tool for protecting users from unauthorized facial recognition. Our tool adversarially pre-processes user images before they are uploaded to social media. These pre-processed images are useless for third-party organizations who collect them for facial recognition. While we have shown that LowKey is highly effective against commercial black-box APIs, it does not protect users $100 \%$ of the time and may be circumvented by specially engineered robust systems. Thus, we hope that users will still remain cautious about publicly revealing personal information. One interesting future direction is to produce adversarial filters that are more aesthetically pleasing in order to promote wider use of this tool. However, it may be that there is no free lunch, and one cannot fool state-of-the-art facial recognition systems without visible perturbations. Facial recognition systems are not fragile, and other attacks that have attempted to break them have failed. Finally, we note that one of our goals in making this tool widely available is to promote broader awareness of facial recognition and the ethical issues it raises. Our webtool can be found at lowkey.umiacs.umd.edu.
165
+
166
+ ![](images/b7f3e5b3bb1f2b492b0e8ca24ca7ff45f66fd286889e5f16f576def2574e3088.jpg)
167
+ Figure 4: First row: Original large images, Second row: Images protected with LowKey (medium magnitude), Third row: Images protected with LowKey (large magnitude).
168
+
169
+ Table 4: Evaluation of LowKey on full-size images. Rows indicate levels of magnitude of LowKey (denoted by the number of attack steps).
170
+
171
+ <table><tr><td colspan="2">Amazon rank-1</td><td>Amazon rank-50</td><td>Microsoft rank-1</td></tr><tr><td>Clean </td><td>89.0%</td><td>98.5%</td><td>86.0%</td></tr><tr><td>LowKey 10</td><td>63.0%</td><td>94.5%</td><td>75.5%</td></tr><tr><td>LowKey 20-</td><td>34.0%</td><td>59.5%</td><td>30.5%</td></tr><tr><td>LowKey 30 -</td><td>20.5%</td><td>36.5%</td><td>12.7%</td></tr><tr><td>LowKey 40 -</td><td>14.5%</td><td>36.0%</td><td>3.0%</td></tr><tr><td>LowKey 50</td><td>11.0%</td><td>32.5%</td><td>0.0%</td></tr></table>
172
+
173
+ # ACKNOWLEDGMENTS
174
+
175
+ This work was supported by the DARPA GARD and DARPA QED programs. Further support was provided by the AFOSR MURI program, and the National Science Foundation’s DMS division. Computation resources were funded by the Sloan Foundation.
176
+
177
+ # REFERENCES
178
+
179
+ Ankan Bansal, Anirudh Nanduri, Carlos D Castillo, Rajeev Ranjan, and Rama Chellappa. Umdfaces: An annotated face dataset for training deep networks. In 2017 IEEE International Joint Conference on Biometrics (IJCB), pp. 464–473. IEEE, 2017.
180
+
181
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 ieee symposium on security and privacy (sp), pp. 39–57. IEEE, 2017.
182
+
183
+ Valeriia Cherepanova, Vedant Nanda, Micah Goldblum, John P Dickerson, and Tom Goldstein. Technical challenges for training fair neural networks. arXiv preprint arXiv:2102.06764, 2021.
184
+
185
+ Ping-Yeh Chiang, Jonas Geiping, Micah Goldblum, Tom Goldstein, Renkun Ni, Steven Reich, and Ali Shafahi. Witchcraft: Efficient pgd attacks with random step size. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 3747–3751. IEEE, 2020.
186
+
187
+ Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4690–4699, 2019.
188
+
189
+ William Derringer. A surveillance net blankets china’s cities, giving police vast powers. The New York Times, Dec. 17 2019. URL https://www.nytimes.com/2019/12/17/technology/ china-surveillance.html.
190
+
191
+ Micah Goldblum, Avi Schwarzschild, Naftali Cohen, Tucker Balch, Ankit B Patel, and Tom Goldstein. Adversarial attacks on machine learning systems for high-frequency trading. arXiv preprint arXiv:2002.09565, 2020.
192
+
193
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
194
+
195
+ Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. Ms-celeb-1m: A dataset and benchmark for large-scale face recognition. In European conference on computer vision, pp. 87–102. Springer, 2016.
196
+
197
+ Woodrow Hartzog. The secretive company that might end privacy as we know it. The New York Times, Jan. 18 2020. URL https://www.nytimes.com/2020/01/18/technology/ clearview-privacy-facial-recognition.html.
198
+
199
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
200
+
201
+ Ira Kemelmacher-Shlizerman, Steven M Seitz, Daniel Miller, and Evan Brossard. The megaface benchmark: 1 million faces for recognition at scale. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4873–4882, 2016.
202
+
203
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
204
+
205
+ Cassidy Laidlaw, Sahil Singla, and Soheil Feizi. Perceptual adversarial robustness: Defense against unseen threat models. arXiv preprint arXiv:2006.12655, 2020.
206
+
207
+ Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object ´ detection. In Proceedings of the IEEE international conference on computer vision, pp. 2980–2988, 2017.
208
+
209
+ Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Sphereface: Deep hypersphere embedding for face recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 212–220, 2017.
210
+
211
+ Steve Lohr. Facial recognition is accurate, if you’re a white guy. New York Times, 9, 2018.
212
+
213
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
214
+
215
+ Daniel Pedraza, Dhaval Adjodah, Gretchen Greene, Josh Joseph, Thom Miano, and Francisco. Equalais. https://equalais.media.mit.edu/, 2018.
216
+
217
+ Parsa Saadatpanah, Ali Shafahi, and Tom Goldstein. Adversarial attacks on copyright detection systems. In International Conference on Machine Learning, pp. 8307–8315. PMLR, 2020.
218
+
219
+ Shawn Shan, Emily Wenger, Jiayun Zhang, Huiying Li, Haitao Zheng, and Ben Y Zhao. Fawkes: Protecting privacy against unauthorized deep learning models. In 29th {USENIX} Security Symposium ({USENIX} Security 20), pp. 1589–1604, 2020.
220
+
221
+ Natasha Singer. Microsoft urges congress to regulate use of facial recognition. The New York Times, 2018.
222
+
223
+ Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou, Zhifeng Li, and Wei Liu. Cosface: Large margin cosine loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5265–5274, 2018.
224
+
225
+ Karen Weise and Natasha Singer. Amazon pauses police use of its facial recognition software. The New York Times, Jul. 10 2020. URL https://www.nytimes.com/2020/06/10/ technology/amazon-facial-recognition-backlash.html.
226
+
227
+ Emily Wenger, Josephine Passananti, Yuanshun Yao, Haitao Zheng, and Ben Y Zhao. Backdoor attacks on facial recognition in the physical world. arXiv preprint arXiv:2006.14580, 2020.
228
+
229
+ Zuxuan Wu, Ser-Nam Lim, Larry Davis, and Tom Goldstein. Making an invisibility cloak: Real world adversarial attacks on object detectors. arXiv preprint arXiv:1910.14667, 2019.
230
+
231
+ Kaidi Xu, Gaoyuan Zhang, Sijia Liu, Quanfu Fan, Mengshu Sun, Hongge Chen, Pin-Yu Chen, Yanzhi Wang, and Xue Lin. Adversarial t-shirt! evading person detectors in a physical world. arXiv, pp. arXiv–1910, 2019.
232
+
233
+ Xiao Yang, Yinpeng Dong, Tianyu Pang, Jun Zhu, and Hang Su. Towards privacy protection by generating adversarial identity masks. arXiv preprint arXiv:2003.06814, 2020.
234
+
235
+ Kai Zhang, V´ıtor Albiero, and Kevin W Bowyer. A method for curation of web-scraped face image datasets. In 2020 8th International Workshop on Biometrics and Forensics (IWBF), pp. 1–6. IEEE, 2020.
236
+
237
+ Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018.
238
+
239
+ Jian Zhao. face.evolve: High-performance face recognition library based on pytorch. https: //github.com/ZhaoJ9014/face.evoLVe.PyTorch, 2020.
240
+
241
+ Yaoyao Zhong and Weihong Deng. Towards transferable adversarial attack against deep face recognition. arXiv preprint arXiv:2004.05790, 2020.
242
+
243
+ # 8 APPENDIX
244
+
245
+ # 8.1 IMPLEMENTATION DETAILS
246
+
247
+ We train all of our feature extractors using focal loss (Lin et al., 2017) with a batch size of 512 for 120 epochs. We use an initial learning rate of 0.1 and decrease it by a factor of 10 at epochs 35, 65 and 95. For the optimizer, we use SGD with a momentum of 0.9 and weight decay of 5e-4.
248
+
249
+ For our adversarial attacks, we use 0.05 for the perceptual similarity penalty, $\sigma = 3$ and window size 7 for the Gaussian smoothing term. Attacks are computed using signed SGD for 50 epochs with a learning rate of 0.0025.
250
+
251
+ For face detection and aligning models as well as for training routines, we use the face.evoLVe.PyTorch github repository (Zhao, 2020).
252
+
253
+ # 8.2 RANK-1 ACCURACY ON FACESCRUB DATA
254
+
255
+ See Table 5.
256
+
257
+ <table><tr><td rowspan=2 colspan=9>DefenderIR-50A IR-50CIR-152AIR-152C RN-50ARN-50C RN-152A RN-152CClean 95.6% 96.1% 96.0% 96.2% 95.8% 95.9% 95.9% 96.0%</td></tr><tr><td rowspan=1 colspan=1>95.6%</td><td rowspan=1 colspan=2>96.1% 96.0%</td><td rowspan=1 colspan=1>96.2%</td><td rowspan=1 colspan=1>95.8%</td><td rowspan=1 colspan=2>95.9% 95.9%</td><td rowspan=1 colspan=1>96.0%</td></tr><tr><td rowspan=5 colspan=1>Fawkes IR-50AIR-50CAAreeet IR-152AIR-152C-</td><td rowspan=1 colspan=1>71.2%</td><td rowspan=1 colspan=1>76.2%</td><td rowspan=1 colspan=1>74.4%</td><td rowspan=1 colspan=1>78.2%</td><td rowspan=1 colspan=1>73.9%</td><td rowspan=1 colspan=2>76.0% 76.0%</td><td rowspan=1 colspan=1>71.2%</td></tr><tr><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>3.5%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>6.4%</td><td rowspan=1 colspan=1>5.0%</td><td rowspan=1 colspan=2>8.2% 8.7%</td><td rowspan=1 colspan=1>12.4%</td></tr><tr><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>9.0%</td><td rowspan=1 colspan=1>3.3%</td><td rowspan=1 colspan=2>3.3% 3.6%</td><td rowspan=1 colspan=1> 5.3%</td></tr><tr><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>1.8%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>4.2%</td><td rowspan=1 colspan=1>6.8%</td><td rowspan=1 colspan=1>8.9%</td><td rowspan=1 colspan=1>9.4%</td><td rowspan=1 colspan=1>10.8%</td></tr><tr><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>1.0%</td><td rowspan=1 colspan=1>1.4%</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>2.9%</td></tr><tr><td rowspan=1 colspan=1>RN-50A-</td><td rowspan=1 colspan=1>3.8%</td><td rowspan=1 colspan=1>7.0%</td><td rowspan=1 colspan=1>6.8%</td><td rowspan=1 colspan=1>8.3%</td><td rowspan=1 colspan=1>0.9%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1>2.8%</td><td rowspan=1 colspan=1>4.6%</td></tr><tr><td rowspan=1 colspan=1>RN-50C-</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1> 5.7%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>7.9%</td><td rowspan=1 colspan=1>1.2%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1> 3.5%</td></tr><tr><td rowspan=1 colspan=1>RN-152A</td><td rowspan=1 colspan=1>1.5%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1>2.7%</td><td rowspan=1 colspan=1>4.9%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>0.4%</td></tr><tr><td rowspan=2 colspan=1>RN-152CEnsemble</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1>3.9%</td><td rowspan=1 colspan=1>0.8%</td><td rowspan=1 colspan=1>0.8%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>0.0%</td></tr><tr><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=2>0.0% 0.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=2>0.4% 0.6%</td><td rowspan=1 colspan=1>0.1%</td></tr></table>
258
+
259
+ Table 5: Rank-1 accuracy of the LowKey and Fawkes attacks on the FaceScrub dataset. After the first two rows, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
260
+
261
+ # 8.3 RESULTS ON UMDFACES DATASET
262
+
263
+ We repeat controlled experiments on the UMDFaces dataset which contains over 367,000 photos of 8,277 identities. For UMDFaces, we also choose 100 identities at random and attack their gallery images while keeping one-tenth of each identity’s photos as probe images. Experimental results are reported in Tables 6 and 7. It can be seen that the effectiveness of LowKey attacks on the UMDFaces dataset is slightly lower, which is likely a result of the much smaller gallery.
264
+
265
+ # 8.4 CAN WE REDUCE THE SIZE OF OUR ATTACK?
266
+
267
+ In order to make our attacks more aesthetically pleasing, we try to reduce the size of perturbation by increasing the perceptual similarity penalty from 0.05 to 0.08. This attack is depicted in Figure 5 as a ”LowKey small attack”. Unfortunately, even a small decrease in the perturbation size results in a huge decrease in efficiency of the attack. In the rank-50 setting Amazon Rekognition is able to recognize $1 7 . 2 \%$ of probe images belonging to users protected with a LowKey small attack. Similarly, Microsoft
268
+
269
+ <table><tr><td></td><td rowspan=1 colspan=1>98.6%</td><td rowspan=1 colspan=1>98.3%</td><td rowspan=1 colspan=1>98.6%</td><td rowspan=1 colspan=2>98.6% 98.3%</td><td rowspan=1 colspan=2>98.3% 98.6%</td><td rowspan=1 colspan=1>98.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>38.9%</td><td rowspan=1 colspan=1>25.9%</td><td rowspan=1 colspan=1>48.6%</td><td rowspan=1 colspan=1>47.7%</td><td rowspan=1 colspan=1>55.7%</td><td rowspan=1 colspan=1>57.1%</td><td rowspan=1 colspan=1>62.2%</td></tr><tr><td></td><td rowspan=1 colspan=1>13.6%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>16.5%</td><td rowspan=1 colspan=1>17.6%</td><td rowspan=1 colspan=1>37.5%</td><td rowspan=1 colspan=1>39.2%</td><td rowspan=1 colspan=1>51.4%</td><td rowspan=1 colspan=1>46.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>23.0%</td><td rowspan=1 colspan=1>32.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>36.4%</td><td rowspan=1 colspan=1>52.8%</td><td rowspan=1 colspan=1>56.5%</td><td rowspan=1 colspan=1>58.2%</td><td rowspan=1 colspan=1>58.5%</td></tr><tr><td></td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>9.1%</td><td rowspan=1 colspan=1>1.1%</td><td rowspan=1 colspan=1>26.7%</td><td rowspan=1 colspan=1>28.1%</td><td rowspan=1 colspan=1>34.9%</td><td rowspan=1 colspan=1>31.8%</td></tr><tr><td rowspan=5 colspan=1>Aareeet RN-50A-RN-50C-RN-152A -RN-152C-Ensemble-</td><td rowspan=1 colspan=1>51.4%</td><td rowspan=1 colspan=1>56.3%</td><td rowspan=1 colspan=1>47.2%</td><td rowspan=1 colspan=1>53.1%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>30.7%</td><td rowspan=1 colspan=1>38.4%</td><td rowspan=1 colspan=1>43.2%</td></tr><tr><td rowspan=1 colspan=1>49.4%</td><td rowspan=1 colspan=1>48.3%</td><td rowspan=1 colspan=1>55.1%</td><td rowspan=1 colspan=1>54.0%</td><td rowspan=1 colspan=1>23.0%</td><td rowspan=1 colspan=1>1.1%</td><td rowspan=1 colspan=1>37.2%</td><td rowspan=1 colspan=1>36.4%</td></tr><tr><td rowspan=1 colspan=1>30.4%</td><td rowspan=1 colspan=1>38.1%</td><td rowspan=1 colspan=1>39.8%</td><td rowspan=1 colspan=1>43.8%</td><td rowspan=1 colspan=1>18.8%</td><td rowspan=1 colspan=1>22.2%</td><td rowspan=1 colspan=1>3.4%</td><td rowspan=1 colspan=1>25.9%</td></tr><tr><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>33.8%</td><td rowspan=1 colspan=1>35.5%</td><td rowspan=1 colspan=1>37.8%</td><td rowspan=1 colspan=1>17.3%</td><td rowspan=1 colspan=1>18.2%</td><td rowspan=1 colspan=1>16.8%</td><td rowspan=1 colspan=1> 3.4%</td></tr><tr><td rowspan=1 colspan=1>10.5%</td><td rowspan=1 colspan=1>4.5%</td><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>15.1%</td><td rowspan=1 colspan=1> 6.5%</td><td rowspan=1 colspan=1>12.8%</td><td rowspan=1 colspan=1>13.6%</td></tr></table>
270
+
271
+ Table 6: Rank-50 accuracy of LowKey attacks on the UMDFaces dataset. After the first row, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
272
+
273
+ <table><tr><td></td><td rowspan=1 colspan=1>96.0%</td><td rowspan=1 colspan=1>97.2%</td><td rowspan=1 colspan=1>96.9%</td><td rowspan=1 colspan=2>96.9% 96.3%</td><td rowspan=1 colspan=2>96.6% 97.2%</td><td rowspan=1 colspan=1>96.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>6.3%</td><td rowspan=1 colspan=1>18.2%</td><td rowspan=1 colspan=1>17.6%</td><td rowspan=1 colspan=1>25.9%</td><td rowspan=1 colspan=1>28.1%</td><td rowspan=1 colspan=1>31.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>4.3%</td><td rowspan=1 colspan=1>11.6%</td><td rowspan=1 colspan=1>13.9%</td><td rowspan=1 colspan=1>17.3%</td><td rowspan=1 colspan=1>21.0%</td></tr><tr><td></td><td rowspan=1 colspan=1>4.3%</td><td rowspan=1 colspan=1>12.8%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>14.5%</td><td rowspan=1 colspan=1>22.4%</td><td rowspan=1 colspan=1>25.6%</td><td rowspan=1 colspan=1>29.5%</td><td rowspan=1 colspan=1>30.1%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>6.8%</td><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>13.6%</td><td rowspan=1 colspan=1>11.4%</td></tr><tr><td></td><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>31.0%</td><td rowspan=1 colspan=1>13.9%</td><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>9.4%</td><td rowspan=1 colspan=1>15.1%</td><td rowspan=1 colspan=1>19.0%</td></tr><tr><td rowspan=4 colspan=1>RN-50C-RN-152A -RN-152C-Ensemble </td><td rowspan=1 colspan=1>14.5%</td><td rowspan=1 colspan=1>21.3%</td><td rowspan=1 colspan=1>20.7%</td><td rowspan=1 colspan=1>25.3%</td><td rowspan=1 colspan=1>6.5%</td><td rowspan=1 colspan=1>0.6%</td><td rowspan=1 colspan=1>12.8%</td><td rowspan=1 colspan=1>14.8%</td></tr><tr><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>16.2%</td><td rowspan=1 colspan=1>16.8%</td><td rowspan=1 colspan=1>17.9%</td><td rowspan=1 colspan=1> 5.1%</td><td rowspan=1 colspan=1>7.1%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1> 7.4%</td></tr><tr><td rowspan=1 colspan=1>7.4%</td><td rowspan=1 colspan=1>10.2%</td><td rowspan=1 colspan=1>11.9%</td><td rowspan=1 colspan=1>13.1%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1> 4.5%</td><td rowspan=1 colspan=1> 5.4%</td><td rowspan=1 colspan=1>0.9%</td></tr><tr><td rowspan=1 colspan=1>2.8%</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1> 5.1%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1>4.0%</td></tr></table>
274
+
275
+ Table 7: Rank-1 accuracy of LowKey attack attacks on the UMDFaces dataset. After the first row, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
276
+
277
+ Azure Face recognizes $5 . 5 \%$ of probe images. Results of controlled experiments are reported in Tables 8 and 9.
278
+
279
+ # 8.5 COMPARISON WITH FAWKES
280
+
281
+ By comparing a set of images protected with LowKey and Fawkes tools, we can see that both attacks are noticeable, but distort images in different ways. While Fawkes adds conspicuous artifacts on the face (such as mustaches or lines on the nose), LowKey attack mostly changes the textures and adds spots on a person’s skin. See Figure 5 for a visual comparison.
282
+
283
+ <table><tr><td></td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=2>96.8% 96.7%</td><td rowspan=1 colspan=1>96.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.0%</td><td rowspan=1 colspan=1>41.1%</td><td rowspan=1 colspan=1>24.7%</td><td rowspan=1 colspan=1>55.2%</td><td rowspan=1 colspan=1>49.7%</td><td rowspan=1 colspan=1>65.0%</td><td rowspan=1 colspan=1>64.2%</td><td rowspan=1 colspan=1>68.8%</td></tr><tr><td></td><td rowspan=1 colspan=1>17.4%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>20.4%</td><td rowspan=1 colspan=1>30.2%</td><td rowspan=1 colspan=1>47.0%</td><td rowspan=1 colspan=1>49.0%</td><td rowspan=1 colspan=1>56.2%</td><td rowspan=1 colspan=1>55.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>28.8%</td><td rowspan=1 colspan=1>38.6%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>49.8%</td><td rowspan=1 colspan=1>61.2%</td><td rowspan=1 colspan=1>66.6%</td><td rowspan=1 colspan=1>69.8%</td><td rowspan=1 colspan=1>70.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>14.2%</td><td rowspan=1 colspan=1>14.0%</td><td rowspan=1 colspan=1>16.2%</td><td rowspan=1 colspan=1>2.7%</td><td rowspan=1 colspan=1>37.0%</td><td rowspan=1 colspan=1>38.6%</td><td rowspan=1 colspan=1>44.4%</td><td rowspan=1 colspan=1>42.9%</td></tr><tr><td rowspan=5 colspan=1>Aareeet RN-50A-RN-50C-RN-152A -RN-152C-Ensemble -</td><td rowspan=1 colspan=1>49.3%</td><td rowspan=1 colspan=1>62.3%</td><td rowspan=1 colspan=1>64.1%</td><td rowspan=1 colspan=1>68.0%</td><td rowspan=1 colspan=1>1.5%</td><td rowspan=1 colspan=1>35.9%</td><td rowspan=1 colspan=1>41.8%</td><td rowspan=1 colspan=1>49.3%</td></tr><tr><td rowspan=1 colspan=1> 57.4%</td><td rowspan=1 colspan=1>59.9%</td><td rowspan=1 colspan=1>62.1%</td><td rowspan=1 colspan=1>64.4%</td><td rowspan=1 colspan=1>31.1%</td><td rowspan=1 colspan=1>3.6%</td><td rowspan=1 colspan=1>46.8%</td><td rowspan=1 colspan=1>48.6%</td></tr><tr><td rowspan=1 colspan=1>42.9%</td><td rowspan=1 colspan=1>51.3%</td><td rowspan=1 colspan=1>52.3%</td><td rowspan=1 colspan=1>55.0%</td><td rowspan=1 colspan=1>25.6%</td><td rowspan=1 colspan=1>32.9%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>35.0%</td></tr><tr><td rowspan=1 colspan=1>41.8%</td><td rowspan=1 colspan=1>48.9%</td><td rowspan=1 colspan=1>47.9%</td><td rowspan=1 colspan=1>52.7%</td><td rowspan=1 colspan=1>28.2%</td><td rowspan=1 colspan=1>29.2%</td><td rowspan=1 colspan=1>30.4%</td><td rowspan=1 colspan=1>8.5%</td></tr><tr><td rowspan=1 colspan=1>18.0%</td><td rowspan=1 colspan=1>21.8%</td><td rowspan=1 colspan=1>19.4%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>23.1%</td><td rowspan=1 colspan=1>24.3%</td><td rowspan=1 colspan=1>27.0%</td><td rowspan=1 colspan=1>14.1%</td></tr></table>
284
+
285
+ Table 8: Rank-50 accuracy of LowKey small attacks on the UMDFaces dataset. After the first row, each row represents LowKey small attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
286
+
287
+ <table><tr><td></td><td rowspan=1 colspan=1>95.6%</td><td rowspan=1 colspan=1>96.1%</td><td rowspan=1 colspan=1>96.0%</td><td rowspan=1 colspan=1>96.2%</td><td rowspan=1 colspan=4>95.8% 95.9% 95.9% 96.0%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>6.1%</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>10.5%</td><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>14.4%</td><td rowspan=1 colspan=1>16.9%</td><td rowspan=1 colspan=1>19.5%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.6%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=1>2.5%</td><td rowspan=1 colspan=1>5.8%</td><td rowspan=1 colspan=1>9.3%</td><td rowspan=1 colspan=1>11.1%</td><td rowspan=1 colspan=1>14.0%</td><td rowspan=1 colspan=1>14.5%</td></tr><tr><td></td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>9.6%</td><td rowspan=1 colspan=1>14.0%</td><td rowspan=1 colspan=1>17.4%</td><td rowspan=1 colspan=1>19.2%</td><td rowspan=1 colspan=1>20.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.3%</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>0.4%</td><td rowspan=1 colspan=1> 5.1%</td><td rowspan=1 colspan=1> 7.5%</td><td rowspan=1 colspan=1>9.6%</td><td rowspan=1 colspan=1> 9.7%</td></tr><tr><td rowspan=5 colspan=1>AAraret RN-50ARN-50CRN-152A-RN-152C-Ensemble</td><td rowspan=1 colspan=1>8.7%</td><td rowspan=1 colspan=1>14.9%</td><td rowspan=1 colspan=1>14.8%</td><td rowspan=1 colspan=1>17.1%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=1>7.6%</td><td rowspan=1 colspan=1>7.8%</td><td rowspan=1 colspan=1>12.5%</td></tr><tr><td rowspan=1 colspan=1>9.9%</td><td rowspan=1 colspan=1>14.6%</td><td rowspan=1 colspan=1>15.6%</td><td rowspan=1 colspan=1>17.2%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>0.6%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>11.6%</td></tr><tr><td rowspan=1 colspan=1>9.2%</td><td rowspan=1 colspan=1>13.5%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>14.8%</td><td rowspan=1 colspan=1>5.7%</td><td rowspan=1 colspan=1>7.9%</td><td rowspan=1 colspan=1>0.8%</td><td rowspan=1 colspan=1>8.5%</td></tr><tr><td rowspan=1 colspan=1>6.9%</td><td rowspan=1 colspan=1>11.3%</td><td rowspan=1 colspan=1>11.8%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>4.8%</td><td rowspan=1 colspan=1> 5.3%</td><td rowspan=1 colspan=1>6.0%</td><td rowspan=1 colspan=1>1.3%</td></tr><tr><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>3.6%</td><td rowspan=1 colspan=1>3.5%</td><td rowspan=1 colspan=1>2.9%</td><td rowspan=1 colspan=1>4.0%</td><td rowspan=1 colspan=1>4.7%</td><td rowspan=1 colspan=1> 5.4%</td><td rowspan=1 colspan=1>3.9%</td></tr></table>
288
+
289
+ Table 9: Rank-1 accuracy of LowKey small attacks on the UMDFaces dataset. After the first row, each row represents LowKey small attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
290
+
291
+ # 8.6 GAUSSIAN SMOOTHING IN LOWKEY
292
+
293
+ For the parameters of the Gaussian smoothing term in the optimization problem (1), we use 3 for $\sigma$ and 7 for window size. For the defensive Gaussian blur, we use $\sigma = 2$ and no window size.
294
+
295
+ ![](images/f96629cc280e06dd4286556160bdc259fd2bc6656c04a9b70ee142678fa2910c.jpg)
296
+ Figure 5: Panel of different attacks. First row: original images, second row: Fawkes attack, third row: LowKey small attack, last row: LowKey attack.
297
+
298
+ Defender IR-50A IR-50C IR-152A IR-152C RN-50A RN-50C RN-152A RN-152C
299
+
300
+ <table><tr><td rowspan="2">Clean </td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>84.4%</td><td>85.3%</td><td>84.7%</td><td>86.1%</td><td>86.7%</td><td>87.9%</td><td>88.5%</td><td>89.6%</td></tr><tr><td>Aareeet Without GS</td><td>13.3%</td><td>17.9%</td><td>15.8%</td><td>13.7%</td><td>18.9%</td><td>20.4%</td><td>23.2%</td><td>20.6%</td></tr><tr><td>With GS</td><td>0.3%</td><td>0.3%</td><td>0.1%</td><td>0.0%</td><td>1.0%</td><td>0.9%</td><td>0.6%</td><td>0.6%</td></tr></table>
301
+
302
+ Table 10: Rank-1 accuracy of FR models tested on blurred images attacked without and with the Gaussian smoothing term. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks.
parse/train/hJmtwocEqzc/hJmtwocEqzc_content_list.json ADDED
@@ -0,0 +1,1623 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LOWKEY: LEVERAGING ADVERSARIAL ATTACKS TO PROTECT SOCIAL MEDIA USERS FROM FACIAL RECOGNITION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 825,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Valeriia Cherepanova Department of Mathematics University of Maryland vcherepa@umd.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 195,
20
+ 369,
21
+ 251
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Micah Goldblum Department of Computer Science University of Maryland goldblum@umd.edu ",
28
+ "bbox": [
29
+ 589,
30
+ 195,
31
+ 810,
32
+ 251
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Harrison Foley∗ \nDepartment of Computer Science \nUS Naval Academy \nm211926@usna.edu \nShiyuan Duan∗ \nDepartment of Computer Science \nUniversity of Maryland \nsduan1@umd.edu ",
39
+ "bbox": [
40
+ 184,
41
+ 272,
42
+ 405,
43
+ 328
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "",
50
+ "bbox": [
51
+ 593,
52
+ 272,
53
+ 813,
54
+ 328
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "John Dickerson Department of Computer Science University of Maryland john@cs.umd.edu ",
61
+ "bbox": [
62
+ 184,
63
+ 349,
64
+ 405,
65
+ 405
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Gavin Taylor \nDepartment of Computer Science \nUS Naval Academy \ntaylor@usna.edu ",
72
+ "bbox": [
73
+ 593,
74
+ 349,
75
+ 813,
76
+ 405
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Tom Goldstein Department of Computer Science University of Maryland tomg@cs.umd.edu ",
83
+ "bbox": [
84
+ 184,
85
+ 428,
86
+ 405,
87
+ 482
88
+ ],
89
+ "page_idx": 0
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "ABSTRACT ",
94
+ "text_level": 1,
95
+ "bbox": [
96
+ 454,
97
+ 520,
98
+ 544,
99
+ 535
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "Facial recognition systems are increasingly deployed by private corporations, government agencies, and contractors for consumer services and mass surveillance programs alike. These systems are typically built by scraping social media profiles for user images. Adversarial perturbations have been proposed for bypassing facial recognition systems. However, existing methods fail on full-scale systems and commercial APIs. We develop our own adversarial filter that accounts for the entire image processing pipeline and is demonstrably effective against industrial-grade pipelines that include face detection and large scale databases. Additionally, we release an easy-to-use webtool that significantly degrades the accuracy of Amazon Rekognition and the Microsoft Azure Face Recognition API, reducing the accuracy of each to below $1 \\%$ . ",
106
+ "bbox": [
107
+ 233,
108
+ 547,
109
+ 766,
110
+ 700
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "1 INTRODUCTION ",
117
+ "text_level": 1,
118
+ "bbox": [
119
+ 176,
120
+ 726,
121
+ 336,
122
+ 742
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Facial recognition systems (FR) are widely deployed for mass surveillance by government agencies, government contractors, and private companies alike on massive databases of images belonging to private individuals (Hartzog, 2020; Derringer, 2019; Weise & Singer, 2020). Recently, these systems have been thrust into the limelight in the midst of outrage over invasion into personal life and concerns regarding fairness (Singer, 2018; Lohr, 2018; Cherepanova et al., 2021). Practitioners populate their databases by hoarding publicly available images from social media outlets, and so users are forced to choose between keeping their images outside of public view or taking their chances with mass surveillance. ",
129
+ "bbox": [
130
+ 174,
131
+ 756,
132
+ 825,
133
+ 867
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We develop a tool, LowKey, for protecting users from unauthorized surveillance by leveraging methods from the adversarial attack literature, and make it available to the public as a webtool. ",
140
+ "bbox": [
141
+ 176,
142
+ 875,
143
+ 825,
144
+ 902
145
+ ],
146
+ "page_idx": 0
147
+ },
148
+ {
149
+ "type": "image",
150
+ "img_path": "images/a346e274e56b271a637b350791be3a6a07a832f3ce2439284095e282da8421d8.jpg",
151
+ "image_caption": [
152
+ "Figure 1: Top: original images, Bottom: protected by LowKey. "
153
+ ],
154
+ "image_footnote": [],
155
+ "bbox": [
156
+ 196,
157
+ 101,
158
+ 802,
159
+ 253
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "LowKey is the first such evasion tool that is effective against commercial facial recognition APIs. Our system pre-processes user images before they are made publicly available on social media outlets so they cannot be used by a third party for facial recognition purposes. We establish the effectiveness of LowKey throughout this work. ",
166
+ "bbox": [
167
+ 174,
168
+ 305,
169
+ 825,
170
+ 361
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Our contributions can be summarized as follows: ",
177
+ "bbox": [
178
+ 173,
179
+ 368,
180
+ 495,
181
+ 382
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "• We design a black-box adversarial attack on facial recognition models. Our algorithm moves the feature space representations of gallery faces so that they do not match corresponding probe images while preserving image quality. \n• We interrogate the performance of our method on commercial black-box APIs, including Amazon Rekognition and Microsoft Azure Face, whose inner workings are not publicly known. We provide comprehensive comparisons with the existing data poisoning alternative, Fawkes (Shan et al., 2020), and we find that while Fawkes is ineffective in every experiment, our method consistently prevents facial recognition. \n• We release an easy-to-use webtool, LowKey, so that social media users are no longer confronted with a choice between withdrawing their social media presence from public view and risking the repercussions of being surveilled. ",
188
+ "bbox": [
189
+ 217,
190
+ 395,
191
+ 825,
192
+ 559
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "2 RELATED WORK ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 176,
202
+ 579,
203
+ 344,
204
+ 594
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Neural networks are known to be vulnerable to adversarial attacks, small perturbations to inputs that do not change semantic content, and yet cause the network to misbehave (Goodfellow et al., 2014). The adversarial attack literature has largely focused on developing new algorithms that, in simulations, are able to fool neural networks (Carlini & Wagner, 2017; Chiang et al., 2020). Most works to date focus on the idea of physical world attacks, in which the attacker places adversarial patterns on an object in hopes that the adversarial properties transfer to an image of the object. Such attacks do not succeed reliably because the adversarial perturbation must survive imaging under various lighting conditions, object orientations, and occlusions (Kurakin et al., 2016). While researchers have succeeded in crafting such attacks against realistic systems, these attacks do not work consistently across environments (Wu et al., 2019; Xu et al., 2019; Goldblum et al., 2020). In facial recognition, attacks have largely focused on physical backdoor threat models, evasion attacks on verification (Wenger et al., 2020; Zhong & Deng, 2020) and attacks on face detection (Pedraza et al., 2018). Unlike these physical threat models, the setting in which we operate is purely digital, meaning that we can manipulate the contents of digital media at the bit level, and then hand manipulated data directly to a machine learning system. The ability to digitally manipulate media greatly simplifies the task of attacking a system, and has been shown to enhance transferability to black box industrial systems for applications like copyright detection (Saadatpanah et al., 2020) and financial time series analysis (Goldblum et al., 2020). ",
211
+ "bbox": [
212
+ 174,
213
+ 611,
214
+ 826,
215
+ 861
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Recently, the Fawkes algorithm was developed for preventing social media images from being used by unauthorized facial recognition systems (Shan et al., 2020). However, Fawkes, along with the experimental setup on which it is evaluated in the original work, suffers from critical problems. First, Fawkes assumes that facial recognition practitioners train their models on each individual’s data. ",
222
+ "bbox": [
223
+ 176,
224
+ 867,
225
+ 825,
226
+ 924
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "However, high-performance FR systems instead harness large pre-trained Siamese networks (Liu et al., 2017; Deng et al., 2019). Second, the authors primarily use image classifiers. In contrast, commercial systems are trained with FR-specific heads and loss functions, as opposed to the standard cross-entropy loss used by classifiers. Third, the authors perform evaluations on very small datasets. Specifically, they test Fawkes against commercial APIs with a gallery containing only 50 images. Fourth, the system was only evaluated using top-1 accuracy, but FR users such as police departments often compile a list of suspects rather than a single individual. As a result, other metrics like top-50 accuracy are often used in facial recognition, and are a more realistic metric for when a system has been successfully suppressed. Fifth, while the original work portrays Fawkes’ perturbations are undetectable by the human eye, experience with the codebase suggests the opposite (indeed, a New York Times journalist likewise noted that the Fawkes images she was shown during a demonstration were visibly heavily distorted). Finally, Fawkes has not yet released an app or a webtool, and regular social media users are unlikely to make use of git repositories. Our attack avoids the aforementioned limitations, and we perform thorough evaluations on a large collection of images and identities. When comparing with Fawkes, we use the authors’ own implementation in order to make sure that all evaluations are fair. Furthermore, we use Fawkes’ highest protection setting to make sure that LowKey performs better than Fawkes’ best attack. Another work uses targeted adversarial attack on probe images for facial recognition systems so that they cannot be matched with images in a database (Yang et al., 2020). ",
233
+ "bbox": [
234
+ 173,
235
+ 103,
236
+ 826,
237
+ 367
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "3 THE LOWKEY ATTACK ON MASS SURVEILLANCE ",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 173,
247
+ 392,
248
+ 617,
249
+ 409
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "image",
255
+ "img_path": "images/8bda533542dd9c8688ace3b8e37721f1adf73d359cdb70ba0f55672c72ff6fed.jpg",
256
+ "image_caption": [
257
+ "Figure 2: The LowKey pipeline. When users protect their publicly available images with LowKey, facial recognition systems cannot match these harvested images with new images of the user, for example from surveillance cameras. "
258
+ ],
259
+ "image_footnote": [],
260
+ "bbox": [
261
+ 210,
262
+ 433,
263
+ 787,
264
+ 675
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "3.1 PROBLEM SETUP ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 176,
274
+ 768,
275
+ 333,
276
+ 784
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "To help make our work more widely accessible, we begin by introducing common facial recognition terms. ",
283
+ "bbox": [
284
+ 174,
285
+ 796,
286
+ 823,
287
+ 825
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "Gallery images are database images with known identities. These often originate from such sources as passport photos and social media profiles. The gallery is used as a reference for comparing new images. ",
294
+ "bbox": [
295
+ 174,
296
+ 832,
297
+ 825,
298
+ 875
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Probe images are new photos whose subject the FR system user wants to identify. For example, probe images may be extracted from video surveillance footage. The extracted images are then fed into the FR system, and matches to gallery images with known identities. ",
305
+ "bbox": [
306
+ 174,
307
+ 882,
308
+ 825,
309
+ 924
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "Identification is the task of answering the question, “who is this person?” Identification entails comparing a probe image to gallery images in order to find potential matches. In contrast, verification answers the question, “is this person who they say they are?”, or equivalently “are these two photos of the same person?” Verification is used, for example, to unlock phones. ",
316
+ "bbox": [
317
+ 174,
318
+ 103,
319
+ 823,
320
+ 159
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "In our work, we focus on identification, which can be used for mass surveillance. State-of-the-art facial recognition systems first detect and align faces before extracting facial features from the probe image using a neural network. These systems then find gallery images with the closest feature vectors using a $k$ -nearest neighbors search. The matched gallery images are then considered as likely identities corresponding to the person in the probe photo. LowKey applies a filter to user images which may end up in an organization’s database of gallery images. The result is to corrupt the gallery feature vectors so that they will not match feature vectors corresponding to the user’s probe images. A visual depiction of the LowKey pipeline can be found in Figure 2. ",
327
+ "bbox": [
328
+ 174,
329
+ 166,
330
+ 825,
331
+ 279
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "3.2 THE LOWKEY ATTACK ",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 176,
341
+ 303,
342
+ 372,
343
+ 318
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "LowKey manipulates potential gallery images so that they do not match probe images of the same person. LowKey does this by generating a perturbed image whose feature vector lies far away from the original image, while simultaneously minimizing a perceptual similarity loss between the original and perturbed image. Maximizing the distance in feature space prevents the image from matching other images of the individual, while the perceptual similarity loss prevents the image quality from degrading. In this section, we formulate the optimization problem, and describe a number of important details. ",
350
+ "bbox": [
351
+ 174,
352
+ 332,
353
+ 825,
354
+ 430
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "LowKey is designed to evade proprietary FR systems that contain pre-processing steps and neural network backbones that are not publicly known. In order to improve the transferability of our attack to unknown facial recognition systems, LowKey simultaneously attacks an ensemble of models with various backbone architectures that are produced using different training algorithms. Additionally, for each model in the ensemble, the objective function considers the locations of feature vectors of the attacked image both with and without a Gaussian blur. We find that this technique improves both the appearance and transferability of attacked images. Experiments and ablations concerning ensembling and Gaussian smoothing can be found in Section 6. For perceptual similarity loss, we use LPIPS, a metric based on $\\ell _ { 2 }$ distance in the feature space of an ImageNet-trained feature extractor (Zhang et al., 2018). LPIPS has been used effectively in the image classification setting to improve the image quality of adversarial examples (Laidlaw et al., 2020). ",
361
+ "bbox": [
362
+ 174,
363
+ 436,
364
+ 825,
365
+ 590
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Formally, the optimization problem we solve is ",
372
+ "bbox": [
373
+ 174,
374
+ 597,
375
+ 483,
376
+ 611
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/bfbf77cb69fbfb59f7fec9c5f47900818729c702fe750a436a3a8f0beebf4ecd.jpg",
383
+ "text": "$$\n\\operatorname* { m a x } _ { x ^ { \\prime } } \\frac { 1 } { 2 n } \\sum _ { i = 1 } ^ { n } \\widetilde { \\frac { \\| f _ { i } ( A ( x ) ) - f _ { i } ( A ( x ^ { \\prime } ) ) \\| _ { 2 } ^ { 2 } } { \\| f _ { i } ( A ( x ) ) \\| _ { 2 } } } + \\widetilde { \\| f _ { i } ( A ( x ) ) - f _ { i } ( A ( G ( x ^ { \\prime } ) ) ) \\| _ { 2 } ^ { 2 } } - \\alpha \\underbrace { \\mathrm { L P I P S } ( x , x ^ { \\prime } ) } _ { \\mathrm { n e c e a n n a l 1 o s } } ,\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 191,
387
+ 638,
388
+ 789,
389
+ 685
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "where $x$ is the original image, $x ^ { \\prime }$ is the perturbed image, $f _ { i }$ denotes the $i ^ { t h }$ model in our ensemble, $G$ is the Gaussian smoothing function with fixed parameters, and $A$ denotes face detection and extraction followed by $1 1 2 \\times 1 1 2$ resizing and alignment. The face detection step is an important part of the LowKey objective function, as commercial systems rely on face detection and extraction because probe images often contain a scene much larger than a face, or else contain a face who’s alignment is not compatible with the face recognition system. ",
396
+ "bbox": [
397
+ 174,
398
+ 713,
399
+ 825,
400
+ 797
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "We solve this maximization problem iteratively with signed gradient ascent, which is known to be highly effective for breaking common image classification systems (Madry et al., 2017). Namely, we iteratively update $x ^ { \\prime }$ by adding the sign of the gradient of the maximization objective (1) with respect to $x ^ { \\prime }$ . By doing this, we move $x ^ { \\prime }$ and $G ( x ^ { \\prime } )$ far away from the original image $x$ in the feature spaces of models $f _ { i }$ used in the LowKey ensemble. The ensemble contains four feature extractors, IR-152 and ResNet-152 backbones trained with ArcFace and CosFace heads. More details can be found in the next section. ",
407
+ "bbox": [
408
+ 174,
409
+ 804,
410
+ 825,
411
+ 901
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "Additional details concerning attack hyperparameters can be found in Appendix 8.1. ",
418
+ "bbox": [
419
+ 173,
420
+ 909,
421
+ 723,
422
+ 924
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "4 EXPERIMENTAL DESIGN ",
429
+ "text_level": 1,
430
+ "bbox": [
431
+ 176,
432
+ 102,
433
+ 408,
434
+ 117
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "Our ensemble of models contains ArcFace and CosFace facial recognition systems (Deng et al., 2019; Wang et al., 2018). For each of these systems, we train ResNet-50, ResNet-152, IR-50, and IR-152 backbones on the MS-Celeb-1M dataset, which contains over five million images from over 85,000 identities (He et al., 2016; Deng et al., 2019; Guo et al., 2016). We use these models both in our ensemble to generate attacks and to perform controlled experiments in Section 6. Additional details on our models and their training routines can be found in Appendix 8.1. ",
441
+ "bbox": [
442
+ 174,
443
+ 136,
444
+ 825,
445
+ 219
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "We primarily test our attacks on the FaceScrub dataset, a standard identification benchmark from the MegaFace challenge, which contains over 100,000 images from 530 known identities as well as one million distractor images (Kemelmacher-Shlizerman et al., 2016). We discard near-duplicate images from the dataset as is common practice in the facial recognition literature (Zhang et al., 2020). We also perform experiments on the UMDFaces dataset, which can be found in Appendix 8.3 (Bansal et al., 2017). We treat one tenth of each identity’s images as probe images, and we insert the remaining images into the gallery. We randomly select 100 identities and apply LowKey to each of their gallery images. This setting simulates a small pool of LowKey users among a larger population of non-users. Then, in order to perform a single evaluation trial of identification, we randomly sample one probe image from a known identity and find its closest matches within the remainder of the FaceScrub dataset, according to the facial recognition model. Distance is measured in feature space of the model. If the FR model selects a match from the same identity, then the trial is a success. ",
452
+ "bbox": [
453
+ 173,
454
+ 227,
455
+ 825,
456
+ 393
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Note 1 (Rank- $k$ Accuracy). For each probe image, we consider the model successful in the rank- $k$ setting if the correct identity appears among the k closest gallery images in the model’s feature space. To test the transferability of our attack we compute rank-1 and rank-50 accuracy for attack, and test feature extractors from our set of trained FR models. ",
463
+ "bbox": [
464
+ 173,
465
+ 400,
466
+ 825,
467
+ 457
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "5 BREAKING COMMERCIAL BLACK-BOX APIS ",
474
+ "text_level": 1,
475
+ "bbox": [
476
+ 174,
477
+ 481,
478
+ 580,
479
+ 497
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "The ultimate test for our protection tool is against commercial systems. These systems are proprietary, and their exact specifications are not publicly available. We test LowKey in the black-box setting using two commercial facial recognition APIs: Amazon Rekognition and Microsoft Azure Face. We also compare against Fawkes. We generate Fawkes images using the authors’ own code and hyperparameters to ensure a fair comparison, and we use the highest protection setting their code offers. ",
486
+ "bbox": [
487
+ 173,
488
+ 515,
489
+ 825,
490
+ 598
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "Amazon Rekognition Amazon Rekognition is a commercial tool for detecting and recognizing faces in photos. Rekognition works by matching probe images with uploaded gallery images that have known labels. Amazon does not describe how their algorithm works, but their approach seemingly does not involve training a model on uploaded images (at least not in a supervised manner). We test the Rekognition API using the FaceScrub dataset (including distractors) where 100 randomly selected identities have their images attacked as described in Section 4. We observe that LowKey is highly effective, and even in the setting of rank-50 accuracy, Rekognition can only recognize $2 . 4 \\%$ of probe images belonging to users protected with LowKey. In contrast, Fawkes fails, with $7 7 . 5 \\%$ of probe images belonging to its users recognized correctly in the rank-1 setting and $9 4 . 9 \\%$ of these images recognized correctly when the 50 closest matches are considered. This is close to the performance of Amazon Rekognition on clean images. ",
497
+ "bbox": [
498
+ 173,
499
+ 606,
500
+ 825,
501
+ 758
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "table",
507
+ "img_path": "images/7ca12fba23fefb5998f13d0f2442fc584fad8a5b6d1b23bb5265854965019c5b.jpg",
508
+ "table_caption": [],
509
+ "table_footnote": [],
510
+ "table_body": "<table><tr><td colspan=\"2\">Amazon rank-1</td><td>Amazon rank-50</td><td>Microsoft rank-1</td></tr><tr><td>Clean -</td><td>93.7%</td><td>95.4%</td><td>90.5%</td></tr><tr><td>Fawkes -</td><td>77.5%</td><td>94.9%</td><td>74.2%</td></tr><tr><td>LowKey-</td><td>0.6%</td><td>2.4%</td><td>0.1%</td></tr></table>",
511
+ "bbox": [
512
+ 235,
513
+ 784,
514
+ 759,
515
+ 864
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "Table 1: An evaluation of Amazon Rekognition and Microsoft Azure Face on FaceScrub data with LowKey and Fawkes protection (a small number, and lighter color, indicates a successful attack). LowKey consistently achieves virtually flawless protection, while Fawkes provides little protection. ",
522
+ "bbox": [
523
+ 173,
524
+ 878,
525
+ 826,
526
+ 921
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "Microsoft Azure Face We repeat a similar experiment on the Microsoft Azure Facial Recognition API. In contrast to Amazon’s API, Microsoft updates their model on the uploaded gallery of images. Therefore, only known identities can be used, so we only include images corresponding to the 530 known identities from FaceScrub and no distractors. The Azure system recognizes only $0 . 1 \\%$ of probe images whose gallery images are under the protection of LowKey. Even though Fawkes is designed to perform data poisoning, and authors claim it is especially well suited to Microsoft Azure Face, in our experiments, Azure is still able to recognize more than $74 \\%$ of probe images uploaded by users who employ Fawkes. ",
533
+ "bbox": [
534
+ 174,
535
+ 103,
536
+ 825,
537
+ 215
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "We conclude from these experiments that LowKey is both highly effective and transferable to even state-of-the-art industrial facial recognition systems. In the next section, we explore several components of our attack in order to uncover the tools of its success. ",
544
+ "bbox": [
545
+ 174,
546
+ 222,
547
+ 825,
548
+ 263
549
+ ],
550
+ "page_idx": 5
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "6 ADDITIONAL EXPERIMENTS ",
555
+ "text_level": 1,
556
+ "bbox": [
557
+ 176,
558
+ 285,
559
+ 439,
560
+ 301
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "The effectiveness of our protection tool hinges on several properties: ",
567
+ "bbox": [
568
+ 173,
569
+ 318,
570
+ 622,
571
+ 333
572
+ ],
573
+ "page_idx": 5
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "1. The attack must transfer effectively to unseen models. \n2. Images must look acceptable to users. \n3. LowKey must run sufficiently fast so that run-time does not outweigh its protective benefits. \n4. Attacked images must remain effective after being saved in PNG and JPG formats. \n5. The algorithm must scale to images of any size. ",
578
+ "bbox": [
579
+ 210,
580
+ 344,
581
+ 826,
582
+ 440
583
+ ],
584
+ "page_idx": 5
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "We conduct extensive experiments in this section with a variety of facial recognition systems to interrogate these properties of LowKey. ",
589
+ "bbox": [
590
+ 174,
591
+ 452,
592
+ 825,
593
+ 479
594
+ ],
595
+ "page_idx": 5
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "6.1 ENSEMBLES AND TRANSFERABILITY ",
600
+ "text_level": 1,
601
+ "bbox": [
602
+ 176,
603
+ 497,
604
+ 470,
605
+ 512
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "In developing the ensemble of models used to compute our attack, we examine the extent to which attacks generated by one model are effective against another. By including an eclectic mix of models in our ensemble, we are able to ensure that LowKey produces images that fool a wide variety of facial recognition systems. To this end, we evaluate attacks on all pairs of source and victim models with ResNet-50, ResNet-152, IR-50, and IR-152 backbones, and both ArcFace and CosFace heads. For each victim model, we additionally measure performance on clean images, our ensembled attack, and Fawkes. See Table 2 for a comparison of the rank-50 performance of these combinations. Additional evaluations in the rank-1 setting and on the UMDFaces dataset can be found in Appendix 8.2 and 8.3 respectively. Note that entries for which the attacker and defender models are identical depict white-box performance, while entries for which these model differ depict black-box transferability. ",
612
+ "bbox": [
613
+ 174,
614
+ 523,
615
+ 825,
616
+ 662
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "We observe in these experiments that adversarial attacks generated by IR architectures transfer better to IR-based facial recognition systems, while attacks generated by ResNet architectures transfer better to other ResNet systems. In general, attacks computed on 152-layer backbones are more effective than attacks computed on 50-layer backbones, and deeper networks are also more difficult to fool. Moreover, attacks transfer better between models trained with the same head. An ensemble of models of all combinations of ResNet-152 and IR-152 backbones as well as ArcFace and CosFace heads generates attacks that transfer effectively to all models and fool models at only a slightly lower rate than white-box attacks. ",
623
+ "bbox": [
624
+ 174,
625
+ 670,
626
+ 825,
627
+ 781
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "6.2 GAUSSIAN SMOOTHING ",
634
+ "text_level": 1,
635
+ "bbox": [
636
+ 174,
637
+ 799,
638
+ 380,
639
+ 814
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "We incorporate Gaussian smoothing as a pre-processing step in our objective function (1) to make our perturbations smoother and more robust. Intuitively, this promotes the effectiveness of the attacked image even when a denoising filter is applied. The presence of blur forces the adversarial perturbation to rely on smoother/low-frequency image modifications rather than adversarial “noise.” Empirically, we find that attacks computed with this procedure produce slightly smoother and more aesthetically pleasing perturbations without sharp lines and high-frequency oscillations. See Figure 3 for a visual comparison of images produced with and without Gaussian smoothing in the LowKey pipeline. ",
646
+ "bbox": [
647
+ 174,
648
+ 825,
649
+ 825,
650
+ 924
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "table",
656
+ "img_path": "images/0d3ebd799e6f63e2c952a22614ec963a5d9fca54b650dcb6979979dd8043323c.jpg",
657
+ "table_caption": [],
658
+ "table_footnote": [],
659
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=4>96.8% 96.8% 96.8% 96.7%</td><td rowspan=1 colspan=1>96.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>96.6%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.5%</td><td rowspan=1 colspan=1>96.6%</td><td rowspan=1 colspan=1>96.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.4%</td><td rowspan=1 colspan=1>22.2%</td><td rowspan=1 colspan=1>11.9%</td><td rowspan=1 colspan=1>35.2%</td><td rowspan=1 colspan=1>33.6%</td><td rowspan=1 colspan=1>46.4%</td><td rowspan=1 colspan=1>45.7%</td><td rowspan=1 colspan=1>53.0%</td></tr><tr><td></td><td rowspan=1 colspan=1>4.9%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>4.1%</td><td rowspan=1 colspan=1>8.0%</td><td rowspan=1 colspan=1>23.1%</td><td rowspan=1 colspan=1>25.9%</td><td rowspan=1 colspan=1>31.4%</td><td rowspan=1 colspan=1>28.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>9.9%</td><td rowspan=1 colspan=1>18.3%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>26.1%</td><td rowspan=1 colspan=1>41.6%</td><td rowspan=1 colspan=1>46.2%</td><td rowspan=1 colspan=1>49.6%</td><td rowspan=1 colspan=1>48.9%</td></tr><tr><td></td><td rowspan=1 colspan=1>2.8%</td><td rowspan=1 colspan=1>1.6%</td><td rowspan=1 colspan=1>1.5%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>11.9%</td><td rowspan=1 colspan=1>13.9%</td><td rowspan=1 colspan=1>18.8%</td><td rowspan=1 colspan=1>16.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>35.7%</td><td rowspan=1 colspan=1>36.3%</td><td rowspan=1 colspan=1>43.0%</td><td rowspan=1 colspan=1>0.9%</td><td rowspan=1 colspan=1>13.3%</td><td rowspan=1 colspan=1>17.4%</td><td rowspan=1 colspan=1>24.2%</td></tr><tr><td></td><td rowspan=1 colspan=1>33.8%</td><td rowspan=1 colspan=1>36.5%</td><td rowspan=1 colspan=1>41.1%</td><td rowspan=1 colspan=1>42.9%</td><td rowspan=1 colspan=1>9.9%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=1>17.9%</td><td rowspan=1 colspan=1>21.1%</td></tr><tr><td></td><td rowspan=1 colspan=1>16.8%</td><td rowspan=1 colspan=1>22.0%</td><td rowspan=1 colspan=1>21.1%</td><td rowspan=1 colspan=1>28.2%</td><td rowspan=1 colspan=1>5.2%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>7.6%</td></tr><tr><td rowspan=2 colspan=1>RN-152C-Ensemble</td><td rowspan=1 colspan=1>14.8%</td><td rowspan=1 colspan=1>19.2%</td><td rowspan=1 colspan=1>19.9%</td><td rowspan=1 colspan=1>24.3%</td><td rowspan=1 colspan=1>6.7%</td><td rowspan=1 colspan=1>6.9%</td><td rowspan=1 colspan=1>7.1%</td><td rowspan=1 colspan=1>0.5%</td></tr><tr><td rowspan=1 colspan=1> 3.0%</td><td rowspan=1 colspan=1>2.4%</td><td rowspan=1 colspan=1>2.1%</td><td rowspan=1 colspan=1>0.6%</td><td rowspan=1 colspan=1> 3.1%</td><td rowspan=1 colspan=1> 4.2%</td><td rowspan=1 colspan=1> 5.5%</td><td rowspan=1 colspan=1>0.9%</td></tr></table>",
660
+ "bbox": [
661
+ 202,
662
+ 99,
663
+ 792,
664
+ 324
665
+ ],
666
+ "page_idx": 6
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Table 2: Rank-50 accuracy of the LowKey and Fawkes attacks. After the first two rows, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
671
+ "bbox": [
672
+ 173,
673
+ 338,
674
+ 826,
675
+ 409
676
+ ],
677
+ "page_idx": 6
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "We additionally produce images both with and without smoothing in the attack pipeline. Before feeding them into facial recognition systems, we defend the system against our attacks by applying a Gaussian smoothing pre-processing step just before inference. ",
682
+ "bbox": [
683
+ 174,
684
+ 440,
685
+ 823,
686
+ 483
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "We find that facial recognition systems which use this pre-processing step perform equally well on rank-50 (but not rank-1) accuracy compared to performance without smoothing, and they are also able to defeat attacks which are not computed with Gaussian smoothing. On the other hand, attacks computed using Gaussian smoothing are able to counteract this defense and fool the facial recognition system (see Table 3). This suggests that attacks that use Gaussian smoothing in their pipeline are more robust and harder to defend against. See Appendix 8.6 for details regarding Gaussian smoothing hyperparameters. ",
693
+ "bbox": [
694
+ 173,
695
+ 491,
696
+ 825,
697
+ 588
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "6.3 RUN-TIME ",
704
+ "text_level": 1,
705
+ "bbox": [
706
+ 174,
707
+ 613,
708
+ 289,
709
+ 627
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "In order for users to be willing to use our tool, LowKey must run fast enough that it is not an inconvenience to use. Computing adversarial attacks is a computationally expensive task. We compare run-time to Fawkes as a baseline and test both attacks on a single NVIDIA GeForce RTX 2080 TI GPU. We attack one image at a time with no batching for fair comparison, and we average over runs on every full-size gallery image from each of five randomly selected identities from FaceScrub. While Fawkes averages 54 seconds per image, LowKey only averages 32 seconds per image. In addition to providing far superior protection, LowKey runs significantly faster than the existing method, providing users a smoother and more convenient experience. ",
716
+ "bbox": [
717
+ 173,
718
+ 642,
719
+ 825,
720
+ 753
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "table",
726
+ "img_path": "images/8e04471b0215a801dcb12a49f292ac22c6de6d479188c0a674ed9c6f770524f8.jpg",
727
+ "table_caption": [],
728
+ "table_footnote": [],
729
+ "table_body": "<table><tr><td colspan=\"10\">Defender IR-50A IR-50C</td></tr><tr><td></td><td>Clean</td><td>96.7% 96.8%</td><td>IR-152A 96.6%</td><td></td><td>IR-152C 96.9%</td><td>RN-50A 96.7%</td><td>96.7%</td><td>RN-50C RN-152A RN-152C 96.7%</td><td>96.7%</td></tr><tr><td>AAreeet Without GS </td><td>78.6%</td><td>74.0%</td><td>74.4%</td><td>64.6%</td><td>75.5%</td><td>76.0%</td><td>77.8%</td><td>74.2%</td></tr><tr><td>With GS</td><td>4.2%</td><td>4.8%</td><td>4.4%</td><td>2.8%</td><td>7.9%</td><td>7.1%</td><td>9.6%</td><td>3.2%</td></tr></table>",
730
+ "bbox": [
731
+ 202,
732
+ 782,
733
+ 794,
734
+ 880
735
+ ],
736
+ "page_idx": 6
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "Table 3: Rank-50 accuracy of FR models tested on blurred LowKey images computed with/without Gaussian smoothing. ",
741
+ "bbox": [
742
+ 174,
743
+ 892,
744
+ 825,
745
+ 921
746
+ ],
747
+ "page_idx": 6
748
+ },
749
+ {
750
+ "type": "image",
751
+ "img_path": "images/9269723de086f2ad1a2c16403f94f956472db7a3f092652514c49a9e95d8d810.jpg",
752
+ "image_caption": [
753
+ "Figure 3: LowKey attacked images computed without (above) and with (below) Gaussian smoothing. "
754
+ ],
755
+ "image_footnote": [],
756
+ "bbox": [
757
+ 297,
758
+ 101,
759
+ 699,
760
+ 253
761
+ ],
762
+ "page_idx": 7
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "6.4 ROBUSTNESS TO IMAGE COMPRESSION ",
767
+ "text_level": 1,
768
+ "bbox": [
769
+ 176,
770
+ 306,
771
+ 486,
772
+ 319
773
+ ],
774
+ "page_idx": 7
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "Since users may save their images in various formats after passing them through LowKey, the images we produce must provide protection even after being saved in common formats. Our baseline tests are conducted with images saved in uncompressed PNG format. To test performance under compression, we convert protected images to JPEG format and repeat our experiments on commercial APIs. While compression very slightly decreases performance, the attack is still very effective: Microsoft Azure Face is now able to recognize $0 . 2 \\%$ of images compared to $0 . 1 \\%$ when saved in the PNG format. Likewise, Amazon Rekognition now recognizes $3 . 8 \\%$ of probe images compared to $2 . 4 \\%$ previously. ",
779
+ "bbox": [
780
+ 174,
781
+ 332,
782
+ 825,
783
+ 430
784
+ ],
785
+ "page_idx": 7
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "6.5 SCALABILITY TO ALL IMAGE SIZES (DISCLAIMER) ",
790
+ "text_level": 1,
791
+ "bbox": [
792
+ 174,
793
+ 448,
794
+ 571,
795
+ 462
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Many tools in deep learning require that inputs be of particular dimensions, but user images on social media sites come in all shapes and sizes. Therefore, LowKey must be flexible. Since the detection and alignment pipeline in our attack resizes images in a differentiable fashion, we can attack images of any size and aspect ratio. Additionally, we apply the LPIPS penalty to the entire original image, which prevents box-shaped artifacts from developing on the boundaries of the rectangle containing the face. Since LowKey does not have a fixed attack budget, perturbations may have different magnitudes on different images. Figure 4 shows the variability of LowKey perturbations on very large images; the image of Tom Hanks (first column) is one of the best looking examples of LowKey on large images, while the image of Tina Fey (last column) is one of the worst looking examples. Protecting very large images is a more challenging task than protecting small images because of the black-box detection, alignment, and re-scaling used in APIs which affect large images more significantly. These experiments indicate that users will receive stronger protection if they use LowKey on smaller images. ",
802
+ "bbox": [
803
+ 174,
804
+ 473,
805
+ 825,
806
+ 640
807
+ ],
808
+ "page_idx": 7
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "We test the effectiveness of LowKey on large images by protecting gallery images of 10 identities from Facescrub (with 17 images in the gallery on average) and using 20 probe images per person. We also vary the magnitude of the perturbation to find the smallest perturbation that is sufficient to protect images (Table 4). In this way, we find that users may trade off some protection in exchange for better looking images at their own discretion. Additionally, we find that LowKey works much better with smaller gallery sizes; when only 5 gallery images are used, the performance of Amazon Rekognition drops from $3 2 . 5 \\%$ to $11 \\%$ in the rank-50 setting. This observation suggests that users can upload new profile pictures less frequently in order to decrease the number of gallery images corresponding to their identity and thus enhance their protection. Finally, the quality of probe images is also important; when small probe images are used, like those which would occur in low resolution security camera footage, the accuracy of Amazon Rekognition drops from $3 2 . 5 \\%$ to $19 \\%$ . ",
813
+ "bbox": [
814
+ 174,
815
+ 647,
816
+ 825,
817
+ 800
818
+ ],
819
+ "page_idx": 7
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "7 DISCUSSION ",
824
+ "text_level": 1,
825
+ "bbox": [
826
+ 176,
827
+ 821,
828
+ 310,
829
+ 838
830
+ ],
831
+ "page_idx": 7
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "In this work, we develop a tool for protecting users from unauthorized facial recognition. Our tool adversarially pre-processes user images before they are uploaded to social media. These pre-processed images are useless for third-party organizations who collect them for facial recognition. While we have shown that LowKey is highly effective against commercial black-box APIs, it does not protect users $100 \\%$ of the time and may be circumvented by specially engineered robust systems. Thus, we hope that users will still remain cautious about publicly revealing personal information. One interesting future direction is to produce adversarial filters that are more aesthetically pleasing in order to promote wider use of this tool. However, it may be that there is no free lunch, and one cannot fool state-of-the-art facial recognition systems without visible perturbations. Facial recognition systems are not fragile, and other attacks that have attempted to break them have failed. Finally, we note that one of our goals in making this tool widely available is to promote broader awareness of facial recognition and the ethical issues it raises. Our webtool can be found at lowkey.umiacs.umd.edu. ",
836
+ "bbox": [
837
+ 174,
838
+ 854,
839
+ 825,
840
+ 924
841
+ ],
842
+ "page_idx": 7
843
+ },
844
+ {
845
+ "type": "image",
846
+ "img_path": "images/b7f3e5b3bb1f2b492b0e8ca24ca7ff45f66fd286889e5f16f576def2574e3088.jpg",
847
+ "image_caption": [
848
+ "Figure 4: First row: Original large images, Second row: Images protected with LowKey (medium magnitude), Third row: Images protected with LowKey (large magnitude). "
849
+ ],
850
+ "image_footnote": [],
851
+ "bbox": [
852
+ 205,
853
+ 101,
854
+ 818,
855
+ 558
856
+ ],
857
+ "page_idx": 8
858
+ },
859
+ {
860
+ "type": "table",
861
+ "img_path": "images/c4dfc8e7ebebe64246fae893deb2af1698c8038c6e60815e4895cf0de8f52bda.jpg",
862
+ "table_caption": [
863
+ "Table 4: Evaluation of LowKey on full-size images. Rows indicate levels of magnitude of LowKey (denoted by the number of attack steps). "
864
+ ],
865
+ "table_footnote": [],
866
+ "table_body": "<table><tr><td colspan=\"2\">Amazon rank-1</td><td>Amazon rank-50</td><td>Microsoft rank-1</td></tr><tr><td>Clean </td><td>89.0%</td><td>98.5%</td><td>86.0%</td></tr><tr><td>LowKey 10</td><td>63.0%</td><td>94.5%</td><td>75.5%</td></tr><tr><td>LowKey 20-</td><td>34.0%</td><td>59.5%</td><td>30.5%</td></tr><tr><td>LowKey 30 -</td><td>20.5%</td><td>36.5%</td><td>12.7%</td></tr><tr><td>LowKey 40 -</td><td>14.5%</td><td>36.0%</td><td>3.0%</td></tr><tr><td>LowKey 50</td><td>11.0%</td><td>32.5%</td><td>0.0%</td></tr></table>",
867
+ "bbox": [
868
+ 235,
869
+ 614,
870
+ 759,
871
+ 751
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "",
878
+ "bbox": [
879
+ 173,
880
+ 825,
881
+ 825,
882
+ 924
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "ACKNOWLEDGMENTS ",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 176,
892
+ 103,
893
+ 356,
894
+ 117
895
+ ],
896
+ "page_idx": 9
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "This work was supported by the DARPA GARD and DARPA QED programs. Further support was provided by the AFOSR MURI program, and the National Science Foundation’s DMS division. Computation resources were funded by the Sloan Foundation. ",
901
+ "bbox": [
902
+ 176,
903
+ 132,
904
+ 826,
905
+ 175
906
+ ],
907
+ "page_idx": 9
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "REFERENCES ",
912
+ "text_level": 1,
913
+ "bbox": [
914
+ 176,
915
+ 195,
916
+ 285,
917
+ 212
918
+ ],
919
+ "page_idx": 9
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "Ankan Bansal, Anirudh Nanduri, Carlos D Castillo, Rajeev Ranjan, and Rama Chellappa. Umdfaces: An annotated face dataset for training deep networks. In 2017 IEEE International Joint Conference on Biometrics (IJCB), pp. 464–473. IEEE, 2017. ",
924
+ "bbox": [
925
+ 174,
926
+ 219,
927
+ 826,
928
+ 262
929
+ ],
930
+ "page_idx": 9
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 ieee symposium on security and privacy (sp), pp. 39–57. IEEE, 2017. ",
935
+ "bbox": [
936
+ 174,
937
+ 270,
938
+ 823,
939
+ 299
940
+ ],
941
+ "page_idx": 9
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "Valeriia Cherepanova, Vedant Nanda, Micah Goldblum, John P Dickerson, and Tom Goldstein. Technical challenges for training fair neural networks. arXiv preprint arXiv:2102.06764, 2021. ",
946
+ "bbox": [
947
+ 176,
948
+ 308,
949
+ 821,
950
+ 337
951
+ ],
952
+ "page_idx": 9
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "Ping-Yeh Chiang, Jonas Geiping, Micah Goldblum, Tom Goldstein, Renkun Ni, Steven Reich, and Ali Shafahi. Witchcraft: Efficient pgd attacks with random step size. In ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 3747–3751. IEEE, 2020. ",
957
+ "bbox": [
958
+ 174,
959
+ 344,
960
+ 826,
961
+ 401
962
+ ],
963
+ "page_idx": 9
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4690–4699, 2019. ",
968
+ "bbox": [
969
+ 173,
970
+ 410,
971
+ 826,
972
+ 453
973
+ ],
974
+ "page_idx": 9
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "William Derringer. A surveillance net blankets china’s cities, giving police vast powers. The New York Times, Dec. 17 2019. URL https://www.nytimes.com/2019/12/17/technology/ china-surveillance.html. ",
979
+ "bbox": [
980
+ 173,
981
+ 462,
982
+ 826,
983
+ 505
984
+ ],
985
+ "page_idx": 9
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Micah Goldblum, Avi Schwarzschild, Naftali Cohen, Tucker Balch, Ankit B Patel, and Tom Goldstein. Adversarial attacks on machine learning systems for high-frequency trading. arXiv preprint arXiv:2002.09565, 2020. ",
990
+ "bbox": [
991
+ 173,
992
+ 512,
993
+ 825,
994
+ 555
995
+ ],
996
+ "page_idx": 9
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. ",
1001
+ "bbox": [
1002
+ 169,
1003
+ 564,
1004
+ 825,
1005
+ 593
1006
+ ],
1007
+ "page_idx": 9
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. Ms-celeb-1m: A dataset and benchmark for large-scale face recognition. In European conference on computer vision, pp. 87–102. Springer, 2016. ",
1012
+ "bbox": [
1013
+ 174,
1014
+ 602,
1015
+ 825,
1016
+ 643
1017
+ ],
1018
+ "page_idx": 9
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Woodrow Hartzog. The secretive company that might end privacy as we know it. The New York Times, Jan. 18 2020. URL https://www.nytimes.com/2020/01/18/technology/ clearview-privacy-facial-recognition.html. ",
1023
+ "bbox": [
1024
+ 176,
1025
+ 652,
1026
+ 825,
1027
+ 695
1028
+ ],
1029
+ "page_idx": 9
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1034
+ "bbox": [
1035
+ 173,
1036
+ 703,
1037
+ 825,
1038
+ 746
1039
+ ],
1040
+ "page_idx": 9
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Ira Kemelmacher-Shlizerman, Steven M Seitz, Daniel Miller, and Evan Brossard. The megaface benchmark: 1 million faces for recognition at scale. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4873–4882, 2016. ",
1045
+ "bbox": [
1046
+ 173,
1047
+ 755,
1048
+ 825,
1049
+ 799
1050
+ ],
1051
+ "page_idx": 9
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016. ",
1056
+ "bbox": [
1057
+ 171,
1058
+ 806,
1059
+ 825,
1060
+ 835
1061
+ ],
1062
+ "page_idx": 9
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Cassidy Laidlaw, Sahil Singla, and Soheil Feizi. Perceptual adversarial robustness: Defense against unseen threat models. arXiv preprint arXiv:2006.12655, 2020. ",
1067
+ "bbox": [
1068
+ 171,
1069
+ 843,
1070
+ 825,
1071
+ 873
1072
+ ],
1073
+ "page_idx": 9
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object ´ detection. In Proceedings of the IEEE international conference on computer vision, pp. 2980–2988, 2017. ",
1078
+ "bbox": [
1079
+ 176,
1080
+ 881,
1081
+ 825,
1082
+ 922
1083
+ ],
1084
+ "page_idx": 9
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Sphereface: Deep hypersphere embedding for face recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 212–220, 2017. ",
1089
+ "bbox": [
1090
+ 176,
1091
+ 103,
1092
+ 825,
1093
+ 146
1094
+ ],
1095
+ "page_idx": 10
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Steve Lohr. Facial recognition is accurate, if you’re a white guy. New York Times, 9, 2018. ",
1100
+ "bbox": [
1101
+ 169,
1102
+ 160,
1103
+ 764,
1104
+ 175
1105
+ ],
1106
+ "page_idx": 10
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
1111
+ "bbox": [
1112
+ 176,
1113
+ 189,
1114
+ 826,
1115
+ 231
1116
+ ],
1117
+ "page_idx": 10
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Daniel Pedraza, Dhaval Adjodah, Gretchen Greene, Josh Joseph, Thom Miano, and Francisco. Equalais. https://equalais.media.mit.edu/, 2018. ",
1122
+ "bbox": [
1123
+ 176,
1124
+ 246,
1125
+ 825,
1126
+ 275
1127
+ ],
1128
+ "page_idx": 10
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Parsa Saadatpanah, Ali Shafahi, and Tom Goldstein. Adversarial attacks on copyright detection systems. In International Conference on Machine Learning, pp. 8307–8315. PMLR, 2020. ",
1133
+ "bbox": [
1134
+ 173,
1135
+ 289,
1136
+ 825,
1137
+ 318
1138
+ ],
1139
+ "page_idx": 10
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Shawn Shan, Emily Wenger, Jiayun Zhang, Huiying Li, Haitao Zheng, and Ben Y Zhao. Fawkes: Protecting privacy against unauthorized deep learning models. In 29th {USENIX} Security Symposium ({USENIX} Security 20), pp. 1589–1604, 2020. ",
1144
+ "bbox": [
1145
+ 174,
1146
+ 332,
1147
+ 826,
1148
+ 375
1149
+ ],
1150
+ "page_idx": 10
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Natasha Singer. Microsoft urges congress to regulate use of facial recognition. The New York Times, 2018. ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 388,
1158
+ 825,
1159
+ 416
1160
+ ],
1161
+ "page_idx": 10
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Hao Wang, Yitong Wang, Zheng Zhou, Xing Ji, Dihong Gong, Jingchao Zhou, Zhifeng Li, and Wei Liu. Cosface: Large margin cosine loss for deep face recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5265–5274, 2018. ",
1166
+ "bbox": [
1167
+ 174,
1168
+ 431,
1169
+ 826,
1170
+ 474
1171
+ ],
1172
+ "page_idx": 10
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Karen Weise and Natasha Singer. Amazon pauses police use of its facial recognition software. The New York Times, Jul. 10 2020. URL https://www.nytimes.com/2020/06/10/ technology/amazon-facial-recognition-backlash.html. ",
1177
+ "bbox": [
1178
+ 174,
1179
+ 488,
1180
+ 825,
1181
+ 531
1182
+ ],
1183
+ "page_idx": 10
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Emily Wenger, Josephine Passananti, Yuanshun Yao, Haitao Zheng, and Ben Y Zhao. Backdoor attacks on facial recognition in the physical world. arXiv preprint arXiv:2006.14580, 2020. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 545,
1191
+ 823,
1192
+ 574
1193
+ ],
1194
+ "page_idx": 10
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Zuxuan Wu, Ser-Nam Lim, Larry Davis, and Tom Goldstein. Making an invisibility cloak: Real world adversarial attacks on object detectors. arXiv preprint arXiv:1910.14667, 2019. ",
1199
+ "bbox": [
1200
+ 171,
1201
+ 587,
1202
+ 826,
1203
+ 616
1204
+ ],
1205
+ "page_idx": 10
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Kaidi Xu, Gaoyuan Zhang, Sijia Liu, Quanfu Fan, Mengshu Sun, Hongge Chen, Pin-Yu Chen, Yanzhi Wang, and Xue Lin. Adversarial t-shirt! evading person detectors in a physical world. arXiv, pp. arXiv–1910, 2019. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 631,
1213
+ 825,
1214
+ 672
1215
+ ],
1216
+ "page_idx": 10
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Xiao Yang, Yinpeng Dong, Tianyu Pang, Jun Zhu, and Hang Su. Towards privacy protection by generating adversarial identity masks. arXiv preprint arXiv:2003.06814, 2020. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 686,
1224
+ 823,
1225
+ 717
1226
+ ],
1227
+ "page_idx": 10
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Kai Zhang, V´ıtor Albiero, and Kevin W Bowyer. A method for curation of web-scraped face image datasets. In 2020 8th International Workshop on Biometrics and Forensics (IWBF), pp. 1–6. IEEE, 2020. ",
1232
+ "bbox": [
1233
+ 174,
1234
+ 731,
1235
+ 825,
1236
+ 772
1237
+ ],
1238
+ "page_idx": 10
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018. ",
1243
+ "bbox": [
1244
+ 174,
1245
+ 787,
1246
+ 825,
1247
+ 830
1248
+ ],
1249
+ "page_idx": 10
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Jian Zhao. face.evolve: High-performance face recognition library based on pytorch. https: //github.com/ZhaoJ9014/face.evoLVe.PyTorch, 2020. ",
1254
+ "bbox": [
1255
+ 173,
1256
+ 844,
1257
+ 825,
1258
+ 872
1259
+ ],
1260
+ "page_idx": 10
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Yaoyao Zhong and Weihong Deng. Towards transferable adversarial attack against deep face recognition. arXiv preprint arXiv:2004.05790, 2020. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 887,
1268
+ 823,
1269
+ 915
1270
+ ],
1271
+ "page_idx": 10
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "8 APPENDIX ",
1276
+ "text_level": 1,
1277
+ "bbox": [
1278
+ 174,
1279
+ 102,
1280
+ 294,
1281
+ 118
1282
+ ],
1283
+ "page_idx": 11
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "8.1 IMPLEMENTATION DETAILS ",
1288
+ "text_level": 1,
1289
+ "bbox": [
1290
+ 176,
1291
+ 135,
1292
+ 406,
1293
+ 150
1294
+ ],
1295
+ "page_idx": 11
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "We train all of our feature extractors using focal loss (Lin et al., 2017) with a batch size of 512 for 120 epochs. We use an initial learning rate of 0.1 and decrease it by a factor of 10 at epochs 35, 65 and 95. For the optimizer, we use SGD with a momentum of 0.9 and weight decay of 5e-4. ",
1300
+ "bbox": [
1301
+ 174,
1302
+ 161,
1303
+ 825,
1304
+ 204
1305
+ ],
1306
+ "page_idx": 11
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "For our adversarial attacks, we use 0.05 for the perceptual similarity penalty, $\\sigma = 3$ and window size 7 for the Gaussian smoothing term. Attacks are computed using signed SGD for 50 epochs with a learning rate of 0.0025. ",
1311
+ "bbox": [
1312
+ 174,
1313
+ 210,
1314
+ 825,
1315
+ 252
1316
+ ],
1317
+ "page_idx": 11
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "For face detection and aligning models as well as for training routines, we use the face.evoLVe.PyTorch github repository (Zhao, 2020). ",
1322
+ "bbox": [
1323
+ 174,
1324
+ 260,
1325
+ 823,
1326
+ 287
1327
+ ],
1328
+ "page_idx": 11
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "8.2 RANK-1 ACCURACY ON FACESCRUB DATA ",
1333
+ "text_level": 1,
1334
+ "bbox": [
1335
+ 174,
1336
+ 308,
1337
+ 508,
1338
+ 321
1339
+ ],
1340
+ "page_idx": 11
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "See Table 5. ",
1345
+ "bbox": [
1346
+ 174,
1347
+ 334,
1348
+ 254,
1349
+ 348
1350
+ ],
1351
+ "page_idx": 11
1352
+ },
1353
+ {
1354
+ "type": "table",
1355
+ "img_path": "images/69eeac2ed9b89172772c9eb6cfad8d253b3c60756d89fc416490bc2722479464.jpg",
1356
+ "table_caption": [],
1357
+ "table_footnote": [],
1358
+ "table_body": "<table><tr><td rowspan=2 colspan=9>DefenderIR-50A IR-50CIR-152AIR-152C RN-50ARN-50C RN-152A RN-152CClean 95.6% 96.1% 96.0% 96.2% 95.8% 95.9% 95.9% 96.0%</td></tr><tr><td rowspan=1 colspan=1>95.6%</td><td rowspan=1 colspan=2>96.1% 96.0%</td><td rowspan=1 colspan=1>96.2%</td><td rowspan=1 colspan=1>95.8%</td><td rowspan=1 colspan=2>95.9% 95.9%</td><td rowspan=1 colspan=1>96.0%</td></tr><tr><td rowspan=5 colspan=1>Fawkes IR-50AIR-50CAAreeet IR-152AIR-152C-</td><td rowspan=1 colspan=1>71.2%</td><td rowspan=1 colspan=1>76.2%</td><td rowspan=1 colspan=1>74.4%</td><td rowspan=1 colspan=1>78.2%</td><td rowspan=1 colspan=1>73.9%</td><td rowspan=1 colspan=2>76.0% 76.0%</td><td rowspan=1 colspan=1>71.2%</td></tr><tr><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>3.5%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>6.4%</td><td rowspan=1 colspan=1>5.0%</td><td rowspan=1 colspan=2>8.2% 8.7%</td><td rowspan=1 colspan=1>12.4%</td></tr><tr><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>9.0%</td><td rowspan=1 colspan=1>3.3%</td><td rowspan=1 colspan=2>3.3% 3.6%</td><td rowspan=1 colspan=1> 5.3%</td></tr><tr><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>1.8%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>4.2%</td><td rowspan=1 colspan=1>6.8%</td><td rowspan=1 colspan=1>8.9%</td><td rowspan=1 colspan=1>9.4%</td><td rowspan=1 colspan=1>10.8%</td></tr><tr><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>1.0%</td><td rowspan=1 colspan=1>1.4%</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>2.9%</td></tr><tr><td rowspan=1 colspan=1>RN-50A-</td><td rowspan=1 colspan=1>3.8%</td><td rowspan=1 colspan=1>7.0%</td><td rowspan=1 colspan=1>6.8%</td><td rowspan=1 colspan=1>8.3%</td><td rowspan=1 colspan=1>0.9%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1>2.8%</td><td rowspan=1 colspan=1>4.6%</td></tr><tr><td rowspan=1 colspan=1>RN-50C-</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1> 5.7%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>7.9%</td><td rowspan=1 colspan=1>1.2%</td><td rowspan=1 colspan=1>0.1%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1> 3.5%</td></tr><tr><td rowspan=1 colspan=1>RN-152A</td><td rowspan=1 colspan=1>1.5%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1>2.7%</td><td rowspan=1 colspan=1>4.9%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>0.4%</td></tr><tr><td rowspan=2 colspan=1>RN-152CEnsemble</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1>3.9%</td><td rowspan=1 colspan=1>0.8%</td><td rowspan=1 colspan=1>0.8%</td><td rowspan=1 colspan=1>0.5%</td><td rowspan=1 colspan=1>0.0%</td></tr><tr><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=2>0.0% 0.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=2>0.4% 0.6%</td><td rowspan=1 colspan=1>0.1%</td></tr></table>",
1359
+ "bbox": [
1360
+ 202,
1361
+ 359,
1362
+ 792,
1363
+ 584
1364
+ ],
1365
+ "page_idx": 11
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Table 5: Rank-1 accuracy of the LowKey and Fawkes attacks on the FaceScrub dataset. After the first two rows, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
1370
+ "bbox": [
1371
+ 173,
1372
+ 598,
1373
+ 826,
1374
+ 683
1375
+ ],
1376
+ "page_idx": 11
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "8.3 RESULTS ON UMDFACES DATASET ",
1381
+ "text_level": 1,
1382
+ "bbox": [
1383
+ 176,
1384
+ 710,
1385
+ 457,
1386
+ 726
1387
+ ],
1388
+ "page_idx": 11
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "We repeat controlled experiments on the UMDFaces dataset which contains over 367,000 photos of 8,277 identities. For UMDFaces, we also choose 100 identities at random and attack their gallery images while keeping one-tenth of each identity’s photos as probe images. Experimental results are reported in Tables 6 and 7. It can be seen that the effectiveness of LowKey attacks on the UMDFaces dataset is slightly lower, which is likely a result of the much smaller gallery. ",
1393
+ "bbox": [
1394
+ 174,
1395
+ 737,
1396
+ 825,
1397
+ 808
1398
+ ],
1399
+ "page_idx": 11
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "8.4 CAN WE REDUCE THE SIZE OF OUR ATTACK? ",
1404
+ "text_level": 1,
1405
+ "bbox": [
1406
+ 174,
1407
+ 827,
1408
+ 524,
1409
+ 842
1410
+ ],
1411
+ "page_idx": 11
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "In order to make our attacks more aesthetically pleasing, we try to reduce the size of perturbation by increasing the perceptual similarity penalty from 0.05 to 0.08. This attack is depicted in Figure 5 as a ”LowKey small attack”. Unfortunately, even a small decrease in the perturbation size results in a huge decrease in efficiency of the attack. In the rank-50 setting Amazon Rekognition is able to recognize $1 7 . 2 \\%$ of probe images belonging to users protected with a LowKey small attack. Similarly, Microsoft ",
1416
+ "bbox": [
1417
+ 173,
1418
+ 853,
1419
+ 825,
1420
+ 924
1421
+ ],
1422
+ "page_idx": 11
1423
+ },
1424
+ {
1425
+ "type": "table",
1426
+ "img_path": "images/262a94257929912fc561ba1e775bf1d549df36a529e6f26b97b8d5142d3f0d97.jpg",
1427
+ "table_caption": [],
1428
+ "table_footnote": [],
1429
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1>98.6%</td><td rowspan=1 colspan=1>98.3%</td><td rowspan=1 colspan=1>98.6%</td><td rowspan=1 colspan=2>98.6% 98.3%</td><td rowspan=1 colspan=2>98.3% 98.6%</td><td rowspan=1 colspan=1>98.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>38.9%</td><td rowspan=1 colspan=1>25.9%</td><td rowspan=1 colspan=1>48.6%</td><td rowspan=1 colspan=1>47.7%</td><td rowspan=1 colspan=1>55.7%</td><td rowspan=1 colspan=1>57.1%</td><td rowspan=1 colspan=1>62.2%</td></tr><tr><td></td><td rowspan=1 colspan=1>13.6%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>16.5%</td><td rowspan=1 colspan=1>17.6%</td><td rowspan=1 colspan=1>37.5%</td><td rowspan=1 colspan=1>39.2%</td><td rowspan=1 colspan=1>51.4%</td><td rowspan=1 colspan=1>46.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>23.0%</td><td rowspan=1 colspan=1>32.1%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>36.4%</td><td rowspan=1 colspan=1>52.8%</td><td rowspan=1 colspan=1>56.5%</td><td rowspan=1 colspan=1>58.2%</td><td rowspan=1 colspan=1>58.5%</td></tr><tr><td></td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>9.1%</td><td rowspan=1 colspan=1>1.1%</td><td rowspan=1 colspan=1>26.7%</td><td rowspan=1 colspan=1>28.1%</td><td rowspan=1 colspan=1>34.9%</td><td rowspan=1 colspan=1>31.8%</td></tr><tr><td rowspan=5 colspan=1>Aareeet RN-50A-RN-50C-RN-152A -RN-152C-Ensemble-</td><td rowspan=1 colspan=1>51.4%</td><td rowspan=1 colspan=1>56.3%</td><td rowspan=1 colspan=1>47.2%</td><td rowspan=1 colspan=1>53.1%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>30.7%</td><td rowspan=1 colspan=1>38.4%</td><td rowspan=1 colspan=1>43.2%</td></tr><tr><td rowspan=1 colspan=1>49.4%</td><td rowspan=1 colspan=1>48.3%</td><td rowspan=1 colspan=1>55.1%</td><td rowspan=1 colspan=1>54.0%</td><td rowspan=1 colspan=1>23.0%</td><td rowspan=1 colspan=1>1.1%</td><td rowspan=1 colspan=1>37.2%</td><td rowspan=1 colspan=1>36.4%</td></tr><tr><td rowspan=1 colspan=1>30.4%</td><td rowspan=1 colspan=1>38.1%</td><td rowspan=1 colspan=1>39.8%</td><td rowspan=1 colspan=1>43.8%</td><td rowspan=1 colspan=1>18.8%</td><td rowspan=1 colspan=1>22.2%</td><td rowspan=1 colspan=1>3.4%</td><td rowspan=1 colspan=1>25.9%</td></tr><tr><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>33.8%</td><td rowspan=1 colspan=1>35.5%</td><td rowspan=1 colspan=1>37.8%</td><td rowspan=1 colspan=1>17.3%</td><td rowspan=1 colspan=1>18.2%</td><td rowspan=1 colspan=1>16.8%</td><td rowspan=1 colspan=1> 3.4%</td></tr><tr><td rowspan=1 colspan=1>10.5%</td><td rowspan=1 colspan=1>4.5%</td><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>15.1%</td><td rowspan=1 colspan=1> 6.5%</td><td rowspan=1 colspan=1>12.8%</td><td rowspan=1 colspan=1>13.6%</td></tr></table>",
1430
+ "bbox": [
1431
+ 202,
1432
+ 99,
1433
+ 792,
1434
+ 324
1435
+ ],
1436
+ "page_idx": 12
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Table 6: Rank-50 accuracy of LowKey attacks on the UMDFaces dataset. After the first row, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 338,
1444
+ 826,
1445
+ 409
1446
+ ],
1447
+ "page_idx": 12
1448
+ },
1449
+ {
1450
+ "type": "table",
1451
+ "img_path": "images/697fa1ac972fca8cb17f97967299352ade592039db31220a7b076daca109d29c.jpg",
1452
+ "table_caption": [],
1453
+ "table_footnote": [],
1454
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1>96.0%</td><td rowspan=1 colspan=1>97.2%</td><td rowspan=1 colspan=1>96.9%</td><td rowspan=1 colspan=2>96.9% 96.3%</td><td rowspan=1 colspan=2>96.6% 97.2%</td><td rowspan=1 colspan=1>96.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>6.3%</td><td rowspan=1 colspan=1>18.2%</td><td rowspan=1 colspan=1>17.6%</td><td rowspan=1 colspan=1>25.9%</td><td rowspan=1 colspan=1>28.1%</td><td rowspan=1 colspan=1>31.3%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>4.3%</td><td rowspan=1 colspan=1>11.6%</td><td rowspan=1 colspan=1>13.9%</td><td rowspan=1 colspan=1>17.3%</td><td rowspan=1 colspan=1>21.0%</td></tr><tr><td></td><td rowspan=1 colspan=1>4.3%</td><td rowspan=1 colspan=1>12.8%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>14.5%</td><td rowspan=1 colspan=1>22.4%</td><td rowspan=1 colspan=1>25.6%</td><td rowspan=1 colspan=1>29.5%</td><td rowspan=1 colspan=1>30.1%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>6.8%</td><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>13.6%</td><td rowspan=1 colspan=1>11.4%</td></tr><tr><td></td><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>31.0%</td><td rowspan=1 colspan=1>13.9%</td><td rowspan=1 colspan=1>26.4%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>9.4%</td><td rowspan=1 colspan=1>15.1%</td><td rowspan=1 colspan=1>19.0%</td></tr><tr><td rowspan=4 colspan=1>RN-50C-RN-152A -RN-152C-Ensemble </td><td rowspan=1 colspan=1>14.5%</td><td rowspan=1 colspan=1>21.3%</td><td rowspan=1 colspan=1>20.7%</td><td rowspan=1 colspan=1>25.3%</td><td rowspan=1 colspan=1>6.5%</td><td rowspan=1 colspan=1>0.6%</td><td rowspan=1 colspan=1>12.8%</td><td rowspan=1 colspan=1>14.8%</td></tr><tr><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>16.2%</td><td rowspan=1 colspan=1>16.8%</td><td rowspan=1 colspan=1>17.9%</td><td rowspan=1 colspan=1> 5.1%</td><td rowspan=1 colspan=1>7.1%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1> 7.4%</td></tr><tr><td rowspan=1 colspan=1>7.4%</td><td rowspan=1 colspan=1>10.2%</td><td rowspan=1 colspan=1>11.9%</td><td rowspan=1 colspan=1>13.1%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1> 4.5%</td><td rowspan=1 colspan=1> 5.4%</td><td rowspan=1 colspan=1>0.9%</td></tr><tr><td rowspan=1 colspan=1>2.8%</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1> 5.1%</td><td rowspan=1 colspan=1>2.0%</td><td rowspan=1 colspan=1>3.1%</td><td rowspan=1 colspan=1>4.0%</td></tr></table>",
1455
+ "bbox": [
1456
+ 202,
1457
+ 431,
1458
+ 792,
1459
+ 656
1460
+ ],
1461
+ "page_idx": 12
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "Table 7: Rank-1 accuracy of LowKey attack attacks on the UMDFaces dataset. After the first row, each row represents LowKey attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
1466
+ "bbox": [
1467
+ 173,
1468
+ 670,
1469
+ 826,
1470
+ 741
1471
+ ],
1472
+ "page_idx": 12
1473
+ },
1474
+ {
1475
+ "type": "text",
1476
+ "text": "Azure Face recognizes $5 . 5 \\%$ of probe images. Results of controlled experiments are reported in Tables 8 and 9. ",
1477
+ "bbox": [
1478
+ 174,
1479
+ 777,
1480
+ 823,
1481
+ 806
1482
+ ],
1483
+ "page_idx": 12
1484
+ },
1485
+ {
1486
+ "type": "text",
1487
+ "text": "8.5 COMPARISON WITH FAWKES ",
1488
+ "text_level": 1,
1489
+ "bbox": [
1490
+ 176,
1491
+ 835,
1492
+ 411,
1493
+ 851
1494
+ ],
1495
+ "page_idx": 12
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "By comparing a set of images protected with LowKey and Fawkes tools, we can see that both attacks are noticeable, but distort images in different ways. While Fawkes adds conspicuous artifacts on the face (such as mustaches or lines on the nose), LowKey attack mostly changes the textures and adds spots on a person’s skin. See Figure 5 for a visual comparison. ",
1500
+ "bbox": [
1501
+ 174,
1502
+ 867,
1503
+ 825,
1504
+ 924
1505
+ ],
1506
+ "page_idx": 12
1507
+ },
1508
+ {
1509
+ "type": "table",
1510
+ "img_path": "images/1ff73a84f6cd5e80501726627faee14f64d2eb8194ba08858fee03533dff836b.jpg",
1511
+ "table_caption": [],
1512
+ "table_footnote": [],
1513
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.7%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=1>96.8%</td><td rowspan=1 colspan=2>96.8% 96.7%</td><td rowspan=1 colspan=1>96.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.0%</td><td rowspan=1 colspan=1>41.1%</td><td rowspan=1 colspan=1>24.7%</td><td rowspan=1 colspan=1>55.2%</td><td rowspan=1 colspan=1>49.7%</td><td rowspan=1 colspan=1>65.0%</td><td rowspan=1 colspan=1>64.2%</td><td rowspan=1 colspan=1>68.8%</td></tr><tr><td></td><td rowspan=1 colspan=1>17.4%</td><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>20.4%</td><td rowspan=1 colspan=1>30.2%</td><td rowspan=1 colspan=1>47.0%</td><td rowspan=1 colspan=1>49.0%</td><td rowspan=1 colspan=1>56.2%</td><td rowspan=1 colspan=1>55.6%</td></tr><tr><td></td><td rowspan=1 colspan=1>28.8%</td><td rowspan=1 colspan=1>38.6%</td><td rowspan=1 colspan=1>0.3%</td><td rowspan=1 colspan=1>49.8%</td><td rowspan=1 colspan=1>61.2%</td><td rowspan=1 colspan=1>66.6%</td><td rowspan=1 colspan=1>69.8%</td><td rowspan=1 colspan=1>70.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>14.2%</td><td rowspan=1 colspan=1>14.0%</td><td rowspan=1 colspan=1>16.2%</td><td rowspan=1 colspan=1>2.7%</td><td rowspan=1 colspan=1>37.0%</td><td rowspan=1 colspan=1>38.6%</td><td rowspan=1 colspan=1>44.4%</td><td rowspan=1 colspan=1>42.9%</td></tr><tr><td rowspan=5 colspan=1>Aareeet RN-50A-RN-50C-RN-152A -RN-152C-Ensemble -</td><td rowspan=1 colspan=1>49.3%</td><td rowspan=1 colspan=1>62.3%</td><td rowspan=1 colspan=1>64.1%</td><td rowspan=1 colspan=1>68.0%</td><td rowspan=1 colspan=1>1.5%</td><td rowspan=1 colspan=1>35.9%</td><td rowspan=1 colspan=1>41.8%</td><td rowspan=1 colspan=1>49.3%</td></tr><tr><td rowspan=1 colspan=1> 57.4%</td><td rowspan=1 colspan=1>59.9%</td><td rowspan=1 colspan=1>62.1%</td><td rowspan=1 colspan=1>64.4%</td><td rowspan=1 colspan=1>31.1%</td><td rowspan=1 colspan=1>3.6%</td><td rowspan=1 colspan=1>46.8%</td><td rowspan=1 colspan=1>48.6%</td></tr><tr><td rowspan=1 colspan=1>42.9%</td><td rowspan=1 colspan=1>51.3%</td><td rowspan=1 colspan=1>52.3%</td><td rowspan=1 colspan=1>55.0%</td><td rowspan=1 colspan=1>25.6%</td><td rowspan=1 colspan=1>32.9%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>35.0%</td></tr><tr><td rowspan=1 colspan=1>41.8%</td><td rowspan=1 colspan=1>48.9%</td><td rowspan=1 colspan=1>47.9%</td><td rowspan=1 colspan=1>52.7%</td><td rowspan=1 colspan=1>28.2%</td><td rowspan=1 colspan=1>29.2%</td><td rowspan=1 colspan=1>30.4%</td><td rowspan=1 colspan=1>8.5%</td></tr><tr><td rowspan=1 colspan=1>18.0%</td><td rowspan=1 colspan=1>21.8%</td><td rowspan=1 colspan=1>19.4%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>23.1%</td><td rowspan=1 colspan=1>24.3%</td><td rowspan=1 colspan=1>27.0%</td><td rowspan=1 colspan=1>14.1%</td></tr></table>",
1514
+ "bbox": [
1515
+ 202,
1516
+ 99,
1517
+ 792,
1518
+ 324
1519
+ ],
1520
+ "page_idx": 13
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "Table 8: Rank-50 accuracy of LowKey small attacks on the UMDFaces dataset. After the first row, each row represents LowKey small attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
1525
+ "bbox": [
1526
+ 173,
1527
+ 338,
1528
+ 828,
1529
+ 409
1530
+ ],
1531
+ "page_idx": 13
1532
+ },
1533
+ {
1534
+ "type": "table",
1535
+ "img_path": "images/cae3c3665771745577d81ef7de3d440c66dcf0a0744bbd95d1ee6f29ed9c59cd.jpg",
1536
+ "table_caption": [],
1537
+ "table_footnote": [],
1538
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1>95.6%</td><td rowspan=1 colspan=1>96.1%</td><td rowspan=1 colspan=1>96.0%</td><td rowspan=1 colspan=1>96.2%</td><td rowspan=1 colspan=4>95.8% 95.9% 95.9% 96.0%</td></tr><tr><td></td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>6.1%</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>10.5%</td><td rowspan=1 colspan=1>9.7%</td><td rowspan=1 colspan=1>14.4%</td><td rowspan=1 colspan=1>16.9%</td><td rowspan=1 colspan=1>19.5%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.6%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=1>2.5%</td><td rowspan=1 colspan=1>5.8%</td><td rowspan=1 colspan=1>9.3%</td><td rowspan=1 colspan=1>11.1%</td><td rowspan=1 colspan=1>14.0%</td><td rowspan=1 colspan=1>14.5%</td></tr><tr><td></td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>0.0%</td><td rowspan=1 colspan=1>9.6%</td><td rowspan=1 colspan=1>14.0%</td><td rowspan=1 colspan=1>17.4%</td><td rowspan=1 colspan=1>19.2%</td><td rowspan=1 colspan=1>20.7%</td></tr><tr><td></td><td rowspan=1 colspan=1>1.3%</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>0.4%</td><td rowspan=1 colspan=1> 5.1%</td><td rowspan=1 colspan=1> 7.5%</td><td rowspan=1 colspan=1>9.6%</td><td rowspan=1 colspan=1> 9.7%</td></tr><tr><td rowspan=5 colspan=1>AAraret RN-50ARN-50CRN-152A-RN-152C-Ensemble</td><td rowspan=1 colspan=1>8.7%</td><td rowspan=1 colspan=1>14.9%</td><td rowspan=1 colspan=1>14.8%</td><td rowspan=1 colspan=1>17.1%</td><td rowspan=1 colspan=1>0.2%</td><td rowspan=1 colspan=1>7.6%</td><td rowspan=1 colspan=1>7.8%</td><td rowspan=1 colspan=1>12.5%</td></tr><tr><td rowspan=1 colspan=1>9.9%</td><td rowspan=1 colspan=1>14.6%</td><td rowspan=1 colspan=1>15.6%</td><td rowspan=1 colspan=1>17.2%</td><td rowspan=1 colspan=1>5.6%</td><td rowspan=1 colspan=1>0.6%</td><td rowspan=1 colspan=1>8.8%</td><td rowspan=1 colspan=1>11.6%</td></tr><tr><td rowspan=1 colspan=1>9.2%</td><td rowspan=1 colspan=1>13.5%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>14.8%</td><td rowspan=1 colspan=1>5.7%</td><td rowspan=1 colspan=1>7.9%</td><td rowspan=1 colspan=1>0.8%</td><td rowspan=1 colspan=1>8.5%</td></tr><tr><td rowspan=1 colspan=1>6.9%</td><td rowspan=1 colspan=1>11.3%</td><td rowspan=1 colspan=1>11.8%</td><td rowspan=1 colspan=1>12.2%</td><td rowspan=1 colspan=1>4.8%</td><td rowspan=1 colspan=1> 5.3%</td><td rowspan=1 colspan=1>6.0%</td><td rowspan=1 colspan=1>1.3%</td></tr><tr><td rowspan=1 colspan=1>2.6%</td><td rowspan=1 colspan=1>3.6%</td><td rowspan=1 colspan=1>3.5%</td><td rowspan=1 colspan=1>2.9%</td><td rowspan=1 colspan=1>4.0%</td><td rowspan=1 colspan=1>4.7%</td><td rowspan=1 colspan=1> 5.4%</td><td rowspan=1 colspan=1>3.9%</td></tr></table>",
1539
+ "bbox": [
1540
+ 202,
1541
+ 420,
1542
+ 792,
1543
+ 645
1544
+ ],
1545
+ "page_idx": 13
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "text": "Table 9: Rank-1 accuracy of LowKey small attacks on the UMDFaces dataset. After the first row, each row represents LowKey small attacks generated from the same model. Each column represents inference on a single model. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
1550
+ "bbox": [
1551
+ 173,
1552
+ 657,
1553
+ 826,
1554
+ 729
1555
+ ],
1556
+ "page_idx": 13
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "8.6 GAUSSIAN SMOOTHING IN LOWKEY ",
1561
+ "text_level": 1,
1562
+ "bbox": [
1563
+ 176,
1564
+ 753,
1565
+ 467,
1566
+ 768
1567
+ ],
1568
+ "page_idx": 13
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "For the parameters of the Gaussian smoothing term in the optimization problem (1), we use 3 for $\\sigma$ and 7 for window size. For the defensive Gaussian blur, we use $\\sigma = 2$ and no window size. ",
1573
+ "bbox": [
1574
+ 173,
1575
+ 780,
1576
+ 823,
1577
+ 809
1578
+ ],
1579
+ "page_idx": 13
1580
+ },
1581
+ {
1582
+ "type": "image",
1583
+ "img_path": "images/f96629cc280e06dd4286556160bdc259fd2bc6656c04a9b70ee142678fa2910c.jpg",
1584
+ "image_caption": [
1585
+ "Figure 5: Panel of different attacks. First row: original images, second row: Fawkes attack, third row: LowKey small attack, last row: LowKey attack. "
1586
+ ],
1587
+ "image_footnote": [],
1588
+ "bbox": [
1589
+ 191,
1590
+ 184,
1591
+ 807,
1592
+ 452
1593
+ ],
1594
+ "page_idx": 14
1595
+ },
1596
+ {
1597
+ "type": "table",
1598
+ "img_path": "images/d1a9c9128027cee78921bf9e8b9891e71eb0d6e284d64c55813cfd31090583c4.jpg",
1599
+ "table_caption": [
1600
+ "Defender IR-50A IR-50C IR-152A IR-152C RN-50A RN-50C RN-152A RN-152C "
1601
+ ],
1602
+ "table_footnote": [],
1603
+ "table_body": "<table><tr><td rowspan=\"2\">Clean </td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>84.4%</td><td>85.3%</td><td>84.7%</td><td>86.1%</td><td>86.7%</td><td>87.9%</td><td>88.5%</td><td>89.6%</td></tr><tr><td>Aareeet Without GS</td><td>13.3%</td><td>17.9%</td><td>15.8%</td><td>13.7%</td><td>18.9%</td><td>20.4%</td><td>23.2%</td><td>20.6%</td></tr><tr><td>With GS</td><td>0.3%</td><td>0.3%</td><td>0.1%</td><td>0.0%</td><td>1.0%</td><td>0.9%</td><td>0.6%</td><td>0.6%</td></tr></table>",
1604
+ "bbox": [
1605
+ 204,
1606
+ 696,
1607
+ 792,
1608
+ 765
1609
+ ],
1610
+ "page_idx": 14
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "Table 10: Rank-1 accuracy of FR models tested on blurred images attacked without and with the Gaussian smoothing term. The first two letters in the model’s name denote the type of backbone: IR or ResNet (RN). The last letter in the model’s name indicates the type of head; “A” denotes ArcFace, and “C” denotes CosFace. Smaller numbers, and lighter colors, indicate more successful attacks. ",
1615
+ "bbox": [
1616
+ 173,
1617
+ 779,
1618
+ 826,
1619
+ 835
1620
+ ],
1621
+ "page_idx": 14
1622
+ }
1623
+ ]
parse/train/hJmtwocEqzc/hJmtwocEqzc_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/hJmtwocEqzc/hJmtwocEqzc_model.json ADDED
The diff for this file is too large to render. See raw diff